public virtual void Delete() { DebugLogger.LogInfo(ADSession._debugCategory, string.Concat("Delete: ref count = ", this._referenceCount)); if (0 >= this.Release()) { lock (ADSession._sessionCache) { if (0 < this.ReferenceCount) { return; } else { ADSession._sessionCache.DeleteEntry(this._info); } } DebugLogger.LogInfo(ADSession._debugCategory, "Delete: ref count is 0, destroying object"); IADSession aDSession = this._storeAccess as IADSession; if (aDSession != null) { lock (this._handleLock) { if (this._handle != null) { aDSession.Delete(this._handle); this._handle = null; this._deleted = true; } } } } }
void Microsoft.ActiveDirectory.Management.IADSyncOperations.AbandonSearch(ADSessionHandle handle, ADSearchRequest request) { ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { internalHandle.AbandonSearch(request); } }
private ADDirectoryServiceConnection GetInternalHandle(ADSessionHandle handle) { ADDirectoryServiceConnection adwsConnection = null; if (handle != null && handle.Handle != null) { adwsConnection = handle.Handle as ADDirectoryServiceConnection; } return adwsConnection; }
private AdwsConnection GetInternalHandle(ADSessionHandle handle) { AdwsConnection adwsConnection = null; if (handle != null && handle.Handle != null) { adwsConnection = handle.Handle as AdwsConnection; } return adwsConnection; }
ChangePasswordResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.ChangePassword(ADSessionHandle handle, ChangePasswordRequest request) { ChangePasswordResponse changePasswordResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { changePasswordResponse = internalHandle.ChangePassword(request); } return changePasswordResponse; }
GetADGroupMemberResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADGroupMember(ADSessionHandle handle, GetADGroupMemberRequest request) { GetADGroupMemberResponse aDGroupMember = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDGroupMember = internalHandle.GetADGroupMember(request); } return aDGroupMember; }
GetADPrincipalAuthorizationGroupResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADPrincipalAuthorizationGroup(ADSessionHandle handle, GetADPrincipalAuthorizationGroupRequest request) { GetADPrincipalAuthorizationGroupResponse aDPrincipalAuthorizationGroup = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDPrincipalAuthorizationGroup = internalHandle.GetADPrincipalAuthorizationGroup(request); } return aDPrincipalAuthorizationGroup; }
private ADDirectoryServiceConnection GetInternalHandle(ADSessionHandle handle) { ADDirectoryServiceConnection adwsConnection = null; if (handle != null && handle.Handle != null) { adwsConnection = handle.Handle as ADDirectoryServiceConnection; } return(adwsConnection); }
ADAddResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.Add(ADSessionHandle handle, ADAddRequest request) { ADAddResponse aDAddResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDAddResponse = internalHandle.Create(request); this.CheckAndThrowReferralException(aDAddResponse); ADStoreAccess.ThrowExceptionForResultCodeError(aDAddResponse.ResultCode, aDAddResponse.ErrorMessage, null); } return(aDAddResponse); }
private void Init() { if (!this._disposed) { if (this._acctMgmt == null) { this._sessionHandle = this._adSession.GetSessionHandle(); this._acctMgmt = this._adSession.GetAccountManagementInterface(); } return; } else { throw new ObjectDisposedException(this.GetType().Name); } }
private void Init() { if (!this._disposed) { if (this._syncOps == null) { this._sessionHandle = this._adSession.GetSessionHandle(); this._syncOps = this._adSession.GetSyncOperationsInterface(); this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo); } return; } else { throw new ObjectDisposedException(this.GetType().Name); } }
bool Microsoft.ActiveDirectory.Management.IADSession.Delete(ADSessionHandle handle) { bool flag = true; if (handle != null && handle.Handle != null) { ADDirectoryServiceConnection adwsConnection = handle.Handle as ADDirectoryServiceConnection; if (adwsConnection == null) { flag = false; } else { adwsConnection.Dispose(); } } return(flag); }
private bool Create() { lock (this._handleLock) { if (this._handle == null && !this._deleted) { IADSession aDSession = this._storeAccess as IADSession; this._handle = aDSession.Create(this._info); } } if (this._handle != null) { return(true); } else { return(false); } }
object Microsoft.ActiveDirectory.Management.IADSession.GetOption(ADSessionHandle handle, int option) { ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); object serverName = null; if (internalHandle != null) { ADStoreAccess.LdapSessionOption ldapSessionOption = (ADStoreAccess.LdapSessionOption)option; if (ldapSessionOption != ADStoreAccess.LdapSessionOption.LDAP_OPT_HOST_NAME) { object[] objArray = new object[1]; objArray[0] = serverName; throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, StringResources.NotSupportedSessionOption, objArray)); } else { serverName = internalHandle.ServerName; } } return(serverName); }
private void Init() { object obj; if (!this._disposed) { if (this._syncOps == null) { if (string.IsNullOrEmpty(this._adObject.DistinguishedName)) { string str = "ADActiveObject"; string str1 = "Init: DistinguishedName is {0}"; object[] objArray = new object[1]; object[] objArray1 = objArray; int num = 0; if (this._adObject.DistinguishedName == null) { obj = "null"; } else { obj = "empty"; } objArray1[num] = obj; DebugLogger.LogInfo(str, str1, objArray); } this._sessionHandle = this._adSession.GetSessionHandle(); this._syncOps = this._adSession.GetSyncOperationsInterface(); this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo); } return; } else { throw new ObjectDisposedException(this.GetType().Name); } }
TranslateNameResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.TranslateName(ADSessionHandle handle, TranslateNameRequest request) { TranslateNameResponse translateNameResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { translateNameResponse = internalHandle.TranslateName(request); } return translateNameResponse; }
object Microsoft.ActiveDirectory.Management.IADSession.GetOption(ADSessionHandle handle, int option) { AdwsConnection internalHandle = this.GetInternalHandle(handle); object serverName = null; if (internalHandle != null) { ADStoreAccess.LdapSessionOption ldapSessionOption = (ADStoreAccess.LdapSessionOption)option; if (ldapSessionOption != ADStoreAccess.LdapSessionOption.LDAP_OPT_HOST_NAME) { object[] objArray = new object[1]; objArray[0] = serverName; throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, StringResources.NotSupportedSessionOption, objArray)); } else { serverName = internalHandle.ServerName; } } return serverName; }
public Microsoft.ActiveDirectory.CustomActions.SetPasswordResponse SetPassword(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.SetPasswordRequest request) { throw new NotImplementedException(); }
private void Init() { if (!this._disposed) { if (this._syncOps == null) { this._sessionHandle = this._adSession.GetSessionHandle(); this._syncOps = this._adSession.GetSyncOperationsInterface(); this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo); } return; } else { throw new ObjectDisposedException(this.GetType().Name); } }
SetPasswordResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.SetPassword(ADSessionHandle handle, SetPasswordRequest request) { SetPasswordResponse setPasswordResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { setPasswordResponse = internalHandle.SetPassword(request); } return setPasswordResponse; }
public ADModifyDNResponse ModifyDN (ADSessionHandle handle, ADModifyDNRequest request) { throw new NotImplementedException (); }
GetADPrincipalGroupMembershipResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADPrincipalGroupMembership(ADSessionHandle handle, GetADPrincipalGroupMembershipRequest request) { GetADPrincipalGroupMembershipResponse aDPrincipalGroupMembership = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDPrincipalGroupMembership = internalHandle.GetADPrincipalGroupMembership(request); } return(aDPrincipalGroupMembership); }
GetADForestResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.GetADForest(ADSessionHandle handle, GetADForestRequest request) { GetADForestResponse aDForest = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDForest = internalHandle.GetADForest(request); } return aDForest; }
public ADDeleteResponse Delete(ADSessionHandle handle, ADDeleteRequest request) { throw new NotImplementedException(); }
public ADModifyDNResponse ModifyDN(ADSessionHandle handle, ADModifyDNRequest request) { throw new NotImplementedException(); }
public ADAddResponse Add(ADSessionHandle handle, ADAddRequest request) { throw new NotImplementedException(); }
public void AbandonSearch(ADSessionHandle handle, ADSearchRequest request) { throw new NotImplementedException(); }
private void Init() { object obj; if (!this._disposed) { if (this._syncOps == null) { if (string.IsNullOrEmpty(this._adObject.DistinguishedName)) { string str = "ADActiveObject"; string str1 = "Init: DistinguishedName is {0}"; object[] objArray = new object[1]; object[] objArray1 = objArray; int num = 0; if (this._adObject.DistinguishedName == null) { obj = "null"; } else { obj = "empty"; } objArray1[num] = obj; DebugLogger.LogInfo(str, str1, objArray); } this._sessionHandle = this._adSession.GetSessionHandle(); this._syncOps = this._adSession.GetSyncOperationsInterface(); this._typeConverter = new ADTypeConverter(this._adSession.SessionInfo); } return; } else { throw new ObjectDisposedException(this.GetType().Name); } }
void Microsoft.ActiveDirectory.Management.IADSyncOperations.AbandonSearch(ADSessionHandle handle, ADSearchRequest request) { AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { internalHandle.AbandonSearch(request); } }
SetPasswordResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.SetPassword(ADSessionHandle handle, SetPasswordRequest request) { SetPasswordResponse setPasswordResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { setPasswordResponse = internalHandle.SetPassword(request); } return(setPasswordResponse); }
ChangeOptionalFeatureResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.ChangeOptionalFeature(ADSessionHandle handle, ChangeOptionalFeatureRequest request) { ChangeOptionalFeatureResponse changeOptionalFeatureResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { changeOptionalFeatureResponse = internalHandle.ChangeOptionalFeature(request); } return changeOptionalFeatureResponse; }
ChangePasswordResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.ChangePassword(ADSessionHandle handle, ChangePasswordRequest request) { ChangePasswordResponse changePasswordResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { changePasswordResponse = internalHandle.ChangePassword(request); } return(changePasswordResponse); }
public Microsoft.ActiveDirectory.CustomActions.ChangeOptionalFeatureResponse ChangeOptionalFeature (ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.ChangeOptionalFeatureRequest request) { throw new NotImplementedException (); }
TranslateNameResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.TranslateName(ADSessionHandle handle, TranslateNameRequest request) { TranslateNameResponse translateNameResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { translateNameResponse = internalHandle.TranslateName(request); } return(translateNameResponse); }
public virtual void Delete() { DebugLogger.LogInfo(ADSession._debugCategory, string.Concat("Delete: ref count = ", this._referenceCount)); if (0 >= this.Release()) { lock (ADSession._sessionCache) { if (0 < this.ReferenceCount) { return; } else { ADSession._sessionCache.DeleteEntry(this._info); } } DebugLogger.LogInfo(ADSession._debugCategory, "Delete: ref count is 0, destroying object"); IADSession aDSession = this._storeAccess as IADSession; if (aDSession != null) { lock (this._handleLock) { if (this._handle != null) { aDSession.Delete(this._handle); this._handle = null; this._deleted = true; } } } } }
public Microsoft.ActiveDirectory.CustomActions.TranslateNameResponse TranslateName (ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.TranslateNameRequest request) { throw new NotImplementedException (); }
GetADPrincipalAuthorizationGroupResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADPrincipalAuthorizationGroup(ADSessionHandle handle, GetADPrincipalAuthorizationGroupRequest request) { GetADPrincipalAuthorizationGroupResponse aDPrincipalAuthorizationGroup = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDPrincipalAuthorizationGroup = internalHandle.GetADPrincipalAuthorizationGroup(request); } return(aDPrincipalAuthorizationGroup); }
public Microsoft.ActiveDirectory.CustomActions.SetPasswordResponse SetPassword (ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.SetPasswordRequest request) { throw new NotImplementedException (); }
public Microsoft.ActiveDirectory.CustomActions.TranslateNameResponse TranslateName(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.TranslateNameRequest request) { throw new NotImplementedException(); }
bool Microsoft.ActiveDirectory.Management.IADSession.SetOption(ADSessionHandle handle, int option, object value) { throw new NotSupportedException(); }
public Microsoft.ActiveDirectory.CustomActions.GetADForestResponse GetADForest (ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.GetADForestRequest request) { throw new NotImplementedException (); }
public Microsoft.ActiveDirectory.CustomActions.GetADPrincipalGroupMembershipResponse GetADPrincipalGroupMembership (ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.GetADPrincipalGroupMembershipRequest request) { throw new NotImplementedException (); }
bool Microsoft.ActiveDirectory.Management.IADSession.Delete(ADSessionHandle handle) { bool flag = true; if (handle != null && handle.Handle != null) { AdwsConnection adwsConnection = handle.Handle as AdwsConnection; if (adwsConnection == null) { flag = false; } else { adwsConnection.Dispose(); } } return flag; }
public Microsoft.ActiveDirectory.CustomActions.MoveADOperationMasterRoleResponse MoveADOperationMasterRole (ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.MoveADOperationMasterRoleRequest request) { throw new NotImplementedException (); }
bool Microsoft.ActiveDirectory.Management.IADSession.SetOption(ADSessionHandle handle, int option, object value) { throw new NotSupportedException(); }
ChangeOptionalFeatureResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.ChangeOptionalFeature(ADSessionHandle handle, ChangeOptionalFeatureRequest request) { ChangeOptionalFeatureResponse changeOptionalFeatureResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { changeOptionalFeatureResponse = internalHandle.ChangeOptionalFeature(request); } return(changeOptionalFeatureResponse); }
ADSearchResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.Search(ADSessionHandle handle, ADSearchRequest request) { ADSearchResponse aDSearchResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDSearchResponse = internalHandle.Search(request); this.CheckAndThrowReferralException(aDSearchResponse); ADStoreAccess.ThrowExceptionForResultCodeError(aDSearchResponse.ResultCode, aDSearchResponse.ErrorMessage, null); } return aDSearchResponse; }
GetADForestResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.GetADForest(ADSessionHandle handle, GetADForestRequest request) { GetADForestResponse aDForest = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDForest = internalHandle.GetADForest(request); } return(aDForest); }
GetADDomainControllerResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.GetADDomainController(ADSessionHandle handle, GetADDomainControllerRequest request) { GetADDomainControllerResponse aDDomainController = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDDomainController = internalHandle.GetADDomainController(request); } return aDDomainController; }
MoveADOperationMasterRoleResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.MoveADOperationMasterRole(ADSessionHandle handle, MoveADOperationMasterRoleRequest request) { MoveADOperationMasterRoleResponse moveADOperationMasterRoleResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { moveADOperationMasterRoleResponse = internalHandle.MoveADOperationMasterRole(request); } return(moveADOperationMasterRoleResponse); }
MoveADOperationMasterRoleResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.MoveADOperationMasterRole(ADSessionHandle handle, MoveADOperationMasterRoleRequest request) { MoveADOperationMasterRoleResponse moveADOperationMasterRoleResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { moveADOperationMasterRoleResponse = internalHandle.MoveADOperationMasterRole(request); } return moveADOperationMasterRoleResponse; }
public Microsoft.ActiveDirectory.CustomActions.ChangeOptionalFeatureResponse ChangeOptionalFeature(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.ChangeOptionalFeatureRequest request) { throw new NotImplementedException(); }
GetADDomainResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.GetADDomain(ADSessionHandle handle, GetADDomainRequest request) { GetADDomainResponse aDDomain = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDDomain = internalHandle.GetADDomain(request); } return aDDomain; }
public Microsoft.ActiveDirectory.CustomActions.GetADForestResponse GetADForest(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.GetADForestRequest request) { throw new NotImplementedException(); }
GetADPrincipalGroupMembershipResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADPrincipalGroupMembership(ADSessionHandle handle, GetADPrincipalGroupMembershipRequest request) { GetADPrincipalGroupMembershipResponse aDPrincipalGroupMembership = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDPrincipalGroupMembership = internalHandle.GetADPrincipalGroupMembership(request); } return aDPrincipalGroupMembership; }
public Microsoft.ActiveDirectory.CustomActions.MoveADOperationMasterRoleResponse MoveADOperationMasterRole(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.MoveADOperationMasterRoleRequest request) { throw new NotImplementedException(); }
private bool Create() { lock (this._handleLock) { if (this._handle == null && !this._deleted) { IADSession aDSession = this._storeAccess as IADSession; this._handle = aDSession.Create(this._info); } } if (this._handle != null) { return true; } else { return false; } }
public Microsoft.ActiveDirectory.CustomActions.GetADPrincipalGroupMembershipResponse GetADPrincipalGroupMembership(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.GetADPrincipalGroupMembershipRequest request) { throw new NotImplementedException(); }
private void Init() { if (!this._disposed) { if (this._topoMgmt == null) { this._sessionHandle = this._adSession.GetSessionHandle(); this._topoMgmt = this._adSession.GetTopologyManagementInterface(); } return; } else { throw new ObjectDisposedException(this.GetType().Name); } }
GetADGroupMemberResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADGroupMember(ADSessionHandle handle, GetADGroupMemberRequest request) { GetADGroupMemberResponse aDGroupMember = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDGroupMember = internalHandle.GetADGroupMember(request); } return(aDGroupMember); }