[Catalyst] Model::LDAP vs Authentication::Credential::LDAP

Peter Karman peter at peknet.com
Mon Aug 11 17:49:00 BST 2008



On 08/07/2008 10:52 AM, Buchan Milne wrote:

> 
> So far I have stored the cleartext password in the session, after encrypting 
> it with the session key. Now, I would like to find some way of providing the 
> credentials to the model.
> 
> I wrote a connection_class for my models, but it seems that the 
> connection_class doesn't have access to the context, so I can't retrieve $c-
>> user->ldap_entry->dn or $c->sessionid().
> 
> Is there really no way to do this at present (without dumping Model::LDAP and 
> doing everything via Net::LDAP directly)?

I am going to be doing something similar eventually using Net::LDAP::Class and either
C::Model::LDAP or a CatalystX::CRUD::ModelAdapter::LDAP. You might look at
Net::LDAP::Class to see if it makes what you're doing any easier.

-- 
Peter Karman  .  peter at peknet.com  .  http://peknet.com/




More information about the Catalyst mailing list