Web application to use window domain accounts for authentication

后端 未结 3 401
花落未央
花落未央 2021-01-02 11:03

If you have a web application that will run inside a network, it makes sense for it to support windows authentication (active directory?).

Would it make sense to us

3条回答
  •  一整个雨季
    2021-01-02 11:28

    Basically windows handles everything, you never store usernames or passwords, AD and IIS do all the work for you

    add this to your web.config

     
      ...
      
      ...
     
    

    To configure Windows authentication

    1. Start Internet Information Services (IIS).
    2. Right-click your application's virtual directory, and then click Properties.
    3. Click the Directory Security tab.
    4. Under Anonymous access and authentication control, click Edit.
    5. Make sure the Anonymous access check box is not selected and that Integrated Windows authentication is the only selected check box.

    You can then deal with the business or authorization using web.config again. for example

    
     
     
    
    

    Read more here: http://msdn.microsoft.com/en-us/library/ms998358.aspx

提交回复
热议问题