Hi,
I’ve just deployed Xwiki based on official docker images and it seems that it is not able to correctly parse the xwiki.cfg file, here is the mounted file:
root@c4ab4ce9d53e:/usr/local/tomcat/webapps/ROOT/WEB-INF# tail xwiki.cfg
#xwiki.authentication.cas.fields_mapping=last_name=lastName,first_name=firstName,email=email
# 0 or 1 if create XWiki user after log in
#xwiki.authentication.cas.create_user=1
# 0 or 1 if update user attributes after every log in
#xwiki.authentication.cas.update_user=1
# LDAP
xwiki.authentication.ldap=1
root@c4ab4ce9d53e:/usr/local/tomcat/webapps/ROOT/WEB-INF#
and here is how it gets mounted:
volumes:
- /nfs/xwiki/xwiki-data:/usr/local/xwiki
Here is the content of the mount:
root@dock-test02:/nfs/xwiki/xwiki-data/data# ls -ltr
total 76
drwxr-x--- 1 root root 12 Jun 22 12:05 jobs
drwxr-x--- 1 root root 48 Jun 22 12:05 solr
drwxr-x--- 1 root root 18 Jun 22 12:05 cache
drwxr-x--- 1 root root 34 Jun 22 12:43 extension
drwxr-x--- 1 root root 10 Jun 22 12:45 storage
-rw-r--r-- 1 root root 5151 Sep 29 10:19 hibernate.cfg.xml
-rw-r--r-- 1 root root 37161 Sep 29 10:19 xwiki.properties
-rw-r--r-- 1 root root 27070 Oct 11 14:19 xwiki.cfg
Thanks a lot, I would appreciate any help!
Hi, I’d like to help but I don’t understand the problem and error that you’re getting.
On you side you need to change the xwiki.cfg and xwiki.properties files located in your mount and they get synchronized automatically. See “Configuration Options” on view-source:https://hub.docker.com/_/xwiki/
Sorry, the problem is that I set up xwiki.authentication.ldap=1 on xwiki.cfg and I keep getting
LDAP authentication is not enabled. Please set LDAP as authentication service in xwiki.cfg
So, you are saying that I need to modify something in xwiki.properties? What would be that to enable LDAP ?
Thanks.
I think the problem is not with the docker image but you’re using an old configuration property that’s no longer used.
See http://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/#H8.3.x (see also http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Authentication/#HGenericLDAPconfiguration).
You need to use:
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
Thanks
Hi,
Thanks for your help.
The thing is that even I set that property,
root@dock-test01:/nfs/xwiki/xwiki-data/data# tail -2 xwiki.cfg
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
the web interface keeps saying that :
LDAP authentication is not enabled. Please set LDAP as authentication service in xwiki.cfg
You should compare more closely what you set and what is in the doc (and what @vmassol pasted).
I see, I should use
org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl