From 2e5ed0420db1f31ebe2c13e9214caa300c9c3451 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 4 Nov 2010 16:57:29 +0000 Subject: - add a catdap module --- modules/catdap/templates/catdap_local.yml | 37 ++++++++++++++++++++++++++++++ modules/catdap/templates/catdap_vhost.conf | 15 ++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 modules/catdap/templates/catdap_local.yml create mode 100644 modules/catdap/templates/catdap_vhost.conf (limited to 'modules/catdap/templates') diff --git a/modules/catdap/templates/catdap_local.yml b/modules/catdap/templates/catdap_local.yml new file mode 100644 index 00000000..ec9f2753 --- /dev/null +++ b/modules/catdap/templates/catdap_local.yml @@ -0,0 +1,37 @@ +<% +# domain come from facter + +dc_suffix = 'dc=' + domain.gsub('.',',dc=') + +ldap_server = 'ldap' + domain + +ldap_password = extlookup('catdap_password') + +ldap_account = 'cn=catdap-valstar,ou=System Accounts,' + dc_suffix +%> + +organisation: Mageia +apptitle: Mageia Identity Management +emailfrom: noreply@<%= domain %> + +Model::Proxy: + base: ou=People,<%= dc_suffix %> + dn: <%= ldap_account %> + password: <%= ldap_password %> + +Model::User: + base: <%= dc_suffix %> + host: <%= ldap_server %> + start_tls: 1 + +authentication: + default_realm: ldap + realms: + ldap: + store: + ldap_server: <%= ldap_server %> + binddn: <%= dc_suffix %> + bindpw: <%= ldap_password %> + user_basedn: ou=People,<%= dc_suffix %> + role_basedn: <%= dc_suffix %> + diff --git a/modules/catdap/templates/catdap_vhost.conf b/modules/catdap/templates/catdap_vhost.conf new file mode 100644 index 00000000..6569e164 --- /dev/null +++ b/modules/catdap/templates/catdap_vhost.conf @@ -0,0 +1,15 @@ + + ServerName identity.<%= domain %> + # Serve static content directly + DocumentRoot <%= catdap_location %>/root + Alias /static <%= catdap_location %>/root/static + + Alias / <%= catdap_location %>/script/catdap_fastcgi.pl/ + + /script> + Options +ExecCGI + SetHandler fcgid-script + Allow from all + + + -- cgit v1.2.1