LDAP persistent search

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
OllyHolmes
Forum Newbie
Posts: 2
Joined: Sun Aug 13, 2006 11:53 am

LDAP persistent search

Post by OllyHolmes »

Hi there.

I'm a first time poster but have searched thoroughly everywhere I can find. Does anyone know how to implement LDAP persistent search (an addition to LDAPv3) using PHP. There are classes and sample apps for JAVA and PERL but I can't find any way of performing these searches in PHP.

A nice intro to persistent search can be found courtesy of Novell:

http://www.novell.com/documentation/nds ... l2ehr.html

The purpose of my app is similar to their JAVA code sample - I wish to keep a user db stored in mySQL synchronised with an enterprise directory (LDAP interface.)

I'm desperate so any advice, suggestions or sympathy are welcome!!

Thanks.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

If there is a Java app and a Perl app, can you peek into their codebase and try to port it to PHP?
OllyHolmes
Forum Newbie
Posts: 2
Joined: Sun Aug 13, 2006 11:53 am

Porting perl/java to php

Post by OllyHolmes »

Thanks for the suggestion but I wouldn't know where to start!!

http://cpan.uwinnipeg.ca/htdocs/perl-ld ... ch.pm.html

shows the source of the Persistent Search class within Perl but it extends the Control class and is way beyond me. I was hoping that someone had already updated LDAP support within PHP and I simply hadn't found it (i.e. maybe extended the PEAR libraries) or that someone that codes all the time (I'm just a day-tripper) looked at what Persistent Search is and said "Wow! How useful - it'll only take ten minutes to knock that out"

I'm still investigating and will pursue migrating the Perl code but I'm sure that I will come to a sticky end.
Post Reply