RE: authentication

"Martin Mielke (THALES)" <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
Hello Pons,

this is an Apache related issue.
In my example, everyboy can browse to the NetSaint main HTML-page but cannot
see any statuses (execute any cgi/whatever) without login in first.

First, you add the following lines to your Apache's config file (for me:
/etc/httpd/httpd.conf):
---
<Directory /usr/local/netsaint/sbin >
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
        Options ExecCGI
</Directory>
---

Then add an .htaccess file under the directory entered above
(/usr/local/netsaint/sbin ), as shown:
---
AuthName "NetSaint Access"
AuthType Basic
AuthUserFile /usr/local/netsaint/etc/htpasswd.users
require valid-user
---

Create a user with htpasswd.

From the man page:

NAME
       htpasswd - Create and update user authentication files

[...]
EXAMPLES
       htpasswd /usr/local/etc/apache/.htpasswd-users jsmith

              Adds or modifies the password for user jsmith.  The user is
prompted for the password.  If exeآ­
              cuted  on  a Windows system, the password will be encrypted
using the modified Apache MD5 algoآ­
              rithm; otherwise, the system's crypt() routine will be used.
If  the  file  does  not  exist,
              htpasswd will do nothing except return an error.

       htpasswd -c /home/doe/public_html/.htpasswd jane

              Creates a new file and stores a record in it for user jane.
The user is prompted for the passآ­
              word.  If the file exists and cannot be read, or cannot be
written,  it  is  not  altered  and
              htpasswd will display a message and return an error status.

       htpasswd -mb /usr/web/.htpasswd-all jones Pwd4Steve

              Encrypts  the password from the command line (Pwd4Steve) using
the MD5 algorithm, and stores it
              in the specified file.

[...]

Finally, point your browser to your NetSaint server to check that it
works...


HTH,

Martin

  -----Original Message-----
  From: [email protected]
[mailto:[email protected]]On Behalf Of Pons
  Sent: Wednesday, November 13, 2002 12:29 PM
  To: [email protected]
  Subject: [netsaint] authentication


  I want to implement the following:
  In case if any one request URL:http://IP-Addr/netsaint
  to be presented with an authentication request.
  Any help.


  -Pons
InterScan_Disclaimer.txt (text/plain, 236 B)
****** Message from InterScan E-Mail VirusWall NT ******

** No virus found in attached file noname.htm

Este correo ha sido procesado por los sistemas de Seguridad de FDI-H24
*****************     End of message     ***************
InterScan_Disclaimer.txt (text/plain, 294 B)
****** Message from InterScan E-Mail VirusWall NT ******

** No virus found in attached file noname.htm
** No virus found in attached file InterScan_Disclaimer.txt

Este correo ha sido procesado por los sistemas de Seguridad de FDI-H24
*****************     End of message     ***************
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.