473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help needed:: Openldap issue - - LDAP_OPERATIONS_ERROR Server encountered

#!/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 "$@";
$ldap->debug(15);
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
LDAP DEBUG LOG:::
==================

Net::LDAP=HASH(0x16d4fa4) sending:

30 0C 02 01 01 60 07 02 01 03 04 00 80 00 __ __ 0....`........

0000 12: SEQUENCE {
0002 1: INTEGER = 1
0005 7: [APPLICATION 0] {
0007 1: INTEGER = 3
000A 0: STRING = ''
000C 0: [CONTEXT 0]
000E : }
000E : }
Net::LDAP=HASH(0x16d4fa4) received:

30 84 00 00 00 10 02 01 01 61 84 00 00 00 07 0A 0........a......
01 00 04 00 04 00 __ __ __ __ __ __ __ __ __ __ ......

0000 16: SEQUENCE {
0006 1: INTEGER = 1
0009 7: [APPLICATION 1] {
000F 1: ENUM = 0
0012 0: STRING = ''
0014 0: STRING = ''
0016 : }
0016 : }
Net::LDAP=HASH(0x16d4fa4) sending:

30 81 90 02 01 02 63 66 04 1A 44 43 3D 66 72 2C 0.....cf..DC=fr,
44 43 3D 65 75 72 77 2C 44 43 3D 65 79 2C 44 43 DC=eurw,DC=ey,DC
3D 6E 65 74 0A 01 02 0A 01 02 02 01 00 02 01 00 =net............
01 01 00 A0 2F A3 13 04 0B 6F 62 6A 65 63 74 43 ..../....objectC
6C 61 73 73 04 04 75 73 65 72 A3 18 04 0E 6F 62 lass..user....ob
6A 65 63 74 43 61 74 65 67 6F 72 79 04 06 50 65 jectCategory..Pe
72 73 6F 6E 30 08 04 06 6D 65 6D 62 65 72 A0 23 rson0...member.#
30 21 04 16 31 2E 32 2E 38 34 30 2E 31 31 33 35 0!..1.2.840.1135
35 36 2E 31 2E 34 2E 33 31 39 04 07 30 05 02 01 56.1.4.319..0...
64 04 00 __ __ __ __ __ __ __ __ __ __ __ __ __ d..

0000 144: SEQUENCE {
0003 1: INTEGER = 2
0006 102: [APPLICATION 3] {
0008 26: STRING = 'DC=fr,DC=eurw,DC=ey,DC=net'
0024 1: ENUM = 2
0027 1: ENUM = 2
002A 1: INTEGER = 0
002D 1: INTEGER = 0
0030 1: BOOLEAN = FALSE
0033 47: [CONTEXT 0] {
0035 19: [CONTEXT 3] {
0037 11: STRING = 'objectClass'
0044 4: STRING = 'user'
004A : }
004A 24: [CONTEXT 3] {
004C 14: STRING = 'objectCategory'
005C 6: STRING = 'Person'
0064 : }
0064 : }
0064 8: SEQUENCE {
0066 6: STRING = 'member'
006E : }
006E : }
006E 35: [CONTEXT 0] {
0070 33: SEQUENCE {
0072 22: STRING = '1.2.840.113556.1.4.319'
008A 7: STRING
008C : 30 05 02 01 64 04 00 __ __ __ __ __ __ __ __ __
0...d..
0093 : }
0093 : }
0093 : }
Net::LDAP=HASH(0x16d4fa4) received:

30 84 00 00 00 A7 02 01 02 65 84 00 00 00 9E 0A 0........e......
01 01 04 00 04 84 00 00 00 93 30 30 30 30 30 30 ..........000000
30 30 3A 20 4C 64 61 70 45 72 72 3A 20 44 53 49 00: LdapErr: DSI
44 2D 30 43 30 39 30 35 46 46 2C 20 63 6F 6D 6D D-0C0905FF, comm
65 6E 74 3A 20 49 6E 20 6F 72 64 65 72 20 74 6F ent: In order to
20 70 65 72 66 6F 72 6D 20 74 68 69 73 20 6F 70 perform this op
65 72 61 74 69 6F 6E 20 61 20 73 75 63 63 65 73 eration a succes
73 66 75 6C 20 62 69 6E 64 20 6D 75 73 74 20 62 sful bind must b
65 20 63 6F 6D 70 6C 65 74 65 64 20 6F 6E 20 74 e completed on t
68 65 20 63 6F 6E 6E 65 63 74 69 6F 6E 2E 2C 20 he connection.,
64 61 74 61 20 30 2C 20 76 65 63 65 00 __ __ __ data 0, vece.

0000 167: SEQUENCE {
0006 1: INTEGER = 2
0009 158: [APPLICATION 5] {
000F 1: ENUM = 1
0012 0: STRING = ''
0014 147: STRING
001A : 30 30 30 30 30 30 30 30 3A 20 4C 64 61 70 45 72
00000000: LdapEr
002A : 72 3A 20 44 53 49 44 2D 30 43 30 39 30 35 46 46 r:
DSID-0C0905FF
003A : 2C 20 63 6F 6D 6D 65 6E 74 3A 20 49 6E 20 6F 72 ,
comment: In
004A : 64 65 72 20 74 6F 20 70 65 72 66 6F 72 6D 20 74 order
to perform
005A : 68 69 73 20 6F 70 65 72 61 74 69 6F 6E 20 61 20 this
operation a
006A : 73 75 63 63 65 73 73 66 75 6C 20 62 69 6E 64 20
successful bind
007A : 6D 75 73 74 20 62 65 20 63 6F 6D 70 6C 65 74 65 must
be completed
008A : 64 20 6F 6E 20 74 68 65 20 63 6F 6E 6E 65 63 74 on
the connection
009A : 69 6F 6E 2E 2C 20 64 61 74 61 20 30 2C 20 76 65 .,
data 0, v
00AA : 63 65 00 __ __ __ __ __ __ __ __ __ __ __ __ __ ce.
00AD : }
00AD : }
ERROR detected: -> LDAP_OPERATIONS_ERROR Server encountered an
internal error
ERROR - not LDAP_SUCCESS at userCount.pl line 71, <DATA> line 655.
Net::LDAP=HASH(0x16d4fa4) sending:

30 05 02 01 03 42 00 __ __ __ __ __ __ __ __ __ 0....B.

0000 5: SEQUENCE {
0002 1: INTEGER = 3
0005 0: [APPLICATION 2]
0007 : }
Jul 19 '05 #1
1 5296
Durairaj Avasi wrote:
#!/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 "$@";
$ldap->debug(15);
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
LDAP DEBUG LOG:::
==================

Net::LDAP=HASH(0x16d4fa4) sending:

30 0C 02 01 01 60 07 02 01 03 04 00 80 00 __ __ 0....`........

