From 42cd560ae87438edb4fbcd7f82fdac8c60bca1e1 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 30 Jan 2008 12:44:48 +0000 Subject: [PATCH] * Fixed permission for config files * Added TODO tag for backward compatibility git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8661 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/debian/rules | 3 +++ gosa-si/gosa-si-client | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gosa-si/debian/rules b/gosa-si/debian/rules index 4c5bcd662..592de17b6 100755 --- a/gosa-si/debian/rules +++ b/gosa-si/debian/rules @@ -61,6 +61,9 @@ binary-indep: install dh_installchangelogs #dh_installdebconf dh_installinit --init-script=gosa-si + + chmod 640 debian/gosa-si-server/etc/gosa-si/server.conf debian/gosa-si-client/etc/gosa-si/client.conf debian/gosa-si-server/etc/gosa-si/bus.conf + dh_link dh_strip dh_compress diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 016646c0e..86e2f2afe 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -1157,18 +1157,26 @@ sub new_ldap_config { close (file1); daemon_log("wrote $pam_config", 5); - # Create goto.secrets if told so + # Create goto.secrets if told so - for compatibility reasons if (defined $goto_admin){ open(file1, "> /etc/goto/secret"); close(file1); chown(0,0, "/etc/goto/secret"); chmod(0600, "/etc/goto/secret"); open(file1, "> /etc/goto/secret"); - print file1 $goto_admin.":".$goto_secret."\n"; + print file1 "GOTOADMIN=\"$goto_admin\"\nGOTOSECRET=\"$goto_secret\"\n"; close(file1); daemon_log("wrote /etc/goto/secret", 5); } + + # TODO: write these values to /etc/ldap/ldap-shell.conf + # LDAP_BASE= + # ADMIN_BASE= + # DEPARTMENT= + # UNIT_TAG= + # UNIT_TAG_FILTER= + return; } -- 2.30.2