From: <CZa...@wi...> - 2002-03-27 19:46:23
|
Thanks. Graham Barr <gbarr@pobox.c To: CZa...@wi... om> cc: per...@li... Subject: Re: Filtered Search 03/27/2002 01:36 PM I suspect that "o=Wiley" is not the base of your directory. Do you have an example of a DN that is in the directory ? If so, you need to use "o=Wiley" plus everything that is to the right of it in the DN Graham. On Wed, Mar 27, 2002 at 01:19:47PM -0500, CZa...@wi... wrote: > I'm trying to do a search for based on the filter below, for all entries in > the ldap service, but I am not getting output back. > Can anyone tell me what is incorrect here? > > $mesg = $ldap->search( > base => "o=Wiley", > scope => "subtree", > filter => "(&(sn=*) (givename=*) (mail =*))" > ); > > foreach $entry ($mesg->entries) { > > $SN = $entry->get_value('sn'); > $GN = $entry->get_value('givenname'); > $M = $entry->get_value('mail'); > > print "$GN $SN $M\m"; > > |