Hello Everyone,
New to Linux, and Xwiki, and I’m working on getting it set up as a test for our company. After a fair amount of struggle, and learning, I was able to get Ubuntu Server 18.04 and Xwiki (using xwiki-tomcat8-mysql install) running, but I’m having trouble understanding the steps needed to get AD working.
I’ve read through a number of forum posts and other websites, but wasn’t able to make sense of the information there. I have read through the following documents, but I think I’m missing something:
I’ve installed LDAP Authenticator from within the XWiki GUI, but I don’t see the extension show up anywhere on the site, and I’m not sure what I’m missing.
Do I need to edit xwiki.cfg, as some of the documentation seems to indicate? If so, is the file the one that is located here:
/etc/xwiki/xwiki.cfg
I think I’m probably missing something obvious, but being new to Linux and Xwiki has me at a disadvantage at the moment. If anyone could assist, that would be great.
Thanks!
You may also want to check out this extension which could make it simpler to install AD: https://store.xwiki.com/xwiki/bin/view/Extension/ActiveDirectoryApplication
Thank you vmassol. We may look into that eventually, but would like to set this up without cost initially, if at all possible. Do you have any advice on what I might be missing in my current attempt to set up with LDAP Authenticator?
Thank you.
Sorry but I don’t know. All I know is that you can activate debug logging to see what’s wrong in your setup, see https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/#HEnableLDAPdebuglog
The is no UI associated with the Authenticator
so you won’t find anything. The Application
add a section in the administration to help configure the authenticator.
It does a little more than suggesting
In order to enable the LDAP support you have to change the authentication method in WEB-INF/xwiki.cfg as follows:
Thank you for the response tmortagne, I appreciate it.
Blockquote The is no UI associated with the Authenticator so you won’t find anything. The Application add a section in the administration to help configure the authenticator.
I’ve logged into the wiki with my Admin account, and checked in both Administer Wiki and Application Index. I don’t see a section in either location that will allow me to administer the LDAP settings. Does this only appear after changes have been made to the xwiki.cfg file?
Blockquote It does a little more than suggesting
I wasn’t sure if it was sufficient to simply install the extension, or if changes to the file were also needed. It seemed like they were, but being new to all this I wasn’t sure. So, knowing that I do need to edit xwiki.cfg, I wonder if I have the correct file.
I see an xwiki.cfg file under /etc/xwiki/xwiki.cfg, but also one under /usr/lib/xwiki/web-inf/xwiki.cfg. Is it correct that I should edit /usr/lib/xwiki/web-inf/xwiki.cfg, and simply ignore /etc/xwiki/xwiki.cfg?
Is this what I should put there?
#-# LDAP authentication service
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# - 0: disable
#-# - 1: enable
#-# The default is 0
xwiki.authentication.ldap=1
#-# Enable local accounts in addition to LDAP.
#-# Without this setting you will be unable to log into XWiki with local accounts.
#-# - 0: disable
#-# - 1: enable
#-# The default is 0
xwiki.authentication.ldap.trylocal=1
Thank you!
Are you sure you installed the Application
extension ? As I said the Authenticator
extension does not provide any UI.
The absolute requirement is xwiki.authentication.authclass
(since that what indicate which authenticator to use), the rest can be configured from the UI but it’s recommended to also set the other two you have to not end up stuck you can’t actually log with a LDAP user yet since it’s not configured.