steffen: server/perl-kolab/Kolab Kolab.pm,1.6,1.7

cvs at intevation.de cvs at intevation.de
Sun Jul 11 18:12:10 CEST 2004


Author: steffen

Update of /kolabrepository/server/perl-kolab/Kolab
In directory doto:/tmp/cvs-serv21896/Kolab

Modified Files:
	Kolab.pm 
Log Message:
added kolab-n and kolab-r user and group ids to config

Index: Kolab.pm
===================================================================
RCS file: /kolabrepository/server/perl-kolab/Kolab/Kolab.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Kolab.pm	21 Jun 2004 03:20:36 -0000	1.6
+++ Kolab.pm	11 Jul 2004 16:12:07 -0000	1.7
@@ -99,6 +99,22 @@
         &log('C', "Unable to determine the gid of user `kolab'", KOLAB_ERROR);
 #        exit(1);
     }
+    if (!($config{'kolab_n_uid'} = (getpwnam('kolab-n'))[2])) {
+        &log('C', "Unable to determine the uid of user `kolab-n'", KOLAB_ERROR);
+#        exit(1);
+    }
+    if (!($config{'kolab_n_gid'} = (getgrnam('kolab-n'))[2])) {
+        &log('C', "Unable to determine the gid of user `kolab-n'", KOLAB_ERROR);
+#        exit(1);
+    }
+    if (!($config{'kolab_r_uid'} = (getpwnam('kolab-r'))[2])) {
+        &log('C', "Unable to determine the uid of user `kolab-r'", KOLAB_ERROR);
+#        exit(1);
+    }
+    if (!($config{'kolab_r_gid'} = (getgrnam('kolab-r'))[2])) {
+        &log('C', "Unable to determine the gid of user `kolab-r'", KOLAB_ERROR);
+#        exit(1);
+    }
 
     # Make sure the critical variables we need were defined in kolab.conf
     if (!exists $config{'bind_dn'} || !exists $config{'bind_pw'} || !exists $config{'ldap_uri'} || !exists $config{'base_dn'}) {





More information about the commits mailing list