Files
contracts/proto/sso/ldap-auth.proto
Дмитрий abf438f3d1
All checks were successful
Publish / Publish Job (push) Successful in 2m21s
remove imports ldapuserdata and paste ldap userdata from file
2026-04-11 11:03:57 +03:00

38 lines
1009 B
Protocol Buffer

syntax = "proto3";
package ldap_auth.v1;
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service LdapAuthService {
rpc VerifyUser (VerifyRequest) returns (VerifyResponse);
}
message LdapUserData {
string dn = 1; // Полный путь в AD (Distinguished Name)
string username = 2; // Логин (sAMAccountName)
string display_name = 3; // ФИО (displayName)
string email = 4; // Почта (mail)
string description = 5; // Описание/Должность (description)
bytes avatar = 6; // Аватарка в байтах (thumbnailPhoto)
repeated string groups = 7; // Список групп
bool is_active = 8; // Статус аккаунта
string phone = 9;
}
// --- Авторизация ---
message VerifyRequest {
string username = 1;
string password = 2;
}
message VerifyResponse {
bool success = 1;
string error_message = 2;
LdapUserData user = 3; // Отдаем полные данные при успешном входе
}