XWiki LDAP authentication with OpenDJ

An Xwiki logo and OpenDJ logo

My copy of OpenDJ contains Example.com data imported from LDIF I posted at http://mcraig.org/ldif/Example.ldif, augmented with the data for using sudo-ldap.

After installing Xwiki, I followed the Xwiki instructions for configuring LDAP authentication. Here is what I changed in xwiki.cfg versus the original.

mark@ldapclient:~/XWiki Enterprise/webapps/xwiki/WEB-INF$ diff xwiki.cfg xwiki.cfg.orig
349c349
< xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
---
> # xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
354c354
< xwiki.authentication.ldap=1
---
> # xwiki.authentication.ldap=1
357,358c357,358
< xwiki.authentication.ldap.server=host.example.com
< xwiki.authentication.ldap.port=1389
---
> xwiki.authentication.ldap.server=127.0.0.1
> xwiki.authentication.ldap.port=389
362c362
< xwiki.authentication.ldap.bind_DN=uid={0},ou=people,dc=example,dc=com
---
> xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
385c385
< xwiki.authentication.ldap.base_DN=dc=example,dc=com
---
> xwiki.authentication.ldap.base_DN=
388c388
< xwiki.authentication.ldap.UID_attr=uid
---
> # xwiki.authentication.ldap.UID_attr=cn

Subsequently, Barbara Jensen can login to XWiki.

Screenshot: Login as Babs

In the Example.ldif mentioned above, bjensen’s password is hifalutin.

Screenshot: Welcome Barbara Jensen

Notice the profile is for Barbara Jensen.

Advertisements

One thought on “XWiki LDAP authentication with OpenDJ

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s