From: Chris R. <chr...@me...> - 2001-01-23 16:50:26
|
Jan Gruber <Jan...@po...> wrote: > Hi, all ! > > I have to retrieve the modifytimestamp for comparison between two objects. > The following code gives me a LDAP Protocol error. > > my $obj = $handle->search ( base => "$BaseDN", > scope => "subtree", > filter => "($filter)", > attrs => ['*','modifytimestamp'] > ); > > The attrs line has been taken out of the Net::LDAP documentation, but it > appears to be not working. It looks about right, if you're using LDAPv3. > Any hint would be appreciated. When you create the LDAP object, set debug to something like 12. This will make it dump the protocol going to and from the server, to stderr/stdout. This might give more of a clue. $handle = new Net::LDAP('hostname.foo.net', debug => 12); > TIA > -- > Jan Gruber System Administrator > Primacom > Office: +49 (341) 609 524 53 > Fax: +49 (341) 609 525 17 > > cat /dev/world | perl -e "(/(^.*? \?) 42 \!/) && (print $1))" > errors->(c) > _ > Cheers, Chris |