add: add ldap protobuf
Some checks failed
Publish / Publish Job (push) Failing after 1m10s

This commit is contained in:
Дмитрий
2026-03-30 15:54:12 +03:00
parent d81e20c41a
commit 3ef32ab618
4 changed files with 32 additions and 5 deletions

27
proto/ldap.proto Normal file
View File

@@ -0,0 +1,27 @@
syntax = "proto3";
package ldap_service;
import "google/rpc/status.proto";
service LdapAuth {
rpc VerifyUser (VerifyRequest) returns (VerifyResponse);
}
message VerifyRequest {
string username = 1;
string password = 2;
}
message VerifyResponse {
bool success = 1;
string error_message = 2;
UserData user = 3;
}
message UserData {
string dn = 1;
string display_name = 2;
repeated string groups = 3;
bool is_active = 4;
}