Skip to content

Commit

Permalink
Check if linuxmuster is configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed May 8, 2024
1 parent 8edc8d7 commit ea9677a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,12 @@ def _get(self, ldap_filter, scope=ldap.SCOPE_SUBTREE, subdn=''):
else:
# Importing lmntools from the Webui will resulting into using the same binddn as the one configured
# in the config.yml from the Webui
binddn = self.params['binddn']
bindpwd = self.params['bindpw']
try:
binddn = self.params['binddn']
bindpwd = self.params['bindpw']
except KeyError:
logging.warning(f'LDAP credentials not found, is linuxmuster installed and configured ?')
return []

try:
l.bind_s(binddn, bindpwd)
Expand Down

0 comments on commit ea9677a

Please sign in to comment.