:doc:`DirectoryService <../../ds>` / Client / enable_client_authentication

****************************
enable_client_authentication
****************************



.. py:method:: DirectoryService.Client.enable_client_authentication(**kwargs)

  

  Enables alternative client authentication methods for the specified directory.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableClientAuthentication>`_  


  **Request Syntax**
  ::

    response = client.enable_client_authentication(
        DirectoryId='string',
        Type='SmartCard'|'SmartCardOrPassword'
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The identifier of the specified directory.

    

  
  :type Type: string
  :param Type: **[REQUIRED]** 

    The type of client authentication to enable. Currently only the value ``SmartCard`` is supported. Smart card authentication in AD Connector requires that you enable Kerberos Constrained Delegation for the Service User to the LDAP service in your self-managed AD.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidClientAuthStatusException`

  
  *   :py:class:`DirectoryService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DirectoryService.Client.exceptions.NoAvailableCertificateException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  