Leser: 16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl
use strict;
use warnings;
use Net::LDAP;
my $ldap = ();
sub bla {
$ldap = Net::LDAP->new('ldap://xxx.xxx.xxx.xxx:xxx',onerror=>'die',) or die();
$ldap->bind('cn=xxxxxxx', password=>'xxxxxxx',);
$ldap->unbind();
}
sub blafu {
$ldap->bind('cn=xxxxxxx', password=>'xxxxxx',);
$ldap->unbind();
}
&bla();
&blafu();
2010-03-24T12:53:28 LinuxerFehler im User-Scrolling-Modul.
Guest undefein modul, um auf ldap server zuzugreifen und dort halt aktionen ausführen zu können :)
QuoteThe unbind method does not take any parameters and will unbind you from the server. Some servers may allow you to re-bind or perform other operations after unbinding. If you wish to switch to another set of credentials while continuing to use the same connection, re-binding with another DN and password, without unbind-ing, will generally work.