Operating System - Linux
1827859 Members
1601 Online
109969 Solutions
New Discussion

concurrent file & ldap authentication

 
Nthenya
New Member

concurrent file & ldap authentication

Kindly assist me solve a problem with my ldap authentication

I am getting the following error
'Invalid command 'AuthBasicProvider', perhaps mis-spelled or defined by a module not included in the server configuration'

My .htaccess file is as follows
AuthType Basic
AuthBasicProvider file ldap
AuthName "Auth"
AuthLDAPEnabled on
AuthBasicAuthoritative off
AuthUserFile /etc/httpd/passwd/passwords
AuthLDAPAuthoritative off
AuthLDAPURL ldap:
AuthLDAPBindDN "server"
AuthLDAPBindPassword secret
AuthGroupFile /etc/httpd/passwd/groups
Require user usera userb
Require group NMC


Kindly help me i am stack!!
1 REPLY 1
Ivan Ferreira
Honored Contributor

Re: concurrent file & ldap authentication

Here you have some examples of working ldap authentication for Apache:

User Based:

Alias /intranet "/intranet/web"

Options Indexes SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all
AuthType basic
AuthName Intranet
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldaps:///ou=People,dc=linux,dc=com,dc=py?uid?sub
require ldap-user jperez hlopez pgomez



Group based:

Alias /admin "/intranet/admin"

Options Indexes SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all
AuthType basic
AuthName Administracion
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
AuthLDAPURL ldaps:///ou=People,dc=linux,dc=com,dc=py?uid?sub
require ldap-group cn=admin,ou=Groups,dc=linux,dc=com,dc=py

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?