0000 12: SEQUENCE {
0002 1: INTEGER = 1
0005 7: [APPLICATION 0] {
0007 1: INTEGER = 3
000A 0: STRING = ''
000C 0: [CONTEXT 0]
000E : }
000E : }
Net::LDAP=HASH(0x16d4fa4) received:

30 84 00 00 00 10 02 01 01 61 84 00 00 00 07 0A 0........a......
01 00 04 00 04 00 __ __ __ __ __ __ __ __ __ __ ......

0000 16: SEQUENCE {
0006 1: INTEGER = 1
0009 7: [APPLICATION 1] {
000F 1: ENUM = 0
0012 0: STRING = ''
0014 0: STRING = ''
0016 : }
0016 : }
Net::LDAP=HASH(0x16d4fa4) sending:

30 81 90 02 01 02 63 66 04 1A 44 43 3D 66 72 2C 0.....cf..DC=fr,
44 43 3D 65 75 72 77 2C 44 43 3D 65 79 2C 44 43 DC=eurw,DC=ey,DC
3D 6E 65 74 0A 01 02 0A 01 02 02 01 00 02 01 00 =net............
01 01 00 A0 2F A3 13 04 0B 6F 62 6A 65 63 74 43 ..../....objectC
6C 61 73 73 04 04 75 73 65 72 A3 18 04 0E 6F 62 lass..user....ob
6A 65 63 74 43 61 74 65 67 6F 72 79 04 06 50 65 jectCategory..Pe
72 73 6F 6E 30 08 04 06 6D 65 6D 62 65 72 A0 23 rson0...member.#
30 21 04 16 31 2E 32 2E 38 34 30 2E 31 31 33 35 0!..1.2.840.1135
35 36 2E 31 2E 34 2E 33 31 39 04 07 30 05 02 01 56.1.4.319..0...
64 04 00 __ __ __ __ __ __ __ __ __ __ __ __ __ d..

