diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-12 00:24:23 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-20 04:12:27 +0100 |
commit | ab8f306d7c2c49b8116e1af7b355ed2384617ed9 (patch) | |
tree | d1061ec0436fd096de2332a892eb984c63cb125e /modules/private/websites/tools/dav/davical.nix | |
parent | 4227853a03923e04daf3dd511a4b5a1ab5d527e7 (diff) | |
download | Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.gz Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.zst Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.zip |
Add specification for the private config file as a module.
Diffstat (limited to 'modules/private/websites/tools/dav/davical.nix')
-rw-r--r-- | modules/private/websites/tools/dav/davical.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/private/websites/tools/dav/davical.nix b/modules/private/websites/tools/dav/davical.nix index 98cebee..2a02f5e 100644 --- a/modules/private/websites/tools/dav/davical.nix +++ b/modules/private/websites/tools/dav/davical.nix | |||
@@ -32,16 +32,16 @@ rec { | |||
32 | $c->authenticate_hook['optional'] = false; | 32 | $c->authenticate_hook['optional'] = false; |
33 | $c->authenticate_hook['call'] = 'LDAP_check'; | 33 | $c->authenticate_hook['call'] = 'LDAP_check'; |
34 | $c->authenticate_hook['config'] = array( | 34 | $c->authenticate_hook['config'] = array( |
35 | 'host' => 'ldap.immae.eu', | 35 | 'host' => '${env.ldap.host}', |
36 | 'port' => '389', | 36 | 'port' => '389', |
37 | 'startTLS' => 'yes', | 37 | 'startTLS' => 'yes', |
38 | 'bindDN'=> 'cn=davical,ou=services,dc=immae,dc=eu', | 38 | 'bindDN'=> '${env.ldap.dn}', |
39 | 'passDN'=> '${env.ldap.password}', | 39 | 'passDN'=> '${env.ldap.password}', |
40 | 'protocolVersion' => '3', | 40 | 'protocolVersion' => '3', |
41 | 'baseDNUsers'=> array('ou=users,dc=immae,dc=eu', 'ou=group_users,dc=immae,dc=eu'), | 41 | 'baseDNUsers'=> array('ou=users,${env.ldap.base}', 'ou=group_users,${env.ldap.base}'), |
42 | 'filterUsers' => 'memberOf=cn=users,cn=davical,ou=services,dc=immae,dc=eu', | 42 | 'filterUsers' => '${env.ldap.filter}', |
43 | 'baseDNGroups' => 'ou=groups,dc=immae,dc=eu', | 43 | 'baseDNGroups' => 'ou=groups,${env.ldap.base}', |
44 | 'filterGroups' => 'memberOf=cn=groups,cn=davical,ou=services,dc=immae,dc=eu', | 44 | 'filterGroups' => 'memberOf=cn=groups,${env.ldap.dn}', |
45 | 'mapping_field' => array( | 45 | 'mapping_field' => array( |
46 | "username" => "uid", | 46 | "username" => "uid", |
47 | "fullname" => "cn", | 47 | "fullname" => "cn", |