Wednesday, June 13, 2018

[389-commits] [389-ds-base] 01/01: Ticket 49576 - ds-replcheck: fix certificate directory verification

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch 389-ds-base-1.3.7
in repository 389-ds-base.

commit e6e9b88b02ee9e6806d361040e62ca5df449289f
Author: Mark Reynolds <mreynolds@redhat.com>
Date: Mon Jun 11 11:52:57 2018 -0400

Ticket 49576 - ds-replcheck: fix certificate directory verification

Description: The tool would crash if you attempted to use a certificate
directory for conntacting replicas.

https://pagure.io/389-ds-base/issue/49576

Reviewed by: spichugi(Thanks!)
---
ldap/admin/src/scripts/ds-replcheck | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldap/admin/src/scripts/ds-replcheck b/ldap/admin/src/scripts/ds-replcheck
index 661c9e0..62f9110 100755
--- a/ldap/admin/src/scripts/ds-replcheck
+++ b/ldap/admin/src/scripts/ds-replcheck
@@ -1225,7 +1225,7 @@ def main():
# Validate certdir
opts['certdir'] = None
if args.certdir:
- if os.path.exists() and os.path.isdir(certdir):
+ if os.path.exists(args.certdir) and os.path.isdir(args.certdir):
opts['certdir'] = args.certdir
else:
print("certificate directory ({}) does not exist or is not a directory".format(args.certdir))

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-commits@lists.fedoraproject.org/message/LINXSTFZ5RP2ZXRXHYK55JZS32TXX3DL/

No comments:

Post a Comment