You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by sv...@apache.org on 2017/01/10 22:13:55 UTC

[5/7] incubator-trafodion git commit: [TRAFODION-2291] Ambari integration, ldap fix

[TRAFODION-2291] Ambari integration, ldap fix

Fix a couple issues with ldapcheck command. Also tweak trafodion sudoer
permissions to make sure sudo commands will work without a tty.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/b90b84fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/b90b84fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/b90b84fa

Branch: refs/heads/master
Commit: b90b84fa800626e8c0e7fc2bc210d44ae95f54ed
Parents: ece09b1
Author: Steve Varnau <sv...@apache.org>
Authored: Tue Jan 10 00:44:23 2017 +0000
Committer: Steve Varnau <sv...@apache.org>
Committed: Tue Jan 10 00:44:23 2017 +0000

----------------------------------------------------------------------
 core/sqf/sysinstall/etc/sudoers.d/trafodion                       | 3 +++
 .../TRAFODION/2.1/package/scripts/trafodionnode.py                | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b90b84fa/core/sqf/sysinstall/etc/sudoers.d/trafodion
----------------------------------------------------------------------
diff --git a/core/sqf/sysinstall/etc/sudoers.d/trafodion b/core/sqf/sysinstall/etc/sudoers.d/trafodion
index 38bd8da..d96d6f2 100644
--- a/core/sqf/sysinstall/etc/sudoers.d/trafodion
+++ b/core/sqf/sysinstall/etc/sudoers.d/trafodion
@@ -30,3 +30,6 @@ Cmnd_Alias ARP = /sbin/arping
 
 ## Allow Trafodion id to run commands needed to configure floating IP
 trafodion ALL = NOPASSWD: IP, ARP
+
+## Do not require tty for trafodion user. No password prompts needed
+Defaults:trafodion !requiretty

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b90b84fa/install/ambari-installer/traf-mpack/common-services/TRAFODION/2.1/package/scripts/trafodionnode.py
----------------------------------------------------------------------
diff --git a/install/ambari-installer/traf-mpack/common-services/TRAFODION/2.1/package/scripts/trafodionnode.py b/install/ambari-installer/traf-mpack/common-services/TRAFODION/2.1/package/scripts/trafodionnode.py
index f02a7be..fa0cdf3 100755
--- a/install/ambari-installer/traf-mpack/common-services/TRAFODION/2.1/package/scripts/trafodionnode.py
+++ b/install/ambari-installer/traf-mpack/common-services/TRAFODION/2.1/package/scripts/trafodionnode.py
@@ -120,7 +120,7 @@ class Node(Script):
       Execute(cmd,user=params.traf_user)
       cmd = "source ~/.bashrc ; ldapconfigcheck -file $TRAF_HOME/sql/scripts/.traf_authentication_config"
       Execute(cmd,user=params.traf_user)
-      cmd = 'ldapcheck --verbose --username=%s' % traf_db_admin
+      cmd = 'source ~/.bashrc ; ldapcheck --verbose --username=%s' % params.traf_db_admin
       Execute(cmd,user=params.traf_user)
 
     ##################