Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 37439

Summary: Punctuation error in openldap code listing 2.5: /etc/conf.d/slapd
Product: [OLD] Docs-user Reporter: Lindsay Haisley <fmouse-gentoo>
Component: OtherAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED FIXED    
Severity: normal CC: docs-team
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://www.gentoo.org/doc/en/ldap-howto.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description Lindsay Haisley 2004-01-06 17:44:43 UTC
The doc page gives the proper line as:

OPTS="-h ldaps:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock"

Using this results in "ldap_bind: Can't contact LDAP server"

The line with the correct punctuation is already in the file, commented out:

OPTS="-h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'"

Using this line results in a proper connection to the ldap server.  The use of the single quotes is required to bind the entire space-separated list to the -h option.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-01-07 05:05:07 UTC
Thanks. I've added the quoting, but I left out the ldap:// entry. The main reason for this is that we don't want any queries happen in plain text over the network (especially not in this case where authentication is handled).