all: Use protobuf to generate config structs (fixes #6734) (#6900)

This commit is contained in:
Audrius Butkevicius
2020-08-25 08:11:14 +02:00
committed by GitHub
parent 5b953033c7
commit d507d932b8
84 changed files with 3807 additions and 542 deletions
+17
View File
@@ -0,0 +1,17 @@
syntax = "proto3";
package config;
import "lib/config/ldaptransport.proto";
import "ext.proto";
message LDAPConfiguration {
string address = 1 [(ext.xml) = "address,omitempty"];
string bind_dn = 2 [(ext.goname) = "BindDN", (ext.xml) = "bindDN,omitempty", (ext.json) = "bindDN"];
LDAPTransport transport = 3 [(ext.xml) = "transport,omitempty"];
bool insecure_skip_verify = 4 [(ext.xml) = "insecureSkipVerify,omitempty", (ext.default) = "false"];
string search_base_dn = 5 [(ext.goname) = "SearchBaseDN", (ext.xml) = "searchBaseDN,omitempty", (ext.json) = "searchBaseDN"];
string search_filter = 6 [(ext.xml) = "searchFilter,omitempty"];
}