Zentyal Forum, Linux Small Business Server

Zentyal Server => Directory and Authentication => Topic started by: gerald_FS on November 13, 2014, 08:09:26 pm

Title: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: gerald_FS on November 13, 2014, 08:09:26 pm
Zentyal 4 and ownCloud with centralized user management (LDAP)

Hi there,

I'm trying as I got done with ownCloud central Benutzerverwlautng.
To date, however, without success!

There is an LDAP module in ownCloud, but I can not respond properly, does anyone advice?
There is a reasonable HowTo?


best regards
Gerald
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: robb on November 13, 2014, 08:17:17 pm
In Zentyal 3.2 I have owncloud working with LDAP accounts, but in Zentyal 4 a complete other LDAP is used. (Samba4 instead of OpenLDAP) So I don't know how to configure it for Zentyal4.
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: gerald_FS on November 14, 2014, 09:13:25 am
Good morning forum!

well I agree with you that yes LDAP in the form is not quite existend, but bears yes samba4 the identification of the user.

SOGO and other modules have indeed access the user database.

In my eyes would wan the data you need "only out-extracting", which is only quite tingly.

With my dangerous half know I can not do it;-)


VII. does anyone know what it takes to think it will combine m ore people Zentyal with ownCloud.

Greetings from the foggy Bavaria!

Gerald
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: Gopher on November 14, 2014, 11:28:14 am
Samba AD is supposedly Active Directory compatible  and Owncloud supports that, so in theory it should be possible. One possible avenue to look at would be to setup an up to date Samba4 domain on something like OpenSuse so that you can see if its is a Samba4 issue you are seeing or a Zentyal config one.
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: julio on November 14, 2014, 08:29:24 pm
Hallo Gerald,

1. install php5-ldap on your server:
Code: [Select]
sudo apt-get install php5-ldap
2. add samba4 ldap port (tcp/udp 389) to internal firewall rules

3. enable ldap app in owncloud:
    (Apps Sidebar→Apps, choose LDAP user and group backend, click on Enable)

4. add new ldap server config (change your Domain Administrator password!)
    see my example test config in attachment
    your CN-DN settings in Zentyal:
    Users and Computers → LDAP Settings → LDAP information 

Greetings from the foggy and frosty Bavaria!  ;)

julio
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: jmccoy555 on November 14, 2014, 11:32:27 pm
Hi Julio,

Can you help me with a few point please.

Which versions of ownCloud and Zentyal are you using?

Do you mean sudo apt-get install php5-ldap ....... with the number 5, and I install this on my ownCloud machine?

I had this all working perfectly with Zentyal 3.2 and this is such a pain...... Oddly I can get pfSense to talk happily for my vpn authentication using the ldap username and password in here - /etc/postfix/login.cf so I'm a bit lost!!!

Thanks.



UPDATE - Got it working. Re-set up the latest ownCloud (it wouldn't update from 7.0.2 with the updater for some reason), had the same issue; I put in all the LDAP details and it wouldn't load the 'only from those groups:' box, then I manually refreshed the web page, and voila a green circle appeared!! Now I can go to bed.
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: julio on November 15, 2014, 06:43:47 pm
Hi jmccoy555,

Zentyal 4 + ownCloud 7.0.3
yes, install php5-ldap on your server, sorry...  :)
Title: Re: Zentyal 4 and ownCloud with centralized user management (LDAP) - SOLVED
Post by: gerald_FS on November 16, 2014, 01:14:25 pm
Danke!   - Einfach geil!!!

Da mach ich mir gleich noch ein Tegernseer auf  :D - Prost.
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: don on December 13, 2014, 12:01:22 pm
I am having no luck at all with this. On the first tab, I get the little green icon to say the server configuration is correct, then go to the second tab, and it turns red and says it is incorrect.

Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: don on December 14, 2014, 07:08:32 am
Well, after purging Zentyal-*, and re-installing all the Zentyal components, still no luck. So I went to owncloud -> apps and disabled the LDAP app, reloaded and re-enabled it, and all is working again.

