diff --git a/service/ldap.proto b/service/ldap.proto index 4b07ffa..e1f8fc5 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 LdapParseToken(LdapParseTokenReq) returns (LdapParseTokenRsp) {} //获取权限组列表 rpc GetLdapGroups(GetLdapGroupsReq) returns (GetLdapGroupsRsp); @@ -298,4 +299,12 @@ message LdapUserLoginReq{ } message LdapUserLoginRsp{ string token = 1; +} +//解析token +message LdapParseTokenReq{ + string token = 1; +} +message LdapParseTokenRsp{ + string UserDn = 1; + int64 UserId = 2; } \ No newline at end of file