Home All Groups Group Topic Archive Search About

NT User created programatically, authenticating with IIS fails

Author
10 Jul 2006 10:41 PM
enantiomer
For my IIS application, I have set the directory security for Basic
Authentication.  I have given permissions on the directory to a group
that I created called appUsers.

My problem is when I create a user manually through Computer Management
and add the user to the group, it all works fine, although I have found
that I have to restart IIS to see it right away.  When I create a user
and add it to the same group programmatically (using .NET C#), i can
never get it to work.

Something must be different when you create a user and add it to a
group through Computer Management then when you do it programatically.


Any ideas?  I have verified through Computer Management that the user
created programatically is being created and added to the group.  I
have also verified through the debugger that the user is getting its
password set correctly. 

Thanks,

Jonathan

Author
10 Jul 2006 11:57 PM
enantiomer
nevermind.  I was setting the "deny local logon" setting to the user
which didnt allow authentication. Thanks anyways,

Jonathan

enantiomer wrote:
Show quote
> For my IIS application, I have set the directory security for Basic
> Authentication.  I have given permissions on the directory to a group
> that I created called appUsers.
>
> My problem is when I create a user manually through Computer Management
> and add the user to the group, it all works fine, although I have found
> that I have to restart IIS to see it right away.  When I create a user
> and add it to the same group programmatically (using .NET C#), i can
> never get it to work.
>
> Something must be different when you create a user and add it to a
> group through Computer Management then when you do it programatically.
>
>
> Any ideas?  I have verified through Computer Management that the user
> created programatically is being created and added to the group.  I
> have also verified through the debugger that the user is getting its
> password set correctly. 
>
> Thanks,
>
> Jonathan

AddThis Social Bookmark Button