ldap/admin/src/scripts/repl-monitor.pl.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit a498525a76aaafc7d2979f577d4e7a93a3158d0b
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Thu Aug 7 12:18:57 2014 -0400
Ticket 47862 - repl-monitor fails to convert "*" to default values
Bug Description: When specifying the "connection" parameters, you are
allowed to use asterisks to signify default values.
This was not properly checked in the script, and the
the default values were not applied.
Fix Description: Properly check for "*" for the bind dn, bind password,
and certdir.
https://fedorahosted.org/389/ticket/47862
Reviewed by: nhosoi(Thanks!)
diff --git a/ldap/admin/src/scripts/repl-monitor.pl.in
b/ldap/admin/src/scripts/repl-monitor.pl.in
index 0ded096..3b1cf30 100755
--- a/ldap/admin/src/scripts/repl-monitor.pl.in
+++ b/ldap/admin/src/scripts/repl-monitor.pl.in
@@ -1086,7 +1086,10 @@ sub add_server
$hostnode = $1 if $host =~ /^(.+?)\./;
# new host:port
- if (!$binddn || $binddn eq "" || !$bindpwd || $bindpwd eq "" ||
!$bindcert || $bindcert eq "") {
+ if (!$binddn || $binddn eq "" || $binddn eq "*" ||
+ !$bindpwd || $bindpwd eq "" || $bindpwd eq "*" ||
+ !$bindcert || $bindcert eq "" || $bindcert eq "*" )
+ {
#
# Look up connection parameter in the order of
# host:port
@@ -1120,7 +1123,7 @@ sub add_server
$binddn = $d;
}
}
- if($prompt eq "yes" && ($w eq "" || (!$bindpwd || $bindpwd
eq ""))){
+ if($prompt eq "yes" && ($w eq "" || (!$bindpwd || $bindpwd
eq "" || $bindpwd eq "*"))){
$bindpwd = passwdPrompt($h, $p);
} elsif ($passwd ne ""){
$bindpwd = $passwd;