> -----Original Message-----
> From: David Ramsey [mailto:[EMAIL PROTECTED]]
> 
> We are going to need a number of LDAP related properties in
> TurbineResources.properties. One of these is, of course, the LDAP
> PROVIDER_URL when setting up the JNDI context.
> 
> .....
> 
> I'd like to propose a list of properties named
> "ldap.authentication.mechanism" for the 
> TurbineResources.properties file
> to fill this role. The site administrator, if using LDAP can then
> specify as few or as many of these mechanisms as desired.
> 

 -1  and my comments



Hello again (after two weeks of break)

Sorry David, but such keys already exist in Turbine code (e.g. prefixes for
such keys).

As I understand, you need those values to create InitialDirContext

But instead of writing new code, please try to use code existing in 

org.apache.turbine.services.naming.*;

Here is my way to create LDAP context filed with initial values from TR
file.

NamingService tns = (NamingService)
TurbineServices.getInstance().getService("TurbineNamingService");
Context ldapCtx = tns.getContext("ldap");

thats all what you need to create ldap contex filed with values from TR file


************  my TR file ********
context.ldap.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
context.ldap.java.naming.provider.url=ldap://winnie:389
context.ldap.java.naming.security.authentication=simple
context.ldap.java.naming.security.principal=CN=Administrator\,CN=Users\,DC=d
ev\,DC=interdesign\,DC=com\,DC=plcontext.ldap.java.naming.security.credentia
ls=yourpassword
************

Regards...


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to