0000 144: SEQUENCE {
0003 1: INTEGER = 2
0006 102: [APPLICATION 3] {
0008 26: STRING = 'DC=fr,DC=eurw,DC=ey,DC=net'
0024 1: ENUM = 2
0027 1: ENUM = 2
002A 1: INTEGER = 0
002D 1: INTEGER = 0
0030 1: BOOLEAN = FALSE
0033 47: [CONTEXT 0] {
0035 19: [CONTEXT 3] {
0037 11: STRING = 'objectClass'
0044 4: STRING = 'user'
004A : }
004A 24: [CONTEXT 3] {
004C 14: STRING = 'objectCategory'
005C 6: STRING = 'Person'
0064 : }
0064 : }
0064 8: SEQUENCE {
0066 6: STRING = 'member'
006E : }
006E : }
006E 35: [CONTEXT 0] {
0070 33: SEQUENCE {
0072 22: STRING = '1.2.840.113556.1.4.319'
008A 7: STRING
008C : 30 05 02 01 64 04 00 __ __ __ __ __ __ __ __ __
0...d..
0093 : }
0093 : }
0093 : }
Net::LDAP=HASH(0x16d4fa4) received:

30 84 00 00 00 A7 02 01 02 65 84 00 00 00 9E 0A 0........e......
01 01 04 00 04 84 00 00 00 93 30 30 30 30 30 30 ..........000000
30 30 3A 20 4C 64 61 70 45 72 72 3A 20 44 53 49 00: LdapErr: DSI
44 2D 30 43 30 39 30 35 46 46 2C 20 63 6F 6D 6D D-0C0905FF, comm
65 6E 74 3A 20 49 6E 20 6F 72 64 65 72 20 74 6F ent: In order to
20 70 65 72 66 6F 72 6D 20 74 68 69 73 20 6F 70 perform this op
65 72 61 74 69 6F 6E 20 61 20 73 75 63 63 65 73 eration a succes
73 66 75 6C 20 62 69 6E 64 20 6D 75 73 74 20 62 sful bind must b
65 20 63 6F 6D 70 6C 65 74 65 64 20 6F 6E 20 74 e completed on t
68 65 20 63 6F 6E 6E 65 63 74 69 6F 6E 2E 2C 20 he connection.,
64 61 74 61 20 30 2C 20 76 65 63 65 00 __ __ __ data 0, vece.

