Re: JNDI-LDAP example

Rob Urquhart <[email protected]> Fri, 15 Oct 2010 11:00:34 -0700
Newsgroups gmane.comp.web.webobjects.woproject.devel
Message-ID <[email protected]>
This works for me:

    connectionDictionary = {
        authenticationMethod = Simple;
        initialContextFactory = "com.sun.jndi.ldap.LdapCtxFactory";
        plugInClassName = "com.webobjects.jndiadaptor.LDAPPlugIn";
        scope = Subtree;
        serverUrl = "ldap://host:port/o=base.dn";
        timeout = 3600;
        username = "cn=Manager,o=base.dn";
        password = xxxxxxxx;
    };

Of course, you replace host, port, o=base.dn, etc.

Rob

On Oct 15, 2010, at 10:47 AM, Ray Kiddy wrote:

> 
> Hello -
> 
> Does anyone have an actual example of a model that uses JNDI to talk to an LDAP data source? I want to use an LDAP accessible authentication source. The usual thing. I end up having to do this every few years. Since the last time I did it, JNDI things seem to have become unfindable on google. I can find lots of incomplete discussions that talk about solutions. But none of them actually have the solutuion being referred to. And, of course, there is no example on the Wonder wiki.
> 
> I figure that once I see a working connection dictionary, I will remember which arbitrary crud has to be inserted that I am, I have no doubt, forgetting to put in.
> 
> thanx - ray
> 

--
Rob Urquhart 
Institutional, Collaborative, and Academic Technologies (ICAT)
IT Services
Simon Fraser University
778-782-3650
[email protected]