Taiga LDAP Docker compose

"I’m having trouble integrating Active Directory with Taiga. Taiga is running with Docker Compose, and the system works with local users, but it doesn’t validate Active Directory users. I performed tests with the following script:

"import requests
from getpass import getpass

TAIGA_BASE=“http://IP_ServerTaiga:9000”

r = requests.post(
f"{TAIGA_BASE}/api/v1/auth",
json={
“type”: “ldap”,
“username”: input("Username: “),
“password”: getpass(),
},
)
print(r.status_code)”

TAIGA_BASE=“http://IP_ServerTaiga:9000”

r = requests.post(
f"{TAIGA_BASE}/api/v1/auth",
json={
“type”: “ldap”,
“username”: input("Username: "),
“password”: getpass(),
},
)
print(r.status_code)

I consistently receive error 401.

Here’s my configuration from the config.append.py file:
Python

INSTALLED_APPS += [“taiga_contrib_ldap_auth_ext”]
LDAP_SERVER = “ldap://192.168.40.101”
LDAP_PORT = 389
LDAP_BIND_DN = “CN=Taiga,CN=Users,DC=NN,DC=NET”
LDAP_BIND_PASSWORD = “password”
LDAP_SEARCH_BASE = “OU=Edificio,DC=NNN,DC=NET”
LDAP_USERNAME_ATTRIBUTE = “uid”
LDAP_EMAIL_ATTRIBUTE = “mail”
LDAP_FULL_NAME_ATTRIBUTE = “givenName”
LDAP_SAVE_LOGIN_PASSWORD = False
LDAP_MAP_USERNAME_TO_UID = None

Here’s my configuration from the conf.override.json file:
{
“api”: “https://taiga.nnnn.gob.ar/api/v1/”,
“eventsUrl”: “wss://taiga.nnnn.gob.ar/events”,
“baseHref”: “/”,
“eventsMaxMissedHeartbeats”: 5,
“eventsHeartbeatIntervalTime”: 60000,
“eventsReconnectTryInterval”: 10000,
“debug”: false,
“loginFormType”: “ldap”,
“debugInfo”: false,
“defaultLanguage”: “en”,
“themes”: [“taiga”],
“defaultTheme”: “taiga”,
“defaultLoginEnabled”: true,
“publicRegisterEnabled”: false,
“feedbackEnabled”: true,
“supportUrl”: “https://community.taiga.io/”,
“privacyPolicyUrl”: null,
“termsOfServiceUrl”: null,
“maxUploadFileSize”: null,
“contribPlugins”: ,
“gitHubClientId”: “”,
“gitLabClientId”: “”,
“gitLabUrl”: “”,
“tagManager”: { “accountId”: null },
“tribeHost”: null,
“enableAsanaImporter”: false,
“enableGithubImporter”: false,
“enableJiraImporter”: false,
“enableTrelloImporter”: false,
“gravatar”: false,
“rtlLanguages”: [
“ar”,
“fa”,
“he”
]
}
I’ve already performed numerous tests, and the error remains unchanged. The Taiga version is 6.8.0."