Open rampatra opened 7 years ago
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 mamute.properties
file is like:
# 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 development.properties
in order to take effect?
@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.