tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Holman <j.g.hol...@qmul.ac.uk>
Subject Re: JNDI Realm authentication
Date Wed, 19 Jun 2002 15:38:47 GMT
 From the log it just looks as if the password is not correct (Invalid 
Credentials). Where's the stack dump coming from?

John.


Josh Fenlason wrote:

>I'm still trying to get Tomcat4.1.3 to handle authentication, but it's not
>working.  It finds the user, but doesn't bind successfully.  Does anyone
>have any ideas on what I'm doing wrong?  Does any one  know where I can find
>the source for com.sun.jndi.ldap.LdapCtx?  Thanks in advance.
>,
>Josh.
>
>server.xml:
><Realm className="org.apache.catalina.realm.JNDIRealm"
>    connectionURL="ldap://camaro.mn.ptc.com:389"
>    userSearch="(uid={0})"
>    userBase="ou=People,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=PTC"
>    userSubtree="true"
>    debug="99"/>
>
>catalina_log:
>2002-06-18 16:31:19 JNDIRealm[Standalone]:   Searching for admin
>2002-06-18 16:31:19 JNDIRealm[Standalone]:   base:
>ou=People,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=PTC  filter:
>(uid=admin)
>2002-06-18 16:31:19 JNDIRealm[Standalone]:   entry found for admin with dn
>uid=admin,ou=People,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=PTC
>2002-06-18 16:31:19 JNDIRealm[Standalone]:   validating credentials by
>binding as the user
>2002-06-18 16:31:19 JNDIRealm[Standalone]:   binding as
>uid=admin,ou=People,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=PTC
>2002-06-18 16:31:19 JNDIRealm[Standalone]:   bind attempt failed
>2002-06-18 16:31:19 JNDIRealm[Standalone]: Username admin NOT successfully
>authenticated
>
>
>[LDAP: error code 49 - Invalid Credentials]
>javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid
>Credentials]; remaining name ''
>    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2655)
>    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2601)
>    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2406)
>    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2323)
>    at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2267)
>    at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1677)
>    at com.sun.jndi.ldap.LdapCtx.doSearchOnce(LdapCtx.java:1670)
>    at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1074)
>    at
>com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirCon
>text.java:216)
>    at
>com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCom
>positeDirContext.java:124)
>    at
>com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCom
>positeDirContext.java:112)
>    at
>javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.jav
>a:124)
>    at org.apache.catalina.realm.JNDIRealm.bindAsUser(JNDIRealm.java:996)
>    at
>org.apache.catalina.realm.JNDIRealm.checkCredentials(JNDIRealm.java:903)
>    at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:669)
>    at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:615)
>    at
>org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
>nticator.java:161)
>    at
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
>.java:502)
>    at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:644)
>    at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
>    at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>    at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:646)
>    at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:170)
>    at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:644)
>    at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
>)
>    at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:644)
>    at
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
>    at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:644)
>    at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:174)
>    at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:646)
>    at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
>org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
>    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>    at java.lang.Thread.run(Thread.java:484)
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>  
>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message