|
From: Quanah Gibson-M. <qu...@zi...> - 2008-09-17 18:25:13
|
--On Wednesday, September 17, 2008 5:10 PM +0200 Dieter Kluenter
<di...@dk...> wrote:
> 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;
> `----
It's host & port, OR url. There's no comma separating the two parameters
in your code, which would also be necessary. In any case, this works for
me with no error.
[zimbra@freelancer tmp]$ /tmp/ldapwalk2.pl
[zimbra@freelancer tmp]$ cat /tmp/ldapwalk2.pl
#!/usr/bin/perl -w
use strict;
use Net::LDAPapi;
my $ld;
$ld = new Net::LDAPapi(-url=>'ldap://freelancer.lab.zimbra.com',
-port=>'389');
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
|