Phabricator - integration with LDAP

#1

Hi,
i have problems to configure LDAP with phabricator.
ldapsearch works:

*ldapsearch -x -D "cn=ldap,dc=mydomain,dc=com" -W -H ldap://ldap.mydomain.com -b "dc=users,dc=mydomain,dc=com" -s sub 'uid=myuser'*

But when i use ./bin/auth ldap --trace i get an error:

*Connecting to LDAP...*
*>>> [6] (+8,230) <ldap> connect (ldap.mydomain.com:389)*
*<<< [6] (+8,231) <ldap> 974 us*
*>>> [7] (+8,231) <ldap> bind (cn=ldap,dc=mydomain,dc=com)*
*<<< [7] (+8,260) <ldap> 29,034 us*
*>>> [8] (+8,261) <ldap> search (dc=users,dc=mydomain,dc=com, uid=myuser)*
*<<< [8] (+8,276) <ldap> 14,360 us*
*>>> [9] (+8,276) <ldap> bind (uid=myuser,dc=users,dc=mydomain,dc=com)*
*<<< [9] (+8,290) <ldap> 13,149 us*
*>>> [10] (+8,290) <ldap> search (dc=users,dc=mydomain,dc=com, uid=myuser)*
*<<< [10] (+8,303) <ldap> 12,897 us*
*[2019-05-08 11:04:46] EXCEPTION: (Exception) LDAP Exception: LDAP search failed.*
*LDAP Error #32: No such object at [<phutil>/src/auth/PhutilLDAPAuthAdapter.php:455]*
*arcanist(head=master, ref.master=9830c9316d38), phabricator(head=master, ref.master=7a8d489ebdbd), phutil(head=master, ref.master=639e4b9cae28)*

LDAP config:

  • LDAP Hostname: ldap.mydomain.com
  • LDAP Port: 389
  • Base Distinguished Name: dc=users,dc=mydomain,dc=com
  • Search Attributes: uid
  • Always Search: no
  • Anonymous Username: cn=ldap,dc=mydomain,dc=com
  • Anonymous Password: ‘xxx’
  • Username Attribute: blank
  • Realname Attributes: blank
  • LDAP Version: 3

what is wrong???
thank you