Skip to content

Commit

Permalink
ldap: Fix dict return when item not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpil2002 committed Mar 18, 2024
1 parent 31b6555 commit 3fa0966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hostcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class AaaCfg(object):
if self.ldap_global == {}:
return False
return self.ldap_global.get('bind_dn', "") and self.ldap_global.get('base_dn', "") and \
self.ldap_global.get('bind_password', "") and 'ldap' in self.authentication['login'] and \
self.ldap_global.get('bind_password', "") and 'ldap' in self.authentication.get('login', "") and \
self.ldap_servers

def pick_src_intf_ipaddrs(self, keys, src_intf):
Expand Down

0 comments on commit 3fa0966

Please sign in to comment.