users@glassfish.java.net

Re: How to use jdbc and ldap realm ?

From: Nithya Subramanian <nithya.subramanian_at_oracle.com>
Date: Mon, 27 Feb 2012 18:29:40 +0530

Hi,

If you are trying to implement a scenario where either the ldap or the
jdblc realm are to be chosen dynamically, then you could write a custom
realm (https://blogs.oracle.com/nithya/entry/groups_in_custom_realms)
where you could make calls to the GlassFish JDBCRealm or LDAPRealm's
authenticate, based on the user id.

HTH
Nithya

On Saturday 25 February 2012 02:39 PM, forums_at_java.net wrote:
> Dear all, I'm creating a web-app situ glassfish. I'm currently doing the
> authentification with à jdbc realm. Everything world fine. I would
> like to
> add a ldap realm. The goal is that when à user id flagged as ldap user we
> use the ldap realm, when not, we use the jdbc realm. Thanks for Your
> help.
> Paul
>
> --
>
> [Message sent by forum member 'paulolambert']
>
> View Post: http://forums.java.net/node/883780
>
>