summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Kolab.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Kolab.pm b/lib/Kolab.pm
index d9c1384..5b8197f 100644
--- a/lib/Kolab.pm
+++ b/lib/Kolab.pm
@@ -182,9 +182,13 @@ This function reloads the configuration for the Kolab perl library.
# Make a hash of the bind password available too
if( !exists $config{'bind_pw_hash'} ) {
- my $hashcmd = $config{'hashmethod'} . " '".$config{'bind_pw'}."'";
- $config{'bind_pw_hash'} = `$hashcmd`;
- chomp($config{'bind_pw_hash'});
+ if ( exists $config{'hashmethod'} ) {
+ if ( -x $config{'hashmethod'} ) {
+ my $hashcmd = $config{'hashmethod'} . " '".$config{'bind_pw'}."'";
+ $config{'bind_pw_hash'} = `$hashcmd`;
+ chomp($config{'bind_pw_hash'});
+ }
+ }
}
# Retrieve the LDAP values of the main kolab object to complete our config hash