Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache ldap authentication
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JackPo
n00b
n00b


Joined: 23 Jan 2004
Posts: 19

PostPosted: Wed Feb 01, 2006 12:08 pm    Post subject: apache ldap authentication Reply with quote

I am trying to get apache2 to work with LDAP authentication..

[Wed Feb 01 06:51:44 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Feb 01 06:51:44 2006] [notice] LDAP: SSL support available
[Wed Feb 01 06:51:44 2006] [notice] Apache configured -- resuming normal operations
[Wed Feb 01 06:51:44 2006] [info] Server built: Jan 28 2006 15:23:12
[Wed Feb 01 06:51:44 2006] [debug] prefork.c(956): AcceptMutex: sysvsem (default: sysvsem)
[Wed Feb 01 06:51:44 2006] [debug] util_ldap.c(1687): Initialisation of global mutex /tmp/fileHCJw0K
in child process 29931 successful.
[Wed Feb 01 06:51:44 2006] [debug] util_ldap.c(1687): Initialisation of global mutex /tmp/fileHCJw0K
in child process 29932 successful.
[Wed Feb 01 06:51:44 2006] [debug] util_ldap.c(1687): Initialisation of global mutex /tmp/fileHCJw0K
in child process 29933 successful.
[Wed Feb 01 06:51:44 2006] [debug] util_ldap.c(1687): Initialisation of global mutex /tmp/fileHCJw0K
in child process 29934 successful.
[Wed Feb 01 06:51:44 2006] [debug] util_ldap.c(1687): Initialisation of global mutex /tmp/fileHCJw0K
in child process 29935 successful.
[Wed Feb 01 06:51:44 2006] [alert] [client 69.33.198.2] /var/www/localhost/htdocs/private/.htaccess:
Invalid command 'AuthLDAPURL', perhaps mis-spelled or defined by a module not included in the server
configuration


I swear AuthLDAPURL is suppose to work.. and the server is clearly loading auth_ldap and mod_auth_ldap

what am I doing wrong???
Back to top
View user's profile Send private message
Falador
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Wed Feb 01, 2006 12:17 pm    Post subject: Reply with quote

From the auth_ldap FAQ
Quote:
Apache Doesn't Recognize Any auth_ldap Directives

Question:

The module builds fine, and the LoadModule works OK, but if I try to use some auth_ldap directives, I get the following error:

Syntax error on line 937 of /etc/httpd/conf/httpd.conf:
Invalid command 'AuthLDAPURL', perhaps mis-spelled or defined by a
module not included in the server configuration

Answer:

It's possible that you have a ClearModuleList directive in your Apache configuration. If so, you will also need a AddModule auth_ldap.c directive. The default httpd.conf file that is distributed with Apache usually does have the ClearModuleList directive, so this is very likely to occur if your Apache configuration is based on the distributed one.


Hope that helps
Back to top
View user's profile Send private message
JackPo
n00b
n00b


Joined: 23 Jan 2004
Posts: 19

PostPosted: Thu Feb 02, 2006 12:05 am    Post subject: Reply with quote

thanks for the reply!!

Unfortunately, that solution only applies for apache1, but I'm using apache2!

Anyone have any ideas?

Thanks,
Jack
Back to top
View user's profile Send private message
ty
n00b
n00b


Joined: 17 Feb 2004
Posts: 9
Location: Corte Madera, CA USA

PostPosted: Fri Feb 03, 2006 4:14 am    Post subject: see bug rept below Reply with quote

see this bug: https://bugs.gentoo.org/show_bug.cgi?id=114453 for a work around.

Or, if/when you have it running see: http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html for correct syntax.

I've been running this for a while on a production machine :(

Can't say it's all that stable....as recently as today it died, locking everyone out of our subversion server. This seems to happen every few weeks. I run similar configs using apache's module on other distros and is is rock solid. So I'm not sure if the problem is with mm_mod_auth_ldap, or the particular way I have the server configured.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum