492 references to PropertyNames
System.DirectoryServices.AccountManagement (492)
System\DirectoryServices\AccountManagement\AccountInfo.cs (52)
29
return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _accountLockoutTime,
PropertyNames
.AcctInfoAcctLockoutTime, ref _accountLockoutTimeLoaded);
41
return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _lastLogon,
PropertyNames
.AcctInfoLastLogon, ref _lastLogonLoaded);
53
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoPermittedWorkstations))
56
return _owningPrincipal.HandleGet<PrincipalValueCollection<string>>(ref _permittedWorkstations,
PropertyNames
.AcctInfoPermittedWorkstations, ref _permittedWorkstationsLoaded);
74
return _owningPrincipal.HandleGet<byte[]>(ref _permittedLogonTimes,
PropertyNames
.AcctInfoPermittedLogonTimes, ref _permittedLogonTimesLoaded);
85
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoPermittedLogonTimes))
108
return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _expirationDate,
PropertyNames
.AcctInfoExpirationDate, ref _expirationDateChanged);
113
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoExpirationDate))
117
PropertyNames
.AcctInfoExpirationDate);
129
return _owningPrincipal.HandleGet<bool>(ref _smartcardLogonRequired,
PropertyNames
.AcctInfoSmartcardRequired, ref _smartcardLogonRequiredChanged);
134
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoSmartcardRequired))
138
PropertyNames
.AcctInfoSmartcardRequired);
150
return _owningPrincipal.HandleGet<bool>(ref _delegationPermitted,
PropertyNames
.AcctInfoDelegationPermitted, ref _delegationPermittedChanged);
155
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoDelegationPermitted))
159
PropertyNames
.AcctInfoDelegationPermitted);
171
return _owningPrincipal.HandleGet<int>(ref _badLogonCount,
PropertyNames
.AcctInfoBadLogonCount, ref _badLogonCountChanged);
183
return _owningPrincipal.HandleGet<string>(ref _homeDirectory,
PropertyNames
.AcctInfoHomeDirectory, ref _homeDirectoryChanged);
188
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoHomeDirectory))
192
PropertyNames
.AcctInfoHomeDirectory);
204
return _owningPrincipal.HandleGet<string>(ref _homeDrive,
PropertyNames
.AcctInfoHomeDrive, ref _homeDriveChanged);
209
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoHomeDrive))
213
PropertyNames
.AcctInfoHomeDrive);
225
return _owningPrincipal.HandleGet<string>(ref _scriptPath,
PropertyNames
.AcctInfoScriptPath, ref _scriptPathChanged);
230
if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal,
PropertyNames
.AcctInfoScriptPath))
234
PropertyNames
.AcctInfoScriptPath);
300
case (
PropertyNames
.AcctInfoAcctLockoutTime):
305
case (
PropertyNames
.AcctInfoLastLogon):
310
case (
PropertyNames
.AcctInfoPermittedWorkstations):
315
case (
PropertyNames
.AcctInfoPermittedLogonTimes):
321
case (
PropertyNames
.AcctInfoExpirationDate):
326
case (
PropertyNames
.AcctInfoSmartcardRequired):
331
case (
PropertyNames
.AcctInfoDelegationPermitted):
336
case (
PropertyNames
.AcctInfoBadLogonCount):
341
case (
PropertyNames
.AcctInfoHomeDirectory):
346
case (
PropertyNames
.AcctInfoHomeDrive):
351
case (
PropertyNames
.AcctInfoScriptPath):
373
case (
PropertyNames
.AcctInfoPermittedWorkstations):
376
case (
PropertyNames
.AcctInfoPermittedLogonTimes):
386
case (
PropertyNames
.AcctInfoExpirationDate):
389
case (
PropertyNames
.AcctInfoSmartcardRequired):
392
case (
PropertyNames
.AcctInfoDelegationPermitted):
395
case (
PropertyNames
.AcctInfoHomeDirectory):
398
case (
PropertyNames
.AcctInfoHomeDrive):
401
case (
PropertyNames
.AcctInfoScriptPath):
417
case (
PropertyNames
.AcctInfoPermittedWorkstations):
420
case (
PropertyNames
.AcctInfoPermittedLogonTimes):
423
case (
PropertyNames
.AcctInfoExpirationDate):
426
case (
PropertyNames
.AcctInfoSmartcardRequired):
429
case (
PropertyNames
.AcctInfoDelegationPermitted):
432
case (
PropertyNames
.AcctInfoHomeDirectory):
435
case (
PropertyNames
.AcctInfoHomeDrive):
438
case (
PropertyNames
.AcctInfoScriptPath):
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (39)
393
{
PropertyNames
.PrincipalDescription, "description", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
394
{
PropertyNames
.PrincipalDisplayName, "displayName", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
395
{
PropertyNames
.PrincipalDistinguishedName, "distinguishedName", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
396
{
PropertyNames
.PrincipalSid, "objectSid", new FromLdapConverterDelegate(SidFromLdapConverter), null},
397
{
PropertyNames
.PrincipalSamAccountName, "name", null, null},
398
{
PropertyNames
.PrincipalUserPrincipalName, "userPrincipalName", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
399
{
PropertyNames
.PrincipalGuid, "objectGuid", new FromLdapConverterDelegate(GuidFromLdapConverter), null},
400
{
PropertyNames
.PrincipalStructuralObjectClass, "objectClass", new FromLdapConverterDelegate(ObjectClassFromLdapConverter), null},
401
{
PropertyNames
.PrincipalName, "name", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
402
{
PropertyNames
.PrincipalExtensionCache, null, null, new ToLdapConverterDelegate(ExtensionCacheToLdapConverter)},
404
{
PropertyNames
.AuthenticablePrincipalEnabled, "msDS-UserAccountDisabled", new FromLdapConverterDelegate(AcctDisabledFromLdapConverter), new ToLdapConverterDelegate(AcctDisabledToLdapConverter)},
405
{
PropertyNames
.AuthenticablePrincipalCertificates, "userCertificate", new FromLdapConverterDelegate(CertFromLdapConverter), new ToLdapConverterDelegate(CertToLdap)},
407
{
PropertyNames
.GroupIsSecurityGroup, "groupType", new FromLdapConverterDelegate(GroupTypeFromLdapConverter), new ToLdapConverterDelegate(GroupTypeToLdapConverter)},
408
{
PropertyNames
.GroupGroupScope, "groupType", new FromLdapConverterDelegate(GroupTypeFromLdapConverter), new ToLdapConverterDelegate(GroupTypeToLdapConverter)},
410
{
PropertyNames
.UserGivenName, "givenName", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
411
{
PropertyNames
.UserMiddleName, "middleName", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
412
{
PropertyNames
.UserSurname, "sn", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
413
{
PropertyNames
.UserEmailAddress, "mail", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
414
{
PropertyNames
.UserVoiceTelephoneNumber, "telephoneNumber", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
415
{
PropertyNames
.UserEmployeeID, "employeeID", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
417
{
PropertyNames
.ComputerServicePrincipalNames, "servicePrincipalName", new FromLdapConverterDelegate(MultiStringFromLdapConverter), new ToLdapConverterDelegate(MultiStringToLdapConverter)},
419
{
PropertyNames
.AcctInfoAcctLockoutTime, "lockoutTime", new FromLdapConverterDelegate(GenericDateTimeFromLdapConverter), null},
420
{
PropertyNames
.AcctInfoLastLogon, "lastLogon", new FromLdapConverterDelegate(LastLogonFromLdapConverter), null},
421
{
PropertyNames
.AcctInfoLastLogon, "lastLogonTimestamp", new FromLdapConverterDelegate(LastLogonFromLdapConverter), null},
422
{
PropertyNames
.AcctInfoPermittedWorkstations, "userWorkstations", null, null},
423
{
PropertyNames
.AcctInfoPermittedLogonTimes, "logonHours", null, null},
424
{
PropertyNames
.AcctInfoExpirationDate, "accountExpires", new FromLdapConverterDelegate(AcctExpirFromLdapConverter), new ToLdapConverterDelegate(AcctExpirToLdapConverter)},
425
{
PropertyNames
.AcctInfoSmartcardRequired, "userAccountControl", null, null},
426
{
PropertyNames
.AcctInfoDelegationPermitted, "userAccountControl", null, null},
427
{
PropertyNames
.AcctInfoBadLogonCount, "badPwdCount", new FromLdapConverterDelegate(IntFromLdapConverter), null},
428
{
PropertyNames
.AcctInfoHomeDirectory, "homeDirectory", null, null},
429
{
PropertyNames
.AcctInfoHomeDrive, "homeDrive", null, null},
430
{
PropertyNames
.AcctInfoScriptPath, "scriptPath", null, null},
432
{
PropertyNames
.PwdInfoLastPasswordSet, "pwdLastSet", new FromLdapConverterDelegate(GenericDateTimeFromLdapConverter), null},
433
{
PropertyNames
.PwdInfoLastBadPasswordAttempt, "badPasswordTime", new FromLdapConverterDelegate(GenericDateTimeFromLdapConverter), null},
434
{
PropertyNames
.PwdInfoPasswordNotRequired, "ms-DS-UserPasswordNotRequired", new FromLdapConverterDelegate(BoolFromLdapConverter), new ToLdapConverterDelegate(BoolToLdapConverter)},
435
{
PropertyNames
.PwdInfoPasswordNeverExpires, "msDS-UserDontExpirePassword", new FromLdapConverterDelegate(BoolFromLdapConverter), new ToLdapConverterDelegate(BoolToLdapConverter)},
436
{
PropertyNames
.PwdInfoCannotChangePassword, "ntSecurityDescriptor", null, new ToLdapConverterDelegate(CannotChangePwdToLdapConverter)},
437
{
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption, "ms-DS-UserEncryptedTextPasswordAllowed", new FromLdapConverterDelegate(BoolFromLdapConverter), new ToLdapConverterDelegate(BoolToLdapConverter)}
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (9)
462
if (p.GetChangeStatusForProperty(
PropertyNames
.AuthenticablePrincipalEnabled))
468
bool enable = (bool)p.GetValueForProperty(
PropertyNames
.AuthenticablePrincipalEnabled);
476
if (p.GetChangeStatusForProperty(
PropertyNames
.PwdInfoCannotChangePassword))
482
SetCannotChangePasswordStatus((AuthenticablePrincipal)p, (bool)p.GetValueForProperty(
PropertyNames
.PwdInfoCannotChangePassword), true);
729
if (p.GetChangeStatusForProperty(
PropertyNames
.PrincipalName))
731
name = rdnPrefix + "=" + (string)p.GetValueForProperty(
PropertyNames
.PrincipalName);
772
p.LoadValueIntoProperty(
PropertyNames
.PrincipalName, p.GetValueForProperty(
PropertyNames
.PrincipalName));
776
((DirectoryEntry)p.GetUnderlyingObject()).Properties[baseObjectRdnPrefix].Value = (string)p.GetValueForProperty(
PropertyNames
.PrincipalName);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (51)
109
if (p.GetChangeStatusForProperty(
PropertyNames
.PrincipalName))
112
string name = (string)p.GetValueForProperty(
PropertyNames
.PrincipalName);
120
if (p.GetChangeStatusForProperty(
PropertyNames
.PrincipalSamAccountName))
124
string samAccountName = (string)p.GetValueForProperty(
PropertyNames
.PrincipalSamAccountName);
697
{
PropertyNames
.PrincipalDisplayName, "displayname", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
698
{
PropertyNames
.PrincipalDescription, "description", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
699
{
PropertyNames
.PrincipalDistinguishedName, "distinguishedname", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
700
{
PropertyNames
.PrincipalSid, "objectsid", new FromLdapConverterDelegate(SidFromLdapConverter), null},
701
{
PropertyNames
.PrincipalSamAccountName, "samaccountname", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
702
{
PropertyNames
.PrincipalUserPrincipalName, "userprincipalname", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
703
{
PropertyNames
.PrincipalGuid, "objectguid", new FromLdapConverterDelegate(GuidFromLdapConverter), null},
704
{
PropertyNames
.PrincipalStructuralObjectClass, "objectclass", new FromLdapConverterDelegate(ObjectClassFromLdapConverter), null},
705
{
PropertyNames
.PrincipalName, "name", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
706
{
PropertyNames
.PrincipalExtensionCache, null, null, new ToLdapConverterDelegate(ExtensionCacheToLdapConverter)},
708
{
PropertyNames
.AuthenticablePrincipalEnabled, "useraccountcontrol", new FromLdapConverterDelegate(UACFromLdapConverter), new ToLdapConverterDelegate(UACToLdapConverter)},
709
{
PropertyNames
.AuthenticablePrincipalCertificates, "usercertificate", new FromLdapConverterDelegate(CertFromLdapConverter), new ToLdapConverterDelegate(CertToLdap)},
711
{
PropertyNames
.GroupIsSecurityGroup, "grouptype", new FromLdapConverterDelegate(GroupTypeFromLdapConverter), new ToLdapConverterDelegate(GroupTypeToLdapConverter)},
712
{
PropertyNames
.GroupGroupScope, "grouptype", new FromLdapConverterDelegate(GroupTypeFromLdapConverter), new ToLdapConverterDelegate(GroupTypeToLdapConverter)},
714
{
PropertyNames
.UserGivenName, "givenname", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
715
{
PropertyNames
.UserMiddleName, "middlename", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
716
{
PropertyNames
.UserSurname, "sn", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
717
{
PropertyNames
.UserEmailAddress, "mail", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
718
{
PropertyNames
.UserVoiceTelephoneNumber, "telephonenumber", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
719
{
PropertyNames
.UserEmployeeID, "employeeid", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
721
{
PropertyNames
.ComputerServicePrincipalNames, "serviceprincipalname", new FromLdapConverterDelegate(MultiStringFromLdapConverter), new ToLdapConverterDelegate(MultiStringToLdapConverter)},
723
{
PropertyNames
.AcctInfoAcctLockoutTime, "lockouttime", new FromLdapConverterDelegate(GenericDateTimeFromLdapConverter), null},
724
{
PropertyNames
.AcctInfoLastLogon, "lastlogon", new FromLdapConverterDelegate(LastLogonFromLdapConverter), null},
725
{
PropertyNames
.AcctInfoLastLogon, "lastlogontimestamp", new FromLdapConverterDelegate(LastLogonFromLdapConverter), null},
726
{
PropertyNames
.AcctInfoPermittedWorkstations, "userworkstations", new FromLdapConverterDelegate(CommaStringFromLdapConverter), new ToLdapConverterDelegate(CommaStringToLdapConverter)},
727
{
PropertyNames
.AcctInfoPermittedLogonTimes, "logonhours", new FromLdapConverterDelegate(BinaryFromLdapConverter), new ToLdapConverterDelegate(BinaryToLdapConverter)},
728
{
PropertyNames
.AcctInfoExpirationDate, "accountexpires", new FromLdapConverterDelegate(AcctExpirFromLdapConverter), new ToLdapConverterDelegate(AcctExpirToLdapConverter)},
729
{
PropertyNames
.AcctInfoSmartcardRequired, "useraccountcontrol", new FromLdapConverterDelegate(UACFromLdapConverter), new ToLdapConverterDelegate(UACToLdapConverter)},
730
{
PropertyNames
.AcctInfoDelegationPermitted, "useraccountcontrol", new FromLdapConverterDelegate(UACFromLdapConverter), new ToLdapConverterDelegate(UACToLdapConverter)},
731
{
PropertyNames
.AcctInfoBadLogonCount, "badpwdcount", new FromLdapConverterDelegate(IntFromLdapConverter), null},
732
{
PropertyNames
.AcctInfoHomeDirectory, "homedirectory", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
733
{
PropertyNames
.AcctInfoHomeDrive, "homedrive", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
734
{
PropertyNames
.AcctInfoScriptPath, "scriptpath", new FromLdapConverterDelegate(StringFromLdapConverter), new ToLdapConverterDelegate(StringToLdapConverter)},
736
{
PropertyNames
.PwdInfoLastPasswordSet, "pwdlastset", new FromLdapConverterDelegate(GenericDateTimeFromLdapConverter), null},
737
{
PropertyNames
.PwdInfoLastBadPasswordAttempt, "badpasswordtime", new FromLdapConverterDelegate(GenericDateTimeFromLdapConverter), null},
738
{
PropertyNames
.PwdInfoPasswordNotRequired, "useraccountcontrol", new FromLdapConverterDelegate(UACFromLdapConverter), new ToLdapConverterDelegate(UACToLdapConverter)},
739
{
PropertyNames
.PwdInfoPasswordNeverExpires, "useraccountcontrol", new FromLdapConverterDelegate(UACFromLdapConverter), new ToLdapConverterDelegate(UACToLdapConverter)},
740
{
PropertyNames
.PwdInfoCannotChangePassword, null, null, new ToLdapConverterDelegate(CannotChangePwdToLdapConverter)},
741
{
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption, "useraccountcontrol", new FromLdapConverterDelegate(UACFromLdapConverter), new ToLdapConverterDelegate(UACToLdapConverter)}
1032
case
PropertyNames
.GroupIsSecurityGroup:
1044
case
PropertyNames
.GroupGroupScope:
1400
Debug.Assert(propertyName ==
PropertyNames
.GroupIsSecurityGroup || propertyName ==
PropertyNames
.GroupGroupScope);
1429
case
PropertyNames
.GroupIsSecurityGroup:
1440
case
PropertyNames
.GroupGroupScope:
1480
PrincipalCollection members = (PrincipalCollection)group.GetValueForProperty(
PropertyNames
.GroupMembers);
1681
Debug.Assert(propertyName ==
PropertyNames
.PwdInfoCannotChangePassword);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (20)
235
if (needToSetPassword && p.GetChangeStatusForProperty(
PropertyNames
.PwdInfoPassword))
242
string password = (string)p.GetValueForProperty(
PropertyNames
.PwdInfoPassword);
248
if (p.GetChangeStatusForProperty(
PropertyNames
.PwdInfoExpireImmediately))
253
bool expireImmediately = (bool)p.GetValueForProperty(
PropertyNames
.PwdInfoExpireImmediately);
296
if ((p is GroupPrincipal) && (p.GetChangeStatusForProperty(
PropertyNames
.GroupMembers)))
520
case
PropertyNames
.AuthenticablePrincipalEnabled:
527
case
PropertyNames
.AcctInfoSmartcardRequired:
532
case
PropertyNames
.AcctInfoDelegationPermitted:
539
case
PropertyNames
.PwdInfoPasswordNotRequired:
544
case
PropertyNames
.PwdInfoPasswordNeverExpires:
550
case
PropertyNames
.PwdInfoCannotChangePassword:
555
case
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption:
575
Debug.Assert(!string.Equals(propertyName,
PropertyNames
.PwdInfoCannotChangePassword, StringComparison.OrdinalIgnoreCase) || testCantChangePassword);
687
case
PropertyNames
.AuthenticablePrincipalEnabled:
707
case
PropertyNames
.AcctInfoSmartcardRequired:
712
case
PropertyNames
.AcctInfoDelegationPermitted:
720
case
PropertyNames
.PwdInfoPasswordNotRequired:
725
case
PropertyNames
.PwdInfoPasswordNeverExpires:
730
case
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption:
736
case
PropertyNames
.PwdInfoCannotChangePassword:
System\DirectoryServices\AccountManagement\AdvancedFilters.cs (12)
139
PropertyNames
.PwdInfoLastBadPasswordAttempt => _badPasswordAttemptChanged,
140
PropertyNames
.AcctInfoExpiredAccount => _expirationTimeChanged,
141
PropertyNames
.AcctInfoBadLogonCount => _badLogonCountChanged,
142
PropertyNames
.AcctInfoLastLogon => _logonTimeChanged,
143
PropertyNames
.AcctInfoAcctLockoutTime => _lockoutTimeChanged,
144
PropertyNames
.PwdInfoLastPasswordSet => _passwordSetTimeChanged,
165
PropertyNames
.PwdInfoLastBadPasswordAttempt => _badPasswordAttemptVal,
166
PropertyNames
.AcctInfoExpiredAccount => _expirationTimeVal,
167
PropertyNames
.AcctInfoBadLogonCount => _badLogonCountVal,
168
PropertyNames
.AcctInfoLastLogon => _logonTimeVal,
169
PropertyNames
.AcctInfoAcctLockoutTime => _lockoutTimeVal,
170
PropertyNames
.PwdInfoLastPasswordSet => _passwordSetTimeVal,
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (15)
47
return HandleGet<bool>(ref _enabled,
PropertyNames
.AuthenticablePrincipalEnabled, ref _enabledChanged);
61
PropertyNames
.AuthenticablePrincipalEnabled);
257
PropertyNames
.AuthenticablePrincipalCertificates, ref _X509Certificate2CollectionLoaded);
385
case
PropertyNames
.AuthenticablePrincipalCertificates:
391
case
PropertyNames
.AuthenticablePrincipalEnabled:
397
if (propertyName.StartsWith(
PropertyNames
.AcctInfoPrefix, StringComparison.Ordinal))
405
else if (propertyName.StartsWith(
PropertyNames
.PwdInfoPrefix, StringComparison.Ordinal))
432
case
PropertyNames
.AuthenticablePrincipalCertificates:
435
case
PropertyNames
.AuthenticablePrincipalEnabled:
448
if (propertyName.StartsWith(
PropertyNames
.AcctInfoPrefix, StringComparison.Ordinal))
455
else if (propertyName.StartsWith(
PropertyNames
.PwdInfoPrefix, StringComparison.Ordinal))
476
case
PropertyNames
.AuthenticablePrincipalCertificates:
479
case
PropertyNames
.AuthenticablePrincipalEnabled:
489
if (propertyName.StartsWith(
PropertyNames
.AcctInfoPrefix, StringComparison.Ordinal))
500
else if (propertyName.StartsWith(
PropertyNames
.PwdInfoPrefix, StringComparison.Ordinal))
System\DirectoryServices\AccountManagement\AuthZSet.cs (4)
245
g.LoadValueIntoProperty(
PropertyNames
.PrincipalDisplayName, name);
246
g.LoadValueIntoProperty(
PropertyNames
.PrincipalName, name);
248
g.LoadValueIntoProperty(
PropertyNames
.PrincipalSid, sidObj);
249
g.LoadValueIntoProperty(
PropertyNames
.GroupIsSecurityGroup, true);
System\DirectoryServices\AccountManagement\Computer.cs (4)
53
return HandleGet<PrincipalValueCollection<string>>(ref _servicePrincipalNames,
PropertyNames
.ComputerServicePrincipalNames, ref _servicePrincipalNamesLoaded);
119
case (
PropertyNames
.ComputerServicePrincipalNames):
141
PropertyNames
.ComputerServicePrincipalNames => _servicePrincipalNames.Changed,
153
PropertyNames
.ComputerServicePrincipalNames => _servicePrincipalNames,
System\DirectoryServices\AccountManagement\constants.cs (5)
104
private static readonly int s_acctInfoPrefixLength =
PropertyNames
.AcctInfoPrefix.Length;
105
private static readonly int s_pwdInfoPrefixLength =
PropertyNames
.PwdInfoPrefix.Length;
109
if (propertyName.StartsWith(
PropertyNames
.AcctInfoPrefix, StringComparison.Ordinal))
113
else if (propertyName.StartsWith(
PropertyNames
.PwdInfoPrefix, StringComparison.Ordinal))
136
{ typeof(GroupPrincipal), new ArrayList(1) {
PropertyNames
.GroupMembers } }
System\DirectoryServices\AccountManagement\Group.cs (13)
68
return HandleGet<bool>(ref _isSecurityGroup,
PropertyNames
.GroupIsSecurityGroup, ref _isSecurityGroupChanged);
81
HandleSet<bool>(ref _isSecurityGroup, value.Value, ref _isSecurityGroupChanged,
PropertyNames
.GroupIsSecurityGroup);
114
return HandleGet<GroupScope>(ref _groupScope,
PropertyNames
.GroupGroupScope, ref _groupScopeChanged);
127
HandleSet<GroupScope>(ref _groupScope, value.Value, ref _groupScopeChanged,
PropertyNames
.GroupGroupScope);
261
case
PropertyNames
.GroupIsSecurityGroup:
266
case
PropertyNames
.GroupGroupScope:
271
case
PropertyNames
.GroupMembers:
292
case
PropertyNames
.GroupIsSecurityGroup:
295
case
PropertyNames
.GroupGroupScope:
298
case
PropertyNames
.GroupMembers:
320
PropertyNames
.GroupIsSecurityGroup => _isSecurityGroup,
321
PropertyNames
.GroupGroupScope => _groupScope,
322
PropertyNames
.GroupMembers => _members,
System\DirectoryServices\AccountManagement\PasswordInfo.cs (28)
28
return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _lastPasswordSet,
PropertyNames
.PwdInfoLastPasswordSet, ref _lastPasswordSetLoaded);
40
return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _lastBadPasswordAttempt,
PropertyNames
.PwdInfoLastBadPasswordAttempt, ref _lastBadPasswordAttemptLoaded);
52
return _owningPrincipal.HandleGet<bool>(ref _passwordNotRequired,
PropertyNames
.PwdInfoPasswordNotRequired, ref _passwordNotRequiredChanged);
58
PropertyNames
.PwdInfoPasswordNotRequired);
70
return _owningPrincipal.HandleGet<bool>(ref _passwordNeverExpires,
PropertyNames
.PwdInfoPasswordNeverExpires, ref _passwordNeverExpiresChanged);
76
PropertyNames
.PwdInfoPasswordNeverExpires);
92
_owningPrincipal.HandleGet<bool>(ref _cannotChangePassword,
PropertyNames
.PwdInfoCannotChangePassword, ref _cannotChangePasswordChanged);
106
PropertyNames
.PwdInfoCannotChangePassword);
118
return _owningPrincipal.HandleGet<bool>(ref _allowReversiblePasswordEncryption,
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption, ref _allowReversiblePasswordEncryptionChanged);
124
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption);
250
case (
PropertyNames
.PwdInfoLastPasswordSet):
255
case (
PropertyNames
.PwdInfoLastBadPasswordAttempt):
260
case (
PropertyNames
.PwdInfoPasswordNotRequired):
265
case (
PropertyNames
.PwdInfoPasswordNeverExpires):
270
case (
PropertyNames
.PwdInfoCannotChangePassword):
275
case (
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption):
297
case (
PropertyNames
.PwdInfoPasswordNotRequired):
300
case (
PropertyNames
.PwdInfoPasswordNeverExpires):
303
case (
PropertyNames
.PwdInfoCannotChangePassword):
306
case (
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption):
309
case (
PropertyNames
.PwdInfoPassword):
312
case (
PropertyNames
.PwdInfoExpireImmediately):
328
case (
PropertyNames
.PwdInfoPasswordNotRequired):
331
case (
PropertyNames
.PwdInfoPasswordNeverExpires):
334
case (
PropertyNames
.PwdInfoCannotChangePassword):
337
case (
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption):
340
case (
PropertyNames
.PwdInfoPassword):
343
case (
PropertyNames
.PwdInfoExpireImmediately):
System\DirectoryServices\AccountManagement\Principal.cs (51)
70
return HandleGet<string>(ref _description,
PropertyNames
.PrincipalDescription, ref _descriptionChanged);
75
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.PrincipalDescription))
78
HandleSet<string>(ref _description, value, ref _descriptionChanged,
PropertyNames
.PrincipalDescription);
94
return HandleGet<string>(ref _displayName,
PropertyNames
.PrincipalDisplayName, ref _displayNameChanged);
99
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.PrincipalDisplayName))
102
HandleSet<string>(ref _displayName, value, ref _displayNameChanged,
PropertyNames
.PrincipalDisplayName);
120
return HandleGet<string>(ref _samName,
PropertyNames
.PrincipalSamAccountName, ref _samNameChanged);
128
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.PrincipalSamAccountName))
131
HandleSet<string>(ref _samName, value, ref _samNameChanged,
PropertyNames
.PrincipalSamAccountName);
145
return HandleGet<string>(ref _userPrincipalName,
PropertyNames
.PrincipalUserPrincipalName, ref _userPrincipalNameChanged);
150
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.PrincipalUserPrincipalName))
153
HandleSet<string>(ref _userPrincipalName, value, ref _userPrincipalNameChanged,
PropertyNames
.PrincipalUserPrincipalName);
168
return HandleGet<SecurityIdentifier>(ref _sid,
PropertyNames
.PrincipalSid, ref _sidChanged);
182
return HandleGet<Nullable<Guid>>(ref _guid,
PropertyNames
.PrincipalGuid, ref _guidChanged);
196
return HandleGet<string>(ref _distinguishedName,
PropertyNames
.PrincipalDistinguishedName, ref _distinguishedNameChanged);
211
return HandleGet<string>(ref _structuralObjectClass,
PropertyNames
.PrincipalStructuralObjectClass, ref _structuralObjectClassChanged);
236
return HandleGet<string>(ref _samName,
PropertyNames
.PrincipalSamAccountName, ref _samNameChanged);
240
return HandleGet<string>(ref _name,
PropertyNames
.PrincipalName, ref _nameChanged);
248
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.PrincipalName))
255
HandleSet<string>(ref _samName, value, ref _samNameChanged,
PropertyNames
.PrincipalSamAccountName);
259
HandleSet<string>(ref _name, value, ref _nameChanged,
PropertyNames
.PrincipalName);
402
_ctx.QueryCtx.Load(this,
PropertyNames
.PrincipalName);
1087
case
PropertyNames
.PrincipalDisplayName:
1092
case
PropertyNames
.PrincipalDescription:
1097
case
PropertyNames
.PrincipalSamAccountName:
1102
case
PropertyNames
.PrincipalUserPrincipalName:
1107
case
PropertyNames
.PrincipalSid:
1113
case
PropertyNames
.PrincipalGuid:
1119
case
PropertyNames
.PrincipalDistinguishedName:
1124
case
PropertyNames
.PrincipalStructuralObjectClass:
1129
case
PropertyNames
.PrincipalName:
1152
PropertyNames
.PrincipalDisplayName => _displayNameChanged,
1153
PropertyNames
.PrincipalDescription => _descriptionChanged,
1154
PropertyNames
.PrincipalSamAccountName => _samNameChanged,
1155
PropertyNames
.PrincipalUserPrincipalName => _userPrincipalNameChanged,
1156
PropertyNames
.PrincipalSid => _sidChanged,
1157
PropertyNames
.PrincipalGuid => _guidChanged,
1158
PropertyNames
.PrincipalDistinguishedName => _distinguishedNameChanged,
1159
PropertyNames
.PrincipalStructuralObjectClass => _structuralObjectClassChanged,
1160
PropertyNames
.PrincipalName => _nameChanged,
1161
PropertyNames
.PrincipalExtensionCache => _extensionCacheChanged,
1187
case
PropertyNames
.PrincipalDisplayName:
1190
case
PropertyNames
.PrincipalDescription:
1193
case
PropertyNames
.PrincipalSamAccountName:
1196
case
PropertyNames
.PrincipalUserPrincipalName:
1199
case
PropertyNames
.PrincipalSid:
1202
case
PropertyNames
.PrincipalGuid:
1205
case
PropertyNames
.PrincipalDistinguishedName:
1208
case
PropertyNames
.PrincipalStructuralObjectClass:
1211
case
PropertyNames
.PrincipalName:
1214
case
PropertyNames
.PrincipalExtensionCache:
System\DirectoryServices\AccountManagement\QbeFilterDescription.cs (40)
125
public const string PropertyNameStatic =
PropertyNames
.PrincipalDescription;
131
public const string PropertyNameStatic =
PropertyNames
.PrincipalSid;
137
public const string PropertyNameStatic =
PropertyNames
.PrincipalSamAccountName;
143
public const string PropertyNameStatic =
PropertyNames
.PrincipalDistinguishedName;
148
public const string PropertyNameStatic =
PropertyNames
.PrincipalGuid;
153
public const string PropertyNameStatic =
PropertyNames
.PrincipalIdentityClaims;
159
public const string PropertyNameStatic =
PropertyNames
.PrincipalUserPrincipalName;
164
public const string PropertyNameStatic =
PropertyNames
.PrincipalStructuralObjectClass;
169
public const string PropertyNameStatic =
PropertyNames
.PrincipalName;
175
public const string PropertyNameStatic =
PropertyNames
.PrincipalDisplayName;
180
public const string PropertyNameStatic =
PropertyNames
.AuthenticablePrincipalCertificates;
186
public const string PropertyNameStatic =
PropertyNames
.AuthenticablePrincipalEnabled;
192
public const string PropertyNameStatic =
PropertyNames
.AcctInfoPermittedWorkstations;
198
public const string PropertyNameStatic =
PropertyNames
.AcctInfoPermittedLogonTimes;
204
public const string PropertyNameStatic =
PropertyNames
.AcctInfoExpirationDate;
210
public const string PropertyNameStatic =
PropertyNames
.AcctInfoSmartcardRequired;
216
public const string PropertyNameStatic =
PropertyNames
.AcctInfoDelegationPermitted;
222
public const string PropertyNameStatic =
PropertyNames
.AcctInfoHomeDirectory;
228
public const string PropertyNameStatic =
PropertyNames
.AcctInfoHomeDrive;
234
public const string PropertyNameStatic =
PropertyNames
.AcctInfoScriptPath;
240
public const string PropertyNameStatic =
PropertyNames
.PwdInfoPasswordNotRequired;
246
public const string PropertyNameStatic =
PropertyNames
.PwdInfoPasswordNeverExpires;
252
public const string PropertyNameStatic =
PropertyNames
.PwdInfoCannotChangePassword;
258
public const string PropertyNameStatic =
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption;
264
public const string PropertyNameStatic =
PropertyNames
.UserGivenName;
270
public const string PropertyNameStatic =
PropertyNames
.UserMiddleName;
276
public const string PropertyNameStatic =
PropertyNames
.UserSurname;
282
public const string PropertyNameStatic =
PropertyNames
.UserEmailAddress;
288
public const string PropertyNameStatic =
PropertyNames
.UserVoiceTelephoneNumber;
294
public const string PropertyNameStatic =
PropertyNames
.UserEmployeeID;
300
public const string PropertyNameStatic =
PropertyNames
.GroupIsSecurityGroup;
306
public const string PropertyNameStatic =
PropertyNames
.GroupGroupScope;
312
public const string PropertyNameStatic =
PropertyNames
.ComputerServicePrincipalNames;
318
public const string PropertyNameStatic =
PropertyNames
.PrincipalExtensionCache;
324
public const string PropertyNameStatic =
PropertyNames
.PwdInfoLastBadPasswordAttempt;
330
public const string PropertyNameStatic =
PropertyNames
.AcctInfoLastLogon;
336
public const string PropertyNameStatic =
PropertyNames
.AcctInfoAcctLockoutTime;
342
public const string PropertyNameStatic =
PropertyNames
.AcctInfoExpiredAccount;
348
public const string PropertyNameStatic =
PropertyNames
.PwdInfoLastPasswordSet;
354
public const string PropertyNameStatic =
PropertyNames
.AcctInfoBadLogonCount;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (1)
330
return (SDSUtils.StatusFromAccountControl((int)values[0],
PropertyNames
.PwdInfoCannotChangePassword));
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (63)
135
if (p.GetChangeStatusForProperty(
PropertyNames
.PwdInfoPassword))
142
string password = (string)p.GetValueForProperty(
PropertyNames
.PwdInfoPassword);
159
if (!p.GetChangeStatusForProperty(
PropertyNames
.PrincipalSamAccountName))
644
{
PropertyNames
.PrincipalDisplayName, typeof(UserPrincipal), "FullName", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)},
645
{
PropertyNames
.PrincipalDescription, typeof(UserPrincipal), "Description", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)},
646
{
PropertyNames
.PrincipalDescription, typeof(GroupPrincipal), "Description", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)},
647
{
PropertyNames
.PrincipalSamAccountName, typeof(Principal), "Name", new FromWinNTConverterDelegate(SamAccountNameFromWinNTConverter), null},
648
{
PropertyNames
.PrincipalSid, typeof(Principal), "objectSid", new FromWinNTConverterDelegate(SidFromWinNTConverter), null },
649
{
PropertyNames
.PrincipalDistinguishedName, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
650
{
PropertyNames
.PrincipalGuid, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
651
{
PropertyNames
.PrincipalUserPrincipalName, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
653
{
PropertyNames
.PrincipalName, typeof(Principal), "Name", new FromWinNTConverterDelegate(SamAccountNameFromWinNTConverter), null},
658
{
PropertyNames
.AuthenticablePrincipalEnabled, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
659
{
PropertyNames
.AuthenticablePrincipalCertificates, typeof(UserPrincipal), "*******", new FromWinNTConverterDelegate(CertFromWinNTConverter), new ToWinNTConverterDelegate(CertToWinNT)},
662
{
PropertyNames
.GroupIsSecurityGroup, typeof(GroupPrincipal), "*******", new FromWinNTConverterDelegate(GroupTypeFromWinNTConverter), new ToWinNTConverterDelegate(GroupTypeToWinNTConverter)},
663
{
PropertyNames
.GroupGroupScope, typeof(GroupPrincipal), "groupType", new FromWinNTConverterDelegate(GroupTypeFromWinNTConverter), new ToWinNTConverterDelegate(GroupTypeToWinNTConverter)},
666
{
PropertyNames
.UserEmailAddress, typeof(UserPrincipal), "*******", new FromWinNTConverterDelegate(EmailFromWinNTConverter), new ToWinNTConverterDelegate(EmailToWinNTConverter)},
669
{
PropertyNames
.AcctInfoLastLogon, typeof(UserPrincipal), "LastLogin", new FromWinNTConverterDelegate(DateFromWinNTConverter), null},
670
{
PropertyNames
.AcctInfoPermittedWorkstations, typeof(UserPrincipal), "LoginWorkstations", new FromWinNTConverterDelegate(MultiStringFromWinNTConverter), new ToWinNTConverterDelegate(MultiStringToWinNTConverter)},
671
{
PropertyNames
.AcctInfoPermittedLogonTimes, typeof(UserPrincipal), "LoginHours", new FromWinNTConverterDelegate(BinaryFromWinNTConverter), new ToWinNTConverterDelegate(LogonHoursToWinNTConverter)},
672
{
PropertyNames
.AcctInfoExpirationDate, typeof(UserPrincipal), "AccountExpirationDate", new FromWinNTConverterDelegate(DateFromWinNTConverter), new ToWinNTConverterDelegate(AcctExpirDateToNTConverter)},
673
{
PropertyNames
.AcctInfoSmartcardRequired, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
674
{
PropertyNames
.AcctInfoDelegationPermitted, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
675
{
PropertyNames
.AcctInfoBadLogonCount, typeof(UserPrincipal), "BadPasswordAttempts", new FromWinNTConverterDelegate(IntFromWinNTConverter), null},
676
{
PropertyNames
.AcctInfoHomeDirectory, typeof(UserPrincipal), "HomeDirectory", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)},
677
{
PropertyNames
.AcctInfoHomeDrive, typeof(UserPrincipal), "HomeDirDrive", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)},
678
{
PropertyNames
.AcctInfoScriptPath, typeof(UserPrincipal), "LoginScript", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)},
681
{
PropertyNames
.PwdInfoLastPasswordSet, typeof(UserPrincipal), "PasswordAge", new FromWinNTConverterDelegate(ElapsedTimeFromWinNTConverter), null},
682
{
PropertyNames
.PwdInfoLastBadPasswordAttempt, typeof(UserPrincipal), "*******", new FromWinNTConverterDelegate(LastBadPwdAttemptFromWinNTConverter), null},
683
{
PropertyNames
.PwdInfoPasswordNotRequired, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
684
{
PropertyNames
.PwdInfoPasswordNeverExpires, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
685
{
PropertyNames
.PwdInfoCannotChangePassword, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
686
{
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption, typeof(UserPrincipal), "UserFlags", new FromWinNTConverterDelegate(UserFlagsFromWinNTConverter), new ToWinNTConverterDelegate(UserFlagsToWinNTConverter)},
691
{
PropertyNames
.UserGivenName, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
692
{
PropertyNames
.UserMiddleName, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
693
{
PropertyNames
.UserSurname, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
694
{
PropertyNames
.UserVoiceTelephoneNumber, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
695
{
PropertyNames
.UserEmployeeID, typeof(UserPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
697
{
PropertyNames
.PrincipalDisplayName, typeof(GroupPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
698
{
PropertyNames
.PrincipalDisplayName, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
700
{
PropertyNames
.PrincipalDescription, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
702
{
PropertyNames
.AuthenticablePrincipalEnabled, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
704
{
PropertyNames
.AuthenticablePrincipalCertificates, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
706
{
PropertyNames
.ComputerServicePrincipalNames, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
708
{
PropertyNames
.AcctInfoPermittedWorkstations, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
709
{
PropertyNames
.AcctInfoPermittedLogonTimes, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
710
{
PropertyNames
.AcctInfoExpirationDate, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
711
{
PropertyNames
.AcctInfoSmartcardRequired, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
712
{
PropertyNames
.AcctInfoDelegationPermitted, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
713
{
PropertyNames
.AcctInfoHomeDirectory, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
714
{
PropertyNames
.AcctInfoHomeDrive, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
715
{
PropertyNames
.AcctInfoScriptPath, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
717
{
PropertyNames
.PwdInfoPasswordNotRequired, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
718
{
PropertyNames
.PwdInfoPasswordNeverExpires, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
719
{
PropertyNames
.PwdInfoCannotChangePassword, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)},
720
{
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}
823
p.LoadValueIntoProperty(
PropertyNames
.GroupIsSecurityGroup, (object)true);
825
if (propertyName ==
PropertyNames
.GroupIsSecurityGroup)
831
Debug.Assert(propertyName ==
PropertyNames
.GroupGroupScope);
928
Debug.Assert(propertyName ==
PropertyNames
.AcctInfoPermittedLogonTimes);
960
if (propertyName ==
PropertyNames
.GroupIsSecurityGroup)
968
Debug.Assert(propertyName ==
PropertyNames
.GroupGroupScope);
1010
PrincipalCollection members = (PrincipalCollection)group.GetValueForProperty(
PropertyNames
.GroupMembers);
System\DirectoryServices\AccountManagement\StoreCtx.cs (41)
255
PropertyNames
.PrincipalDisplayName,
256
PropertyNames
.PrincipalDescription,
257
PropertyNames
.PrincipalSamAccountName,
258
PropertyNames
.PrincipalUserPrincipalName,
259
PropertyNames
.PrincipalGuid,
260
PropertyNames
.PrincipalSid,
261
PropertyNames
.PrincipalStructuralObjectClass,
262
PropertyNames
.PrincipalName,
263
PropertyNames
.PrincipalDistinguishedName,
264
PropertyNames
.PrincipalExtensionCache
269
PropertyNames
.AuthenticablePrincipalEnabled,
270
PropertyNames
.AuthenticablePrincipalCertificates,
271
PropertyNames
.PwdInfoLastBadPasswordAttempt,
272
PropertyNames
.AcctInfoExpirationDate,
273
PropertyNames
.AcctInfoExpiredAccount,
274
PropertyNames
.AcctInfoLastLogon,
275
PropertyNames
.AcctInfoAcctLockoutTime,
276
PropertyNames
.AcctInfoBadLogonCount,
277
PropertyNames
.PwdInfoLastPasswordSet
283
PropertyNames
.UserGivenName,
284
PropertyNames
.UserMiddleName,
285
PropertyNames
.UserSurname,
286
PropertyNames
.UserEmailAddress,
287
PropertyNames
.UserVoiceTelephoneNumber,
288
PropertyNames
.UserEmployeeID,
290
PropertyNames
.AcctInfoPermittedWorkstations,
291
PropertyNames
.AcctInfoPermittedLogonTimes,
292
PropertyNames
.AcctInfoSmartcardRequired,
293
PropertyNames
.AcctInfoDelegationPermitted,
294
PropertyNames
.AcctInfoHomeDirectory,
295
PropertyNames
.AcctInfoHomeDrive,
296
PropertyNames
.AcctInfoScriptPath,
298
PropertyNames
.PwdInfoPasswordNotRequired,
299
PropertyNames
.PwdInfoPasswordNeverExpires,
300
PropertyNames
.PwdInfoCannotChangePassword,
301
PropertyNames
.PwdInfoAllowReversiblePasswordEncryption
306
PropertyNames
.GroupIsSecurityGroup,
307
PropertyNames
.GroupGroupScope
312
PropertyNames
.ComputerServicePrincipalNames
335
if (p.GetChangeStatusForProperty(
PropertyNames
.AcctInfoExpirationDate) &&
336
p.GetChangeStatusForProperty(
PropertyNames
.AcctInfoExpiredAccount))
System\DirectoryServices\AccountManagement\UnknownPrincipal.cs (3)
36
up.LoadValueIntoProperty(
PropertyNames
.PrincipalDisplayName, name);
39
up.LoadValueIntoProperty(
PropertyNames
.PrincipalName, name);
45
up.LoadValueIntoProperty(
PropertyNames
.PrincipalSid, sidObj);
System\DirectoryServices\AccountManagement\User.cs (36)
51
return HandleGet<string>(ref _givenName,
PropertyNames
.UserGivenName, ref _givenNameChanged);
56
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.UserGivenName))
60
PropertyNames
.UserGivenName);
72
return HandleGet<string>(ref _middleName,
PropertyNames
.UserMiddleName, ref _middleNameChanged);
77
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.UserMiddleName))
81
PropertyNames
.UserMiddleName);
93
return HandleGet<string>(ref _surname,
PropertyNames
.UserSurname, ref _surnameChanged);
98
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.UserSurname))
102
PropertyNames
.UserSurname);
114
return HandleGet<string>(ref _emailAddress,
PropertyNames
.UserEmailAddress, ref _emailAddressChanged);
119
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.UserEmailAddress))
123
PropertyNames
.UserEmailAddress);
135
return HandleGet<string>(ref _voiceTelephoneNumber,
PropertyNames
.UserVoiceTelephoneNumber, ref _voiceTelephoneNumberChanged);
140
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.UserVoiceTelephoneNumber))
144
PropertyNames
.UserVoiceTelephoneNumber);
156
return HandleGet<string>(ref _employeeID,
PropertyNames
.UserEmployeeID, ref _employeeIDChanged);
161
if (!GetStoreCtxToUse().IsValidProperty(this,
PropertyNames
.UserEmployeeID))
165
PropertyNames
.UserEmployeeID);
330
case (
PropertyNames
.UserGivenName):
335
case (
PropertyNames
.UserMiddleName):
340
case (
PropertyNames
.UserSurname):
345
case (
PropertyNames
.UserEmailAddress):
350
case (
PropertyNames
.UserVoiceTelephoneNumber):
355
case (
PropertyNames
.UserEmployeeID):
377
PropertyNames
.UserGivenName => _givenNameChanged == LoadState.Changed,
378
PropertyNames
.UserMiddleName => _middleNameChanged == LoadState.Changed,
379
PropertyNames
.UserSurname => _surnameChanged == LoadState.Changed,
380
PropertyNames
.UserEmailAddress => _emailAddressChanged == LoadState.Changed,
381
PropertyNames
.UserVoiceTelephoneNumber => _voiceTelephoneNumberChanged == LoadState.Changed,
382
PropertyNames
.UserEmployeeID => _employeeIDChanged == LoadState.Changed,
394
PropertyNames
.UserGivenName => _givenName,
395
PropertyNames
.UserMiddleName => _middleName,
396
PropertyNames
.UserSurname => _surname,
397
PropertyNames
.UserEmailAddress => _emailAddress,
398
PropertyNames
.UserVoiceTelephoneNumber => _voiceTelephoneNumber,
399
PropertyNames
.UserEmployeeID => _employeeID,
System\DirectoryServices\AccountManagement\Utils.cs (5)
698
g.LoadValueIntoProperty(
PropertyNames
.PrincipalDisplayName, nt4Name);
701
g.LoadValueIntoProperty(
PropertyNames
.PrincipalName, name);
704
g.LoadValueIntoProperty(
PropertyNames
.PrincipalSamAccountName, name);
710
g.LoadValueIntoProperty(
PropertyNames
.PrincipalSid, sidObj);
712
g.LoadValueIntoProperty(
PropertyNames
.GroupIsSecurityGroup, true);