Hello,
Are you using XWS in a virtual wiki configuration (XEM or XE +
wiki-manager) ?
Currently, in virtual mode, only users registered on the XWS wiki itself
are allowed to create their personal workspace. Users from others wikis
aren't, and are offered the error message you describe. That's the
reason I ask if your work on a virtual wiki farm.
Now, that decision of forbidding non-local users to create personnal
spaces is debatable, and we'll probably make this configurable in a
coming version.
Regards,
Jerome.
Hi Jerome,
No, im a not in a virtual xwiki configuration :
[xwiki@virt10 WEB-INF]$ grep virtual xwiki.cfg
xwiki.virtual=0
xwiki.virtual.redirect=http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist
It seem's that is a problem of creating user after ldap authentication,
since the error message is :
- New XWiki user created: null
And in the log file, we can see only the line :
- Ready to create user from LDAP
And never a line like :
- Create OK
Perhaps i have to activate the debug for that ...
Thx.
sdugravo wrote:
Hi all,
I use XWS version 1.1 or 1.2M with the same problem since few days :-(
There is no problem for locals users (even or simple user), but when
users
auth via LDAP (openldap), when they connect, there is an error :
You cannot create a personnal space since your not registered on this
wiki!
whereas they are connected ...
I didn't find any clues to solve the problem and never see this error in
the
archives ...
Here is the ldap config :
xwiki.authentication.ldap=1
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap.server=ldap.test.com
xwiki.authentication.ldap.port=391
xwiki.authentication.ldap.bind_DN=uid={0},ou=people,dc=uhp-nancy,dc=fr
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.base_DN=ou=people,dc=uhp-nancy,dc=fr
xwiki.authentication.ldap.UID_attr=uid
xwiki.authentication.ldap.group_classes=groupOfNames
xwiki.authentication.ldap.group_memberfields=member
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.trylocal=1
xwiki.authentication.ldap.ssl=0
Here is the debug, we can find an error "New XWiki user created: null" :
18:48:59,211
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Found user dn with
the
user object: null
18:48:59,212
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Searching for the
user
in LDAP: user:massenot base:ou=people,dc=uhp-nancy,dc=fr
query:(uid=massenot) uid:uid
18:48:59,212
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConfig - Ready to create
user
from LDAP with fields
last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
18:48:59,216
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - LDAP attributes
will
be used to update XWiki attributes.
18:48:59,216
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Creating new XWiki
user based on LDAP attribues located at
uid=massenot,ou=people,dc=uhp-nancy,dc=fr
18:48:59,216
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConfig - Ready to create
user
from LDAP with fields
last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
18:48:59,266
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - New XWiki user
created: null
18:48:59,435
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/$!redirect]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Found user dn with
the
user object: uid=massenot,ou=people,dc=uhp-nancy,dc=fr
18:48:59,435
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/$!redirect]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - LDAP attributes
will
be used to update XWiki attributes.
18:48:59,435
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/$!redirect]
[http-8080-1] DEBUG ldap.XWikiLDAPConfig - Ready to create
user
from LDAP with fields
last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
18:48:59,437
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/$!redirect]
[http-8080-1] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Updating existing
user
with LDAP attribues located at uid=massenot,ou=people,dc=uhp-nancy,dc=fr
18:48:59,437
[
http://172.22.123.8:8080/xwiki/bin/loginsubmit/XWiki/$!redirect]
[http-8080-1] DEBUG ldap.XWikiLDAPConfig - Ready to create
user
from LDAP with fields
last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
18:48:59,615 [
http://172.22.123.8:8080/xwiki/bin/view/Main/]
[http-8080-1]
DEBUG LDAP.XWikiLDAPAuthServiceImpl - Found user dn with the user
object:
uid=massenot,ou=people,dc=uhp-nancy,dc=fr
18:48:59,616 [
http://172.22.123.8:8080/xwiki/bin/view/Main/]
[http-8080-1]
DEBUG LDAP.XWikiLDAPAuthServiceImpl - LDAP attributes will be used to
update XWiki attributes.
18:48:59,616 [
http://172.22.123.8:8080/xwiki/bin/view/Main/]
[http-8080-1]
DEBUG ldap.XWikiLDAPConfig - Ready to create user from LDAP
with
fields
last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
18:48:59,618 [
http://172.22.123.8:8080/xwiki/bin/view/Main/]
[http-8080-1]
DEBUG LDAP.XWikiLDAPAuthServiceImpl - Updating existing user with LDAP
attribues located at uid=massenot,ou=people,dc=uhp-nancy,dc=fr
18:48:59,618 [
http://172.22.123.8:8080/xwiki/bin/view/Main/]
[http-8080-1]
DEBUG ldap.XWikiLDAPConfig - Ready to create user from LDAP
with
fields
last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
Any clues ?
I have try the old method for LDAP
(com.xpn.xwiki.user.impl.LDAP.LDAPAuthServiceImpl), the result is
different
but not correct ...)
Thx.
(Sorry if you received twice, i didn't validate my account in the list
the
first one ...).
_______________________________________________
users mailing list
users(a)xwiki.org