leenooks / phpLDAPadmin

phpLDAPadmin - Web based LDAP administration tool
www.phpldapadmin.org
GNU General Public License v2.0
548 stars 170 forks source link

Account without mail & incorrect class filter during login with LDAP-test environment "rroemhild/docker-test-openldap" #253

Closed Kipjr closed 10 months ago

Kipjr commented 10 months ago

Hi,

For an application I need a test environment. I'm using "https://github.com/rroemhild/docker-test-openldap" as LDAP and I'm trying to use your container "leenooks/hpLDAPadmin" as interface to check for any issues. Previously I've used "osixia/docker-phpLDAPadmin" but that seems to be abandoned.

I've found some issues during login:

Expanding base 'cn=Bender Bending Rodríguez,ou=people,dc=planetexpress,dc=com'...
Getting 1 entries:
Dn: cn=Bender Bending Rodríguez,ou=people,dc=planetexpress,dc=com
cn: Bender Bending Rodríguez; 
description: Robot; 
displayName: Bender; 
employeeType: Ship's Robot; 
givenName: Bender; 
jpegPhoto: <ldp: Binary blob 26819 bytes>; 
mail: bender@planetexpress.com; 
objectClass (4): inetOrgPerson; organizationalPerson; person; top; 
ou: Delivering Crew; 
sn: Rodríguez; 
uid: bender; 
userPassword: {ssha}jl<somehash>; 
Kipjr commented 10 months ago

Possibly add the objects classses (and childObjects)

to: https://github.com/leenooks/phpLDAPadmin/blob/00fb3e93124be86d6d420adc2b394a857a884c70/app/Ldap/User.php#L18C1-L18C1