<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to sync ldap users and group with hue? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-sync-ldap-users-and-group-with-hue/m-p/149180#M32537</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10473/radhakrishnanr.html"&gt;Radhakrishnan Rk&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;1. Stop the Hue instances, if any. /etc/init.d/hue stop&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2. On the node where Hue is installed take a backup of hue.ini&lt;/P&gt;&lt;PRE&gt;cp /etc/hue/conf/hue.ini /etc/hue/conf/hue.ini.bkup&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;3. On all the Hue instances edit /etc/hue/conf/hue.ini&lt;/P&gt;&lt;PRE&gt; # Configuration options for connecting to LDAP and Active Directory
  # -------------------------------------------------------------------

  [[ldap]]

    # The search base for finding users and groups
    base_dn="DC=mycompany,DC=com"

    # URL of the LDAP server
	ldap_url=ldap://auth.mycompany.com

    # A PEM-format file containing certificates for the CA's that
    # Hue will trust for authentication over TLS.
    # The certificate for the CA that signed the
    # LDAP server certificate must be included among these certificates.
    # See more here &lt;A href="http://www.openldap.org/doc/admin24/tls.html" target="_blank"&gt;http://www.openldap.org/doc/admin24/tls.html&lt;/A&gt;.
    ## ldap_cert=
    ## use_start_tls=true

    # Distinguished name of the user to bind as -- not necessary if the LDAP server
    # supports anonymous searches
    bind_dn=" uid=hadoopService,CN=ServiceAccount,DC=mycompany,DC=com"
    
    # Password of the bind user -- not necessary if the LDAP server supports
    # anonymous searches
    bind_password=
    
    # Pattern for searching for usernames -- Use &amp;lt;username&amp;gt; for the parameter
    # For use when using LdapBackend for Hue authentication
    ldap_username_pattern="uid=&amp;lt;username&amp;gt;,ou=People,dc=mycompany,dc=com"

    # Create users in Hue when they try to login with their LDAP credentials
    # For use when using LdapBackend for Hue authentication
	create_users_on_login = true

    # Synchronize a users groups when they login
    sync_groups_on_login=true
	
	# Ignore the case of usernames when searching for existing users in Hue.
    ignore_username_case=true

    # Force usernames to lowercase when creating new users from LDAP.
    force_username_lowercase=true

    # Use search bind authentication.
    search_bind_authentication=true
       
    # Choose which kind of subgrouping to use: nested or suboordinate (deprecated).
    subgroups=suboordinate

    # Define the number of levels to search for nested members.
    nested_members_search_depth=10

    [[[users]]]
      # Base filter for searching for users
      user_filter="objectclass=*"
     
      # The username attribute in the LDAP schema
      user_name_attr=sAMAccountName
   
    [[[groups]]]

      # Base filter for searching for groups
      group_filter="objectclass=*"
  
      # The username attribute in the LDAP schema
     group_name_attr=cn &lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt; 4. Start the  /etc/init.d/hue start and test it.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 03:27:37 GMT</pubDate>
    <dc:creator>bandarusridhar1</dc:creator>
    <dc:date>2016-06-22T03:27:37Z</dc:date>
    <item>
      <title>How to sync ldap users and group with hue?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-sync-ldap-users-and-group-with-hue/m-p/149179#M32536</link>
      <description />
      <pubDate>Tue, 21 Apr 2026 13:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-sync-ldap-users-and-group-with-hue/m-p/149179#M32536</guid>
      <dc:creator>radhakrishnan_r</dc:creator>
      <dc:date>2026-04-21T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to sync ldap users and group with hue?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-sync-ldap-users-and-group-with-hue/m-p/149180#M32537</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10473/radhakrishnanr.html"&gt;Radhakrishnan Rk&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;1. Stop the Hue instances, if any. /etc/init.d/hue stop&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2. On the node where Hue is installed take a backup of hue.ini&lt;/P&gt;&lt;PRE&gt;cp /etc/hue/conf/hue.ini /etc/hue/conf/hue.ini.bkup&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;3. On all the Hue instances edit /etc/hue/conf/hue.ini&lt;/P&gt;&lt;PRE&gt; # Configuration options for connecting to LDAP and Active Directory
  # -------------------------------------------------------------------

  [[ldap]]

    # The search base for finding users and groups
    base_dn="DC=mycompany,DC=com"

    # URL of the LDAP server
	ldap_url=ldap://auth.mycompany.com

    # A PEM-format file containing certificates for the CA's that
    # Hue will trust for authentication over TLS.
    # The certificate for the CA that signed the
    # LDAP server certificate must be included among these certificates.
    # See more here &lt;A href="http://www.openldap.org/doc/admin24/tls.html" target="_blank"&gt;http://www.openldap.org/doc/admin24/tls.html&lt;/A&gt;.
    ## ldap_cert=
    ## use_start_tls=true

    # Distinguished name of the user to bind as -- not necessary if the LDAP server
    # supports anonymous searches
    bind_dn=" uid=hadoopService,CN=ServiceAccount,DC=mycompany,DC=com"
    
    # Password of the bind user -- not necessary if the LDAP server supports
    # anonymous searches
    bind_password=
    
    # Pattern for searching for usernames -- Use &amp;lt;username&amp;gt; for the parameter
    # For use when using LdapBackend for Hue authentication
    ldap_username_pattern="uid=&amp;lt;username&amp;gt;,ou=People,dc=mycompany,dc=com"

    # Create users in Hue when they try to login with their LDAP credentials
    # For use when using LdapBackend for Hue authentication
	create_users_on_login = true

    # Synchronize a users groups when they login
    sync_groups_on_login=true
	
	# Ignore the case of usernames when searching for existing users in Hue.
    ignore_username_case=true

    # Force usernames to lowercase when creating new users from LDAP.
    force_username_lowercase=true

    # Use search bind authentication.
    search_bind_authentication=true
       
    # Choose which kind of subgrouping to use: nested or suboordinate (deprecated).
    subgroups=suboordinate

    # Define the number of levels to search for nested members.
    nested_members_search_depth=10

    [[[users]]]
      # Base filter for searching for users
      user_filter="objectclass=*"
     
      # The username attribute in the LDAP schema
      user_name_attr=sAMAccountName
   
    [[[groups]]]

      # Base filter for searching for groups
      group_filter="objectclass=*"
  
      # The username attribute in the LDAP schema
     group_name_attr=cn &lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt; 4. Start the  /etc/init.d/hue start and test it.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 03:27:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-sync-ldap-users-and-group-with-hue/m-p/149180#M32537</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-06-22T03:27:37Z</dc:date>
    </item>
  </channel>
</rss>

