Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How to disable pagination for ambari ldap ?

I tried to integrate ambari with ldap and it working fine previously. But suddenly it started giving error -

ambari-server sync-ldap --all Using python /usr/bin/python2 Syncing with LDAP... Enter Ambari Admin login: admin Enter Ambari Admin password: Syncing all...ERROR: Exiting with exit code 1. REASON: Caught exception running LDAP sync. [LDAP: error code 2 - paged results cookie is invalid]; nested exception is javax.naming.CommunicationException: [LDAP: error code 2 - paged results cookie is invalid]; remaining name 'dc=test,dc=datametica,dc=com'

1 ACCEPTED SOLUTION

@Ashnee Sharma

Turn off pagination by setting authentication.ldap.pagination.enabled=false in /etc/ambari-server/conf/ambari.properties

View solution in original post

3 REPLIES 3

@Ashnee Sharma

Turn off pagination by setting authentication.ldap.pagination.enabled=false in /etc/ambari-server/conf/ambari.properties

@Sagar Shimpi Thanks. This resolved the issue

@Ashnee Sharma

Set authentication.ldap.pagination.enabled property to false in the/etc/ambari-server/conf/ambari-properties file to disable result paging controls. See my response on the other question that you asked about LDAP synching. This step was necessary and missed in the other thread response you applied.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.