[[Note: The XWiki project is switching away from this mailing list and moving
to a forum: https://discourse.xwiki.org. This list will be made readonly in a
few days. Please post on the forum from now on. Thanks.]]
-
Hi Lester,
> On 19 May 2017, at 18:48, Lester Marc Dizon (ITX) wrote:
>
> Hi Vincent,
>
> I'm trying to replicate the xwiki and mysql-xwiki containers to another web
> server (for a web server cluster) but it doesn't work . The database data
> doesn't persist on the image when I docker commit. I do the following:
>
> On test server:
> sudo docker commit 7c7a4a700519 mysql-xwiki_itx
> sudo docker save mysql-xwiki_itx > /vagrant/mysql-xwiki_itx.tar
>
> On test server2:
> docker load < /vagrant/mysql-xwiki_itx.tar
> docker run --net=xwiki-nw --name mysql-xwiki -v /my/own/mysql:/var/lib/mysql
> -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e
> MYSQL_DATABASE=xwiki -d mysql-xwiki_itx:latest --character-set-server=utf8
> --collation-server=utf8_bin --explicit-defaults-for-timestamp=1
>
> "xwiki" database doesn't persist. Would you know why and to make it persist
> on the commit? Sorry for this seems to be trivial question..
I’ve never used docker commit/load so I’d need to learn those to help on that.
But I don’t understand how this could work since on the 1st server you have 2
local volumes (one for the xwiki permanent dir and one for mysql). How would
these local volumes find their way onto the 2nd server?
Thanks
-Vincent
PS: Please use the users mailing list or even better please switch to the new
XWiki forum on http://forum.xwiki.org (see
http://dev.xwiki.org/xwiki/bin/view/Community/Discuss).
> Thanks,
> Lester
>
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
> Sent: vendredi 12 mai 2017 17:16
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki Docker in Prod
>
> cool thanks for reporting back!
>
> Have a nice weekend too.
>
> And let me know if you have ideas on how to improve the docker image.
>
> Thanks
> -Vincent
>
>> On 12 May 2017, at 17:11, Lester Marc Dizon (ITX) wrote:
>>
>> Hi guys,
>>
>> Thanks alot for all the help. I have logs and ldap running!
>>
>> @Thomas Mortagne, for ldap I had this config missing (I actually thought
>> that sAMAccountName should be replaced by the user to authenticate with the
>> windows AD) :
>> xwiki.authentication.ldap.UID_attr=sAMAccountName
>>
>> Thanks and have a nice weekend!
>>
>> Lester
>>
>> -Original Message-
>> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas
>> Mortagne
>> Sent: jeudi 11 mai 2017 19:05
>> To: XWiki Users
>> Subject: Re: [xwiki-users] XWiki Docker in Prod
>>
>> You have various examples
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/UseCases/.
>>
>> On Thu, May 11, 2017 at 7:03 PM, Thomas Mortagne
>> wrote:
>>> XWiki tried to find an entry in the LDAP server with the field "cn"
>>> having the value "lmdizon-itx". Either this uid does not exist or you
>>> need to set a different field using the property
>>> xwiki.authentication.ldap.UID_attr (cn is the default).
>>>
>>> On Thu, May 11, 2017 at 6:20 PM, Lester Marc Dizon (ITX)
>>> wrote:
@Thomas Froehlich thanks it works and I see LDAP debug logs! @Vincent
Massol , with Thomas way, I find the LDAP logs in
"/var/lib/tomcat8/logs/xwiki.log" .
I added the following configuration in xwiki.cfg but it still doesn't work:
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthS
e
rviceImpl
xwiki.authentication.ldap.trylocal=1
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=10.50.0.26
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=OU=Standards,OU=Accounts,OU=_ITX,D
C =itx,DC=local xwiki.authentication.ldap.bind_DN=CN=Lester Marc
Dizon (ITX),OU=Standards,OU=Accounts,OU=_ITX,DC=itx,DC=local
xwiki.authentication.ldap.bind_pass=mypassword
I have the following errors:
81954 [http://localhost:8080/bin/loginsubmit/XWiki/XWikiLogin] TRACE
o.x.c.ldap.XWikiLDAPAuthServiceImpl - Starting LDAP authentication
81955 [http://localhost:8080/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
o.x.c.ldap.XWikiLDAPAuthServiceImpl - The provided user is null. We don't
try to authenticate, it probably means the user is in non logged mode.
81955 [http://localhost:8080/bin/loginsubmit/XWiki/XWikiLogin] TRACE
o.x.c.ldap.XWikiLDAPAuthServiceImpl - Starting LDAP authentication
81956 [http://localhost:8080/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
o.x.contrib.ldap.XWikiLDAPConfig - remoteUserParser: null
82020 [http://localhost:8080/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
o.x.contrib.ldap.XWikiLDAPConfig -