Hi,

I've updated from 1.5.2 to 1.6.1. After this, I found all groups beeing 
empty - so no users were there anymore.

As result I started mapping LDAP groups to XWiki groups to let XWiki 
populate the memberships again - I was planning this anyway.

For some reason XWiki is not able to get the groups members and I cannot 
understand why. Also it is not putting my user in the XWiki.AllGroup - 
still my groups do not have any member.

This are the logs:

DEBUG LDAP.XWikiLDAPAuthServiceImpl   - Updating existing user with LDAP 
attribues located at cn=a12345,ou=associates,ou=users,o=wlgore
DEBUG ldap.XWikiLDAPConfig            - Ready to create user from LDAP 
with fields 
last_name=sn,first_name=givenName,fullname=fullName,email=mail,ldap_dn=dn
DEBUG ldap.XWikiLDAPConfig            - Groupmapping found: 
XWiki.XWikiAdminGroup 
cn=Admin,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore
DEBUG ldap.XWikiLDAPConfig            - Groupmapping found: 
XWiki.MSOEGroup 
cn=MSOE,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore
DEBUG ldap.XWikiLDAPConfig            - Groupmapping found: 
XWiki.MedicalFabricsAdmGroup 
cn=MedFabAdmin,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore
DEBUG ldap.XWikiLDAPConfig            - Groupmapping found: 
XWiki.MedicalFabricsGroup 
cn=MedFabUser,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - Updating group membership for the 
user: tzwitano
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - The user belongs to following 
XWiki groups:
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.XWikiAllGroup
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - All defined XWiki groups:
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.MSOEGroup
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.MedicalFabricsAdmGroup
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.MedicalFabricsGroup
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.TrillrAdmin
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.TrillrUser
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.XWikiAdminGroup
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - XWiki.XWikiAllGroup
DEBUG ldap.XWikiLDAPUtils             - Found group 
[cn=MSOE,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore] 
members :{}
DEBUG ldap.XWikiLDAPUtils             - Found group 
[cn=Admin,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore] 
members :{}
DEBUG ldap.XWikiLDAPUtils             - Found group 
[cn=MedFabAdmin,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore]
 
members :{}
DEBUG ldap.XWikiLDAPUtils             - Found group 
[cn=MedFabUser,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore] 
members :{}

This is my config:

#-# new LDAP authentication service
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl

#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# 0: disable
#-# 1: enable
xwiki.authentication.ldap=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=o=wlgore

#-# base DN for searches
#xwiki.authentication.ldap.base_DN=o=wlgore

#-# Specifies the LDAP attribute containing the identifier to be used as 
the XWiki name (default=cn)
xwiki.authentication.ldap.UID_attr=uid

#-# [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,groupOfUniqueNames,dynamicGroup,dynamicGroupAux,groupWiseDistributionList,Top
#xwiki.authentication.ldap.group_classes=groupOfNames,Top,groupOfNames

#-# [SINCE 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential names of the LDAP groups fields containings the members. 
Separated by commas. 
xwiki.authentication.ldap.group_memberfields=member,equivalentToMe

#-# 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=last_name=sn,first_name=givenName,fullname=fullName,email=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=Admin,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore|\
XWiki.MSOEGroup=cn=MSOE,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore|\
XWiki.MedicalFabricsAdmGroup=cn=MedFabAdmin,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore|\
XWiki.MedicalFabricsGroup=cn=MedFabUser,ou=XWiki,ou=Corp,ou=Links,ou=extranet_access,ou=groups,o=wlgore

#-# [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=60

#-# [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

Thanks!
Thomas
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to