steffen: server/kolab/kolab kolab_bootstrap,1.24,1.25
cvs at intevation.de
cvs at intevation.de
Tue May 25 04:01:54 CEST 2004
Author: steffen
Update of /kolabrepository/server/kolab/kolab
In directory doto:/tmp/cvs-serv7922/kolab/kolab
Modified Files:
kolab_bootstrap
Log Message:
we need a new postfix, ldap support was broken in the old one
Index: kolab_bootstrap
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/kolab_bootstrap,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- kolab_bootstrap 25 May 2004 00:19:19 -0000 1.24
+++ kolab_bootstrap 25 May 2004 02:01:52 -0000 1.25
@@ -402,6 +402,19 @@
chmod 0600, $kolab_config;
print "Updating configuration, please ignore any initial errors from kolabconf\n\n";
+ my $cfg;
+ open(FH, "<@l_prefix@/etc/rc.conf") || die;
+ $cfg .= $_ while (<FH>);
+ close(FH);
+
+ $cfg =~ s/\n((openldap_url|sasl_authmech)\S*=[^\n]*)/#\1\n/sg;
+ $cfg .= "openldap_url=\"\"\nsasl_authmech=\"ldap\"\n";
+
+ open(FH, ">@l_prefix@/etc/rc.conf") || die;
+ print FH $cfg;
+ close(FH);
+ undef $cfg;
+
system("$kolab_prefix/sbin/kolabconf");
} else {
die "Error contacting LDAP server\n";
More information about the commits
mailing list