I'm currently stuck on trying to configure ranger-usersync properly with our Active Directory.
Platform: HDP 22.214.171.124 on RHEL 7 with Ambari 126.96.36.199
I followed this article:
I want to use "Group based search".
The sync works fine when “Enable User Search” is set to “false”.
Problem is that the outcome is the CN of the user, which equals "[first name] [last name] [someID]".
This in turn cannot be mapped by HDFS to Kerberos tickets, which equal [someID]@EXAMPLE.DOMAIN.COM.
Therefore I want to enable "User Search" with this configuration:
ranger.usersync.ldap.user.nameattribute = sAMAccountName ranger.usersync.ldap.user.objectclass = person ranger.usersync.ldap.searchbase = DC=EXAMPLE,DC=DOMAIN,DC=COM ranger.usersync.ldap.searchfilter = sAMAccountName=* ranger.usersync.ldap.searchscope = sub ranger.usersync.ldap.user.groupnameattribute = memberof,ismemberof ranger.usersync.group.usermapsyncenabled = true ranger.usersync.user.searchenabled = true
Configuration for groups is the same as mentioned in the article.
--> Goal is to fetch the groups using Attribute cn and fetch all members of those groups as received per the attribute "member". And to create the users from this, bu create them using the attribute "sAMAccountName" of the user.
Hope somebody can help me, thanks!
Seem like I found the basic problem:
when I disable "incremental sync", the users are created correctly.
Is this desired behaviour or a bug?
Thanks! didn't see that issue, awesome that it's already fixed in 0.7.2