Hi,
You can check if the account is enabled for authentication by checking the
AuthenticablePrincipal.Enabled Property[
^]
Usage should be something like this:
using (PrincipalContext oPrincipalContext = GetPrincipalContext()){
using (UserPrincipal oUserPrincipal = oPrincipalContext.FindByIdentity(oPrincipalContext, sUserName)){
Console.Out.Write(oUserPrincipal.Enabled);
}
}
... hope it helps.