TeradataML:TeradataML中的上下文管理器支持哪些身份验证机制?



在teradataml中,create_context支持ldap吗?还支持哪些其他身份验证机制? 用户如何在创建上下文时指定 ldap 服务器?

create_context(host=None, username=None, password=None, tdsqlengine=None, temp_database_name=None, logmech=None)
DESCRIPTION:
Creates a connection to the Teradata Vantage using the teradatasql + teradatasqlalchemy DBAPI and dialect combination.
Users can pass all required parameters (host, username, password) for establishing a connection to Vantage,
or pass a sqlalchemy engine to the tdsqlengine parameter to override the default DBAPI and dialect combination.
PARAMETERS:
host:
Optional Argument.
Specifies the fully qualified domain name or IP address of the Teradata System.
Types: str
username:
Optional Argument.
Specifies the username for logging onto the Teradata Vantage.
Types: str
password:
Optional Argument.
Specifies the password required for the username.
Types: str
tdsqlengine:
Optional Argument.
Specifies Teradata Vantage sqlalchemy engine object that should be used to establish a Teradata Vantage connection.
Types: str
temp_database_name:
Optional Argument.
Specifies the temporary database name where temporary tables, views will be created.
Types: str
***logmech:
Optional Argument.
Specifies the type of logon mechanism to establish a connection to Teradata Vantage.*** 
***Permitted Values: 'TD2', 'TDNEGO', 'LDAP' & 'KRB5'.***
***Types: str***
RETURNS:
A Teradata sqlalchemy engine object.
RAISES:
TeradataMlException
Example for using LDAP server:
con = create_context(host = 'ldap server', username='ldapuser', password = 'ldappassword', logmech='LDAP')

用户如何在创建上下文时指定 LDAP 服务器?

不要在连接参数中指定 LDAP 服务器。这是不可能的,也没有必要。

仅当服务器端已将 Teradata 数据库系统配置为提供 LDAP 身份验证时,LDAP 身份验证才有效。使用的 LDAP 服务器是 Teradata 数据库系统配置为使用的 LDAP 服务器。

相关内容

最新更新