ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Velmurugan Periasamy (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (RANGER-742) Ranger usersync fails after syncing 500 users from AD or ldap server when paged results is enabled.
Date Sat, 05 Dec 2015 01:01:14 GMT

    [ https://issues.apache.org/jira/browse/RANGER-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15042504#comment-15042504
] 

Velmurugan Periasamy edited comment on RANGER-742 at 12/5/15 1:00 AM:
----------------------------------------------------------------------

Additional patch to remove dependency on groupUserMapSyncEnabled

master - https://git-wip-us.apache.org/repos/asf?p=incubator-ranger.git;a=commit;h=3a60d698a7b946d1424772cd787ec4e956d7afb1

ranger-0.5 - https://git-wip-us.apache.org/repos/asf?p=incubator-ranger.git;a=commit;h=299cbfaef81afa10da2ba719871dcf78381833d4


was (Author: vperiasamy):
Additional patch to remove dependency on groupUserMapSyncEnabled

> Ranger usersync fails after syncing 500 users from AD or ldap server when paged results
is enabled.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-742
>                 URL: https://issues.apache.org/jira/browse/RANGER-742
>             Project: Ranger
>          Issue Type: Bug
>          Components: usersync
>    Affects Versions: 0.5.0, 0.5.1
>            Reporter: Sailaja Polavarapu
>            Assignee: Sailaja Polavarapu
>             Fix For: 0.5.1, 0.6.0
>
>         Attachments: 0001-RANGER-742-Removed-the-dependency-on-groupUserMapSyn.patch,
0001-Ranger-742-Made-code-changes-to-complete-user-search.patch
>
>
> When Usersync is configured with AD/Ldap as the sync source, it fails to sync the users
after 500 users. Following is the exception from usersync:
> 24 Nov 2015 12:04:31 INFO LdapUserGroupBuilder UnixUserSyncThread - Updating user count:
500, userName: user0499, groupList: group05
> 24 Nov 2015 12:04:31 ERROR UserGroupSync UnixUserSyncThread - Failed to initialize UserGroup
source/sink. Will retry after 3600000 milliseconds. Error details:
> javax.naming.CommunicationException: LDAP: error code 2 - paged results cookie is invalid;
remaining name 'dc=qe,dc=hortonworks,dc=com'
> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3135)
> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033)
> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840)
> at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1849)
> at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772)
> at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
> at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
> at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
> at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
> at org.apache.ranger.ldapusersync.process.LdapUserGroupBuilder.updateSink(LdapUserGroupBuilder.java:310)
> at org.apache.ranger.usergroupsync.UserGroupSync.run(UserGroupSync.java:58)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message