ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower" <>
Subject Re: Review Request 26194: Admin : ambari-server sync-ldap - support --existing, --users & --groups options
Date Wed, 01 Oct 2014 12:43:12 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Oct. 1, 2014, 12:43 p.m.)

Review request for Ambari, Jonathan Hurley and Nate Cole.


update with review changes.

Bugs: AMBARI-7569

Repository: ambari


The command line 'ambari-server sync-ldap' should support the options as follows ...

"ambari-server sync-ldap --existing" which would would first look at the ambari database and
only clean-up those users and groups. This way, it doesn't pull any new ones, it a) removes
users that are in ambari but out of ldap, b) remove groups that are in ambari but out of ldap
and c) syncs the group membership of the groups that are in ambari

"ambari-server sync-ldap --users users.txt --groups groups.txt" which would allow people to
just sync a specific set of users and groups from ldap to ambari. The .txt files would be
the user and group ids to sync into ambari. This is going to be important for people that
just want to bring "a specific set" of users + groups into ambari from ldap (not the "all").
And then once this has happened, running with --existing option periodically helps keep these
"in sync"

Diffs (updated)

  ambari-server/sbin/ambari-server 027bf87 
  ambari-server/src/main/python/ 9059319 
  ambari-server/src/test/python/ 7f769f1 



Results :

Tests run: 2076, Failures: 0, Errors: 0, Skipped: 16


[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33:19.993s
[INFO] Finished at: Tue Sep 30 17:15:25 EDT 2014
[INFO] Final Memory: 38M/293M
[INFO] ------------------------------------------------------------------------


Tom Beerbower

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message