Hello, Peter! On Jan 20, 2006 at 1257 +0100, Peter Marschall appeared and said: > [...] > > The system the script is running on is a Debian Sarge 3.1r1 with the > > latest upgrades. The OpenLDAP server is compiled from source. > > The code snippet above looks correct with only one omission: > you do not test if the Net::LDAP::Filter object was correctly created.
That's something I forgot, because I didn't expect the filter preparation to create an error. I will fix that in the scripts. > Unfortunately you do not tell what version of perl-ldap you use and what kind > of data triggers the error. > I.e. what are the exact values for $base and $username, what is it that the > server returns. Yes, you are right, I forgot that also. I did a grep in /usr/share/perl5/Net/LDAP/ showing the following version strings: ASN.pm:$VERSION = "0.03"; Bind.pm:$VERSION = "1.02"; Constant.pm:$VERSION = "0.03"; Control.pm:$VERSION = "0.05"; DSML.pm:$VERSION = "0.12"; Entry.pm:$VERSION = "0.22"; Extension.pm:$VERSION = "1.01"; Extra.pm:$VERSION = "0.01"; Filter.pm:$VERSION = "0.14"; LDIF.pm:$VERSION = "0.15_03"; Message.pm:$VERSION = "1.08"; RootDSE.pm:$VERSION = "0.01"; Schema.pm:$VERSION = "0.9903"; Search.pm:$VERSION = "0.10"; Util.pm:$VERSION = "0.10"; The $base variable holds "ou=users,ou=accounts,dc=luchs,dc=at" and the username was "rene.pfeiffer". I also tried other username. Most of the usernames have a "." to seperate given name from surname. Could this be a problem since "." is also used in regexes? > Please try inserting the call > $ldap->debug(15); > before the search call to find out what gets sent and received over the line. I will do that and try to produce a dump of the interaction. Best regards, René. -- )\._.,--....,'``. Let GNU/Linux work for you while you take a nap. /, _.. \ _\ (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/ `._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Teaching -
pgpPyEWgoLoNJ.pgp
Description: PGP signature