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); }
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); }
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); }
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); }
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); }
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); }
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); }
ADSearchResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.Search(ADSessionHandle handle, ADSearchRequest request) { ADSearchResponse aDSearchResponse = null; ADDirectoryServiceConnection 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) { ADDirectoryServiceConnection adwsConnection = handle.Handle as ADDirectoryServiceConnection; if (adwsConnection == null) { flag = false; } else { adwsConnection.Dispose(); } } return(flag); }
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); }
ADSessionHandle Microsoft.ActiveDirectory.Management.IADSession.Create(ADSessionInfo info) { ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info); return(new ADSessionHandle(adwsConnection)); }
public ADSessionHandle Create(ADSessionInfo info) { ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info); return(new ADSessionHandle(adwsConnection)); }
ADSessionHandle Microsoft.ActiveDirectory.Management.IADSession.Create(ADSessionInfo info) { ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info); return new ADSessionHandle(adwsConnection); }
public ADSessionHandle Create (ADSessionInfo info) { ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info); return new ADSessionHandle(adwsConnection); }