httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: Authentication using AuthUserFile
Date Fri, 02 Aug 2002 05:50:19 GMT
I can't tell what's wrong; it looks like a valid user file with plain
plassword. What version of Apache are you using?

I did see a few other issues with you configuration.

> <Directory "D:/Program Files/Apache Group/Apache/htdocs/Test">
> Options Indexes FollowSymLinks
> AllowOverride None
> order allow,deny
> allow from all

You have "Order allow,deny", and define "Allow from all", but no "Deny". Are
you sure about this? Otherwise, go read that part of the docs:
Note sure, but I don't think you have any use or Order in this directory.

> AuthName "Enter UserName and Password to Login to PIMS"
> AuthType Basic
> AuthUserFile htdocs/Test/web/users/users.txt
> AuthGroupFile htdocs/Test/web/groups/groups.txt

I think you should try to use the absolute path to the user/group files,
within double quotes. Perhaps easier to put them in the root while getting
it to work...

> <Limit GET POST>
> require group admin
> </Limit>

Remove the <Limit ...> and </Limit> tags as you don't really want them and
is bad style. Then, also try "require valid-user" and "require user kirti"
to see if that gives something.

You had written the user file yourself? Are you sure that you don't got some
illegal newlines or similar. I suggest you try to create a new file using
htpasswd. You do this by simply open up a command prompt, cd to Apache's bin
directory and type:
...apache\bin> htpasswd -cpb <quoted_path_to_user_file> <username>
This creates a new file with only that user, using plaintext password. If
you want to add another user, you remove the 'c' in the options (and change
the username/password, of course).

Robert Andersson

----- Original Message -----
From: "kirti jambula" <>
To: <>
Cc: <>; <>
Sent: Thursday, August 01, 2002 4:52 PM
Subject: RE: Authentication using AuthUserFile

> I have tried it, i changed it to this:
> kirti:kirti
> saritha:saritha
> neelima:neelima
> My groups.txt contains :
> admin: kirti saritha
> The error log is showing the same message:
> [Thu Aug 01 20:18:17 2002] [error] [client] user kirti:
> authentication failure for "/Test": crypt() unavailable on Win32, cannot
> validate password
> What do u think is the problem?
> Regards,
> Kirti
> -----Original Message-----
> From: Robert Andersson []
> Sent: Thursday, August 01, 2002 6:52 PM
> To:;
> Subject: Re: Authentication using AuthUserFile
> Try without the space after the colon in the user file, eg: "kirti:kirti".
> password cannot contain a space, so it will interpret it as an ecrypted by
> some algorithm not available on Win32.
> Regards,
> Robert Andersson
> ----- Original Message -----
> From: "kirti jambula" <>
> To: <>
> Cc: <>; <>
> Sent: Thursday, August 01, 2002 2:47 PM
> Subject: Authentication using AuthUserFile
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message