PC Review


Reply
Thread Tools Rate Thread

ADSI Problem

 
 
=?Utf-8?B?VmlrYXMgTWFuZ2hhbmk=?=
Guest
Posts: n/a
 
      28th Jul 2006
Hi
Can anyone tell me how I can check the status of an account in Active
Directory using C#.
I mean, I need to know whether, Account is locked, Password expired or
Password needs to be changed at next logon, etc. The problem is that in all
these cases, .Net throws a generic exception and there is no way for me to
know what was the exact cause of the error.
This is a little urgent.

Thanks in advance
Vikas Manghani

 
Reply With Quote
 
 
 
 
Marc Scheuner
Guest
Posts: n/a
 
      1st Aug 2006
>Can anyone tell me how I can check the status of an account in Active
>Directory using C#.
>I mean, I need to know whether, Account is locked, Password expired or
>Password needs to be changed at next logon, etc. The problem is that in all
>these cases, .Net throws a generic exception and there is no way for me to
>know what was the exact cause of the error.


The problem is not .NET - it's LDAP. Whether your user logs in when
his account is disabled or he's locked out, or when his password is
expired or an invalid password has been entered all result in the same
error message. There's nothing you can do to change that, I'm afraid.

You can check for "is that account disabled?" from an admin
perspective - but the user logging on has no way of telling, sorry.

Marc
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Service Problem Checking ADSI Jm Microsoft VB .NET 0 15th Dec 2004 02:30 AM
Openquery and ADSI Problem =?Utf-8?B?SmFtZXMgU2NodWxlcg==?= Microsoft ASP .NET 1 31st Oct 2004 04:33 PM
ADSI PRoblem =?Utf-8?B?ZGlub28=?= Microsoft ASP .NET 0 20th Aug 2004 09:09 PM
Re: ADSI Problem Patrick Santry Microsoft ASP .NET 0 2nd Jan 2004 07:28 PM
ADSI Problem Amit Microsoft ASP .NET 1 2nd Jan 2004 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:32 AM.