Hi Jesse,
Thanks indeed; the error was from copying old sample loginModule inside
the LdapLoginModule.java; okay,
now I am running into another issue; my authentication is failing, but I
am not getting very good information from
LdapLoginModule, so, I can't tell why it is failing. I would like to
download jetty and add additional debug info
to enable me track the problem. Could anyone point to me where I can get
jetty-7.0.1 source code to build
on windows environment? Here is the stacktrace that I am getting. Here is
my setup and stacktrace
jettyLoginModule {
org.eclipse.jetty.plus.jaas.spi.PropertyFileLoginModule sufficient
debug="true"
file="C:\\devbuilds\\mftdemo\\conf\\realm.properties";
org.eclipse.jetty.plus.jaas.spi.LdapLoginModule sufficient
debug="true"
useLdaps="false"
contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
hostname="localhost"
port="389"
bindDn="CN=me,CN=Users,DC=XXXDomain,DC=dev"
bindPassword="xxxxxx"
authenticationMethod="simple"
forceBindingLogin="false"
userBaseDn="CN=Users,DC=XXXDOMAIN,DC=dev"
userRdnAttribute="CN"
userIdAttribute="CN"
userPasswordAttribute="unicodePwd"
userObjectClass="organizationalPerson"
roleBaseDn="OU=User Groups,DC=XXXDOMAIN,DC=dev"
roleNameAttribute="cn"
roleMemberAttribute="uniqueMember"
roleObjectClass="groupOfUniqueNames";
};
2011-03-18 10:25:16.546:INFO::Searching for users with filter:
'(&(objectClass={0})({1}={2}))' from base dn: CN=Users,DC=XXXDOMAIN,DC=DEV
2011-03-18 10:25:16.562:INFO::Found user?: true
2011-03-18 10:25:16.562:WARN::EXCEPTION
javax.security.auth.login.LoginException: Login Failure: all modules
ignored
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown
Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(Unknown
Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at
org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:203)
at
org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:174)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:417)
at
org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
at
org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
at org.eclipse.jetty.server.Server.handle(Server.java:334)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
at java.lang.Thread.run(Unknown Source)
From: Jesse McConnell <[email protected]>
To: JETTY user mailing list <[email protected]>
Cc: Ike Ikonne/Dallas/IBM@IBMUS
Date: 03/18/2011 08:24 AM
Subject: Re: [jetty-users] Issue with Lodaing LdapLoginModule
check your login module again, looks like server.server is in there
which is not correct
cheers,
jesse
--
jesse mcconnell
[email protected]
On Fri, Mar 18, 2011 at 08:22, Ike Ikonne <[email protected]> wrote:
> Hi all,
>
> We are trying to authenticate our users through JAASLoginService; we
have
> the jetty-plus-7.0.1.v20091125.jar that
> contains org.eclipse.jetty.server.server.plus.jaas.spi.LdapLoginModule,
but
> during runtime
> I am getting this stacktrace, I would appreciate any pointers that might
> help me along
> with this problem. Why is the system looking for
> org.eclipse.jetty.server.server.plus.jaas.spi.LdapLoginModule
> since I have already specified to use
> org.eclipse.jetty.server.server.plus.jaas.spi.LdapLoginModule in
> my jaas config file?
>
>
> avax.security.auth.login.LoginException: unable to find LoginModule
class:
> org.eclipse.jetty.server.server.plus.jaas.spi.LdapLoginModule
> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
> at javax.security.auth.login.LoginContext.access$000(Unknown
Source)
> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(Unknown
Source)
> at javax.security.auth.login.LoginContext.login(Unknown Source)
> at
>
org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:203)
> at
>
org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:174)
> at
>
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:417)
> at
>
org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
> at
>
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
> at
>
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
> at
>
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
> at
>
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at
>
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
> at
>
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at
>
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
> at
>
org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159)
> at
>
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
> at org.eclipse.jetty.server.Server.handle(Server.java:334)
> at
>
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
> at
>
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
> at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
> at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
> at
>
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
> at
>
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
> at java.lang.Thread.run(Unknown Source)
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users