[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Shell Backend -- Multiple Answers to a Search using * in the Search String



I believe the example provided with the shell backend may
returns multiple entries with a single search request...

At 03:15 PM 6/16/00 +0200, Taniguchi, Shinro wrote:
>Hello!
>
>I'm experiencing a problem with a search request using the shell backend. It
>appears that the shell backend can give one answer to one request. I do not
>think this is the case but I do not know. Please point out where I am doing
>wrong!
>
>e.g.
>
>ldapsearch -b "o=colttelecom" "(uid=*)"
>
>gives me the following messages when slapd is run with '-d 1024' debugging
>option
>
>shell search reading line (DEBUG: O=COLTTELECOM
>)
>shell search reading line (DEBUG: (uid=*)
>)
>shell search reading line (dn: uid=shinro,dc=colt,dc=ch,o=colttelecom
>)
>shell search reading line (hostserver: colt.ch
>)
>shell search reading line (objectclass: CommuniGateAccount
>)
>shell search reading line (uid: shinro
>)
>shell search reading line (cn: Shinro Taniguchi
>)
>shell search reading line (
>)
>shell search reading line (RESULT
>)
>shell search reading line (code: 0
>)
>shell search reading line (dn: uid=test,dc=ch,o=colttelecom
>)
>shell search reading line (externalinbox: NO
>)
>shell search reading line (objectclass: CommuniGateAccount
>)
>shell search reading line (storagelocation: DirectoryDomains/ch/test.macnt
>)
>shell search reading line (uid: test
>)
>shell search reading line (userpassword: gRJ8JN5z68tGs
>)
>shell search reading line (
>)
>str2result (dn: uid=test,dc=ch,o=colttelecom
>externalinbox: NO
>objectclass: CommuniGateAccount
>storagelocation: DirectoryDomains/ch/test.macnt
>uid: test
>userpassword: gRJ8JN5z68tGs
>
>) unknown
>str2result (externalinbox: NO
>objectclass: CommuniGateAccount
>storagelocation: DirectoryDomains/ch/test.macnt
>uid: test
>userpassword: gRJ8JN5z68tGs
>
>) unknown
>str2result (objectclass: CommuniGateAccount
>storagelocation: DirectoryDomains/ch/test.macnt
>uid: test
>userpassword: gRJ8JN5z68tGs
>
>) unknown
>str2result (storagelocation: DirectoryDomains/ch/test.macnt
>uid: test
>userpassword: gRJ8JN5z68tGs
>
>) unknown
>str2result (uid: test
>userpassword: gRJ8JN5z68tGs
>
>) unknown
>str2result (userpassword: gRJ8JN5z68tGs
>
>) unknown
>str2result (
>) unknown
>
>As you can see that the first match in the database (this is a plain text
>presented at this moment) is successful but the second one fails. I am
>puzzled here. Is this a limitation of the shell backend such that it can
>only process one answer per request?
>e.g.
>
>ldapsearch -b "o=colttelecom" "(uid=shinro)"
>
>gives me the right information and the following debugging message;
>
>shell search reading line (DEBUG: O=COLTTELECOM
>)
>shell search reading line (DEBUG: (uid=*)
>)
>shell search reading line (dn: uid=shinro,dc=colt,dc=ch,o=colttelecom
>)
>shell search reading line (hostserver: colt.ch
>)
>shell search reading line (objectclass: CommuniGateAccount
>)
>shell search reading line (uid: shinro
>)
>shell search reading line (cn: Shinro Taniguchi
>)
>shell search reading line (
>)
>shell search reading line (RESULT
>)
>shell search reading line (code: 0
>)
>
>
>Your comment will be highly appreciated,
>
>Thanks in advance,
>
>Shin
>
>
>
>