« Return to Thread: LDAP support

Re: LDAP support

by Nico Edtinger-2 :: Rate this Message:

Reply to Author | View in Thread

[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