Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Expert Contributor

In DPS-1.1.0 we can't edit all the LDAP configuration properties after the initial setup. If we have to correct LDAP configs, you need to re-initialize the DPS setup to change it, which can be a painful task.

To avoid re-initializing the DPS setup, we can make the changes directly in the postgres database of dataplane.

Step1:- Find the container id of dp-database on DPS machine

docker ps

78389-docker-dp-database.png

Step2: - connect to the docker machine

docker exec -it cf3f4a31e146 /bin/bash

Step3:- Login to the postgres database (dataplane)

su - postgres

psql -d dataplane

Take backup of the table,

create table dataplane.ldap_configs_bkp as select * from dataplane.ldap_configs;

To view the existing configuration:

select * from dataplane.ldap_configs;

Sample Output:

id | url | bind_dn | user_searchbase | usersearch_attributename | group_searchbase | groupsearch_attr ibutename | group_objectclass | groupmember_attributename | user_object_class ----+---------------------------------------+----------------------------------------------------+-----------------------------------------+--------------------------+------------------------------------------+----------------- ----------+-------------------+---------------------------+------------------- 1 | ldap://ldap.hortonworks.com:389 | uid=xyz,ou=users,dc=support,dc=hortonworks,dc=com | ou=users,dc=support,dc=hortonworks,dc=com | uid | ou=groups,dc=support,dc=hortonworks,dc=com | cn | posixGroup | memberUid | posixAccount

Step 4:- Make the changes in database for the required field

For example:- if i need to change usersearch_attributename from uid to cn, then i can issue this command

update dataplane.ldap_configs set usersearch_attributename='cn';

That's it! it should reflect immediately on the dataplane UI.

Note:- Use this doc, when you are newly installing DPS and made a mistake in LDAP configs.

1,242 Views
Version history
Last update:
‎09-16-2022 01:43 AM
Updated by:
Contributors