NT User created programatically, authenticating with IIS fails

  • Thread starter Thread starter enantiomer
  • Start date Start date
E

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
 
nevermind. I was setting the "deny local logon" setting to the user
which didnt allow authentication. Thanks anyways,

Jonathan
 
Back
Top