marcus: server/kolabd/kolabd dirservnotify.in, NONE, 1.1 dirservupdate.in, NONE, 1.1 ChangeLog, 1.98, 1.99 Makefile.am, 1.24, 1.25 dirservnotify, 1.1.1.1, NONE dirservupdate, 1.1.1.1, NONE
cvs at kolab.org
cvs at kolab.org
Fri Jun 22 02:31:09 CEST 2007
Author: marcus
Update of /kolabrepository/server/kolabd/kolabd
In directory doto:/tmp/cvs-serv19318
Modified Files:
ChangeLog Makefile.am
Added Files:
dirservnotify.in dirservupdate.in
Removed Files:
dirservnotify dirservupdate
Log Message:
* Makefile.am, dirservnotify, dirservupdate:
autoconfiscated dirservnotify and dirservupdate. "dirservnotify" was renamed
to "dirservnotify.in" and "dirservupdate" was renamed to "dirservupdate.in".
--- NEW FILE: dirservnotify.in ---
#!@PERL@ -w
use strict;
use Getopt::Long;
use URI;
use Net::LDAP;
use Net::LDAP::LDIF;
use Net::LDAP::Entry;
use Kolab;
use Kolab::DirServ;
use Kolab::LDAP;
use vars qw($name $mode);
GetOptions(
"name=s" => \$name,
"mode=s" => \$mode
);
exit 0 if !defined $mode;
my $ldap;
$ldap = Kolab::LDAP::create(
$Kolab::config{'ldap_ip'},
$Kolab::config{'ldap_port'},
$Kolab::config{'bind_dn'},
$Kolab::config{'bind_pw'}
) || die;
my $mesg = $ldap->search(
base => $Kolab::config{'base_dn'},
scope => 'one',
filter => "(&(cn=*$name*)(mail=*))"
);
$mesg->code && die $mesg->error;
my $max = $mesg->count;
$max || die "Nothing to do!";
for (my $i = 0; $i < $max; $i++) {
my $entry = $mesg->entry($i);
if ($mode =~ /add/) {
Kolab::DirServ::notifyNew($entry);
}
if ($mode =~ /del/) {
Kolab::DirServ::notifyRemove($entry);
}
if ($mode =~ /upd/) {
Kolab::DirServ::notifyModify($entry);
}
}
--- NEW FILE: dirservupdate.in ---
#!@PERL@ -w
use strict;
use Getopt::Long;
use Kolab::DirServ;
use Kolab;
use Kolab::Util;
use vars qw($server $user $password);
GetOptions(
"server=s" => \$server,
"user=s" => \$user,
"password=s" => \$password
);
#easy default values for development
$server = $Kolab::config{'dirserv_mailbox_server'} if !$server;
$user = $Kolab::config{'dirserv_mailbox_user'} if !$user;
$password = $Kolab::config{'dirserv_mailbox_password'} if !$password;
Kolab::DirServ::handleNotifications($server, $user, $password);
Index: ChangeLog
===================================================================
RCS file: /kolabrepository/server/kolabd/kolabd/ChangeLog,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- ChangeLog 21 Jun 2007 19:29:51 -0000 1.98
+++ ChangeLog 22 Jun 2007 00:31:07 -0000 1.99
@@ -1,3 +1,10 @@
+2007-06-22 Marcus Hüwe <suse-tux at gmx.de>
+
+ * Makefile.am, dirservnotify, dirservupdate:
+
+ autoconfiscated dirservnotify and dirservupdate. "dirservnotify" was renamed
+ to "dirservnotify.in" and "dirservupdate" was renamed to "dirservupdate.in".
+
2007-06-21 Marcus Hüwe <suse-tux at gmx.de>
* Makefile.am:
Index: Makefile.am
===================================================================
RCS file: /kolabrepository/server/kolabd/kolabd/Makefile.am,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- Makefile.am 21 Jun 2007 19:29:51 -0000 1.24
+++ Makefile.am 22 Jun 2007 00:31:07 -0000 1.25
@@ -31,8 +31,6 @@
dirservupdate \
kolabdcachetool
-EXTRA_DIST += dirservnotify \
- dirservupdate
kolabconfig_FILES = kolab.conf \
kolab.globals \
@@ -243,6 +241,20 @@
chmod a+x kolabdcachetool
CLEANFILES += kolabdcachetool
EXTRA_DIST += kolabdcachetool.in
+
+dirservnotify: dirservnotify.in
+ @$(mkinstalldirs) .
+ $(do_subst) <$(srcdir)/dirservnotify.in >$@
+ chmod a+x dirservnotify
+CLEANFILES += dirservnotify
+EXTRA_DIST += dirservnotify.in
+
+dirservupdate: dirservupdate.in
+ @$(mkinstalldirs) .
+ $(do_subst) <$(srcdir)/dirservupdate.in >$@
+ chmod a+x dirservupdate
+CLEANFILES += dirservupdate
+EXTRA_DIST += dirservupdate.in
namespace/libexec/adduser: namespace/libexec/adduser.in
@$(mkinstalldirs) namespace/libexec
--- dirservnotify DELETED ---
--- dirservupdate DELETED ---
More information about the commits
mailing list