0000 167: SEQUENCE {
0006 1: INTEGER = 2
0009 158: [APPLICATION 5] {
000F 1: ENUM = 1
0012 0: STRING = ''
0014 147: STRING
001A : 30 30 30 30 30 30 30 30 3A 20 4C 64 61 70 45 72
00000000: LdapEr
002A : 72 3A 20 44 53 49 44 2D 30 43 30 39 30 35 46 46 r:
DSID-0C0905FF
003A : 2C 20 63 6F 6D 6D 65 6E 74 3A 20 49 6E 20 6F 72 ,
comment: In
004A : 64 65 72 20 74 6F 20 70 65 72 66 6F 72 6D 20 74 order
to perform
005A : 68 69 73 20 6F 70 65 72 61 74 69 6F 6E 20 61 20 this
operation a
006A : 73 75 63 63 65 73 73 66 75 6C 20 62 69 6E 64 20
successful bind
007A : 6D 75 73 74 20 62 65 20 63 6F 6D 70 6C 65 74 65 must
be completed
008A : 64 20 6F 6E 20 74 68 65 20 63 6F 6E 6E 65 63 74 on
the connection
009A : 69 6F 6E 2E 2C 20 64 61 74 61 20 30 2C 20 76 65 .,
data 0, v
00AA : 63 65 00 __ __ __ __ __ __ __ __ __ __ __ __ __ ce.
00AD : }
00AD : }
ERROR detected: -> LDAP_OPERATIONS_ERROR Server encountered an
internal error
ERROR - not LDAP_SUCCESS at userCount.pl line 71, <DATA> line 655.
Net::LDAP=HASH(0x16d4fa4) sending:

30 05 02 01 03 42 00 __ __ __ __ __ __ __ __ __ 0....B.

0000 5: SEQUENCE {
0002 1: INTEGER = 3
0005 0: [APPLICATION 2]
0007 : }


Per your error message:

30 84 00 00 00 A7 02 01 02 65 84 00 00 00 9E 0A 0........e......
01 01 04 00 04 84 00 00 00 93 30 30 30 30 30 30 ..........000000
30 30 3A 20 4C 64 61 70 45 72 72 3A 20 44 53 49 00: LdapErr: DSI
44 2D 30 43 30 39 30 35 46 46 2C 20 63 6F 6D 6D D-0C0905FF, comm
65 6E 74 3A 20 49 6E 20 6F 72 64 65 72 20 74 6F ent: In order to
20 70 65 72 66 6F 72 6D 20 74 68 69 73 20 6F 70 perform this op
65 72 61 74 69 6F 6E 20 61 20 73 75 63 63 65 73 eration a succes
73 66 75 6C 20 62 69 6E 64 20 6D 75 73 74 20 62 sful bind must b
65 20 63 6F 6D 70 6C 65 74 65 64 20 6F 6E 20 74 e completed on t
68 65 20 63 6F 6E 6E 65 63 74 69 6F 6E 2E 2C 20 he connection.,
64 61 74 61 20 30 2C 20 76 65 63 65 00 __ __ __ data 0, vece.
it looks like you will need to bind
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: stegger | last post by:
I am trying to update a users password on OpenLDAP: $new = '{md5}' . base64_encode(pack('H*', md5($newpass_in_plaintext))); $this->result = ldap_modify($connection,...
4
by: Ringo Langly | last post by:
Hi all, I'm a seasoned web programmer, but I've never touched XSLT. It's always been one of those acronyms I've never needed to educate myself on. Now... we're working with a web content...
1
by: jdelimon | last post by:
Hello I use the following code to connect to an openldap server This works just fine _deRoot = new DirectoryEntry "LDAP://ws244501.test.com/ou=People,dc=test,dc=com”...
4
by: Koen | last post by:
Hi all, At work I created a database which is really helpful. The database is used by approx 15 users. Everything worked great, until I added some 'scoreboard' forms and reports. I get the...
14
by: LP | last post by:
Hi, I will be taking on a new project developing a web-based "reporting system". The first requirement I got from BI group is "we just want to look at the data". Basically, there is a huge...
15
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual...
0
by: mmatthe | last post by:
Hi, one short question: it is possible to administer sessions in an OpenLDAP-server instead of files oder MySQL? If yes, can you give me a hint? THX
1
by: Gert Albertse | last post by:
Is it possible to use forms authentication against an OpenLDAP server
0
by: Sells, Fred | last post by:
I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.