From: <eme...@si...> - 2002-11-25 20:24:09
|
> Symptoms: > On the client side, lc.getSubject().getPrincipals().size() is always 0,= =20 > meaning we aren't logged on. > On the client side, lc.login() with a bad password returns silently. > On the server side, context.getCallerPrincipal() gives the correct name= ,=20 > even if the client thinks I'm logged in. >=20 > Questions: > 1. How can I trigger my DatabaseServerLoginModule authentication for my= =20 > client? You must explicitly tell that you want the DatabaseServerLoginModule to=20 be used, the ClientLoginModule just keeps the user/pass to be used in=20 subsequent calls > 2. I thought that lc.login() should throw a LoginException if the usern= ame=20 > and password are bad. Why does this not happen? the same answer from 1 > 3. I thought about putting the DatabaseServerLoginModule declaration in= to=20 > the client auth,conf file, but I presume as this is a client, it can't = do=20 > the JNDI lookup on the DS name. Is this correct? We use LDap login and it works right, but the client have access to the=20 ldap server. Any idea at how to solve this using a datasource? > Ciao, > Jonathan O'Connor > Ph: +353 1 872 3305 > Mob: +353 86 824 9736 > Fax: +353 1 873 3612 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T=20 > handheld. Power & Color in a compact size!=20 > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user >=20 --=20 xxxxxxxxxxxxxxxxxxxxxxxxxxxx | Emerson Cargnin | | Analista de Sistemas Sr. | | Tel : (051) 3358-4959 | | SICREDI Servi=E7os | | Porto Alegre - Brasil | |xxxxxxxxxxxxxxxxxxxxxxxxxx| |