void Microsoft.ActiveDirectory.Management.IADSyncOperations.AbandonSearch(ADSessionHandle handle, ADSearchRequest request) { AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { internalHandle.AbandonSearch(request); } }
private AdwsConnection GetInternalHandle(ADSessionHandle handle) { AdwsConnection adwsConnection = null; if (handle != null && handle.Handle != null) { adwsConnection = handle.Handle as AdwsConnection; } return(adwsConnection); }
GetADPrincipalGroupMembershipResponse Microsoft.ActiveDirectory.Management.IADAccountManagement.GetADPrincipalGroupMembership(ADSessionHandle handle, GetADPrincipalGroupMembershipRequest request) { GetADPrincipalGroupMembershipResponse aDPrincipalGroupMembership = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDPrincipalGroupMembership = internalHandle.GetADPrincipalGroupMembership(request); } return(aDPrincipalGroupMembership); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
ADSessionHandle Microsoft.ActiveDirectory.Management.IADSession.Create(ADSessionInfo info) { AdwsConnection adwsConnection = new AdwsConnection(info); return new ADSessionHandle(adwsConnection); }
ADSessionHandle Microsoft.ActiveDirectory.Management.IADSession.Create(ADSessionInfo info) { AdwsConnection adwsConnection = new AdwsConnection(info); return(new ADSessionHandle(adwsConnection)); }