public ADActiveObject(ADSessionInfo sessionInfo, ADObject obj) { this._sdFlags = SecurityMasks.Dacl; if (obj != null) { this._adSession = ADSession.ConstructSession(sessionInfo); this._adObject = obj; return; } else { DebugLogger.LogWarning("ADActiveObject", "Constructor(ADSessionInfo,ADObject) called with null obj"); throw new ArgumentNullException("obj"); } }
public ADObjectSearcher(ADSessionInfo sessionInfo, ADObject obj) { this._searchScope = ADSearchScope.Subtree; this._filter = ADOPathUtil.CreateFilterClause(ADOperator.Like, "objectClass", "*"); this._propertyList = new List <string>(ADObject.DefaultProperties); this._timeLimit = TimeSpan.Zero; this._schemaTranslationEnabled = true; this._pageSize = 0x100; this._searchOption = null; this._autoRangeRetrieve = true; this._sdFlags = SecurityMasks.Owner | SecurityMasks.Group | SecurityMasks.Dacl; if (sessionInfo == null) { if (obj == null) { this._adSession = ADSession.ConstructSession(null); } else { this._adSession = ADSession.ConstructSession(obj.SessionInfo); } } else { this._adSession = ADSession.ConstructSession(sessionInfo); } if (obj != null) { this._adObject = obj; this._searchRoot = this._adObject.DistinguishedName; foreach (string propertyName in this._adObject.PropertyNames) { this._propertyList.Add(propertyName); } } }
internal ADAccountManagement(ADSessionInfo sessionInfo) { this._adSession = ADSession.ConstructSession(sessionInfo); }
internal ADTopologyManagement(ADSessionInfo sessionInfo) { this._adSession = ADSession.ConstructSession(sessionInfo); }