IsAccountDisabled() public static method

public static IsAccountDisabled ( System.DirectoryServices.DirectoryEntry adUser, bool novellSupport ) : bool
adUser System.DirectoryServices.DirectoryEntry
novellSupport bool
return bool
Exemplo n.º 1
0
        private void UpdatePortalUserProperties(DirectoryEntry entry, Node node, SyncTree syncTree)
        {
            AdLog.LogObjects("Updating portal user properties", entry.Path, node.Path);

            var user = (IUser)node;

            if (_config.SyncEnabledState)
            {
                user.Enabled = !Common.IsAccountDisabled(entry, _config.NovellSupport);
            }

            Common.UpdatePortalUserCustomProperties(entry, node, _propertyMappings, _config.SyncUserName);

            // node.Save() nem kell, később mentődik
        }