LDAP auth

Goyman <[email protected]>
Newsgroups gmane.comp.web.webobjects.eof,gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hello,

I have the following code:


                             /* Changing ldap authentification */
                             EOModelGroup defModelGroup = 
EOModelGroup.defaultGroup();
                             EOModel ldapModel = 
defModelGroup.modelNamed("LDAP");
                             NSMutableDictionary connDict = new 
NSMutableDictionary(ldapModel.connectionDictionary());
                             
connDict.takeValueForKey("uid="+uid+",ou=People,dc=goyman,dc=com", 
"username");
                             connDict.takeValueForKey(userPassword, 
"password");
                             ldapModel.setConnectionDictionary(connDict);

the problem is that work, but only one time, and this is not per 
session attribute, I mean that all session will have the same ldap 
connection dict after calling this direct action.


Regards

Goyman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.