On 10/09/09 14:17, glassfish_at_javadesktop.org wrote:
> I'm trying to get single sign-on with LDAP working, but don't seem to have any luck. I've enabled security and added an LDAP realm and made it my default realm. I've enabled SSO in Glassfish. I believe that is all I need to do, but when I browse to one of the applications I'm not prompted for a user id and password. I tried adding the following to the apps web.xm file
> <login-config>
> <auth-method>BASIC</auth-method>
> <realm-name>LdapRealm</realm-name>
> </login-config>
>
> and it still doesn't prompt me for authentication. Am I missing something?
Specifying a <login-config> is not sufficient. You must also specify a
<security-constraint>
that lists the url-patterns in your app that should be protected.
Jan
> Since I've set the default realm is it necessary to specify in the web.xml file the login-config element. If I'm doing this for all app, do I just add this element to the default-web.xml file on the app server? Either way it's not working.
> [Message sent by forum member 'madmac' (jeff.mcguire_at_stanct.org)]
>
> http://forums.java.net/jive/thread.jspa?messageID=367466
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>