Hello, i have a ldap server and want to integrate with xWiki. i installed Ldap autenthicator but i cant understand this docummentation https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/#HGenericLDAPconfiguration
can someone explain step by step? thanks
The documentation tells you exactly what to do (update xwiki.cfg
with the needed settings).
Can you be more specific about what you need help with? What isn’t working?
i dont know what i need put in my config file. which lines i have to configure.
#-# LDAP authentication service
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# - 0: disable
#-# - 1: enable
#-# The default is 0
xwiki.authentication.ldap=1
#-# Enable local accounts in addition to LDAP.
#-# Without this setting you will be unable to log into XWiki with local accounts.
#-# - 0: disable
#-# - 1: enable
#-# The default is 0
xwiki.authentication.ldap.trylocal=1
#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# - 0: disable
#-# - 1: enable
#-# The default is 0
xwiki.authentication.ldap=1
#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
#-# The default host is localhost
xwiki.authentication.ldap.server=*ldap.myserver.com.br
#-# The default port is 389 (636 if xwiki.authentication.ldap.ssl is enabled)
xwiki.authentication.ldap.port=389
#-# LDAP credentials, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the user name, {1} with the password
xwiki.authentication.ldap.bind_DN=cn= DID NOT UNDERSTAND THIS LINE {0},department=USER,department=INFORMATIK,department=1230,o=MP
xwiki.authentication.ldap.bind_pass={1}
#-# The Base DN used in LDAP searches
xwiki.authentication.ldap.base_DN=dc=ldap,dc=*myserver,dc=com,dc=br
The xwiki.authentication.ldap.bind_DN
setting tells the LDAP setting specifies the name the extension should use to bind to your LDAP server. The proper value for this setting depends on what LDAP server you are using.
For Active Directory, you can use settings such as:
xwiki.authentication.ldap.server=servername.fabrikam.com
xwiki.authentication.ldap.base_DN=OU=All,DC=fabrikam,DC=com
xwiki.authentication.ldap.bind_DN=fabrikam\\{0}
xwiki.authentication.ldap.bind_pass={1}
In the above: the LDAP Authenticator extension replaces {0}
with the username and {1}
with the user’s password.
But again: These settings depend on your LDAP server.