Hello anybody,
I'm trying to set up my test installation of the Fedora Commons
repository to use LDAP authentication.
With Fedora 3.2, I got it working, but with 3.3 I can't get it working.
When I try to authenticate via LDAP, I get this errors (I enabled the
debug level for the fedora.server.security package) in the fedora log:
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A authenticate()
----------------------------------------------
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A authenticate() >
LdapFilterForAttributes [jdoe] [doe]
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A getCacheElement()
keytemp==jdoe
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A getCacheElement()
key==3257488
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A getCacheElement()
cache already has element
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A getCacheElement()
element retrieved from cache successfully
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (Cache) A authenticate()
cacheElement==77baf4
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A
authenticate() >
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A
authenticate() m_valid==true
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) - isExpired()
>
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) - isExpired()
now==2010-01-12 15:06:46.412
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) - isExpired()
exp==2010-01-12 15:08:48.824
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) - isExpired()
expires in 0 days 00:02:02.412
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) - isExpired()
< false
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A
authenticate() valid and not expired, so use
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A
authenticate() already authd, request password==doe
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A
authenticate() stored password==doe
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit() >
LdapFilterForAttributes 77baf4 @ 2010-01-12 15:06:46.412
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
valid==true
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
userid==jdoe
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
password==doe
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
authenticated==true
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
errorMessage==null
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
expiration==2010-01-12 15:08:48.824
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
expires in 0 days 00:02:02.412
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit()
cn==(1) {John Doe}
DEBUG 2010-01-12 15:06:46.412 [http-8080-2] (CacheElement) A audit() <
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (CacheElement) A
authenticate() < true
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (Cache) A authenticate() <
true
ERROR 2010-01-12 15:06:46.413 [http-8080-2] (BaseCaching) general
authenticate() failure
ERROR 2010-01-12 15:06:46.413 [http-8080-2] (BaseCaching)
java.lang.Exception
ERROR 2010-01-12 15:06:46.413 [http-8080-2] (BaseCaching)
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (BaseCaching)
FilterLdap.. . . authenticate()
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (BaseContributing)
FilterLdap.doThisSubclass() : authority==
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (FilterSetup)
FilterLdap.doFilter() : before next doFilter()
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (FilterSetup)
FilterLdap.doFilter() :
extendedhttpservletrequest==fedora.server.security.servletfilters.extendedhttpservletrequestwrap...@c9f93f
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (FilterSetup)
FilterLdap.doFilter() : extendedHttpServletRequest
fedora.server.security.servletfilters.ExtendedHttpServletRequestWrapper==
DEBUG 2010-01-12 15:06:46.413 [http-8080-2] (FilterSetup)
FilterLdap.doFilter() :
responseorg.apache.catalina.connector.responsefac...@11050be==
DEBUG 2010-01-12 15:06:46.414 [http-8080-2] (FilterSetup)
FilterEnforceAuthn.doFilter() . . .
In the catalina.out of the Tomcat I found a stacktrace of an exception:
java.lang.Exception
at
fedora.server.security.servletfilters.ExtendedHttpServletRequestWrapper.setAuthenticated(ExtendedHttpServletRequestWrapper.java:79)
at
fedora.server.security.servletfilters.BaseCaching.authenticate(BaseCaching.java:274)
at
fedora.server.security.servletfilters.BaseContributing.doThisSubclass(BaseContributing.java:224)
at
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:211)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
I'm not sure what causes this exception. But I think the exception is
part of my problem. Any idea was is going wrong here?
Regards
Jens Pelzetter
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users