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

Christopher Paul chris.paul at rexconsulting.net
Wed Jan 26 12:43:51 EST 2022


On 1/26/2022 2:44 AM, Ondřej Kuzník wrote:
> ...

Thanks Ondřej!

And Bingo, that was it! Specifically I had to 
set_option(ldap.OPT_X_TLS_NEWCTX, 0) after setting the TLS options in 
order to apply the settings.

Future People, note the docs I had been missing until now are 
https://github.com/python-ldap/python-ldap/blob/master/Doc/reference/ldap.rst. 
See the Warning section until "TLS options".

Chris Paul
Rex Consulting, Inc
email: chris.paul at rexconsulting.net
web: http://www.rexconsulting.net





More information about the python-ldap mailing list