Skip to content

Commit 7a32b13

Browse files
committed
feat: Hive datasource supports LDAP authentication #1209
1 parent d31e6a0 commit 7a32b13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎backend/apps/db/db.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ def check_connection(trans: Optional[Trans], ds: CoreDatasource | AssistantOutDs
370370
raise HTTPException(status_code=500, detail=trans('i18n_ds_invalid') + f': {e.args}')
371371
return False
372372
elif equals_ignore_case(ds.type, 'hive'):
373-
with hive.connect(host=conf.host, port=conf.port, username=conf.username,
374-
database=conf.database, password=conf.password if conf.password else None,
373+
with hive.connect(host=conf.host, port=conf.port, username=conf.username, database=conf.database,
374+
password=conf.password if conf.password else None,
375375
auth='LDAP' if conf.password else None,
376376
**extra_config_dict) as conn, conn.cursor() as cursor:
377377
try:

0 commit comments

Comments
 (0)