Vorbereitungen
- Stellen Sie sicher, dass Teradata Database für die LDAP-Integration konfiguriert ist.
Die LDAP-Authentifizierung (Lightweight Directory Access Protocol) ermöglicht Benutzern die Authentifizierung über Unternehmensverzeichnisdienste, die in die Teradata-Datenbank integriert sind. Der Enterprise MCP Server leitet die Anmeldeinformationen an Teradata weiter, wo sie anhand des konfigurierten LDAP-Verzeichnisses validiert werden.
Wichtig:
- Die TD2-Authentifizierungsmethode ist für AI Studio Lite automatisch aktiviert.
- Der Enterprise MCP Server stellt keine direkte Verbindung zu LDAP her. Die Anmeldeinformationen werden zur Validierung an Teradata weitergeleitet.
- Die LDAP-Authentifizierung verwendet dasselbe Anfrageheader-Format wie TD2 (Authentifizierung). Wenn beide Authentifizierungsmethoden aktiviert sind, müssen Sie AuthType: ldap angeben, um die Authentifizierung per LDAP durchzuführen. Wird AuthType nicht angegeben, wird die Anfrage standardmäßig als TD2 (Authentifizierung) behandelt.
- Teradata-Vektorspeicher-MCP-Tools unterstützen keine LDAP-Authentifizierung.
- Um die LDAP-Authentifizierung für Teradata Enterprise MCP-Software oder Teradata Enterprise MCP auf TMS zu aktivieren, legen Sie den folgenden Wert in der MCP Server Datei .env fest.
# Enable LDAP authentication TD_LDAP_ENABLED=true
- Authentifizieren Sie sich mit einer der folgenden Methoden.
- Für Enterprise MCP-Software und Enterprise MCP auf TMS:
# The -u flag automatically handles BASE64 encoding curl -X POST http://localhost:8001/mcp \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -u ldap_username:ldap_password \ -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'from requests.auth import HTTPBasicAuth import requests response = requests.post( 'http://localhost:8001/mcp', auth=HTTPBasicAuth('ldap_username', 'ldap_password'), json={ "jsonrpc": "2.0", "method": "tools/list", "id": 1} ) - Für AI Studio Lite:
# The -u flag automatically handles BASE64 encoding curl -X POST http://localhost:8001/mcp \ -H "Content-Type: application/json" \ -H "AuthType: ldap" \ -H "Accept: application/json" \ -u ldap_username:ldap_password \ -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'from requests.auth import HTTPBasicAuth import requests username = "ldap_username" password = getpass("LDAP password: ") try: response = requests.post( "http://localhost:8001/mcp", auth=HTTPBasicAuth(username, password), headers={"AuthType" : "ldap"}, json={"jsonrpc": "2.0", "method": "tools/list", "id": 1}, timeout=10, ) response.raise_for_status() print("Request succeeded:", response.json()) except requests.RequestException as exc: print(f"Request failed: {exc}")
- Für Enterprise MCP-Software und Enterprise MCP auf TMS:
Nach erfolgreicher Authentifizierung gibt der MCP Server die Liste der dem authentifizierten Benutzer zur Verfügung stehenden Tools auf Basis der RBAC zurück.