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
@@ -903,6 +903,7 @@ func toAuthMethodProto(ctx context.Context, in auth.AuthMethod, opt ...handlers.
|
||||
ClientCertificateKeyHmac: base64.RawURLEncoding.EncodeToString(i.GetClientCertificateKeyHmac()),
|
||||
BindPasswordHmac: base64.RawURLEncoding.EncodeToString(i.GetBindPasswordHmac()),
|
||||
UseTokenGroups: i.GetUseTokenGroups(),
|
||||
MaximumPageSize: i.GetMaximumPageSize(),
|
||||
}
|
||||
if i.GetUpnDomain() != "" {
|
||||
attrs.UpnDomain = wrapperspb.String(i.GetUpnDomain())
|
||||
@@ -934,6 +935,9 @@ func toAuthMethodProto(ctx context.Context, in auth.AuthMethod, opt ...handlers.
|
||||
if len(i.GetAccountAttributeMaps()) > 0 {
|
||||
attrs.AccountAttributeMaps = i.GetAccountAttributeMaps()
|
||||
}
|
||||
if i.GetDereferenceAliases() != "" {
|
||||
attrs.DereferenceAliases = wrapperspb.String(i.GetDereferenceAliases())
|
||||
}
|
||||
|
||||
out.Attrs = &pb.AuthMethod_LdapAuthMethodsAttributes{
|
||||
LdapAuthMethodsAttributes: attrs,
|
||||
|
||||
Reference in new issue
Block a user