Support Questions
Find answers, ask questions, and share your expertise

How to disable pagination for ambari ldap ?

Solved Go to solution

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

Accepted Solutions

Re: How to disable pagination for ambari ldap ?

@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

Re: How to disable pagination for ambari ldap ?

@Ashnee Sharma

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

View solution in original post

Re: How to disable pagination for ambari ldap ?

@Sagar Shimpi Thanks. This resolved the issue

Re: How to disable pagination for ambari ldap ?

@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.