Account Property of Active Directory/Win 2k users
-
How can I detect whether the account of a user is enabled/disabled using Active Directory? The user can be of any Win Server i.e. Win2K/WinXP/Win2K3 I am able to retrieve the other properties using Active Directory. I need to enumerate thru all the users present on the server ..... and hence I don't know their passwords and hence cannot check whether their account is enabled/disabled by authenticating using the username and the password. Any suggestion/comment is welcomed ...............
-
How can I detect whether the account of a user is enabled/disabled using Active Directory? The user can be of any Win Server i.e. Win2K/WinXP/Win2K3 I am able to retrieve the other properties using Active Directory. I need to enumerate thru all the users present on the server ..... and hence I don't know their passwords and hence cannot check whether their account is enabled/disabled by authenticating using the username and the password. Any suggestion/comment is welcomed ...............
Suvadip De wrote: How can I detect whether the account of a user is enabled/disabled using Active Directory? Have you looked at the DirectoryEntry [^] class? There are serveral articles on CP and MSDN that cover this material. - Nick Parker
My Blog | My Articles -
Suvadip De wrote: How can I detect whether the account of a user is enabled/disabled using Active Directory? Have you looked at the DirectoryEntry [^] class? There are serveral articles on CP and MSDN that cover this material. - Nick Parker
My Blog | My ArticlesThis 'flag' is actually part of a MS defined enumeration that is the value of the userAccountControl attribute. More documentation is available at: http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp Try this and see if it helps. - Bruce BRCKCC
-
This 'flag' is actually part of a MS defined enumeration that is the value of the userAccountControl attribute. More documentation is available at: http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp Try this and see if it helps. - Bruce BRCKCC
You might try replying to Suvadip so he gets the reply, it only went to me. :) - Nick Parker
My Blog | My Articles -
How can I detect whether the account of a user is enabled/disabled using Active Directory? The user can be of any Win Server i.e. Win2K/WinXP/Win2K3 I am able to retrieve the other properties using Active Directory. I need to enumerate thru all the users present on the server ..... and hence I don't know their passwords and hence cannot check whether their account is enabled/disabled by authenticating using the username and the password. Any suggestion/comment is welcomed ...............
This 'flag' is actually part of a MS defined enumeration that is the value of the userAccountControl attribute. More documentation is available at: http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp Try this and see if it helps. - Bruce BRCKCC
-
This 'flag' is actually part of a MS defined enumeration that is the value of the userAccountControl attribute. More documentation is available at: http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp Try this and see if it helps. - Bruce BRCKCC
BrcKcc wrote: _http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp_ The above link gives the following : Page Cannot Be Found We apologize for the inconvenience, but the page you are seeking cannot be found in this location. Can u provide me with the actual document (if you have it) ?
-
Suvadip De wrote: How can I detect whether the account of a user is enabled/disabled using Active Directory? Have you looked at the DirectoryEntry [^] class? There are serveral articles on CP and MSDN that cover this material. - Nick Parker
My Blog | My ArticlesNick Parker wrote: Have you looked at the DirectoryEntry [^] class? Nick, I am using the Directory Entry class to get the usernames and their details on the Active Directory and also to authenticate a user for their login. But among the property lists their isn't any option for checking whether the user's account has been disabled or enabled. Though when trying to authenticate the user provided username and password, even if correct username and password is given and if the account is disabled, I am getting error and hence authentication is failing. But thats only possible if I know both the username and password. But here, I only know the domain path, and enumerating that I am able to get the usernames only and not the passwords. So, I think, I need to get the enabled/disabled property of an user account in some different way, which I suppose is possible. And to add to that, the link provided by Bruce does not exist anymore .... Suvadip.
-
BrcKcc wrote: _http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp_ The above link gives the following : Page Cannot Be Found We apologize for the inconvenience, but the page you are seeking cannot be found in this location. Can u provide me with the actual document (if you have it) ?
Sorry. Try this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a\_useraccountcontrol.asp Sorry, the other link was bad. - Bruce BRCKCC
-
Sorry. Try this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a\_useraccountcontrol.asp Sorry, the other link was bad. - Bruce BRCKCC
Hi pal, I found the relevant doc and it contained information on my requirements. The problem now is that I am new to C# programming and facing problem to implement it. Can u help me by providing some sample code? :confused: Suvadip.