Coder Social home page Coder Social logo

Comments (4)

jpylypiw avatar jpylypiw commented on August 12, 2024

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.

from mamute.

rampatra avatar rampatra commented on August 12, 2024

Thanks for the help, let me try this and get back to you.

from mamute.

rampatra avatar rampatra commented on August 12, 2024

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?

from mamute.

rampatra avatar rampatra commented on August 12, 2024

@leocwolter @csokol @artdiniz @FernandaBernardo any tips you guys have? Will the ldap work if I am running in dev mode?

from mamute.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.