Creating User Accounts with or without Active Directory

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Creating User Accounts with or without Active Directory

    <REPOSTED>

    Guys,

    I need to build a web intranet application that can automatically
    create a user account when a new user registers on the site. The user
    account will be on the web server, member of the guests group (or some
    other limited group), and get read permissions to a special folder.

    I've tried playing with Active Directory on my local box, but I'm
    running Win XP Pro, not Win Server 2003 so I don't think its available.
    My production server will probably have access to it however.

    So my questions are:

    Can I use Active Directory for this sort of thing? I'm looking for a
    code example for creating a user account, assigning permissions, et.

    If I can't, what was the old ASP, VB 6 way of doing this? I'm sure
    theres an older interface out there somewhere.

    Thanx!

    J'son

    J'son Guest

  2. Similar Questions and Discussions

    1. Creating Active Directory Accounts
      What do most people use to create Active Directory accounts through coldfusion? Is there a Visual Basic script available that can be run to create...
    2. Use CFLDAP to Add user onto Active Directory
      How do you change a password? What I found out so far was that the password must be: - enclosed in quotes - converted to unicode then base64 -...
    3. Help me! How I could make user in active directory
      The canonical sample is right here in the MSDN docs: ...
    4. Modify AD Active directory based on user name only.
      Hi, Is there a way to update any user info (properties) on the AD, through an ASP.net code with c#. With only filtering on any user name, without...
    5. User Authentication, Active Directory and more (help)
      Hi, Can a .NET application make use of the information within the Active Directory in order to Authenticate and Authorize users? For example...
  3. #2

    Default Re: Creating User Accounts with or without Active Directory

    "J'son" <sitexcite@hotmail.com> wrote in news:1114451208.266974.164320
    @f14g2000cwb.googlegroups.com:
    > I've tried playing with Active Directory on my local box, but I'm
    > running Win XP Pro, not Win Server 2003 so I don't think its available.
    > My production server will probably have access to it however.
    >
    > So my questions are:
    >
    > Can I use Active Directory for this sort of thing? I'm looking for a
    > code example for creating a user account, assigning permissions, et.
    There is a standalone version of active directory ADAM. You can give that
    version a try - not sure if it runs on XP though.

    > If I can't, what was the old ASP, VB 6 way of doing this? I'm sure
    > theres an older interface out there somewhere.
    Typically just a database table with a couple columns (i.e.
    Username/Password, GroupID, etc).

    Authentication should be done via the Forms Authentication classes - there
    is no need to roll your own authentication : )

    --
    Lucas Tam (REMOVEnntp@rogers.com)
    Please delete "REMOVE" from the e-mail address when replying.
    [url]http://members.ebay.com/aboutme/coolspot18/[/url]
    Lucas Tam Guest

  4. #3

    Default Re: Creating User Accounts with or without Active Directory

    If this is an intranet application, why does it need to create accounts at
    all? Do the users not already have domain accounts, and can't the read
    permissions on the folder be granted based on membership in a domain group?


    "J'son" <sitexcite@hotmail.com> wrote in message
    news:1114451208.266974.164320@f14g2000cwb.googlegr oups.com...
    > <REPOSTED>
    >
    > Guys,
    >
    > I need to build a web intranet application that can automatically
    > create a user account when a new user registers on the site. The user
    > account will be on the web server, member of the guests group (or some
    > other limited group), and get read permissions to a special folder.
    >
    > I've tried playing with Active Directory on my local box, but I'm
    > running Win XP Pro, not Win Server 2003 so I don't think its available.
    > My production server will probably have access to it however.
    >
    > So my questions are:
    >
    > Can I use Active Directory for this sort of thing? I'm looking for a
    > code example for creating a user account, assigning permissions, et.
    >
    > If I can't, what was the old ASP, VB 6 way of doing this? I'm sure
    > theres an older interface out there somewhere.
    >
    > Thanx!
    >
    > J'son
    >

    Nicole Calinoiu Guest

  5. #4

    Default Re: Creating User Accounts with or without Active Directory

    Imagine this scenario... a small "English as 2nd language" school wants
    to give students space on their web server to post html files (each
    student can have a custom webspace).

    When a new user registers with the site (and is confirmed to be a
    student), the application is to create a new folder under the main
    virtual root for their use:

    http://www.mysmallschool.com/webspaces/<usernamehere>

    So the student can manage files in this new folder, a new FTP virtual
    directory is set up pointing to the above folder on the web server. And
    finally, the student himself is given an account on the web server with
    only read/write permissions to that specific FTP directory. The
    application is to handle all this.

    I have informed the client that I could create a special upload page
    that would be much more secure (and probably easier to implement), but
    they want it done this way so that students can use
    FrontPage/Dreamweaver to publish their files via FTP. Grrrr....

    Whew! See my dilemma? Hence my questions about Active Directory or any
    other security namespace..

    Thanx!

    J'son

    J'son Guest

  6. #5

    Default Re: Creating User Accounts with or without Active Directory

    What you've described is not really an "intranet" application. If it had
    been, the students would almost certainly have user accounts prior to
    connecting to the application.

    That said, what you want to do is certainly possible, and it can be done in
    the same way on both Windows XP and 2003. There's a sample for adding a new
    local user via System.DirectoryServices at
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;306271[/url].
    Unfortunately, the 1.x versions of the.NET Framework don't include
    functionality for manipulating file and folder permissions. However, you
    can find a managed wrapper for the required Windows API calls at
    [url]http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e6098575-dda0-48b8-9abf-e0705af065d9[/url].

    HTH,
    Nicole



    "J'son" <sitexcite@hotmail.com> wrote in message
    news:1114465044.072977.85320@l41g2000cwc.googlegro ups.com...
    > Imagine this scenario... a small "English as 2nd language" school wants
    > to give students space on their web server to post html files (each
    > student can have a custom webspace).
    >
    > When a new user registers with the site (and is confirmed to be a
    > student), the application is to create a new folder under the main
    > virtual root for their use:
    >
    > http://www.mysmallschool.com/webspaces/<usernamehere>
    >
    > So the student can manage files in this new folder, a new FTP virtual
    > directory is set up pointing to the above folder on the web server. And
    > finally, the student himself is given an account on the web server with
    > only read/write permissions to that specific FTP directory. The
    > application is to handle all this.
    >
    > I have informed the client that I could create a special upload page
    > that would be much more secure (and probably easier to implement), but
    > they want it done this way so that students can use
    > FrontPage/Dreamweaver to publish their files via FTP. Grrrr....
    >
    > Whew! See my dilemma? Hence my questions about Active Directory or any
    > other security namespace..
    >
    > Thanx!
    >
    > J'son
    >


    Nicole Calinoiu Guest

  7. #6

    Default Re: Creating User Accounts with or without Active Directory

    Nicole,

    You rock.. thanx!! This is definitely going to help out..

    Take care,

    J'son

    J'son Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139