无法使用 LDAP 身份验证机制连接 Teradata 服务器

Unable to connect Teradata server with authentication mechanism as LDAP

如果有人提供 VBA 连接字符串以连接 Excel 与身份验证机制 = LDAP 的 Teradata,那将会很有帮助。

VBA 配置身份验证机制之前使用的代码= LDAP 下面给出。但是,当我的组织将我们的凭据移动到仅支持 AUTHENTICATION MECHANISM = LDAP 时,代码不起作用。 请帮忙!

代码:

Public cn As ADODB.Connection
Public rs As ADODB.Connection

Sub test_ter() 
    TDCONSTR1 = "DSN &_ =<dsn_name> ; uid = <usr>; PWD = <PWD>;" 
    Set cn = new ADODB.Connection     
    cn.Open TDCONSTR1
    MsgBox("Connection established")
End Sub

The following is what I use to make a connection to Teradata over ODBC using the ADODB library in VBA via LDAP:

"SessionMode=Teradata;Driver=Teradata;Authentication=LDAP;DBCName=<your database IP/Domain name>;Database=<Your default database for connection>;Uid=<username>;Pwd=<pass>"

Really you just need to specify the Authentication Mechanism via the "Authentication" setting in the connection string Authentication=LDAP