Hello Heiko,
you was right!! all work fine now!! I dont know how to thank u :)
My only mistake was that I didnt understand that /test was referring on Documentroot! so I putted
Auth /usr/httpd/cgi-bin/test instead of
Auth /test
What a fuss..
But now I've only a last question: if I use plain password using (on the PC):
/usr/sbin/htpasswd -dnbp hede Test
all goes right on the target,
but if I use encrypted password it seems that uClinux compares wrong the 2 password (the one in /etc/passwd and the one that the user insert)..maybe I need some de-encrypt binary from the uClinux-dist that I have omissed?
Thanks again you helped me a lot!
bye,
Sandro
Hieko Wrote:
Hi Sandro, Daniel,
Post by Sandro MI tried a bit of solution to get working the auth feature in boa,but I had not success.. :(
if u can try to reproduce what you did I will thanks a lot lot
I'm using Boa 0.93.15
I tried it again with Boa/0.93.15:
- On the pc (as root) I generated a crypt() encoded password:
/usr/sbin/htpasswd2 -dnb hede Test
hede:ktRQRgXYsWnf6
(the password is "Test")
- Then I added a line to the target's /etc/passwd:
hede:ktRQRgXYsWnf6:0:0:Web User::
- In target's /config/boa.conf I added a line:
Auth /test /etc/passwd
This will require an authorization for the directory /test of
boa (that is /home/httpd/test on the target in my case), and
will check the given password against the user's entry in
etc/passwd.
- Then I created the named directory and a simple index.html
therein.
- Now I restarted boa (by killing it's process id so that it was
restarted from the inittab)
- Then I directed my browser to http://192.168.0.1/test/. I was
prompted for user name and password and got auth'ed successfully.
HTH.
Rgds.
Heiko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20060228/4e86d1f7/attachment.html>