Ermittelt ob das Passwort abgelaufen ist.
/// <summary>
/// Ermittelt ob das Passwort abgelaufen ist.
/// </summary>
private bool IsExpirePassword(DirectoryEntry User)
{
const int ADS_UF_DONT_EXPIRE_PASSWD = (int)ADS_USER_FLAG.ADS_UF_DONT_EXPIRE_PASSWD;
int val = (int)User.Properties["userAccountControl"].Value;
return (val & ADS_UF_DONT_EXPIRE_PASSWD) == ADS_UF_DONT_EXPIRE_PASSWD;
}
Kommentare zum Snippet