For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > December 2007 > .htaccess = .WWWaccess ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author .htaccess = .WWWaccess ?
Praki

2007-12-05, 9:56 pm

Greetings All,

I m working with the CGI for authentication.

OS:SunOS 5.8 Generic_117350-34 sun4u sparc SUNW,Ultra-80
Server:Apache

I m trying to authenticate the website with CGI. i m using the
file .htaccess.AllowOverride All is set like this.but still i m not
getting autnticated.
but if i use .WWWaccess file i m getting authenticated.but i m not
able to check the user using ldap server.when i searched through
internet i could not get any details about the .WWWaccess file. can
any could help me i this.

File configuration.
bash-2.05b$ more .htaccess
AuthType Basic
AuthName Cisco-CEC
AuthUserFile /isaac/www/cgi-bin/pkolanda/authen/.htpasswd
AuthGroupFile /dev/null
Require valid-user

i used the same config to both the files.For the .WWWaccess is
authenticating but .htaccess is not. i want to check for user
validation in ldap server.
how can i proceed and what could be the problem?

thanks in advance
Prakash

Praki

2007-12-05, 9:56 pm

On Dec 5, 7:34 pm, da...@dorward.me.uk (David Dorward) wrote:
> On 5 Dec 2007, at 14:00, Praki wrote:
>
>
> CGI doesn't seem to be involved, you appear to be using an internal
> feature of apache to perform HTTP Basic Authentication. While it is
> possible to perform HTTP Basic Authentication using a CGI script,
> that isn't what you are doing.
>
> You might have better luck on an apache mailing list.
>
> --
> David Dorwardhttp://dorward.me.uk/http://blog.dorward.me.uk/


Greetings All,

This my .WWWaccess file config...

AuthType Basic
AuthName Login-Auth
LDAP_Server ldap.abc.com
LDAP_Port 389
Base_DN "ou=active,ou=employees,ou=people,o=abc.com"
UID_Attr uid
Require valid-user

I m getting the error.HTTP 500 - Internal server error is the error.
can u point where i m doing wrrong .. it would be of great help...

thanks,
Prakash

Praki

2007-12-05, 9:56 pm

On Dec 5, 7:34 pm, da...@dorward.me.uk (David Dorward) wrote:
> On 5 Dec 2007, at 14:00, Praki wrote:
>
>
> CGI doesn't seem to be involved, you appear to be using an internal
> feature of apache to perform HTTP Basic Authentication. While it is
> possible to perform HTTP Basic Authentication using a CGI script,
> that isn't what you are doing.
>
> You might have better luck on an apache mailing list.
>
> --
> David Dorwardhttp://dorward.me.uk/http://blog.dorward.me.uk/


Greetings All,

This my .WWWaccess file config... .htaccess file...

AuthType Basic
AuthName Login-Auth
LDAP_Server ldap.abc.com
LDAP_Port 389
Base_DN "ou=active,ou=employees,ou=people,o=abc.com"
UID_Attr uid
Require valid-user

I m getting the error.HTTP 500 - Internal server error is the error.
can u point where i m doing wrrong .. it would be of great help...

thanks,
Prakash

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com