Skip to content

Commit 121d6c4

Browse files
committed
Only apply ALL option if indeed set to true
1 parent ee466af commit 121d6c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/pre2k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def options(self, context, module_options):
2626
nxc ldap $IP -u $USER -p $PASSWORD -M pre2k
2727
nxc ldap $IP -u $USER -p $PASSWORD -M pre2k -o ALL=True
2828
"""
29-
self.all_option = bool(module_options.get("ALL", False))
29+
self.all_option = module_options.get("ALL", "").lower() in ["true", "1", "yes"]
3030

3131
def on_login(self, context, connection):
3232
# Define the search filter

0 commit comments

Comments
 (0)