[python-ldap] ldap.AUTH_UNKNOWN: {'result': -6, 'desc': 'Unknown authentication method', 'ctrls': [], 'info': 'SASL(-4): no mechanism available: '}

Ondřej Kuzník ondra at mistotebe.net
Wed Jan 26 05:44:40 EST 2022


On Tue, Jan 25, 2022 at 05:10:49PM -0800, Christopher Paul wrote:
> Hello python-ldap users,
> 
> What am I doing wrong? The same settings work in an "$HOME/.ldaprc" file.

Hi Chris,
I assume you need to apply the TLS options first:
https://www.python-ldap.org/en/python-ldap-3.3.0/reference/ldap.html#tls-options

Regards,

-- 
Ondřej Kuzník
Senior Software Engineer
Symas Corporation                       http://www.symas.com
Packaged, certified, and supported LDAP solutions powered by OpenLDAP


More information about the python-ldap mailing list