From: Kevin K. <kev...@ua...> - 2000-05-11 16:29:35
|
Hello! Having just recently installed Perl-LDAP as a replacement for Mozilla's Perldap, I've been trying to run the simplest of queries to see if it works. Here's what I do: !/usr/local/bin/perl use Net::LDAP; use Net::LDAP::Util qw( ldap_error_name ldap_error_text) ; $ldap = Net::LDAP->new('smtp.srv.ualberta.ca',port=>1389) or die "$@"; $ldap->bind( dn => 'cn=manager, dc=ualberta, dc=ca', password => 'NotVerySecret'); $mesg = $ldap->search(base => "dc=ualberta,dc=ca", filter => "(uid=dummyuser)"); if ($mesg->code) { LDAPerror("Searching",$mesg); } foreach $entry ($mesg->all_entries) { $entry->dump; } The output of this program is: Return code: 1 Message: LDAP_OPERATIONS_ERROR :Server encountered an internal error When we sniff the packets going back and forth we can see that slapd is returning a result, but perl-ldap doesn't seem to handle it. Am I doing something wrong or is this a bug? Thanks in advance Kevin Konowalec Web Systems Analyst University of Alberta Kev...@ua... |