Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap.OPERATIONS_ERROR due to missing bind_dn in /usr/libexec/slurm-web/slurm-web-ldap-check #445

Open
rezib opened this issue Jan 21, 2025 · 1 comment
Milestone

Comments

@rezib
Copy link
Contributor

rezib commented Jan 21, 2025

$ /usr/libexec/slurm-web/slurm-web-ldap-check
INFO ⸬ Running slurm-web-ldap-check
Traceback (most recent call last):
  File "/usr/libexec/slurm-web/slurm-web-ldap-check", line 8, in <module>
    sys.exit(SlurmwebExecLDAPCheck.run())
  File "/usr/lib/python3/dist-packages/slurmweb/exec/ldap.py", line 66, in run
    application.run()
  File "/usr/lib/python3/dist-packages/slurmweb/apps/ldap.py", line 40, in run
    users = self.authentifier.users(with_groups=True)
  File "/usr/lib/python3/dist-packages/rfl/authentication/ldap.py", line 325, in users
    for user, user_dn in self._list_user_dn(connection):
  File "/usr/lib/python3/dist-packages/rfl/authentication/ldap.py", line 258, in _list_user_dn
    results = connection.search_s(
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 854, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 848, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 740, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 744, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 748, in result3
    resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 758, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 331, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "/usr/lib/python3/dist-packages/ldap/compat.py", line 44, in reraise
    raise exc_value
  File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 315, in _ldap_call
    result = func(*args,**kwargs)
ldap.OPERATIONS_ERROR: {'desc': 'Operations error', 'info': '000004DC: LdapErr: DSID-0C090C90, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563'}
@rezib rezib added the bug This was supposed to work in this case and clearly it is not. label Jan 21, 2025
@rezib rezib removed the bug This was supposed to work in this case and clearly it is not. label Feb 3, 2025
@rezib
Copy link
Contributor Author

rezib commented Feb 4, 2025

This should be fixed in RFL: rackslab/RFL#40

@rezib rezib added this to the v4.2.0 milestone Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant