Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Docs

Found minor typo in documentation for AuthLDAPURL / mod_authnz_ldap with redundant servers in the URL

 

 

Apache docs RSS feed   Index | Next | Previous | View Threaded


Per.Lundberg at bredband

Mar 4, 2008, 1:48 AM

Post #1 of 2 (2655 views)
Permalink
Found minor typo in documentation for AuthLDAPURL / mod_authnz_ldap with redundant servers in the URL

Hello,

Trying to set up LDAP authentication in my Apache, I found a slight
problem in the manual (more specifically on this page:
http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html#examples)

The example for redundant LDAP servers is "almost" correct, showing:

AuthLDAPURL ldap://ldap1.airius.com ldap2.airius.com/ou=People,
o=Airius
Require valid-user

However, when usin this setup you will get an error similar to this:

Syntax error on line 51 of
/opt/csw/apache2/etc/extra/httpd-vhosts.conf:
Invalid LDAP connection mode setting: must be one of NONE, SSL,
or TLS/STARTTLS

This is because the AuthLDAPURL is being incorrectly split up in the
parsing of the Apache 2.2 config file, and the second "keyword" becomes
"ldap2.airius.com/ou=People," which is incorrect syntax (the
configuration parser expects an LDAP connection mode according to the
manual,
http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html#authldapurl)

The correct way to do it is enquoting the URL in double quotes:

AuthLDAPURL "ldap://ldap1.airius.com ldap2.airius.com/ou=People,
o=Airius"
Require valid-user

Works like a charm for me. :) Hope this helps someone!
--
Best regards
Per Lundberg


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe [at] httpd
For additional commands, e-mail: docs-help [at] httpd


noodlet at gmail

Mar 5, 2008, 8:42 PM

Post #2 of 2 (2579 views)
Permalink
Re: Found minor typo in documentation for AuthLDAPURL / mod_authnz_ldap with redundant servers in the URL [In reply to]

On 04/03/2008, Per Lundberg <Per.Lundberg [at] bredband> wrote:
> Trying to set up LDAP authentication in my Apache, I found a slight
> problem in the manual (more specifically on this page:
> http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html#examples)

Thanks for the report.

http://svn.apache.org/viewvc?rev=634155&view=rev

--
noodl

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe [at] httpd
For additional commands, e-mail: docs-help [at] httpd

Apache docs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.