From: Dieter K. <di...@dk...> - 2008-09-17 15:10:58
|
Hi, I am testing with Net::LDAPapi, todays svn version. The following three liner throws errors, while just stating hostname and port number is fine. ,----[ simple connenction ] | use Net::LDAPapi; | $ld = new Net::LDAPapi( | -url=>'ldap://localhost' | -port=>1004); | $ld->sasl_parms( | -mech=> "DIGEST-MD5", | -flag=>LDAP_SASL_QUIET); | $ld->bind_s('admanager','xxx',LDAP_AUTH_SASL); | $ld->unbind; `---- The error: /usr/bin/perl -w "/home/dieter/Projekte/perlscripts/ersterVersuch.pl" Argument "port" isn't numeric in subtraction (-) at /home/dieter/Projekte/perlscripts/ersterVersuch.pl line 6. Argument "ldap://localhost" isn't numeric in subtraction (-) at /home/dieter/Projekte/perlscripts/ersterVersuch.pl line 6. Odd number of elements in hash assignment at /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/Net/LDAPapi.pm line 1938. Can't call method "sasl_parms" without a package or object reference at /home/dieter/Projekte/perlscripts/ersterVersuch.pl line 9. -Dieter -- Dieter Klünter | Systemberatung http://www.dpunkt.de/buecher/2104.html GPG Key ID:8EF7B6C6 53°08'09,95"N 10°08'02,42"E |