When using salt-api and LDAP authentication to the salt-master "LDAP authentication requires python-ldap module" error occurs even when python-ldap is installed
search cancel

When using salt-api and LDAP authentication to the salt-master "LDAP authentication requires python-ldap module" error occurs even when python-ldap is installed

book

Article ID: 376543

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Salt-api can use LDAP authentication with the salt-master. Even though the python-ldap module was installed for the salt-master python instance there is an error message in the /etc/salt/master log as specified below and the request fails. 

gssdb.gmssql.example.net salt-master[xxxx]: [WARNING ] Authentication failure of type "eauth" occurred.
gssdb.gmssql.example.net salt-master[xxxx]: [ERROR   ] LDAP authentication requires python-ldap module

Environment

Issue verified on the following releases:

  • salt-api 3006.8 3006.9
  • salt-master 3006.8 3006.9

Resolution

A github bug was filed with the Salt Project. [BUG] Issue with ldap authentication when using salt-api #66855