Skip to content

Commit

Permalink
MB-14106: Set default audit values
Browse files Browse the repository at this point in the history
Change-Id: Idfd8793ed2e164a3c80cd39aa139ef4553f3344f
Reviewed-on: http://review.couchbase.org/48884
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>
  • Loading branch information
bcui6611 committed Mar 28, 2015
1 parent fc050e9 commit d9491ec
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions node.py
Expand Up @@ -597,9 +597,12 @@ def audit(self):

if self.audit_log_path:
rest.setParam('log_path', self.audit_log_path)

elif self.audit_enabled == "true":
rest.setParam('log_path', "/opt/couchbase/var/lib/couchbase/logs")
if self.audit_log_rotate_interval:
rest.setParam('rotate_interval', self.audit_log_rotate_interval)
elif self.audit_enabled == "true":
reset.setParam('rotate_interval', 86400)

opts = {
"error_msg": "unable to set audit settings",
Expand All @@ -624,12 +627,12 @@ def ldap(self):

if self.ldap_admins:
rest.setParam('admins', self.ldap_admins)
elif self.ldap_enabled:
elif self.ldap_enabled == 'true':
rest.setParam('admins', '')

if self.ldap_roadmins:
rest.setParam('roAdmins', self.ldap_roadmins)
elif self.ldap_enabled:
elif self.ldap_enabled == 'true':
rest.setParam('roAdmins', '')

opts = {
Expand Down

0 comments on commit d9491ec

Please sign in to comment.