On May 5, 2006, at 1:00 PM, elijah wrote:
> > I am working on an interface for managing scalable mail systems (to be > released under GPL) and I would like to use Cake! > > The user directory is stored in LDAP. I have a bunch of PHP code which > uses reflection and crude to access the LDAP data in a clean way, > and I > want to convert it over to cake. > > Has anyone done this already? I have an LdapUser Model I'm using in an application if you'd be interested in seeing it. I'd have to take some of our own information out of it, but you might find it useful. The basic idea is that you set $useTable to false in the model, and just write your own find and findAll() functions based on LDAP queries rather than SQL queries. The LDAP connection happens in the model constructor, and I also close the connection using __destruct(). It should be pretty easy if you're already using working code to do this. -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
