Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can't use both email and uid #219

Open
sergiobaiao opened this issue Mar 18, 2024 · 4 comments
Open

Can't use both email and uid #219

sergiobaiao opened this issue Mar 18, 2024 · 4 comments

Comments

@sergiobaiao
Copy link

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:
- LDAP_URI=ldap://openldap
- LDAP_BASE_DN=dc=mydomain,dc=local
- LDAP_REQUIRE_STARTTLS=FALSE
- LDAP_ADMINS_GROUP=admins
- LDAP_ADMIN_BIND_DN=cn=admin,dc=mydomain,dc=local
- LDAP_ADMIN_BIND_PWD=myverysecretpassword
- LDAP_IGNORE_CERT_ERRORS=true
- NO_HTTPS=TRUE
- PASSWORD_HASH=SSHA
- SERVER_HOSTNAME=localhost:18081
- LDAP_ACCOUNT_ATTRIBUTE=mail
- LDAP_USER_OU=caipora
- LDAP_ACCOUNT_ADDITIONAL_ATTRIBUTES="uid:CPF(somente numeros):xxxxxxxxxxx"
- DEFAULT_USER_GROUP=everybody
- EMAIL_DOMAIN=mydomain.local
- ORGANISATION_NAME=My LDAP Lab
- SITE_NAME=LDAP
- SITE_LOGIN_LDAP_ATTRIBUTE=mail
- SITE_LOGIN_FIELD_LABEL=Email
- SMTP_HOSTNAME=my_email.server
- SMTP_HOST_PORT=465
- SMTP_USERNAME=noreply@mydomain.local
- SMTP_PASSWORD=anotherverysecurepassword
- SMTP_USE_TLS=true
- EMAIL_FROM_ADDRESS=noreply@mydomain.local
- EMAIL_FROM_NAME=My LDAP Lab
- MAIL_SUBJECT=User created!
- USERNAME_REGEX=\w+([-+.']\w+)@\w+([-.]\w+).\w+([-.]\w+)*
- ACCEPT_WEAK_PASSWORDS=true
depends_on:
- openldap
ports:
- 18081:80

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
Copy link
Owner

Hi. Could you try SHOW_POSIX_ATTRIBUTES=true?

@sergiobaiao
Copy link
Author

that works. Can i hide some fields using css?

@wheelybird
Copy link
Owner

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
Copy link
Author

ok, thank you very much.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants