From: Dan G. L. <dan...@ta...> - 2001-04-19 18:51:06
|
I would like to quickly check if an entry exists in LDAP. I struggled to find a good solution. This is what I've come up with so far. It works for now, but I would like to hear if anyone has any suggestions on improvements. The idea is to start searching directly in the leafnode, and match any dn. # See if the dn exists $mesg = $ldap->search ( base => "$dn", filter => "dn=*" ); I tried the $entry->exists('dn') without any luck. Any examples of working code using exists? Dan -- Dan G. Lunde - dan...@c2... http://home.world-online.no/~danglund/pgp/pgp...@c2...c |