Page 1 of 1

LDAP persistent search

Posted: Sun Aug 13, 2006 12:07 pm
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.

Posted: Sun Aug 13, 2006 7:18 pm
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?

Porting perl/java to php

Posted: Mon Aug 14, 2006 2:53 am
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.