2023-08-31 01:55:45 +03:00
|
|
|
{ pkgs, depot, ... }:
|
2021-10-16 21:22:48 +03:00
|
|
|
let
|
2023-08-31 01:55:45 +03:00
|
|
|
inherit (depot.lib.identity) ldap;
|
2021-10-16 21:22:48 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.saslauthd = {
|
|
|
|
enable = true;
|
|
|
|
mechanism = "ldap";
|
|
|
|
package = pkgs.cyrus_sasl.override { enableLdap = true; };
|
|
|
|
config = ''
|
|
|
|
ldap_servers: ${ldap.server.url}
|
|
|
|
ldap_filter: ${ldap.accounts.uidFilter}
|
|
|
|
ldap_search_base: ${ldap.accounts.userSearchBase}
|
|
|
|
ldapdb_canon_attr: ${ldap.accounts.uidAttribute}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|