From c53264872a7dccee082ba2781356bd15cb838767 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 11 Jul 2019 10:53:43 -0400 Subject: [PATCH] Fix scenario with undefined passlength If passwordcomplexity were requested without a passwordlength, things would be a problem. --- confluent_server/confluent/messages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index 46c0d001..fa0bee06 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -37,6 +37,8 @@ passcomplexity = cfgfile.get_option('policy', 'passwordcomplexity') passminlength = cfgfile.get_option('policy', 'passwordminlength') if passminlength: passminlength = int(passminlength) +else: + passminlength = 0 if passcomplexity: passcomplexity = int(passcomplexity) else: