原帖由 cduedu 于 2009-12-13 23:19 发表
今天晚上把ldap 模块装上了,写了一个脚本来进行search,但无论怎么改条件就是等到没有这个object:
#!/usr/bin/perl -w
use Net::LDAP;
my $targetHost = '192.168.1.4';
my $targetHostPort = '12389';
...
my $result = $ldap->search( base => 'ou=pepole,dc=exapmle,dc=com',filter =>"(&(uid=xhphuyu))");
....
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |