Solved

User authentication

Posted on 1998-10-16
5
131 Views
Last Modified: 2013-12-25
Hi,
  I am programming a website which I need to have access authentication. This is something like experts-exchange website. I would like to know how do I program the "login" dialog box(the one shows when you click on "Login" in experts-exchange) and how to retrieve data from it. Also, I would like to know how to maintain the user's status. This means a user just has to enter password for once. After that, he can freely go to any page without submitting authentication information either explicitily or implicitily. Also, if the user restarts the browser, he will need to login again. How are all these done? Any help is appreciated!

I am using Microsoft Information Server based on Windows NT.

sunjian
0
Comment
Question by:sunjian061197
  • 3
5 Comments
 
LVL 2

Expert Comment

by:nikhilh
ID: 1829123
I would also like to know the answer

0
 
LVL 3

Expert Comment

by:zhongbing
ID: 1829124
***NOTE: the following answer originally from Mplangjun*****

EE is using the web servers Basic authorisation which is on most unix boxes a change to the .htaccess file to say that a certain directory is passwordprotected.
       On an NT box one also must be sure to use Basic authorisation otherwise only MSIE can acess a passwor protected directory (challenge response)
0
 
LVL 3

Expert Comment

by:zhongbing
ID: 1829125
*** this configuration guide originall from feenix *****

If the server is Apache, here is what you can do:

    Create the .htaccess file in the directory you want to be secure with this content:
    AuthType Basic
    AuthName My homepage
    AuthUserFile passfile
    <Limit GET>
    require valid-user
    </Limit>

    then use htpasswd-utility to create the passwordfile. Like this:
    htpasswd -c passfile user1
    htpasswd passfile user2
    .
    htpasswd passfile usern

    The -c -option in the first command tells htpasswd to create the file, so don't use it
    for the other users.
0
 

Author Comment

by:sunjian061197
ID: 1829126
Hi zhongbing,

  Thanks for your answer. However, can you give me some information for maintaining the user's status, i.e. the user has to enter password for once...

sunjian
0
 
LVL 3

Accepted Solution

by:
zhongbing earned 100 total points
ID: 1829127
use this authentication, the user only need to enter password once. the web browser will remember the user name and password, you neen't configue at server side. moreover, ie can save the password even it quit.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PowerShell Get-Help 10 68
EXCHANGE 2007, SCRIPTS 67 75
Need help editing script 3 66
ICACL switch help. How to include current folder 2 37
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to count occurrences of each item in an array.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now