Code

* Fixed permission for config files
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jan 2008 12:44:48 +0000 (12:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jan 2008 12:44:48 +0000 (12:44 +0000)
* 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
gosa-si/gosa-si-client

index 4c5bcd6622be6ecbb442d5177919c7e3140a4a6e..592de17b6a4bf6b8a2c2ea472400cdc65ceaaef1 100755 (executable)
@@ -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
index 016646c0e3d641177e2154a0f336437052f50254..86e2f2afef55a5e094e2971e7945934bbef91246 100755 (executable)
@@ -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;
 
 }