+++ /dev/null
-The Debian Package ldapvmail
-----------------------------
-
-NEWT based TUI and web interface for virtual mail system based on
-postfix, courier and ldap
-
-Peter Popovec <popovec@fei.tuke.sk>, Sun, 30 Jan 2005 12:15:51 +0100
+ldapvmail (0.4) unstable; urgency=low
+
+ * recompiled for etch
+ * some minor changes in web
+
+ -- Peter Popovec <popovec@fei.tuke.sk> Tue, 16 Jan 2007 09:26:41 +0100
+
ldapvmail (0.3.1) unstable; urgency=low
* better error check in php ldap calls
* web interface first wersion
- -- Peter Popovec <popovec@zubok> Fri, 23 Sep 2005 08:01:26 +0200
+ -- Peter Popovec <popovec@fei.tuke.sk> Fri, 23 Sep 2005 08:01:26 +0200
ldapvmail (0.2.1) unstable; urgency=low
* compilation warning clean
* fix initialization for Balias and Bforward buttons
- -- Peter Popovec <popovec@zubok> Thu, 7 Apr 2005 13:55:05 +0200
+ -- Peter Popovec <popovec@fei.tuke.sk> Thu, 7 Apr 2005 13:55:05 +0200
ldapvmail (0.2) unstable; urgency=low
--- /dev/null
+/etc/ldapVmail/config.php
+/etc/ldapVmail/apache.conf
+++ /dev/null
-/etc/ldapVmail/config.php
Section: unknown
Priority: optional
Maintainer: Peter Popovec <popovec@fei.tuke.sk>
-Build-Depends: debhelper (>> 3.0.0)
-Standards-Version: 3.5.8
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
Package: ldapvmail
Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
Description: TUI for virtual mail system based on postfix, courier and ldap
NEWT based TUI for virtual mail system based on postfix, courier and ldap
- Warning, this is alpha release !
\ No newline at end of file
+ Warning, this is alpha release !
usr/bin
-usr/share/ldapVmail
+
+++ /dev/null
-#!/bin/sh
-
-set -e
-
-#export DEBCONF_DEBUG=developer
-
-. /usr/share/debconf/confmodule
-
-db_version 2.0
-
-# Following lend from phpmyadmin's postinst
-db_get ldapVmail/httpd
-webservers="$RET"
-
-for webserver in $webservers; do
- webserver=${webserver%,}
- if [ -e /etc/$webserver/httpd.conf ] && [ ! -e /etc/$webserver/ldapVmail.conf ]; then
- mkdir -p /etc/$webserver/conf.d
- ln -sf /etc/ldapVmail/apache.conf /etc/$webserver/conf.d/ldapVmail.conf
- if [ -h /etc/$webserver/conf.d/ldapVmail ]; then
- rm -f /etc/$webserver/conf.d/ldapVmail
- fi
- fi
-done
-
#!/usr/bin/make -f
+# -*- makefile -*-
# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-# This is the debhelper compatibility version to use.
-export DH_COMPAT=3
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
endif
configure: configure-stamp
# Add here commands to compile the package.
$(MAKE)
- #/usr/bin/docbook-to-man debian/ldapvmail.sgml > ldapvmail.1
+ #docbook-to-man debian/ldapvmail.sgml > ldapvmail.1
- touch build-stamp
+ touch $@
clean:
dh_testdir
# Add here commands to clean up after the build process.
-$(MAKE) clean
- dh_clean
+ dh_clean
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/ldapvmail.
- $(MAKE) install DESTDIR=$(CURDIR)/debian/ldapvmail
+ $(MAKE) DESTDIR=$(CURDIR)/debian/ldapvmail install
(cd web ; cp -a . $(CURDIR)/debian/ldapvmail)
+
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
binary-arch: build install
dh_testdir
dh_testroot
-# dh_installdebconf
+ dh_installchangelogs
dh_installdocs
dh_installexamples
- dh_installmenu
+# dh_install
+# dh_installmenu
+# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
+# dh_python
# dh_installinit
- dh_installcron
+# dh_installcron
+# dh_installinfo
dh_installman
- dh_installinfo
-# dh_undocumented
- dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
+# dh_perl
# dh_makeshlibs
dh_installdeb
-# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
{
global $dn,$uid,$mail,$alias,$forward;
-printf("<input type=\"hidden\" name=\"dn\" value=\"%s\">",base64_encode($dn));
-printf("<input type=\"hidden\" name=\"running\" value=\"%s\">",$runtype);
+printf("<input type=\"hidden\" name=\"dn\" value=\"%s\">\n",base64_encode($dn));
+printf("<input type=\"hidden\" name=\"running\" value=\"%s\">\n",$runtype);
printf("<input type=\"hidden\" name=\"uid\" value=\"%s\">\n",base64_encode($uid));
printf("<input type=\"hidden\" name=\"mail\" value=\"%s\">\n",base64_encode($mail));
for($j=0;strlen($alias[$j])>0;$j++){
$fcount=0;
}
$forward=$forward1;
- if($selfForward==0) {
+ if($fcount>0)
+ if($selfForward==0) {
printf("<form method=\"post\" name=\"%s_selfForward\">",base64_encode($forward[$i]));
printf("<input type=\"button\" value=\"Vypnut\" style=\"color:gray\" name=\"selfForward\">\n");
printf("<input type=\"submit\" value=\"Zapnut\" name=\"selfForward\">\n");
putHiddenVariables("EDITform");
printf("Aktualny stav: mail neostava v lokalnom mailboxe<br>");
- }
- else {
+ }
+ else {
printf("<form method=\"post\" name=\"%s_selfForward\">",base64_encode($forward[$i]));
printf("<input type=\"submit\" value=\"Vypnut\" name=\"selfForward\">\n");
printf("<input type=\"button\" value=\"Zapnut\" style=\"color:gray\" name=\"selfForward\">\n");
putHiddenVariables("EDITform");
printf("Aktualny stav: mail ostava v lokalnom mailboxe<br>");
- }
+ }
foreach($forward as $i => $value1) {
if($forward[$i]!=$mail){
printf("<form method=\"post\" name=\"%s\">",base64_encode($forward[$i]));
case "ADDnew" :
$uid=$_POST["uid"];
if(strlen($uid)>0) {
- printf("<html>Novy uzivatel <b>%s</b>:<hr>",strip_tags($uid));
- printf("<table><form method=\"post\" name=\"addnew\">\n");
+ printf("<html>Novy uzivatel <b>%s</b><hr>",strip_tags($uid));
+ printf("<form method=\"post\" name=\"addnew\">\n");
+ printf("Mail address: <input type=\"text\" value=\"$uid\" name=\"xmail\"><hr>\n");
putHiddenVariables ("ADDgo");
putAdminPassInput($LdapAdmin,"SAVE");
printf("</html>");
case "ADDgo":
getAllValuesFromForm ();
+ $mail=$_POST["xmail"];
@ldap_close($ds); //rebind
$ds=@ldap_connect($LdapHost);
if($ds==FALSE){
continueForm1("Bad admin password\n");
break;
}
-
unset ($entree);
$entree["objectClass"][0]="top";
$entree["objectClass"][1]="person";
$entree["objectClass"][2]="organizationalPerson";
$entree["objectClass"][3]="inetOrgPerson";
$entree["objectClass"][4]="qmailUser";
- $entree["mail"]=$uid;
+ $entree["mail"]=$mail;
$entree["uid"]=$uid;
$entree["cn"]=$uid;
$entree["sn"]=$uid;
$entree["mailmessagestore"]="/home/vmail/".$uid."/Maildir/";
$dn="uid=".$uid.",".$netBase ;
$r=@ldap_add($ds, $dn, $entree);
- $mail=$uid;
if ($r==FALSE)
continueForm1(sprintf("Nie je mozne upravit data uzivatela <b>%s</b>",strip_tags($uid)));
else