locked
Windows Authentication RRS feed

  • Question

  • User-1258103938 posted

    Hi ,

     How to add multiple users dynamically for windows authentication not by using web.config. If we have 1000 users  mentioning  in web.config is not good. Is there any alternate for providing access to 1000 users. Pls help me.

    Monday, June 10, 2013 9:15 AM

Answers

  • User-861818263 posted

    Please refer http://www.wrox.com/WileyCDA/Section/ASP-NET-3-5-Windows-Based-Authentication.id-310905.html

    Authenticating and Authorizing a Group

    You can define groups of individuals allowed or denied access to your application or the application's resources. Your server can contain a number of different groups, each of which can have any number of users belonging to it. It is also possible for a single user to belong to multiple groups. Pull up the Computer Management utility to access the list of the groups defined on the server you are working with. Simply click the Groups folder in the Computer Management utility, and the list of groups is displayed

    To create a group, give it a name and description; then click the Add button and select the users whom you want to be a part of the group. After a group is created, you can allow it access to your application like this:

    <allow roles="MyGroup" />
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 10, 2013 9:31 AM
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 13, 2013 10:49 AM

All replies

  • User-861818263 posted

    Please refer http://www.wrox.com/WileyCDA/Section/ASP-NET-3-5-Windows-Based-Authentication.id-310905.html

    Authenticating and Authorizing a Group

    You can define groups of individuals allowed or denied access to your application or the application's resources. Your server can contain a number of different groups, each of which can have any number of users belonging to it. It is also possible for a single user to belong to multiple groups. Pull up the Computer Management utility to access the list of the groups defined on the server you are working with. Simply click the Groups folder in the Computer Management utility, and the list of groups is displayed

    To create a group, give it a name and description; then click the Add button and select the users whom you want to be a part of the group. After a group is created, you can allow it access to your application like this:

    <allow roles="MyGroup" />
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 10, 2013 9:31 AM
  • User-1258103938 posted

    Thanks. Is there any code to add the windows user dynamically from aspx page

    Monday, June 10, 2013 10:14 AM
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 13, 2013 10:49 AM