From 7a32b139f7cfbc0f6f8dc412c855deae6f154e18 Mon Sep 17 00:00:00 2001 From: junjun Date: Thu, 20 Aug 2026 11:26:46 +0800 Subject: [PATCH] feat: Hive datasource supports LDAP authentication #1209 --- backend/apps/db/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/db/db.py b/backend/apps/db/db.py index 6f800d89..029d8df6 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -370,8 +370,8 @@ def check_connection(trans: Optional[Trans], ds: CoreDatasource | AssistantOutDs raise HTTPException(status_code=500, detail=trans('i18n_ds_invalid') + f': {e.args}') return False elif equals_ignore_case(ds.type, 'hive'): - with hive.connect(host=conf.host, port=conf.port, username=conf.username, - database=conf.database, password=conf.password if conf.password else None, + with hive.connect(host=conf.host, port=conf.port, username=conf.username, database=conf.database, + password=conf.password if conf.password else None, auth='LDAP' if conf.password else None, **extra_config_dict) as conn, conn.cursor() as cursor: try: