コード例 #1
0
        private void UpdateDistinguishedName(Account account, Account oldAccount)
        {
            var newName = account.FullName;

            if (NeedUpdateDistinguishedName(account, oldAccount.FullName, newName))
            {
                account.DistinguishedName = _activeDirectoryService.UpdateDistinguishedName(
                    account.DistinguishedName,
                    GetOfficeDistinguishedNameByLocation(account.Office),
                    newName);
            }
        }