From 05744cee77ecf18fe15ecdf6bbb97ab22acd0614 Mon Sep 17 00:00:00 2001 From: "laodaming@fusen.cn" Date: Mon, 22 Jan 2024 14:44:26 +0800 Subject: [PATCH 1/2] fix --- service/ldap.proto | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/service/ldap.proto b/service/ldap.proto index 4b07ffa..0ee10a2 100644 --- a/service/ldap.proto +++ b/service/ldap.proto @@ -46,7 +46,8 @@ service ldap { rpc GetLdapUsers(GetLdapUsersReq) returns (GetLdapUsersRsp) {} //登录 rpc LdapUserLogin(LdapUserLoginReq) returns (LdapUserLoginRsp) {} - + //解析token + rpc LdapParseLogin(LdapParseLoginReq) returns (LdapParseLoginRsp) {} //获取权限组列表 rpc GetLdapGroups(GetLdapGroupsReq) returns (GetLdapGroupsRsp); @@ -298,4 +299,12 @@ message LdapUserLoginReq{ } message LdapUserLoginRsp{ string token = 1; +} +//解析token +message LdapParseLoginReq{ + string token = 1; +} +message LdapParseLoginRsp{ + string UserDn = 1; + int64 UserId = 2; } \ No newline at end of file From a8273ad6ad782eee541c4e7d3e6e59199dc7fdb2 Mon Sep 17 00:00:00 2001 From: "laodaming@fusen.cn" Date: Mon, 22 Jan 2024 14:54:07 +0800 Subject: [PATCH 2/2] fix --- service/ldap.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/ldap.proto b/service/ldap.proto index 0ee10a2..e1f8fc5 100644 --- a/service/ldap.proto +++ b/service/ldap.proto @@ -47,7 +47,7 @@ service ldap { //登录 rpc LdapUserLogin(LdapUserLoginReq) returns (LdapUserLoginRsp) {} //解析token - rpc LdapParseLogin(LdapParseLoginReq) returns (LdapParseLoginRsp) {} + rpc LdapParseToken(LdapParseTokenReq) returns (LdapParseTokenRsp) {} //获取权限组列表 rpc GetLdapGroups(GetLdapGroupsReq) returns (GetLdapGroupsRsp); @@ -301,10 +301,10 @@ message LdapUserLoginRsp{ string token = 1; } //解析token -message LdapParseLoginReq{ +message LdapParseTokenReq{ string token = 1; } -message LdapParseLoginRsp{ +message LdapParseTokenRsp{ string UserDn = 1; int64 UserId = 2; } \ No newline at end of file