hello Thomas,
Today i have tested ldap plugin in xwiki on version 1.7 with postgres
database and have found some problem. xwiki is synchronizing only
firstname attribute from my ldap and nothing more. I think i have setup
correct mapping, xwiki.cfg:
#-# retrieve the following fields from LDAP and store them in the XWiki
user object (xwiki-attribute=ldap-attribute)
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,fullname=sn,email=mail
#-# [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
ldap plugin debug:
21:35:56,473
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - LDAP search:
baseDN=[cn=bradziszewski,ou=people,dc=xxx,dc=com] query=[null]
attr=[[sn, givenName, sn, mail]] ldapScope=[0]
21:35:56,475
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "givenName"
21:35:56,475
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - |- [Bartlomiej]
21:35:56,476
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "sn"
21:35:56,476
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - |- [Radziszewski]
21:35:56,476
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "mail"
21:35:56,476
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - |- [br(a)debian.linux.pl]
21:35:56,477
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG ldap.XWikiLDAPConnection - LDAP search found
attributes: [{name=dn value=cn=bradziszewski,ou=people,dc=xxx,dc=com},
{name=givenName value=Bartlomiej}, {name=sn value=Radziszewski},
{name=mail value=xx(a)debian.linux.pl}]
21:35:56,477
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Updating existing user
with LDAP attribues located at cn=bradziszewski,ou=people,dc=xxx,dc=com
21:35:56,478
[
http://xxx.com/xwiki-enterprise-web-1.7/bin/view/Main/DocumentDoesNotExist?…]
[qtp0-4] DEBUG LDAP.XWikiLDAPAuthServiceImpl - LDAP authentication
succeed with principal [xwiki:XWiki.bradziszewski]
Thx for Your support and Greetings!
--
Bartłomiej Radziszewski
mobile: +48 509 561 540
e-mail: br(a)debian.linux.pl
JID: br(a)debian.linux.pl
ICQ: #305569725