Unfortunately, I have no users in Zentyal any more - so have to add them all back :-)
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: Mittelerde on January 19, 2015, 10:24:12 am
Hello,

got a problem here, it will not work with the setup parameters from above
Zentyal 4.0 - core 4.0.5
Owncloud 7.0.4
php5-ldap is installed

disabled the LDAP app in Ownrloud, reloaded and re-enabled it - No Way

after a fresh Zentyal and Owncloud install the problem still exist

is there someone already come next?

Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: julio on January 19, 2015, 11:04:14 pm
Hi,

Internal Firewall TCP/UDP port: 389 is enabled?
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: Mittelerde on January 20, 2015, 12:53:38 pm
Hi ,

i disable the firewall for testing
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: kidax on February 25, 2015, 11:43:23 am
Hello,
I've zentyal 4.06 and owncloud 8 installed.
With Julios post I get the mistake "Base-DN konnte nicht festgestellt werden". With ldap and ldaps, what is favourated. Inserts are from zentyal. After pressing "continue", I cannot make any configuration. Everything is empty (object class).

Greets
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: phiku on April 23, 2015, 03:28:07 pm
Hey,

I have the same problem. The bindings did not work for Zentyal 4.1 and owncloud 8. I already open the znetyal firewall for port 389. I entered the Base DN like cn=domain,cn=lan and the Root-DN like uid=Administrator,OU=Users,DC=domain,DC=lan   

Server ip: 192.168.178.6 without and with ldaps/ldap - nothing happend. The BASE-DN isn't recognized by owncloud

ANy ideas?

Greetz phiku
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: phiku on April 24, 2015, 10:10:39 am
 :) I find the a Solution in a Owncloud-Forum with using an Ubuntu AD (as Zentyal is based on ubuntu) and it's working  :)

Here are my pictures
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: phiku on April 27, 2015, 09:37:04 am
It' me agian. As you can see in my last post and the pictures, I get the users in the owncloud-user-panel.

But... I can't login with the AD credetials for my users. Has anybody an Idea?

grettings,

phiku

Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: don on May 02, 2015, 12:02:26 pm
I'm really wondering why I persist with Zentyal. Why can they not give us the documentation that will let us use Zentyal as an LDAP server to authenticate clients without having to jump through all these hoops. Earlier versions gave us a read only user in the admin panel and let us set up clients with ease. Now you have to dig into the guts of it just to find the dn of a user to use to log into LDAP.

If all Zentyal is going to do is provide the same functionality as a windows server (including the fucked up upgrades), I might as well just use windows. At least Microsoft give you documentation, and they support third party applications on the servers. Zentyal seem to be trying to stop anyone doing anything other than file sharing and Outlook.
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: gervs00 on July 14, 2015, 03:38:52 pm
I was able to get it working using Phiku's method in the screenshots... however it was very sporadic. One second it was showing nothing, the next suddenly it just went green after going back and forth between tabs. I just rebuilt the server and I'm going to try from scratch using those same instructions this time and see if it works. Would be nice to have this Wiki'd if someone could get it accurately working.
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: toofarnorth on October 10, 2015, 04:09:11 am
maybe this post can help?
https://forum.zentyal.org/index.php/topic,26262.0.html

TfN
Title: Re: (SOLVED) Zentyal 4 and ownCloud with centralized user management (LDAP)
Post by: apos on January 22, 2016, 01:40:54 pm
:) I find the a Solution in a Owncloud-Forum with using an Ubuntu AD (as Zentyal is based on ubuntu) and it's working  :)

Here are my pictures


Thanks phiku for pointing out the solution:

Two remarks: in the first picture has some caveats that could lead to somemisunderstanding:


And: Using ldaps://IP  or ldaps://FQD and Port 686 is NOT working for me.