Skip to content

Commit

Permalink
script_run: Check that credentials are not override value (iss #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Mar 5, 2020
1 parent dd202e4 commit bdb6cb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DataRepository_patrons/script_run
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ if __name__ == '__main__':

if (p in vargs) and (vargs[p] is not None):
vargs[p] = vargs[p]
elif (p in config['global']) and (config['global'][p] is not None):
elif (p in config['global']) and (config['global'][p] is not None) and \
(config['global'][p] != "***override***"):
vargs[p] = config['global'][p]
else:
vargs[p] = '(unset)'

if p in ['ldap_password', 'grouper_password']:
if p in ['ldap_user', 'ldap_password', 'grouper_user', 'grouper_password']:
if vargs[p] is '(unset)':
print(' %s = (unset)', p)
cred_err += 1
else:
print(' %s = (set)', p)
else:
Expand Down

0 comments on commit bdb6cb3

Please sign in to comment.