Oncall: Difference between revisions
Add OpenLDAP config for authentication |
Oncall use secrets option |
||
| Line 25: | Line 25: | ||
in | in | ||
{ | { | ||
environment.etc."oncall-secrets.yml".text = '' | |||
auth: | |||
ldap_bind_password: "${ldapRootPassword}" | |||
''; | |||
services.oncall = { | services.oncall = { | ||
| Line 34: | Line 39: | ||
ldap_user_suffix = ""; | ldap_user_suffix = ""; | ||
ldap_bind_user = "cn=root,${ldapSuffix}"; | ldap_bind_user = "cn=root,${ldapSuffix}"; | ||
ldap_base_dn = "ou=accounts,${ldapSuffix}"; | ldap_base_dn = "ou=accounts,${ldapSuffix}"; | ||
ldap_search_filter = "(uid=%s)"; | ldap_search_filter = "(uid=%s)"; | ||
| Line 46: | Line 50: | ||
}; | }; | ||
}; | }; | ||
secrets = [ "/etc/oncall-secrets.yml" ]; | |||
}; | }; | ||