LDAP support

9 messages Options
Embed this post
Permalink
Andrew Yager

LDAP support

Reply Threaded More More options
Print post
Permalink
Hi,

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?

Thanks,
Andrew

_________________________
Andrew Yager, Managing Director
Real World Technology Solutions
ph: 1300 798 718 or (02) 9563 4840
fax: (02) 9563 4848 mob: 0405 152 568
http://www.rwts.com.au/
_________________________


Bill Karwin from Zend

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
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 [hidden email].

Regards,
Bill Karwin
Ralph Schindler

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
I have created a modified Zend_Auth with the help of input from Gavin
and Darby and am using it in a production environment at work.  The
adapter I have that works is an LDAP/ActiveDirectory specific adapter
for authenticating users.

I am slammed at work, but plan to release this in the next day or so
with a release notes..

But I do have it in subversion:
http://svn.ralphschindler.com/repo/ZendFramework/

poke around there if you are interested

-ralph

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 [hidden email].
>
> Regards,
> Bill Karwin
>

Nico Edtinger-2

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bill Karwin from Zend
[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 [hidden email].

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
Dylan Arnold

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> 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 [hidden email].

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

Ralph Schindler

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
In reply to this post by Nico Edtinger-2
I think this would be a great interface, but unfortunately, I do not
know nearly enough about LDAP to be able to presume what an OO api for
this type of service should look like..

Would anyone out there be interested in creating Zend_Ldap?

-ralph

Nico Edtinger 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 [hidden email].
>
> 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
>

Michał Minicki

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
Ralph Schindler wrote:

> I think this would be a great interface, but unfortunately, I do not
> know nearly enough about LDAP to be able to presume what an OO api for
> this type of service should look like..

PEAR::Net_LDAP is fairly decent. Latest PEAR package has problems with binary data
but the CVS version is fixed (and more than slightly refactored).

> Would anyone out there be interested in creating Zend_Ldap?

If only I had the time to do it :(

> -ralph

--
Martel Valgoerad aka Michal Minicki | [hidden email] | http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell
Christian Wittwer2

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
Hi,
I think a LDAP interface would be great. Long time ago I wrote a LDAP
class, but it's very limited to my environment.
So I have some experience with LDAP and would like to help, if necessary.

Chris
Stefan Gehrig

Re: LDAP support

Reply Threaded More More options
Print post
Permalink
In reply to this post by Andrew Yager
Hi,

I added an extended Zend_LDAP proposal. This component extends Zend_LDAP to provide the full range of LDAP functions (searching, CRUD, tree traversing, etc.). The proposal is located at http://framework.zend.com/wiki/display/ZFPROP/Zend_Ldap_Ext+Proposal.
A preliminary version has been checked in at http://svn2.assembla.com/svn/zf-proposals/Zend_Ldap_Ext/trunk/.

Please feel free to comment and contribute to this proposal.

Best regards

Stefan

Andrew Yager wrote:
Hi,

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?

Thanks,
Andrew

_________________________
Andrew Yager, Managing Director
Real World Technology Solutions
ph: 1300 798 718 or (02) 9563 4840
fax: (02) 9563 4848 mob: 0405 152 568
http://www.rwts.com.au/
_________________________