This is pretty straightforward:
authc: #authentication with multiple ldaps
auth_first_ldap:
http_enabled: true
transport_enabled: true
order: 1
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: ldap
config:
...
bind_dn: binddn1
...
auth_second_ldap:
http_enabled: true
transport_enabled: true
order: 2
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: ldap
config:
...
bind_dn: binddn2
...
authz: #authorization with multiple ldaps
roles_from_first_ldap:
http_enabled: true
transport_enabled: true
authorization_backend:
type: ldap
config:
.....
bind_dn: binddn1
.....
roles_from_second_ldap:
http_enabled: true
transport_enabled: true
authorization_backend:
type: ldap
config:
.....
bind_dn: binddn2
.....
roles_from_third_ldap:
http_enabled: true
transport_enabled: true
authorization_backend:
type: ldap
config:
.....
bind_dn: binddn3
.....
1 Like