Author Topic: Owncloud 4.5, LDAP and Zentyal  (Read 27882 times)

christian

  • Guest
Re: Owncloud 4.5, LDAP and Zentyal
« Reply #30 on: September 17, 2013, 05:35:18 pm »
This is not "another way to access LDAP".
Zentyal embeds 2 different LDAP servers (that are however synchronized but with slightly different content, at least for what I understand):
- One, listening on port 389, is dedicated to Samba 4
- another one, listening on port 390 is what I would call "general purpose" LDAP server.

If memberof attribute is maintained in the "general purpose" LDAP server, then you can obviously use it, otherwise you will have to rely on another attribute.
The point is that LDAP protocol doesn't permit to "join" requests. You have to perform one single request that will target one single entry (meaning, e.g. you can't in same LDAP request, check for uid and look at groups content (BTW that's why memberof has been invented  ;))

obimichael

  • Zen Monk
  • **
  • Posts: 60
  • Karma: +3/-0
    • View Profile
Re: Owncloud 4.5, LDAP and Zentyal
« Reply #31 on: December 27, 2013, 02:06:45 pm »
Just installed owncloud 6 and wanted to configure LDAP Connection with Zentyal 3.3.
I added 2 Groups (AdminHomeUser, HomeUser) and 5 Users.
Following worked:

Server:
ServerIP: Server IP of Zentyal Server (for example: ldap://127.0.0.1)
Port: 390
DN of Client User: Root DN of Zentyal
Password: Password of ldap
Base DN: Zentyal Base DN

User Filter:
only those object classes: inetOrgPerson
only from those groups: AdminHomeUser, HomeUser


Login Filter:
LDAP Username: checked


Group Filter:
only those object classes: posixGroup
only from those groups: AdminHomeUser, HomeUser

Advanced - Directory Settings:
User Display Name Field: uid



« Last Edit: January 02, 2014, 02:22:08 pm by obimichael »

hj

  • Guest
Re: Owncloud 4.5, LDAP and Zentyal
« Reply #32 on: May 25, 2014, 01:34:15 am »
Just installed owncloud 6 and wanted to configure LDAP Connection with Zentyal 3.3.
I added 2 Groups (AdminHomeUser, HomeUser) and 5 Users.
Following worked:

Server:
ServerIP: Server IP of Zentyal Server (for example: ldap://127.0.0.1)
Port: 390
DN of Client User: Root DN of Zentyal
Password: Password of ldap
Base DN: Zentyal Base DN

User Filter:
only those object classes: inetOrgPerson
only from those groups: AdminHomeUser, HomeUser


Login Filter:
LDAP Username: checked


Group Filter:
only those object classes: posixGroup
only from those groups: AdminHomeUser, HomeUser

Advanced - Directory Settings:
User Display Name Field: uid

Worked for me to the point where I can see my Zentyal users in Owncloud menu, but when I login with the correct username and password I get this error:

In /var/log/owncloud.log I see only:
Code: [Select]
2014-05-24T23:20:43+00:00"}
{"app":"core","message":"Login failed: user 'myuser@zentyal-domain.lan' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-05-24T23:20:59+00:00"}
{"app":"core","message":"Login failed: user 'zentyal-domain.lan\\myuser' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-05-24T23:21:13+00:00"}
{"app":"core","message":"Login failed: user 'myuser' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-05-24T23:22:24+00:00"}

The password is definitely correct as I can login into roundcube, openchange webmail,user corner and into vcenter which is linked to my AD. Im using Zentyal 3.4 and Owncloud 6.0.3+dfsg-2 (Debian) (stable)

Any ideas?

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Owncloud 4.5, LDAP and Zentyal
« Reply #33 on: May 25, 2014, 06:47:48 pm »
Make sure that your user is fulfilling filter expressions

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Owncloud 4.5, LDAP and Zentyal
« Reply #34 on: September 17, 2014, 11:59:44 pm »
How about plugin it to Zentyal 3.5 which uses Samba as LDAP ?
Laurent

schmel

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Owncloud 4.5, LDAP and Zentyal
« Reply #35 on: August 12, 2015, 09:28:54 am »
zentyal 4.0
owncloud 8.1

Work LDAP Settings:

MyDomain: example.lan
Ldap user: ldap

Code: [Select]
ServerIP: Server IP of Zentyal Server (for example: 127.0.0.1)
Port: 390
DN of Client User: ldap@example.lan
Password: Password of ldap
Base DN: DC=example,DC=lan