Hi, "XWiki.XWikiAllGroup=cn=WebAllMTS,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com" is useless because all LDAP users are automatically added to "XWiki.XWikiAllGroup" when created (the first time it logs in) like any "normal" XWiki user. What exactly means "group_mapping seems to fail" ? The user from LDAP group "cn=WebISteam,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com" are not added to XWiki group "XWiki.XWikiAdminGroup" ? Don't you have anything in the xwiki log ? On Wed, Aug 13, 2008 at 8:44 PM, Todd Getz <[email protected]> wrote:
We are trying to setup XWiki to work with LDAP via Active Directory. I have the authentication working, but group_mapping seems to fail. I cannot figure out the correct settings for the group mappings. Could somebody help? Our cfg:
#
Kind regards, Todd Getz System Support Analyst MTS Travel 124 East Main Street, 4th floor Ephrata, PA 17522 800: 800-233-0157 x81352 Tel: 717-721-7352 Fax: 717-733-1009 Email: [email protected] <http://www.mtstravel.com> ----------------------------------------------------------------------- --------------
# LDAP
#----------------------------------------------------------------------- --------------
#-# new LDAP authentication service
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.LDAPAuthServ iceImpl
#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# 0: disable
#-# 1: enable
xwiki.authentication.ldap=1
#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
xwiki.authentication.ldap.server=10.1.1.186
xwiki.authentication.ldap.port=389
#-# LDAP login, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the username, {1} with the password
xwiki.authentication.ldap.bind_DN=mts\\{0}
xwiki.authentication.ldap.bind_pass={1}
#-# Force to check password after LDAP connection
#-# 0: disable
#-# 1: enable
xwiki.authentication.ldap.validate_password=0
#-# only members of the following group will be verified in the LDAP
# otherwise only users that are found after searching starting from the base_DN
xwiki.authentication.ldap.user_group=cn=WebAllMTS,ou=ChatGroups,ou=accou nts,dc=mtstravel,dc=com
#-# base DN for searches
xwiki.authentication.ldap.base_DN=dc=ad,dc=mtstravel,dc=com
#-# Specifies the LDAP attribute containing the identifier to be used as the XWiki name (default=cn)
# xwiki.authentication.ldap.UID_attr=sAMAccountName
#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]
#-# Specifies the LDAP attribute containing the password to be used "when xwiki.authentication.ldap.validate_password" is set to 1
# xwiki.authentication.ldap.password_field=userPassword
#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential LDAP groups classes. Separated by commas.
xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUnique Names,dynamicGroup,dynamicGroupAux,groupWiseDistributionList
#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential names of the LDAP groups fields containings the members. Separated by commas.
xwiki.authentication.ldap.group_memberfields=member,uniqueMember
#-# retrieve the following fields from LDAP and store them in the XWiki user object (xwiki-attribute=ldap-attribute)
#-# ldap_dn=dn -- dn is set by class, caches dn in XWiki.user object for faster access
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=s n,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# on every login update the mapped attributes from LDAP to XWiki otherwise this happens only once when the XWiki account is created.
xwiki.authentication.ldap.update_user=1
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# mapps XWiki groups to LDAP groups, separator is "|"
xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=WebISte am,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com|XWiki.XWikiAllGroup=cn= WebAllMTS,ou=ChatGroups,ou=accounts,dc=mtstravel,dc=com
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# time in s after which the list of members in a group is refreshed from LDAP (default=3600*6)
xwiki.authentication.ldap.groupcache_expiration=21800
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# - create : synchronize group membership only when the user is first created
#-# - always: synchronize on every login
xwiki.authentication.ldap.mode_group_sync=always
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# if ldap authentication fails for any reason, try XWiki DB authentication with the same credentials
xwiki.authentication.ldap.trylocal=1
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# SSL connection to LDAP server
#-# 0: normal
#-# 1: SSL
# xwiki.authentication.ldap.ssl=0
#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# The keystore file to use in SSL connection
# xwiki.authentication.ldap.ssl.keystore=
#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The java secure provider used in SSL connection
# xwiki.authentication.ldap.ssl.secure_provider=com.sun.net.ssl.internal.s sl.Provider
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne