wheelybird / ldap-user-manager

A PHP web-based interface for LDAP user account management and self-service password change.
MIT License
486 stars 107 forks source link

Can't use both email and uid #219

Open sergiobaiao opened 7 months ago

sergiobaiao commented 7 months ago

Hi there,

I'm using ldap-user-manager with the following configuration on docker:

openldap-ui: image: wheelybird/ldap-user-manager:v1.11 container_name: openldap-ui environment:

My login system accepts email addresses OR uid for login. Using that configuration above only shows me the following fields on the create user form:

First name Last name Common name Email* Password

And won't show the uid field. But, after creating the user, if i look at the ldap database the user's uid is created using firstname-lastname format.

How can i have the uid field to be available on the create user form?

wheelybird commented 7 months ago

Hi. Could you try SHOW_POSIX_ATTRIBUTES=true?

sergiobaiao commented 7 months ago

that works. Can i hide some fields using css?

wheelybird commented 7 months ago

Currently you can't, no. I think that not being able to see the uid field if you've added it to LDAP_ACCOUNT_ADDITIONAL_ATTRIBUTES is a bug - you're supposed to be able to see any attributes added to that. I'll address that with the next release.

sergiobaiao commented 7 months ago

ok, thank you very much.