|
From: Dieter K. <di...@dk...> - 2008-09-17 16:14:51
|
Hi,
what is the difference between ldap_sasl_bind_s and bind_s?
I modified my few lines
,----[ sasl_bind with perl 5.10 ]
| use Net::LDAPapi;
| $ld = new Net::LDAPapi('localhost');
| $ld->sasl_parms(
| -mech=> "DIGEST-MD5",
| -flag=>LDAP_SASL_QUIET);
| $ld->ldap_sasl_bind_s(
| dn=> 'admanager',
| passwd=> 'dressa');
| $ld->unbind;
`----
the error is:
/usr/bin/perl -w "/home/dieter/Projekte/perlscripts/ersterVersuch.pl"
Usage: Net::LDAPapi::ldap_sasl_bind_s(ld, dn, passwd, serverctrls, clientctrls, servercredp) at /home/dieter/Projekte/perlscripts/ersterVersuch.pl line 12.
Compilation exited abnormally with code 255 at Wed Sep 17 17:48:07
While following lines are OK
,----[ bind_s with perl 5.10 ]
| use Net::LDAPapi;
|
| $ld = new Net::LDAPapi('localhost');
|
| $ld->sasl_parms(
| -mech=> "DIGEST-MD5",
| -flag=>LDAP_SASL_QUIET);
|
| $ld->bind_s('admanager','xxxx',LDAP_AUTH_SASL);
|
| $ld->unbind;
`----
-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
|