コード例 #1
0
        void Microsoft.ActiveDirectory.Management.IADSyncOperations.AbandonSearch(ADSessionHandle handle, ADSearchRequest request)
        {
            ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle);

            if (internalHandle != null)
            {
                internalHandle.AbandonSearch(request);
            }
        }
コード例 #2
0
        private ADDirectoryServiceConnection GetInternalHandle(ADSessionHandle handle)
        {
            ADDirectoryServiceConnection adwsConnection = null;

            if (handle != null && handle.Handle != null)
            {
                adwsConnection = handle.Handle as ADDirectoryServiceConnection;
            }
            return(adwsConnection);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
        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);
        }
コード例 #12
0
        ADSessionHandle Microsoft.ActiveDirectory.Management.IADSession.Create(ADSessionInfo info)
        {
            ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info);

            return(new ADSessionHandle(adwsConnection));
        }
コード例 #13
0
        public ADSessionHandle Create(ADSessionInfo info)
        {
            ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info);

            return(new ADSessionHandle(adwsConnection));
        }
コード例 #14
0
		ADSessionHandle Microsoft.ActiveDirectory.Management.IADSession.Create(ADSessionInfo info)
		{
			ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info);
			return new ADSessionHandle(adwsConnection);
		}
コード例 #15
0
		public ADSessionHandle Create (ADSessionInfo info)
		{
			ADDirectoryServiceConnection adwsConnection = new ADDirectoryServiceConnection(info);
			return new ADSessionHandle(adwsConnection);
		}