Migration from Confluence to XWiki - Everything works except LDAP

Hey guys in the last weeks I have migrated our wiki from Confluence to XWiki. I copied all the individual pages by hand, because the automatic migration that XWiki offers didn’t work as cleanly as I wanted it to. Now I want to add the users and found out that the Active Directory Extension costs a license fee. But it would be enough for me to import the existing users of the Active Directory and for this there is an LDAP extension, which is also free of charge. Well, no matter what I enter in the admin area, somehow it doesn’t work. Are there basically people here who can help me? Basically I tried to copy the data from the LDAP of the old Confluence wiki and adjust it in the xwiki accordingly. I suspect there is a syntax/setting error somewhere. Who can help me and if so:

What kind of information do you need?

Have you searched the forum for posts related to configuring the LDAP connector to authenticate against active directory?

Have you tried enabling the logging for the ldap connector to find out what is going wrong during the authentication attempt?

Are you sure your connection string is correct?

Try using a program like Apache Directory Studio to verify your ldap connection settings to your AD.

I also had problems, when I install both the AD application and the LDAP application! I needed to re-install the Wiki, because it seems there were conflicting changes made (maybe in the database). Havnt tried yet to use the AD application alone. When you install the UI, I think this involved a step where you have to explicitly enable the LDAP authentication via the UI.

What works for me:

  • I did only install the LDAP extension (without the UI application)
  • I did the necessary configuration in the xwiki.cfg directly (as described in the LDAP extension docu, e.g. you need to change the default ldap class)

Furthermore, you can enable TRACE logging in the logging UI of the admin area. Be aware, that the default filter somehow doesnt work with copy&paste. You have to type directly, or use the search button.