« Return to Thread: LDAP support

Re: LDAP support

by Dylan Arnold :: Rate this Message:

Reply to Author | View in Thread

I like the idea of LDAP support in the framework. I'm already using Zend_Config and Zend_Log at my work in a console app and the php LDAP functions. I'm no LDAP expert or anything but a couple of things that could be nice would be something similar to Zend_Db_Table. Eg: Get a resultset by querying for all users in an OU. Iterate through the results changing fields on the way. Something like Ldap_Row->save() maybe.

Another idea would be connecting / binding to a server. With active directory you can have more than one domain controller that synchronise in (almost) real time. If one server went down it may be nice to seamlessly switch to the other when connecting. Maybe easier to code yourself. Just throwing things around.

Cheers

On 1/18/07, Nico Edtinger <nico@...> wrote:
[17.01.2007 22:20] Bill Karwin wrote:
> Andrew Yager wrote:
>> Does anyone (other than me) have a need for LDAP support within
>> ZF? If so, what form would that take? Has anyone done any work on
>> this so far?
>>
>> Is there a better place to discuss this than fw-general?
> I understand that some work is being done in the Zend_Auth
> component for LDAP support.
> It'd be best to discuss this component on fw-auth@....

But LDAP can do more than just auth. A interface similar to SimpleXML
could be useful. I.e.:

<?php

$ldap = new Zend_Ldap('localhost');

foreach($ldap['o=My Company']['c=US']->filter('(|(sn=S*)
(givenname=S*))') as $entry) {
        echo $entry->givenname . "\n";
}

?>

Maybe it could also be made without depending on the LDAP module,
which is not enabled by default.

nico

 « Return to Thread: LDAP support