Operating System - Linux
1753301 Members
7129 Online
108792 Solutions
New Discussion юеВ

Re: HTTP does not as for userID and password

 
SOLVED
Go to solution
Ivan Ferreira
Honored Contributor

Re: HTTP does not as for userID and password

I tested with:

AuthLDAPURL "ldap://sadc1.stec-inc.ad/ou=-Service Accts,dc=STEC-INC,dc=AD?uid?sub"

And it works. You can edit your file and just run:

httpd -t

To verify the syntax.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
KathyK
Regular Advisor

Re: HTTP does not as for userID and password

Ivan, that did it. the double quotes around ldap. but i still go right to my index page:

http://ip address/test/

does not ask for username or password.

Ivan Ferreira
Honored Contributor

Re: HTTP does not as for userID and password

Another error in your configuration:


Alias /test "/var/www/html/test"


Should be:


Alias /test "/var/www/html/test"
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
KathyK
Regular Advisor

Re: HTTP does not as for userID and password

I think i'm getting closer now. here is my config:

[root@Ldapnew conf.d]# httpd -t
Syntax OK
[root@Ldapnew conf.d]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@Ldapnew conf.d]# cat subversion.conf

Alias /test "/var/www/html/test"

AuthType basic
AuthName "MIS Subversion Repositories"
AuthzLDAPMethod ldap
AuthzLDAPAuthoritative on
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
AuthLDAPURL "ldap://sadc1.stec-inc.ad:3268/ou=-Service accts,dc=STEC-INC,dc=AD?sAMAccountName?sub?(objectClass=*)"
require ldap-group cn=ldapuser,ou=-Service accts,OU=-All Groups,dc=STEC-INC,dc=AD




now I get the login request but do not get authenticated:

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.


--------------------------------------------------------------------------------

Apache/2.0.52 (Red Hat) Server at port 80

my error_log says:

[Wed Aug 05 15:43:32 2009] [warn] [client xx.xxx.xxx.xx] [3416] auth_ldap authenticate: user kkhagani authentication failed; URI /test [ldap_search_ext_s() for user failed][Operations error]

Thanks again for all your help
Kathy





a
KathyK
Regular Advisor

Re: HTTP does not as for userID and password

Thank you all for helping. solved the problem.

I didn't have authzldapuserbase fully configured.


AuthzLDAPUserBase "OU=-MIS,OU=HQ,OU=-STEC Users,DC=STEC-INC,DC=AD"

compared it with the result of my ldapsearch.
Kathy
KathyK
Regular Advisor

Re: HTTP does not as for userID and password

closed!!!