Hello,
Thank you for this valuable information. Some questions nevertheless... :
- where this code should go? As I am not yet a JBoss guru, is there a place
where all this init work should go? a JMX service?
- which LDAP server (and browser?) do you use? openLDAP, Eudora, AC, NDS,
...?
Thank you. Cheers,
Sacha
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Scott M Stark
> Envoyé : lundi, 8 janvier 2001 11:16
> À : jBoss
> Objet : Re: [jBoss-User] JNDI implementation
>
>
> I'm using LDAP with JBoss by binding my LDAP server's initial context into
> the JBoss JNDI namespace and this works great. About 30 lines of code is
> all it takes:
>
> private void initializeLdap(InitialContext iniCtx) throws NamingException
> {
> Properties env = new Properties();
> env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
> "com.sun.jndi.ldap.LdapCtxFactory");
> env.setProperty(Context.PROVIDER_URL, "ldap://banshee-int:389/");
> env.setProperty(Context.SECURITY_PRINCIPAL, "cn=Directory Manager");
> env.setProperty(Context.SECURITY_AUTHENTICATION, "simple");
> env.setProperty(Context.SECURITY_CREDENTIALS, "secret");
>
> try
> {
...
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]