internal error while using LDAP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

internal error while using LDAP

Florian Rhomberg
Hi!

I just try to configure user authentication by AD. After trying a while the
system runs but if I try to use an AD User I get the information about an
internal error with no more information. How can I get an information what
goes wrong?

 

Florian

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: internal error while using LDAP

Vicent-3
This post has NOT been accepted by the mailing list yet.
Hi,

I have the same problem : impossible to connect xwiki to our AD. I get systematically the message " Internal error" and  tomcat exception :
In xwiki.log :
10:37:48,936 [http://wikimain.enm.meteo.fr/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [TP-Processor1] WARN  LDAP.XWikiLDAPAuthServiceImpl   - LDAP authentication failed.
java.lang.NullPointerException
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:256)
        at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:107)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:128)
        at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:113)
        at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:213)
        at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3411)
        at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:137)
        at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3419)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4381)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:179)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)

When I comment the line xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl in xwiki.cfg, I don't get any error but impossible to log in xwiki.

I tried the authentication against an open ldap ad it worked fine. I don't know what happen  with AD, I made a lot of tries following the example provided in the documentation without success.

I have many applications working with AD authentication (Moodle, CAS server). We are looking how to use CAS with Xwiki.

Best regards

Vincent
 
Florian Rhomberg wrote
Hi!

I just try to configure user authentication by AD. After trying a while the
system runs but if I try to use an AD User I get the information about an
internal error with no more information. How can I get an information what
goes wrong?

 

Florian

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: internal error while using LDAP

Wright, Philip
In reply to this post by Florian Rhomberg
 
Do you have spaces or periods in your sam account names? Or CN names? Which
ever you are using...

 

Philip Wright

Reports Analyst

ACS: BPS


 

 

 

 

Affiliated Computer Services, Inc

 

Affiliated Computer Services, Inc (ACS) Proprietary and Confidential
Information
This document (or any part thereof) may not be disseminated outside of ACS
in either electronic or physical form without specific authorization of the
office of the ACS Chief Information Security Officer. The information
included in this document represents no commitment by ACS to any other
party. The policies and standards described do not consider any country law
or other directive outside of the United States.

P Please consider the environment before printing this email


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Thomas Mortagne
Sent: Saturday, July 05, 2008 8:12 AM
To: XWiki Users
Subject: Re: [xwiki-users] internal error while using LDAP

Hi,

You should have some error log in xwiki.log or your container log file
depends of your installation.

On Sat, Jul 5, 2008 at 5:05 PM, Florian Rhomberg
<[hidden email]> wrote:

> Hi!
>
> I just try to configure user authentication by AD. After trying a
> while the system runs but if I try to use an AD User I get the
> information about an internal error with no more information. How can
> I get an information what goes wrong?
>
>
>
> Florian
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>



--
Thomas Mortagne
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users