[hobbit] LDAP Query - Base DN with spaces

ZanDAhaR allan at zandahar.net
Wed Jul 5 04:52:41 CEST 2006


Henrik Stoerner wrote:
> On Tue, Jul 04, 2006 at 05:25:23PM +1000, ZanDAhaR wrote:
>   
>> We have been given an LDAP server to host for someone to use as a 
>> directory for another application and would like to do some tests on 
>> querying users and the response time rather than just testing that port 
>> 389 or 636 responds however the base dn has a space in it.
>>
>> I thought about putting it inside quotes but then wasnt sure how much of 
>> the string to put into quotes.
>>     
>
> You can always put the whole "ldap://...." thing in quotes.
>
> Alternatively, since this is really a URL you can use %-quoting of the
> spaces in the URL. E.g. ldap://myserver/my%20dn??sub?uid=100 since
> space is ASCII 0x20.
>
>   
>> Also the server requires a bind user name 
>> and password there is no anonymous, and 99.9% of the user names also 
>> have a space, in this case "ldap manager"
>>     
>
> Use ldaplogin="ldap manager" in addition to the ldap://... url.
>
>
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>   
Cool thanks for that Henrik. I knew I could probably quote the login but 
wasnt sure about the ldap tag. Forgot all about converting it to %20 also :)

Thanks

Allan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060705/b06b0b53/attachment.html>


More information about the Xymon mailing list