Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Help needed:: Openldap issue - - LDAP_OPERATIONS_ERROR Server encountered

Reply
Thread Tools

Help needed:: Openldap issue - - LDAP_OPERATIONS_ERROR Server encountered

 
 
Durairaj Avasi
Guest
Posts: n/a
 
      04-06-2004
Hello all:::

Need your hand on this...

#!/usr/bin/perl -w
use Net::LDAP;
use Net::LDAP::Util qw(ldap_error_name ldap_error_text);
my $ldap = Net::LDAP->new('xy.webdurai.net', port=> 389) or die "$@";

my @args = (
base => 'DC=xy',
scope => "subtree",
filter =>
'(&(objectClass=user)(objectCategory=Person))',
attrs => ["distinguishedName", "Home-MDB",
"postalAddress", "l","st", "postalcode"]
);
my $mesg = $ldap->search( @args );
if ($mesg->code) {
print "ERROR detected: -> ", ldap_error_name($mesg->code), " ",
ldap_error_text($mesg->code);
warn "ERROR - not LDAP_SUCCESS";
#last;
}
my $total = $mesg->count;
print " the total is $total";

OUTPUT IS:
==========
ERROR detected: -> LDAP_OPERATIONS_ERROR Server encountered
ERROR - not LDAP_SUCCESS at u.pl line 15, <DATA> line 424.

NOTE::
=======

why i am getting LDAP_OPERATIONS_ERROR?

i am running under activeperl/perl-ldap/windows 2000

this is just simple search... do i have to bind it?

i thought i don't need to bind for search!!

thanks in advance.

Durairaj K. Avasi
 
Reply With Quote
 
 
 
 
Vetle Roeim
Guest
Posts: n/a
 
      04-06-2004
* Durairaj Avasi
[...]
> this is just simple search... do i have to bind it?
>
> i thought i don't need to bind for search!!


Try binding. You can do an anonymous bind by calling bind w/o any
parameters.


[...]
--
#!/usr/bin/vr
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP & java steve Java 3 06-28-2009 05:48 PM
ASA5500 OpenLDAP AAA Server nobody@comcast.net Cisco 2 07-01-2006 05:39 AM
OpenLDAP + java + changing user's passwords Eric Gutierrez Java 2 12-10-2004 02:44 AM
Help needed:: Openldap issue - - LDAP_OPERATIONS_ERROR Server encountered Durairaj Avasi Perl Misc 1 04-07-2004 01:46 PM
Help needed:: Openldap issue - - LDAP_OPERATIONS_ERROR Server encountered Durairaj Avasi Perl 1 04-06-2004 11:17 PM



Advertisments