feat: add API support for additional LDAP auth method fields. (#3679)
* feat (auth/ldap): add Repo support for max page size and deref aliases (#3670) * chore: update cap/ldap dependency This latest version of cap/ldap adds support for MaxPageSize and DerefAliases * feat (auth/ldap): add MaxPageSize and DerefAliases to storage proto * feat (api/authmethods): add new ldap fields. Add support for maximum_page_size and dereference_aliases * feat (auth/ldap): schema changes to support new LDAP attributes * feat (auth/ldap): add Repo support for max page size and deref aliases * feat (handlers/ldap): add support for new fields (#3674) Added API support for new ldap fields: MaximumPageSize and DereferenceAliases * chore: add CHANGELOG entry for new api auth ldap fields
This commit is contained in:
28 files changed
+1166
-237
No files matched your search
@@ -257,6 +257,27 @@ message AuthMethod {
|
||||
this: "AccountAttributeMaps"
|
||||
that: "attributes.account_attribute_maps"
|
||||
}];
|
||||
|
||||
// MaximumPageSize optionally specifies a maximum ldap search result size to
|
||||
// use when retrieving the authenticated user's group memberships. This can
|
||||
// be used to avoid reaching the LDAP server's max result size.
|
||||
// @inject_tag: `gorm:"not_null;default:0"`
|
||||
uint32 maximum_page_size = 310 [(custom_options.v1.mask_mapping) = {
|
||||
this: "MaximumPageSize"
|
||||
that: "attributes.maximum_page_size"
|
||||
}];
|
||||
|
||||
// dereference_aliases will control how aliases are dereferenced when
|
||||
// performing the search. Possible values are: never, finding, searching,
|
||||
// and always. If unset, a default of "never" is used. When set to
|
||||
// "finding", it will only dereference aliases during name resolution of the
|
||||
// base. When set to "searching", it will dereference aliases after name
|
||||
// resolution.
|
||||
// @inject_tag: `gorm:"-"`
|
||||
string dereference_aliases = 320 [(custom_options.v1.mask_mapping) = {
|
||||
this: "DereferenceAliases"
|
||||
that: "attributes.dereference_aliases"
|
||||
}];
|
||||
}
|
||||
|
||||
// Url represents LDAP URLs that specify LDAP servers to connection to. There
|
||||
@@ -532,6 +553,26 @@ message AccountAttributeMap {
|
||||
timestamp.v1.Timestamp create_time = 40;
|
||||
}
|
||||
|
||||
// DerefAliases represent aan optional configuration field used to
|
||||
// determine how to derefence aliases when searching ldap.
|
||||
message DerefAliases {
|
||||
// create_time is set by the database.
|
||||
// @inject_tag: `gorm:"default:current_timestamp"`
|
||||
timestamp.v1.Timestamp create_time = 10;
|
||||
|
||||
// ldap_method_id is the FK to the UserEntrySearchConf's LDAP auth method.
|
||||
// @inject_tag: `gorm:"primary_key"`
|
||||
string ldap_method_id = 20;
|
||||
|
||||
// dereference_aliases will control how aliases are dereferenced when
|
||||
// performing the search. Possible values are: never, finding, searching,
|
||||
// and always. If unset, a default of "never" is used. When set to
|
||||
// "finding", it will only dereference aliases during name resolution of the
|
||||
// base. When set to "searching", it will dereference aliases after name
|
||||
// resolution.
|
||||
string dereference_aliases = 30;
|
||||
}
|
||||
|
||||
// ManagedGroup entries provide an LDAP auth method implementation of managed
|
||||
// groups.
|
||||
message ManagedGroup {
|
||||
|
||||
Reference in new issue
Block a user