public class ADUserAccountControl extends Object
Modifier and Type | Field and Description |
---|---|
static Set<Integer> |
ACCOUNT_CONTROLS |
static int |
ACCOUNT_DISABLED |
static String |
ACCOUNT_EXPIRES |
static String |
ACCOUNT_EXPIRES_NAME |
static String |
ACCOUNT_NEVER_EXPIRES |
static Set<String> |
AD_CONTROLS_DATES |
static Set<String> |
AD_SPECIAL_ATTRIBUTES |
static int |
DONT_EXPIRE_PASSWORD |
static String |
DONT_EXPIRE_PASSWORD_NAME |
static int |
ENCRYPTED_TEXT_PASSWORD_ALLOWED |
static String |
LAST_LOGON |
static int |
LOCKOUT |
static String |
LOCKOUT_TIME |
static String |
MS_USR_ACCT_CTRL_ATTR |
static String |
MSDS_USR_ACCT_CTRL_ATTR |
static int |
NORMAL_ACCOUNT |
static String |
NORMAL_DISABLED |
static String |
NORMAL_ENABLED |
static int |
PASSWD_CANT_CHANGE |
static String |
PASSWD_CANT_CHANGE_NAME |
static int |
PASSWD_NOTREQD |
static int |
PASSWORD_EXPIRED |
static String |
PASSWORD_NOTREQD_NAME |
static String |
PWD_LAST_SET |
static Set<Integer> |
READ_ONLY_CONTROLS |
static int |
SMARTCARD_REQUIRED |
static String |
SMARTCARD_REQUIRED_NAME |
static String |
WHEN_CHANGED |
static String |
WHEN_CREATED |
Constructor and Description |
---|
ADUserAccountControl() |
public static final String PWD_LAST_SET
public static final String ACCOUNT_EXPIRES
public static final String ACCOUNT_EXPIRES_NAME
public static final String ACCOUNT_NEVER_EXPIRES
public static final String LOCKOUT_TIME
public static final String LAST_LOGON
public static final String WHEN_CHANGED
public static final String WHEN_CREATED
public static final String MS_USR_ACCT_CTRL_ATTR
public static final String NORMAL_ENABLED
public static final String NORMAL_DISABLED
public static final String MSDS_USR_ACCT_CTRL_ATTR
public static final int ACCOUNT_DISABLED
public static final int LOCKOUT
public static final int PASSWD_NOTREQD
public static final String PASSWORD_NOTREQD_NAME
public static final int PASSWD_CANT_CHANGE
public static final String PASSWD_CANT_CHANGE_NAME
public static final int NORMAL_ACCOUNT
public static final int DONT_EXPIRE_PASSWORD
public static final String DONT_EXPIRE_PASSWORD_NAME
public static final int SMARTCARD_REQUIRED
public static final String SMARTCARD_REQUIRED_NAME
public static final int PASSWORD_EXPIRED
public static final int ENCRYPTED_TEXT_PASSWORD_ALLOWED
public boolean isNormalAccount()
public boolean isAccountDisabled()
public boolean isPasswordNotReq()
public boolean isPasswordCantChange()
public boolean isDontExpirePassword()
public boolean isSmartCardRequired()
public boolean isAccountLockOut()
public boolean isPasswordExpired()
public String setAccountDisabled(boolean ctrl)
public String setPasswordNotReq(boolean ctrl)
public String setDontExpirePassword(boolean ctrl)
public String setSmartCardRequired(boolean ctrl)
public Attribute addControl(Attribute attr) throws ParseException
ParseException
public BasicAttributes encodeControls(Set<Attribute> attrs) throws ParseException
ParseException
public static boolean isAccountDisabled(String status)
public static boolean isAccountLockOut(String status)
public static boolean isPasswordNotReq(String status)
public static boolean isPasswordCantChange(String status)
public static boolean isNormalAccount(String status)
public static boolean isDontExpirePassword(String status)
public static boolean isSmartCardRequired(String status)
public static boolean isPasswordExpired(String status)
public static boolean isEncryptedTextPasswordAllowed(String status)
public static ADUserAccountControl createADUserAccountControl(LdapConnection conn, String id) throws NamingException
NamingException
Copyright © 2018–2025. All rights reserved.