On Wed, Jul 30, 2008 at 1:09 AM, Hari G [EMAIL PROTECTED] wrote:
Sorry for the spam... I figured it out. I am posting it so that it is useful
for somebody else. A simple mistake cost me couple of days of work!
The following line was commented out:
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
Everything worked fine when I uncommented it. It is kind of strange that the
user is getting authenticated without the authclass.
It's because by default XWiki core use the old LDAP authentication
service if ldap=1 in configuration (this for retro compatibility).
Hari Gangadharan
From: [EMAIL PROTECTED]
To: users@xwiki.org
Date: Tue, 29 Jul 2008 15:37:05 -0700
Subject: Re: [xwiki-users] LDAP Authentication
Error
You are not allowed to view this document or perform this action.
This is the message I get when the user logs in. If I have not imported the
enterprise-wiki.xar then this message is not shown. The user can edit pages.
However I guess the user is not created. After I import the xar file the
user cannot even view any page.
Any ideas?
Hari Gangadharan
Date: Tue, 29 Jul 2008 01:48:03 -0700
From: [EMAIL PROTECTED]
To: users@xwiki.org
Subject: Re: [xwiki-users] LDAP Authentication
I have the exact same problem. The logged in user does not have any
privileges and no account created for him. I suppose an account is
automatically created for the logged in user. Am I wrong? If I register the
user with any password then LDAP login works (I can use LDAP Password) and
everything is OK. Otherwise user is logged in the id comes on the top right
with the logout link but the profile page is also not there.
Avinash, did you solve this issue?
Hari Gangadharan
Thomas Mortagne wrote:
On Mon, Jun 30, 2008 at 4:59 AM, Avinash Gupta
[EMAIL PROTECTED] wrote:
Yes the name appears on top right corner, but doesn't appear in user
list.
The name at the top right corner is retrieved from user profile in the
wiki so you definitely have the user somewhere in the space XWiki.
Thomas Mortagne [EMAIL PROTECTED] 27/06/2008 6:18 pm
On Fri, Jun 27, 2008 at 2:35 AM, Avinash Gupta
[EMAIL PROTECTED] wrote:
Thanks for the reply Thomas,
If you use the correct LDAP authenticator
(xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl)
and even if you use the old one AFAIK there is no way to configure
LDAP in order to not create the user in XWiki, otherwise XWiki would
not be able to manager rights, groups etc.
This means no matter what if my LDAP Authentication is working then
XWiki should be storing users in its database.
My log file is clean. This is the only thing that I have in my log file
2008-06-27 10:26:31,761
[http://localhost:8080/xwiki/bin/view/Main/WebHome] [btpool0-7] INFO
.AbstractXWikiMigrationManager - No storage migration required since
current version is [7351]
My users are authenticating without a problem. I mean I can confirm
that
its authenticating against LDAP but I can't find any users.
xwiki-enterprise-web-1.4.1.war is the file that I downloaded. So I
reckon the version is 1.4.1.
When the users log in they only see a page which says
You are not allowed to view this document or perform this action.
After login, do you see the user's name in the upper right corner of the
page ?
When I log in as superadmin then I can create Wiki pages. Am I missing
something here?
BTW where does XWiki stores user information, I searched all my
database
but wasn't able to find any table which may store user information.
XWiki user are wiki pages in the XWiki space. If you login with
toto, you can view the user profile at /xwiki/bin/view/XWiki/toto.
Thanks,
Avinash
Thomas Mortagne [EMAIL PROTECTED] 26/06/2008 6:58 pm
Hi,
On Thu, Jun 26, 2008 at 6:28 AM, Avinash Gupta
[EMAIL PROTECTED] wrote:
Hello All,
I have installed XWiki in our environment using jetty and MS SQL
Server.
I have successfully configured authentication using LDAP but I don't
see any users when I click on Users and Groups under Administration.
I guess this is because XWiki just uses LDAP to authenticate but
doesn't stores the users anywhere.
I checked on mailing lists and found that few discussions where people
have suggested to add following line in xwiki.cfg
xwiki.authentication.createuser=ldap
and XWiki will start storing users in his database.
Did you looked at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication ?
All possible options are listed here (and I confirm that
xwiki.authentication.createuser=ldap does not mean anything or at
least now).
If you use the correct LDAP authenticator