-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lookup LDAP by uid instead of email? #283
Comments
Hi @ramswaroop I am using mamute with ldap connection. It was not trivial to implement, but here I share the configuration. # --------------------------------------------
# ----------- LDAP Configuration -------------
# --------------------------------------------
feature.auth.ldap=true
feature.auth.db=false
ldap.host=domaincontroller.my.domain
ldap.port=636
ldap.user=CN=nonadmin,CN=Users,DC=my,DC=domain
ldap.pass=xxxxxx
ldap.emailAttr=mail
ldap.nameAttr=givenName
ldap.surnameAttr=sn
ldap.groupAttr=memberOf
ldap.userDn=CN=Users,DC=my,DC=domain
ldap.moderatorGroup=CN=Mamute Moderator,CN=Users,DC=my,DC=domain
ldap.lookupAttr=mail
ldap.lookupAllAttr=true
ldap.useSSL=true I think you can change ldap.lookupAttr=mail to ldap.lookupAttr=sAMAccountName This should make login by username possible in your case. |
Thanks for the help, let me try this and get back to you. |
Unfortunately, I am facing the same issue. My latest # Use database for authentication
feature.auth.db=false
# LDAP configuration
feature.auth.ldap=true
ldap.host=ldap1.xxx.xxx.net
ldap.port=389
ldap.user=Directory Manager
ldap.pass=xxxxx
ldap.emailAttr=mail
ldap.nameAttr=givenName
ldap.surnameAttr=sn
ldap.userDn=OU=People,DC=nexage,DC=com
ldap.moderatorGroup=CN=Moderators,OU=Group,DC=nexage,DC=com
ldap.lookupAllAttr=true
ldap.userObjectClass=inetOrgPerson
ldap.lookupAttr=sAMAccountName
ldap.useSSL=false
ldap.useTLS=false
# enable user signup
feature.signup=false NOTE: I am running mamute in dev mode. So shall I put the above configs in |
@leocwolter @csokol @artdiniz @FernandaBernardo any tips you guys have? Will the ldap work if I am running in dev mode? |
Can anyone help me with the ldap configs required in
mamute.properties
if I want my users to login via their user ids instead of emails?I have configured this way:
and when I try to login with my user id I get this message:
The logs give me this:
Any ideas?
NOTE: I am running mamute in dev mode.
The text was updated successfully, but these errors were encountered: