492 references to PropertyNames
System.DirectoryServices.AccountManagement (492)
System\DirectoryServices\AccountManagement\AccountInfo.cs (52)
29return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _accountLockoutTime, PropertyNames.AcctInfoAcctLockoutTime, ref _accountLockoutTimeLoaded); 41return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _lastLogon, PropertyNames.AcctInfoLastLogon, ref _lastLogonLoaded); 53if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoPermittedWorkstations)) 56return _owningPrincipal.HandleGet<PrincipalValueCollection<string>>(ref _permittedWorkstations, PropertyNames.AcctInfoPermittedWorkstations, ref _permittedWorkstationsLoaded); 74return _owningPrincipal.HandleGet<byte[]>(ref _permittedLogonTimes, PropertyNames.AcctInfoPermittedLogonTimes, ref _permittedLogonTimesLoaded); 85if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoPermittedLogonTimes)) 108return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _expirationDate, PropertyNames.AcctInfoExpirationDate, ref _expirationDateChanged); 113if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoExpirationDate)) 117PropertyNames.AcctInfoExpirationDate); 129return _owningPrincipal.HandleGet<bool>(ref _smartcardLogonRequired, PropertyNames.AcctInfoSmartcardRequired, ref _smartcardLogonRequiredChanged); 134if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoSmartcardRequired)) 138PropertyNames.AcctInfoSmartcardRequired); 150return _owningPrincipal.HandleGet<bool>(ref _delegationPermitted, PropertyNames.AcctInfoDelegationPermitted, ref _delegationPermittedChanged); 155if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoDelegationPermitted)) 159PropertyNames.AcctInfoDelegationPermitted); 171return _owningPrincipal.HandleGet<int>(ref _badLogonCount, PropertyNames.AcctInfoBadLogonCount, ref _badLogonCountChanged); 183return _owningPrincipal.HandleGet<string>(ref _homeDirectory, PropertyNames.AcctInfoHomeDirectory, ref _homeDirectoryChanged); 188if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoHomeDirectory)) 192PropertyNames.AcctInfoHomeDirectory); 204return _owningPrincipal.HandleGet<string>(ref _homeDrive, PropertyNames.AcctInfoHomeDrive, ref _homeDriveChanged); 209if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoHomeDrive)) 213PropertyNames.AcctInfoHomeDrive); 225return _owningPrincipal.HandleGet<string>(ref _scriptPath, PropertyNames.AcctInfoScriptPath, ref _scriptPathChanged); 230if (!_owningPrincipal.GetStoreCtxToUse().IsValidProperty(_owningPrincipal, PropertyNames.AcctInfoScriptPath)) 234PropertyNames.AcctInfoScriptPath); 300case (PropertyNames.AcctInfoAcctLockoutTime): 305case (PropertyNames.AcctInfoLastLogon): 310case (PropertyNames.AcctInfoPermittedWorkstations): 315case (PropertyNames.AcctInfoPermittedLogonTimes): 321case (PropertyNames.AcctInfoExpirationDate): 326case (PropertyNames.AcctInfoSmartcardRequired): 331case (PropertyNames.AcctInfoDelegationPermitted): 336case (PropertyNames.AcctInfoBadLogonCount): 341case (PropertyNames.AcctInfoHomeDirectory): 346case (PropertyNames.AcctInfoHomeDrive): 351case (PropertyNames.AcctInfoScriptPath): 373case (PropertyNames.AcctInfoPermittedWorkstations): 376case (PropertyNames.AcctInfoPermittedLogonTimes): 386case (PropertyNames.AcctInfoExpirationDate): 389case (PropertyNames.AcctInfoSmartcardRequired): 392case (PropertyNames.AcctInfoDelegationPermitted): 395case (PropertyNames.AcctInfoHomeDirectory): 398case (PropertyNames.AcctInfoHomeDrive): 401case (PropertyNames.AcctInfoScriptPath): 417case (PropertyNames.AcctInfoPermittedWorkstations): 420case (PropertyNames.AcctInfoPermittedLogonTimes): 423case (PropertyNames.AcctInfoExpirationDate): 426case (PropertyNames.AcctInfoSmartcardRequired): 429case (PropertyNames.AcctInfoDelegationPermitted): 432case (PropertyNames.AcctInfoHomeDirectory): 435case (PropertyNames.AcctInfoHomeDrive): 438case (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)
462if (p.GetChangeStatusForProperty(PropertyNames.AuthenticablePrincipalEnabled)) 468bool enable = (bool)p.GetValueForProperty(PropertyNames.AuthenticablePrincipalEnabled); 476if (p.GetChangeStatusForProperty(PropertyNames.PwdInfoCannotChangePassword)) 482SetCannotChangePasswordStatus((AuthenticablePrincipal)p, (bool)p.GetValueForProperty(PropertyNames.PwdInfoCannotChangePassword), true); 729if (p.GetChangeStatusForProperty(PropertyNames.PrincipalName)) 731name = rdnPrefix + "=" + (string)p.GetValueForProperty(PropertyNames.PrincipalName); 772p.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)
109if (p.GetChangeStatusForProperty(PropertyNames.PrincipalName)) 112string name = (string)p.GetValueForProperty(PropertyNames.PrincipalName); 120if (p.GetChangeStatusForProperty(PropertyNames.PrincipalSamAccountName)) 124string 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)} 1032case PropertyNames.GroupIsSecurityGroup: 1044case PropertyNames.GroupGroupScope: 1400Debug.Assert(propertyName == PropertyNames.GroupIsSecurityGroup || propertyName == PropertyNames.GroupGroupScope); 1429case PropertyNames.GroupIsSecurityGroup: 1440case PropertyNames.GroupGroupScope: 1480PrincipalCollection members = (PrincipalCollection)group.GetValueForProperty(PropertyNames.GroupMembers); 1681Debug.Assert(propertyName == PropertyNames.PwdInfoCannotChangePassword);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (20)
235if (needToSetPassword && p.GetChangeStatusForProperty(PropertyNames.PwdInfoPassword)) 242string password = (string)p.GetValueForProperty(PropertyNames.PwdInfoPassword); 248if (p.GetChangeStatusForProperty(PropertyNames.PwdInfoExpireImmediately)) 253bool expireImmediately = (bool)p.GetValueForProperty(PropertyNames.PwdInfoExpireImmediately); 296if ((p is GroupPrincipal) && (p.GetChangeStatusForProperty(PropertyNames.GroupMembers))) 520case PropertyNames.AuthenticablePrincipalEnabled: 527case PropertyNames.AcctInfoSmartcardRequired: 532case PropertyNames.AcctInfoDelegationPermitted: 539case PropertyNames.PwdInfoPasswordNotRequired: 544case PropertyNames.PwdInfoPasswordNeverExpires: 550case PropertyNames.PwdInfoCannotChangePassword: 555case PropertyNames.PwdInfoAllowReversiblePasswordEncryption: 575Debug.Assert(!string.Equals(propertyName, PropertyNames.PwdInfoCannotChangePassword, StringComparison.OrdinalIgnoreCase) || testCantChangePassword); 687case PropertyNames.AuthenticablePrincipalEnabled: 707case PropertyNames.AcctInfoSmartcardRequired: 712case PropertyNames.AcctInfoDelegationPermitted: 720case PropertyNames.PwdInfoPasswordNotRequired: 725case PropertyNames.PwdInfoPasswordNeverExpires: 730case PropertyNames.PwdInfoAllowReversiblePasswordEncryption: 736case PropertyNames.PwdInfoCannotChangePassword:
System\DirectoryServices\AccountManagement\AdvancedFilters.cs (12)
139PropertyNames.PwdInfoLastBadPasswordAttempt => _badPasswordAttemptChanged, 140PropertyNames.AcctInfoExpiredAccount => _expirationTimeChanged, 141PropertyNames.AcctInfoBadLogonCount => _badLogonCountChanged, 142PropertyNames.AcctInfoLastLogon => _logonTimeChanged, 143PropertyNames.AcctInfoAcctLockoutTime => _lockoutTimeChanged, 144PropertyNames.PwdInfoLastPasswordSet => _passwordSetTimeChanged, 165PropertyNames.PwdInfoLastBadPasswordAttempt => _badPasswordAttemptVal, 166PropertyNames.AcctInfoExpiredAccount => _expirationTimeVal, 167PropertyNames.AcctInfoBadLogonCount => _badLogonCountVal, 168PropertyNames.AcctInfoLastLogon => _logonTimeVal, 169PropertyNames.AcctInfoAcctLockoutTime => _lockoutTimeVal, 170PropertyNames.PwdInfoLastPasswordSet => _passwordSetTimeVal,
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (15)
47return HandleGet<bool>(ref _enabled, PropertyNames.AuthenticablePrincipalEnabled, ref _enabledChanged); 61PropertyNames.AuthenticablePrincipalEnabled); 257PropertyNames.AuthenticablePrincipalCertificates, ref _X509Certificate2CollectionLoaded); 385case PropertyNames.AuthenticablePrincipalCertificates: 391case PropertyNames.AuthenticablePrincipalEnabled: 397if (propertyName.StartsWith(PropertyNames.AcctInfoPrefix, StringComparison.Ordinal)) 405else if (propertyName.StartsWith(PropertyNames.PwdInfoPrefix, StringComparison.Ordinal)) 432case PropertyNames.AuthenticablePrincipalCertificates: 435case PropertyNames.AuthenticablePrincipalEnabled: 448if (propertyName.StartsWith(PropertyNames.AcctInfoPrefix, StringComparison.Ordinal)) 455else if (propertyName.StartsWith(PropertyNames.PwdInfoPrefix, StringComparison.Ordinal)) 476case PropertyNames.AuthenticablePrincipalCertificates: 479case PropertyNames.AuthenticablePrincipalEnabled: 489if (propertyName.StartsWith(PropertyNames.AcctInfoPrefix, StringComparison.Ordinal)) 500else if (propertyName.StartsWith(PropertyNames.PwdInfoPrefix, StringComparison.Ordinal))
System\DirectoryServices\AccountManagement\AuthZSet.cs (4)
245g.LoadValueIntoProperty(PropertyNames.PrincipalDisplayName, name); 246g.LoadValueIntoProperty(PropertyNames.PrincipalName, name); 248g.LoadValueIntoProperty(PropertyNames.PrincipalSid, sidObj); 249g.LoadValueIntoProperty(PropertyNames.GroupIsSecurityGroup, true);
System\DirectoryServices\AccountManagement\Computer.cs (4)
53return HandleGet<PrincipalValueCollection<string>>(ref _servicePrincipalNames, PropertyNames.ComputerServicePrincipalNames, ref _servicePrincipalNamesLoaded); 119case (PropertyNames.ComputerServicePrincipalNames): 141PropertyNames.ComputerServicePrincipalNames => _servicePrincipalNames.Changed, 153PropertyNames.ComputerServicePrincipalNames => _servicePrincipalNames,
System\DirectoryServices\AccountManagement\constants.cs (5)
104private static readonly int s_acctInfoPrefixLength = PropertyNames.AcctInfoPrefix.Length; 105private static readonly int s_pwdInfoPrefixLength = PropertyNames.PwdInfoPrefix.Length; 109if (propertyName.StartsWith(PropertyNames.AcctInfoPrefix, StringComparison.Ordinal)) 113else if (propertyName.StartsWith(PropertyNames.PwdInfoPrefix, StringComparison.Ordinal)) 136{ typeof(GroupPrincipal), new ArrayList(1) { PropertyNames.GroupMembers } }
System\DirectoryServices\AccountManagement\Group.cs (13)
68return HandleGet<bool>(ref _isSecurityGroup, PropertyNames.GroupIsSecurityGroup, ref _isSecurityGroupChanged); 81HandleSet<bool>(ref _isSecurityGroup, value.Value, ref _isSecurityGroupChanged, PropertyNames.GroupIsSecurityGroup); 114return HandleGet<GroupScope>(ref _groupScope, PropertyNames.GroupGroupScope, ref _groupScopeChanged); 127HandleSet<GroupScope>(ref _groupScope, value.Value, ref _groupScopeChanged, PropertyNames.GroupGroupScope); 261case PropertyNames.GroupIsSecurityGroup: 266case PropertyNames.GroupGroupScope: 271case PropertyNames.GroupMembers: 292case PropertyNames.GroupIsSecurityGroup: 295case PropertyNames.GroupGroupScope: 298case PropertyNames.GroupMembers: 320PropertyNames.GroupIsSecurityGroup => _isSecurityGroup, 321PropertyNames.GroupGroupScope => _groupScope, 322PropertyNames.GroupMembers => _members,
System\DirectoryServices\AccountManagement\PasswordInfo.cs (28)
28return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _lastPasswordSet, PropertyNames.PwdInfoLastPasswordSet, ref _lastPasswordSetLoaded); 40return _owningPrincipal.HandleGet<Nullable<DateTime>>(ref _lastBadPasswordAttempt, PropertyNames.PwdInfoLastBadPasswordAttempt, ref _lastBadPasswordAttemptLoaded); 52return _owningPrincipal.HandleGet<bool>(ref _passwordNotRequired, PropertyNames.PwdInfoPasswordNotRequired, ref _passwordNotRequiredChanged); 58PropertyNames.PwdInfoPasswordNotRequired); 70return _owningPrincipal.HandleGet<bool>(ref _passwordNeverExpires, PropertyNames.PwdInfoPasswordNeverExpires, ref _passwordNeverExpiresChanged); 76PropertyNames.PwdInfoPasswordNeverExpires); 92_owningPrincipal.HandleGet<bool>(ref _cannotChangePassword, PropertyNames.PwdInfoCannotChangePassword, ref _cannotChangePasswordChanged); 106PropertyNames.PwdInfoCannotChangePassword); 118return _owningPrincipal.HandleGet<bool>(ref _allowReversiblePasswordEncryption, PropertyNames.PwdInfoAllowReversiblePasswordEncryption, ref _allowReversiblePasswordEncryptionChanged); 124PropertyNames.PwdInfoAllowReversiblePasswordEncryption); 250case (PropertyNames.PwdInfoLastPasswordSet): 255case (PropertyNames.PwdInfoLastBadPasswordAttempt): 260case (PropertyNames.PwdInfoPasswordNotRequired): 265case (PropertyNames.PwdInfoPasswordNeverExpires): 270case (PropertyNames.PwdInfoCannotChangePassword): 275case (PropertyNames.PwdInfoAllowReversiblePasswordEncryption): 297case (PropertyNames.PwdInfoPasswordNotRequired): 300case (PropertyNames.PwdInfoPasswordNeverExpires): 303case (PropertyNames.PwdInfoCannotChangePassword): 306case (PropertyNames.PwdInfoAllowReversiblePasswordEncryption): 309case (PropertyNames.PwdInfoPassword): 312case (PropertyNames.PwdInfoExpireImmediately): 328case (PropertyNames.PwdInfoPasswordNotRequired): 331case (PropertyNames.PwdInfoPasswordNeverExpires): 334case (PropertyNames.PwdInfoCannotChangePassword): 337case (PropertyNames.PwdInfoAllowReversiblePasswordEncryption): 340case (PropertyNames.PwdInfoPassword): 343case (PropertyNames.PwdInfoExpireImmediately):
System\DirectoryServices\AccountManagement\Principal.cs (51)
70return HandleGet<string>(ref _description, PropertyNames.PrincipalDescription, ref _descriptionChanged); 75if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.PrincipalDescription)) 78HandleSet<string>(ref _description, value, ref _descriptionChanged, PropertyNames.PrincipalDescription); 94return HandleGet<string>(ref _displayName, PropertyNames.PrincipalDisplayName, ref _displayNameChanged); 99if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.PrincipalDisplayName)) 102HandleSet<string>(ref _displayName, value, ref _displayNameChanged, PropertyNames.PrincipalDisplayName); 120return HandleGet<string>(ref _samName, PropertyNames.PrincipalSamAccountName, ref _samNameChanged); 128if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.PrincipalSamAccountName)) 131HandleSet<string>(ref _samName, value, ref _samNameChanged, PropertyNames.PrincipalSamAccountName); 145return HandleGet<string>(ref _userPrincipalName, PropertyNames.PrincipalUserPrincipalName, ref _userPrincipalNameChanged); 150if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.PrincipalUserPrincipalName)) 153HandleSet<string>(ref _userPrincipalName, value, ref _userPrincipalNameChanged, PropertyNames.PrincipalUserPrincipalName); 168return HandleGet<SecurityIdentifier>(ref _sid, PropertyNames.PrincipalSid, ref _sidChanged); 182return HandleGet<Nullable<Guid>>(ref _guid, PropertyNames.PrincipalGuid, ref _guidChanged); 196return HandleGet<string>(ref _distinguishedName, PropertyNames.PrincipalDistinguishedName, ref _distinguishedNameChanged); 211return HandleGet<string>(ref _structuralObjectClass, PropertyNames.PrincipalStructuralObjectClass, ref _structuralObjectClassChanged); 236return HandleGet<string>(ref _samName, PropertyNames.PrincipalSamAccountName, ref _samNameChanged); 240return HandleGet<string>(ref _name, PropertyNames.PrincipalName, ref _nameChanged); 248if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.PrincipalName)) 255HandleSet<string>(ref _samName, value, ref _samNameChanged, PropertyNames.PrincipalSamAccountName); 259HandleSet<string>(ref _name, value, ref _nameChanged, PropertyNames.PrincipalName); 402_ctx.QueryCtx.Load(this, PropertyNames.PrincipalName); 1087case PropertyNames.PrincipalDisplayName: 1092case PropertyNames.PrincipalDescription: 1097case PropertyNames.PrincipalSamAccountName: 1102case PropertyNames.PrincipalUserPrincipalName: 1107case PropertyNames.PrincipalSid: 1113case PropertyNames.PrincipalGuid: 1119case PropertyNames.PrincipalDistinguishedName: 1124case PropertyNames.PrincipalStructuralObjectClass: 1129case PropertyNames.PrincipalName: 1152PropertyNames.PrincipalDisplayName => _displayNameChanged, 1153PropertyNames.PrincipalDescription => _descriptionChanged, 1154PropertyNames.PrincipalSamAccountName => _samNameChanged, 1155PropertyNames.PrincipalUserPrincipalName => _userPrincipalNameChanged, 1156PropertyNames.PrincipalSid => _sidChanged, 1157PropertyNames.PrincipalGuid => _guidChanged, 1158PropertyNames.PrincipalDistinguishedName => _distinguishedNameChanged, 1159PropertyNames.PrincipalStructuralObjectClass => _structuralObjectClassChanged, 1160PropertyNames.PrincipalName => _nameChanged, 1161PropertyNames.PrincipalExtensionCache => _extensionCacheChanged, 1187case PropertyNames.PrincipalDisplayName: 1190case PropertyNames.PrincipalDescription: 1193case PropertyNames.PrincipalSamAccountName: 1196case PropertyNames.PrincipalUserPrincipalName: 1199case PropertyNames.PrincipalSid: 1202case PropertyNames.PrincipalGuid: 1205case PropertyNames.PrincipalDistinguishedName: 1208case PropertyNames.PrincipalStructuralObjectClass: 1211case PropertyNames.PrincipalName: 1214case PropertyNames.PrincipalExtensionCache:
System\DirectoryServices\AccountManagement\QbeFilterDescription.cs (40)
125public const string PropertyNameStatic = PropertyNames.PrincipalDescription; 131public const string PropertyNameStatic = PropertyNames.PrincipalSid; 137public const string PropertyNameStatic = PropertyNames.PrincipalSamAccountName; 143public const string PropertyNameStatic = PropertyNames.PrincipalDistinguishedName; 148public const string PropertyNameStatic = PropertyNames.PrincipalGuid; 153public const string PropertyNameStatic = PropertyNames.PrincipalIdentityClaims; 159public const string PropertyNameStatic = PropertyNames.PrincipalUserPrincipalName; 164public const string PropertyNameStatic = PropertyNames.PrincipalStructuralObjectClass; 169public const string PropertyNameStatic = PropertyNames.PrincipalName; 175public const string PropertyNameStatic = PropertyNames.PrincipalDisplayName; 180public const string PropertyNameStatic = PropertyNames.AuthenticablePrincipalCertificates; 186public const string PropertyNameStatic = PropertyNames.AuthenticablePrincipalEnabled; 192public const string PropertyNameStatic = PropertyNames.AcctInfoPermittedWorkstations; 198public const string PropertyNameStatic = PropertyNames.AcctInfoPermittedLogonTimes; 204public const string PropertyNameStatic = PropertyNames.AcctInfoExpirationDate; 210public const string PropertyNameStatic = PropertyNames.AcctInfoSmartcardRequired; 216public const string PropertyNameStatic = PropertyNames.AcctInfoDelegationPermitted; 222public const string PropertyNameStatic = PropertyNames.AcctInfoHomeDirectory; 228public const string PropertyNameStatic = PropertyNames.AcctInfoHomeDrive; 234public const string PropertyNameStatic = PropertyNames.AcctInfoScriptPath; 240public const string PropertyNameStatic = PropertyNames.PwdInfoPasswordNotRequired; 246public const string PropertyNameStatic = PropertyNames.PwdInfoPasswordNeverExpires; 252public const string PropertyNameStatic = PropertyNames.PwdInfoCannotChangePassword; 258public const string PropertyNameStatic = PropertyNames.PwdInfoAllowReversiblePasswordEncryption; 264public const string PropertyNameStatic = PropertyNames.UserGivenName; 270public const string PropertyNameStatic = PropertyNames.UserMiddleName; 276public const string PropertyNameStatic = PropertyNames.UserSurname; 282public const string PropertyNameStatic = PropertyNames.UserEmailAddress; 288public const string PropertyNameStatic = PropertyNames.UserVoiceTelephoneNumber; 294public const string PropertyNameStatic = PropertyNames.UserEmployeeID; 300public const string PropertyNameStatic = PropertyNames.GroupIsSecurityGroup; 306public const string PropertyNameStatic = PropertyNames.GroupGroupScope; 312public const string PropertyNameStatic = PropertyNames.ComputerServicePrincipalNames; 318public const string PropertyNameStatic = PropertyNames.PrincipalExtensionCache; 324public const string PropertyNameStatic = PropertyNames.PwdInfoLastBadPasswordAttempt; 330public const string PropertyNameStatic = PropertyNames.AcctInfoLastLogon; 336public const string PropertyNameStatic = PropertyNames.AcctInfoAcctLockoutTime; 342public const string PropertyNameStatic = PropertyNames.AcctInfoExpiredAccount; 348public const string PropertyNameStatic = PropertyNames.PwdInfoLastPasswordSet; 354public const string PropertyNameStatic = PropertyNames.AcctInfoBadLogonCount;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (1)
330return (SDSUtils.StatusFromAccountControl((int)values[0], PropertyNames.PwdInfoCannotChangePassword));
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (63)
135if (p.GetChangeStatusForProperty(PropertyNames.PwdInfoPassword)) 142string password = (string)p.GetValueForProperty(PropertyNames.PwdInfoPassword); 159if (!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)} 823p.LoadValueIntoProperty(PropertyNames.GroupIsSecurityGroup, (object)true); 825if (propertyName == PropertyNames.GroupIsSecurityGroup) 831Debug.Assert(propertyName == PropertyNames.GroupGroupScope); 928Debug.Assert(propertyName == PropertyNames.AcctInfoPermittedLogonTimes); 960if (propertyName == PropertyNames.GroupIsSecurityGroup) 968Debug.Assert(propertyName == PropertyNames.GroupGroupScope); 1010PrincipalCollection members = (PrincipalCollection)group.GetValueForProperty(PropertyNames.GroupMembers);
System\DirectoryServices\AccountManagement\StoreCtx.cs (41)
255PropertyNames.PrincipalDisplayName, 256PropertyNames.PrincipalDescription, 257PropertyNames.PrincipalSamAccountName, 258PropertyNames.PrincipalUserPrincipalName, 259PropertyNames.PrincipalGuid, 260PropertyNames.PrincipalSid, 261PropertyNames.PrincipalStructuralObjectClass, 262PropertyNames.PrincipalName, 263PropertyNames.PrincipalDistinguishedName, 264PropertyNames.PrincipalExtensionCache 269PropertyNames.AuthenticablePrincipalEnabled, 270PropertyNames.AuthenticablePrincipalCertificates, 271PropertyNames.PwdInfoLastBadPasswordAttempt, 272PropertyNames.AcctInfoExpirationDate, 273PropertyNames.AcctInfoExpiredAccount, 274PropertyNames.AcctInfoLastLogon, 275PropertyNames.AcctInfoAcctLockoutTime, 276PropertyNames.AcctInfoBadLogonCount, 277PropertyNames.PwdInfoLastPasswordSet 283PropertyNames.UserGivenName, 284PropertyNames.UserMiddleName, 285PropertyNames.UserSurname, 286PropertyNames.UserEmailAddress, 287PropertyNames.UserVoiceTelephoneNumber, 288PropertyNames.UserEmployeeID, 290PropertyNames.AcctInfoPermittedWorkstations, 291PropertyNames.AcctInfoPermittedLogonTimes, 292PropertyNames.AcctInfoSmartcardRequired, 293PropertyNames.AcctInfoDelegationPermitted, 294PropertyNames.AcctInfoHomeDirectory, 295PropertyNames.AcctInfoHomeDrive, 296PropertyNames.AcctInfoScriptPath, 298PropertyNames.PwdInfoPasswordNotRequired, 299PropertyNames.PwdInfoPasswordNeverExpires, 300PropertyNames.PwdInfoCannotChangePassword, 301PropertyNames.PwdInfoAllowReversiblePasswordEncryption 306PropertyNames.GroupIsSecurityGroup, 307PropertyNames.GroupGroupScope 312PropertyNames.ComputerServicePrincipalNames 335if (p.GetChangeStatusForProperty(PropertyNames.AcctInfoExpirationDate) && 336p.GetChangeStatusForProperty(PropertyNames.AcctInfoExpiredAccount))
System\DirectoryServices\AccountManagement\UnknownPrincipal.cs (3)
36up.LoadValueIntoProperty(PropertyNames.PrincipalDisplayName, name); 39up.LoadValueIntoProperty(PropertyNames.PrincipalName, name); 45up.LoadValueIntoProperty(PropertyNames.PrincipalSid, sidObj);
System\DirectoryServices\AccountManagement\User.cs (36)
51return HandleGet<string>(ref _givenName, PropertyNames.UserGivenName, ref _givenNameChanged); 56if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.UserGivenName)) 60PropertyNames.UserGivenName); 72return HandleGet<string>(ref _middleName, PropertyNames.UserMiddleName, ref _middleNameChanged); 77if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.UserMiddleName)) 81PropertyNames.UserMiddleName); 93return HandleGet<string>(ref _surname, PropertyNames.UserSurname, ref _surnameChanged); 98if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.UserSurname)) 102PropertyNames.UserSurname); 114return HandleGet<string>(ref _emailAddress, PropertyNames.UserEmailAddress, ref _emailAddressChanged); 119if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.UserEmailAddress)) 123PropertyNames.UserEmailAddress); 135return HandleGet<string>(ref _voiceTelephoneNumber, PropertyNames.UserVoiceTelephoneNumber, ref _voiceTelephoneNumberChanged); 140if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.UserVoiceTelephoneNumber)) 144PropertyNames.UserVoiceTelephoneNumber); 156return HandleGet<string>(ref _employeeID, PropertyNames.UserEmployeeID, ref _employeeIDChanged); 161if (!GetStoreCtxToUse().IsValidProperty(this, PropertyNames.UserEmployeeID)) 165PropertyNames.UserEmployeeID); 330case (PropertyNames.UserGivenName): 335case (PropertyNames.UserMiddleName): 340case (PropertyNames.UserSurname): 345case (PropertyNames.UserEmailAddress): 350case (PropertyNames.UserVoiceTelephoneNumber): 355case (PropertyNames.UserEmployeeID): 377PropertyNames.UserGivenName => _givenNameChanged == LoadState.Changed, 378PropertyNames.UserMiddleName => _middleNameChanged == LoadState.Changed, 379PropertyNames.UserSurname => _surnameChanged == LoadState.Changed, 380PropertyNames.UserEmailAddress => _emailAddressChanged == LoadState.Changed, 381PropertyNames.UserVoiceTelephoneNumber => _voiceTelephoneNumberChanged == LoadState.Changed, 382PropertyNames.UserEmployeeID => _employeeIDChanged == LoadState.Changed, 394PropertyNames.UserGivenName => _givenName, 395PropertyNames.UserMiddleName => _middleName, 396PropertyNames.UserSurname => _surname, 397PropertyNames.UserEmailAddress => _emailAddress, 398PropertyNames.UserVoiceTelephoneNumber => _voiceTelephoneNumber, 399PropertyNames.UserEmployeeID => _employeeID,
System\DirectoryServices\AccountManagement\Utils.cs (5)
698g.LoadValueIntoProperty(PropertyNames.PrincipalDisplayName, nt4Name); 701g.LoadValueIntoProperty(PropertyNames.PrincipalName, name); 704g.LoadValueIntoProperty(PropertyNames.PrincipalSamAccountName, name); 710g.LoadValueIntoProperty(PropertyNames.PrincipalSid, sidObj); 712g.LoadValueIntoProperty(PropertyNames.GroupIsSecurityGroup, true);