| Ticket UUID: | 1558564 | |||
| Title: | Cannot query ldap schema | |||
| Type: | Bug | Version: | None | |
| Submitter: | effevi | Created on: | 2006-09-14 12:16:19 | |
| Subsystem: | ldap | Assigned To: | mic42 | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-09-15 16:06:31 | |
| Resolution: | Fixed | Closed By: | mic42 | |
| Closed on: | 2006-09-15 09:06:31 | |||
| Description: |
This simple script
set cmd [ldap::connect ldap 389]
ldap::search $cmd cn=subschema objectclass=* + -scope
base
is not able to query the schema of our ldap server.
The same command (from the client utilities) works
correcty.
ldapsearch -x -b cn=subschema -h ldap -s base +
The error stack is
MessageSent (54 bytes):
0000 30 34 02 01 01 63 2f 04 0c 63 6e 3d 73 75 62
73 |04...c/..cn=subs|
0016 63 68 65 6d 61 0a 01 00 0a 01 00 02 01 00 02
01 |chema...........|
0032 00 01 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61
73 |....<87>.objectclas|
0048 73 30 03 04 01
2b |s0...+|
searchRequest (49 bytes):
0000 63 2f 04 0c 63 6e 3d 73 75 62 73 63 68 65 6d
61 |c/..cn=subschema|
0016 0a 01 00 0a 01 00 02 01 00 02 01 00 01 01 00
87 |...............<87>|
0032 0b 6f 62 6a 65 63 74 63 6c 61 73 73 30 03 04
01 |.objectclass0...|
0048
2b |+|
Error reading response for handle ::ldap::ldapsock3 :
error
while executing
"::ldap::MessageReceiver ::ldap::ldapsock3"
can't wait for variable "::ldap::ldapsock3
(message,1)": would wait forever
while executing
"vwait [namespace which -variable $handle](message,
$messageId)"
(procedure "WaitForResponse" line 17)
invoked from within
"WaitForResponse $handle $conn(searchInProgress)"
(procedure "searchNext" line 15)
invoked from within
"searchNext $handle"
| |||
| User Comments: |
mic42 added on 2006-09-15 16:06:31:
Logged In: YES user_id=302287 This is fixed in CVS now, get package version 1.6.2 , along with some other bugs in the info subcommand. mic42 added on 2006-09-15 16:00:48: Logged In: YES user_id=302287 Ok, i can reproduce the error. The ldap code had a wrong calculation for missing length bytes and broke when it got a long response like the subschema query. mic42 added on 2006-09-14 21:48:41: Logged In: YES user_id=302287 Do other large searches work? The search interface and the underlying structures changed quite a bit, so there may be some more bugs lurking... mic42 added on 2006-09-14 21:45:39: Logged In: YES user_id=302287 Please attach the result of package require ldap, so i know which ldap version your working with (must be a recent CVS checkout). | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki