Oscar P.
2005-05-24 18:00:03 UTC
I want to be able to synchronize Account Locked Out condition when they
occur in AD with associated accounts in ADAM but haven't determined what
atttibute to target in ADAM. The ms-ds-UserAccountAutoLocked attribute is
read-only, and the ms-ds-User-Account-Control-Computed attribute isn't an
attribute option in MIIS for some reason.
I can successfully disable accounts in ADAM when they are disabled in AD,
with the following code in the MapAttributesForExport Sub of a MA extension,
but am still stumped about how to Lock or Unlock. Is lockoutTime attribute
the key? I want to keep the ADAM locked accounts distinct from the ADAM
disabled accounts, in other words, I don't want to use the
msds-UserAccountDisabled attrib for both a LockOut and Disable condition in
AD.
Select Case mventry("userAccountControl").IntegerValue
Case (currentValue Or ADS_UF_NORMAL_ACCOUNT) And (Not
ADS_UF_ACCOUNTDISABLE)
csentry("msds-UserAccountDisabled").BooleanValue =
False
Case currentValue Or ADS_UF_ACCOUNTDISABLE
csentry("msds-UserAccountDisabled").BooleanValue =
True
End Select
Any ideas?
Much thanks!
Oscar
occur in AD with associated accounts in ADAM but haven't determined what
atttibute to target in ADAM. The ms-ds-UserAccountAutoLocked attribute is
read-only, and the ms-ds-User-Account-Control-Computed attribute isn't an
attribute option in MIIS for some reason.
I can successfully disable accounts in ADAM when they are disabled in AD,
with the following code in the MapAttributesForExport Sub of a MA extension,
but am still stumped about how to Lock or Unlock. Is lockoutTime attribute
the key? I want to keep the ADAM locked accounts distinct from the ADAM
disabled accounts, in other words, I don't want to use the
msds-UserAccountDisabled attrib for both a LockOut and Disable condition in
AD.
Select Case mventry("userAccountControl").IntegerValue
Case (currentValue Or ADS_UF_NORMAL_ACCOUNT) And (Not
ADS_UF_ACCOUNTDISABLE)
csentry("msds-UserAccountDisabled").BooleanValue =
False
Case currentValue Or ADS_UF_ACCOUNTDISABLE
csentry("msds-UserAccountDisabled").BooleanValue =
True
End Select
Any ideas?
Much thanks!
Oscar