You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
(23) |
May
(11) |
Jun
(24) |
Jul
(18) |
Aug
(7) |
Sep
(6) |
Oct
(34) |
Nov
(6) |
Dec
(23) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(16) |
Sep
(12) |
Oct
(2) |
Nov
|
Dec
(6) |
| 2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(4) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(4) |
Dec
|
|
From: <ad...@us...> - 2009-11-19 16:52:20
|
Revision: 276
http://elma.svn.sourceforge.net/elma/?rev=276&view=rev
Author: adan0s
Date: 2009-11-19 16:52:12 +0000 (Thu, 19 Nov 2009)
Log Message:
-----------
smaller fixes done
it's possible to create domainaliases now
there's a FIXME on domain_edit. the validation for the domainaliases needs to be done
Modified Paths:
--------------
trunk/includes/eximfilter.inc.php
trunk/includes/ldap_functions.inc.php
trunk/modules/content_domain_edit.php
trunk/modules/content_domains_list.php
trunk/templates/simple/content_domain_edit.tpl
trunk/templates/simple/content_domains_list.tpl
trunk/templates/simple/content_user_edit.tpl
trunk/templates/simple/style.css
Modified: trunk/includes/eximfilter.inc.php
===================================================================
--- trunk/includes/eximfilter.inc.php 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/includes/eximfilter.inc.php 2009-11-19 16:52:12 UTC (rev 276)
@@ -15,6 +15,12 @@
$eximFilter["filtertype"]["template"] = '%STATUS% Exim filter';
$eximFilter["filtertype"]["regex"] = '/^(.*) Exim filter$/i';
$eximFilter["filtertype"]["values"] = array("STATUS" => "#");
+
+ // DomainAlias Template
+ $eximFilter["maildomainalias"]["template"] = '%STATUS%deliver $local_part@%TARGETDOMAIN% # DOMAINALIAS';
+ $eximFilter["maildomainalias"]["regex"] = '/^(.*)deliver \$local_part@(.*) # DOMAINALIAS$/i';
+ $eximFilter["maildomainalias"]["values"] = array("STATUS" => "#",
+ "TARGETDOMAIN" => "");
// Redirect Template
$eximFilter["redirect"]["template"] = '%STATUS%deliver %RECIPIENT% # REDIRECT';
@@ -28,7 +34,6 @@
$eximFilter["keep"]["values"] = array("STATUS" => "#",
"RECIPIENT" => "");
-
// Spamfilter Template
$eximFilter["spamfilter"]["template"] = '%STATUS%if $header_X-Spam-Flag: contains "YES" then %FILTERACTION% endif # SPAMFILTER %ACTION%';
$eximFilter["spamfilter"]["regex"] = '/^(.*)if \$header_X-Spam-Flag: contains "YES" then (.*) endif # SPAMFILTER (.*)$/i';
Modified: trunk/includes/ldap_functions.inc.php
===================================================================
--- trunk/includes/ldap_functions.inc.php 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/includes/ldap_functions.inc.php 2009-11-19 16:52:12 UTC (rev 276)
@@ -107,7 +107,7 @@
* @attribute array array of ldap attributes to return, empty array returns everything
*/
function listDomains ($active="*", $attributes=array() ) {
- $domains = $this->getDomain("*", $active="*", $attributes=array());
+ $domains = $this->getDomain("*", $active="*", $attributes);
return $domains;
}
Modified: trunk/modules/content_domain_edit.php
===================================================================
--- trunk/modules/content_domain_edit.php 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/modules/content_domain_edit.php 2009-11-19 16:52:12 UTC (rev 276)
@@ -80,9 +80,21 @@
$my_domain["mailstatus"] = "TRUE";
} else {
$my_domain["mailstatus"] = "FALSE";
+ }
+
+ $eximFilterValues["maildomainalias"]["values"] = array( "STATUS" => "",
+ "TARGETDOMAIN" => $_POST["nlo_maildomainaliastarget"]);
+ if (! isset($_POST["nlo_maildomainalias"])) {
+ $eximFilterValues["maildomainalias"]["values"]["STATUS"] = "#";
}
+
+ #FIXME!!
+ if(($eximFilterValues["maildomainalias"]["values"]["STATUS"] == "") && ($eximFilterValues["maildomainalias"]["values"]["TARGETDOMAIN"] == "")) {
+ die("Please set a Targetdomain when enabling Domainaliasing!");
+ }
+
$my_domain["mailSieveFilter"] = createEximFilter( $eximFilterValues );
-
+
$this->ldap->modifyDomain($my_domain);
$admins_cur = $this->ldap->listAdminUsers($domain, TRUE);
@@ -165,6 +177,8 @@
/* parse Exim filter and assign values */
$eximFilterValues = parseEximFilter($my_domain["mailsievefilter"][0]);
$this->smarty->assign("spamfiltersettings",$eximFilterValues["spamfilter"]["values"]);
+ $this->smarty->assign("maildomainaliassettings",$eximFilterValues["maildomainalias"]["values"]);
+
}
/**
Modified: trunk/modules/content_domains_list.php
===================================================================
--- trunk/modules/content_domains_list.php 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/modules/content_domains_list.php 2009-11-19 16:52:12 UTC (rev 276)
@@ -51,10 +51,13 @@
$my_domains = array();
- $domains = $this->ldap->listDomains();
- for ( $i = 0; $i < $domains["count"]; $i++ ) {
+ $domains = $this->ldap->listDomains();
+ for ( $i = 0; $i < $domains["count"]; $i++ ) {
+ $eximFilterValues = parseEximFilter($domains[$i]['mailsievefilter'][0]);
$domain['dc'] = $domains[$i]["dc"][0];
- $domain['mailstatus'] = $domains[$i]["mailstatus"][0];
+ $domain['mailstatus'] = $domains[$i]["mailstatus"][0];
+ $domain['maildomainaliasstatus'] = (($eximFilterValues['maildomainalias']['values']['STATUS'] == '') && ($eximFilterValues['maildomainalias']['values']['TARGETDOMAIN'] != ''))?1:0;
+ $domain['maildomainaliastarget'] = $eximFilterValues['maildomainalias']['values']['TARGETDOMAIN'];
$domain['userslink'] = $_SERVER['PHP_SELF']."?module=users_list&domain=".$domain['dc'];
$domain['deletelink'] = $_SERVER['PHP_SELF']."?module=domain_delete&domain=".$domain['dc'];
$domain['editlink'] = $_SERVER['PHP_SELF']."?module=domain_edit&domain=".$domain['dc'];
@@ -65,7 +68,7 @@
array_push($my_domains,$domain);
}
$this->smarty->assign("link_newdomain",$_SERVER['PHP_SELF']."?module=domain_new");
- $this->smarty->assign('domains',$my_domains);
+ $this->smarty->assign('domains',$my_domains);
}
/**
Modified: trunk/templates/simple/content_domain_edit.tpl
===================================================================
--- trunk/templates/simple/content_domain_edit.tpl 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/templates/simple/content_domain_edit.tpl 2009-11-19 16:52:12 UTC (rev 276)
@@ -39,6 +39,27 @@
<hr />
</td>
</tr>
+ <tr>
+ <td>
+ {t}Use Domain as Alias?{/t}
+ </td>
+ <td>
+ <input type="checkbox" name="nlo_maildomainalias" {if $maildomainaliassettings.STATUS eq "#"}{else}checked="checked"{/if} />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {t}Targetdomain{/t}
+ </td>
+ <td>
+ <input type="text" name="nlo_maildomainaliastarget" value="{$maildomainaliassettings.TARGETDOMAIN}" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
{if @in_array("domain_edit.spamfilter",$acl) }
<tr>
<td>
Modified: trunk/templates/simple/content_domains_list.tpl
===================================================================
--- trunk/templates/simple/content_domains_list.tpl 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/templates/simple/content_domains_list.tpl 2009-11-19 16:52:12 UTC (rev 276)
@@ -11,7 +11,12 @@
{section name=domains_sec loop=$domains}
<tr>
<td>
- <a href="{$domains[domains_sec].userslink}">{$domains[domains_sec].dc}</a>
+ {if $domains[domains_sec].maildomainaliasstatus == 0}
+ <a href="{$domains[domains_sec].userslink}">{$domains[domains_sec].dc}</a>
+ {else}
+ {$domains[domains_sec].dc}<br />
+ <span class="isAliasFor">({t}Alias for{/t} {$domains[domains_sec].maildomainaliastarget})</span>
+ {/if}
</td>
<td class="status">
{$domains[domains_sec].users}/{$domains[domains_sec].usersactive}
Modified: trunk/templates/simple/content_user_edit.tpl
===================================================================
--- trunk/templates/simple/content_user_edit.tpl 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/templates/simple/content_user_edit.tpl 2009-11-19 16:52:12 UTC (rev 276)
@@ -56,7 +56,7 @@
<input type="checkbox" name="nlo_redirectstatus" onchange="switchRedirect()" {if $redirectsettings.STATUS eq "#"}{else}checked="checked"{/if}/>
</td>
</tr>
- <tr id="keepoption">
+ <tr id="keepoption" {if $redirectsettings.STATUS eq "#"}style="display:none"{/if}>
<td>
{t}Local delivery{/t}
</td>
@@ -64,7 +64,7 @@
<input type="checkbox" name="nlo_keepstatus" {if $keepsettings.STATUS eq "#"}{else}checked="checked"{/if} />
</td>
</tr>
- <tr id="recipientoption">
+ <tr id="recipientoption" {if $redirectsettings.STATUS eq "#"}style="display:none"{/if}>
<td>
{t}Recipient:{/t}
</td>
Modified: trunk/templates/simple/style.css
===================================================================
--- trunk/templates/simple/style.css 2009-11-19 12:14:25 UTC (rev 275)
+++ trunk/templates/simple/style.css 2009-11-19 16:52:12 UTC (rev 276)
@@ -263,3 +263,8 @@
margin: 0;
text-align: center;
}
+
+span.isAliasFor {
+ font-size: 9pt;
+ padding-left: 10px;
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-11-19 13:27:55
|
Revision: 275
http://elma.svn.sourceforge.net/elma/?rev=275&view=rev
Author: adan0s
Date: 2009-11-19 12:14:25 +0000 (Thu, 19 Nov 2009)
Log Message:
-----------
we really don't need to see what we delete or edit 3 times on one page.
Modified Paths:
--------------
trunk/templates/simple/content_alias_delete.tpl
trunk/templates/simple/content_alias_edit.tpl
trunk/templates/simple/content_domain_delete.tpl
trunk/templates/simple/content_domain_edit.tpl
trunk/templates/simple/content_systemuser_delete.tpl
trunk/templates/simple/content_systemuser_edit.tpl
trunk/templates/simple/content_user_delete.tpl
trunk/templates/simple/content_user_edit.tpl
Modified: trunk/templates/simple/content_alias_delete.tpl
===================================================================
--- trunk/templates/simple/content_alias_delete.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_alias_delete.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -1,5 +1,5 @@
<div id="Content">
- <h2>{t}Delete alias{/t} {$alias.uid.0}@{$domain}</h2>
+ <h2>{t}Delete alias{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
<br />
Modified: trunk/templates/simple/content_alias_edit.tpl
===================================================================
--- trunk/templates/simple/content_alias_edit.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_alias_edit.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -1,7 +1,7 @@
{validate id="nlo_mailaliasedname" message="Destinations must not be empty" append="validation_errors"}
<div id="Content">
- <h2>{t}Edit alias{/t} {$alias.uid.0}@{$domain}</h2>
+ <h2>{t}Edit alias{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
{/if}
Modified: trunk/templates/simple/content_domain_delete.tpl
===================================================================
--- trunk/templates/simple/content_domain_delete.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_domain_delete.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -1,5 +1,5 @@
<div id="Content">
- <h2>{t}Delete domain{/t} {$domain}</h2>
+ <h2>{t}Delete domain{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
<br />
Modified: trunk/templates/simple/content_domain_edit.tpl
===================================================================
--- trunk/templates/simple/content_domain_edit.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_domain_edit.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -1,7 +1,7 @@
{validate id="dc" message="Domain not valid or empty" append="validation_errors"}
<div id="Content">
- <h2>{t }Edit domain{/t} {$domain.dc}</h2>
+ <h2>{t }Edit domain{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
{/if}
Modified: trunk/templates/simple/content_systemuser_delete.tpl
===================================================================
--- trunk/templates/simple/content_systemuser_delete.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_systemuser_delete.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -1,5 +1,5 @@
<div id="Content">
- <h2>{t}Delete systemuser{/t} {$user.uid.0}</h2>
+ <h2>{t}Delete systemuser{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
<br />
Modified: trunk/templates/simple/content_systemuser_edit.tpl
===================================================================
--- trunk/templates/simple/content_systemuser_edit.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_systemuser_edit.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -2,7 +2,7 @@
{validate id="sn" message="Last name not valid or empty" append="validation_errors"}
<div id="Content">
- <h2>{t}Edit systemuser{/t} {$user.uid.0}</h2>
+ <h2>{t}Edit systemuser{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
{/if}
Modified: trunk/templates/simple/content_user_delete.tpl
===================================================================
--- trunk/templates/simple/content_user_delete.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_user_delete.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -1,5 +1,5 @@
<div id="Content">
- <h2>{t}Delete user{/t} {$user.uid.0}@{$domain}</h2>
+ <h2>{t}Delete user{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
<br />
Modified: trunk/templates/simple/content_user_edit.tpl
===================================================================
--- trunk/templates/simple/content_user_edit.tpl 2009-11-18 17:28:43 UTC (rev 274)
+++ trunk/templates/simple/content_user_edit.tpl 2009-11-19 12:14:25 UTC (rev 275)
@@ -2,7 +2,7 @@
{validate id="sn" message="Last name not valid or empty" append="validation_errors"}
<div id="Content">
- <h2>{t}Edit user{/t} {$user.uid.0}@{$domain}</h2>
+ <h2>{t}Edit user{/t}</h2>
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
{/if}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-11-18 17:28:54
|
Revision: 274
http://elma.svn.sourceforge.net/elma/?rev=274&view=rev
Author: adan0s
Date: 2009-11-18 17:28:43 +0000 (Wed, 18 Nov 2009)
Log Message:
-----------
the keep and recipient options will hide when redirect is disabled now.
Modified Paths:
--------------
trunk/templates/simple/content_user_edit.tpl
trunk/templates/simple/js_functions.js
trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.mo
trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po
Modified: trunk/templates/simple/content_user_edit.tpl
===================================================================
--- trunk/templates/simple/content_user_edit.tpl 2009-11-18 15:26:50 UTC (rev 273)
+++ trunk/templates/simple/content_user_edit.tpl 2009-11-18 17:28:43 UTC (rev 274)
@@ -53,10 +53,10 @@
{t}Redirect{/t}
</td>
<td>
- <input type="checkbox" name="nlo_redirectstatus" {if $redirectsettings.STATUS eq "#"}{else}checked="checked"{/if} />
+ <input type="checkbox" name="nlo_redirectstatus" onchange="switchRedirect()" {if $redirectsettings.STATUS eq "#"}{else}checked="checked"{/if}/>
</td>
</tr>
- <tr>
+ <tr id="keepoption">
<td>
{t}Local delivery{/t}
</td>
@@ -64,7 +64,7 @@
<input type="checkbox" name="nlo_keepstatus" {if $keepsettings.STATUS eq "#"}{else}checked="checked"{/if} />
</td>
</tr>
- <tr>
+ <tr id="recipientoption">
<td>
{t}Recipient:{/t}
</td>
@@ -105,7 +105,7 @@
</td>
<td>
<input type="text" name="clearpassword" size="10" value=""><br />
- {t}If you do not want to change the password leave this field empty{/t}
+ {t}If you do not want to change the password leave this field empty.{/t}
</td>
</tr>
<tr>
Modified: trunk/templates/simple/js_functions.js
===================================================================
--- trunk/templates/simple/js_functions.js 2009-11-18 15:26:50 UTC (rev 273)
+++ trunk/templates/simple/js_functions.js 2009-11-18 17:28:43 UTC (rev 274)
@@ -69,3 +69,21 @@
}
}
}
+
+// hide redirectoptions when redirect is disabled, show redirectoptions when redirect is enabled
+function switchRedirect() {
+ var redirect = document.getElementsByName("nlo_redirectstatus");
+ var keep = document.getElementsByName("nlo_keepstatus");
+ var keeptr = document.getElementById("keepoption");
+ var recipienttr = document.getElementById("recipientoption");
+
+ if (redirect[0].checked == true) {
+ var display = "table-row";
+ } else {
+ var display = "none";
+ }
+
+ keeptr.style.display = display;
+ keep[0].checked = true;
+ recipienttr.style.display = display;
+}
Modified: trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po
===================================================================
--- trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po 2009-11-18 15:26:50 UTC (rev 273)
+++ trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po 2009-11-18 17:28:43 UTC (rev 274)
@@ -717,3 +717,9 @@
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:362
msgid "Message:"
msgstr "Nachricht:"
+
+#. ../templates/simple/content_user_edit.tpl
+#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:362
+msgid "If you do not want to change the password leave this field empty."
+msgstr "Dieses Feld freilassen, wenn Sie Ihr Kennwort nicht ändern wollen."
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-11-18 15:27:00
|
Revision: 273
http://elma.svn.sourceforge.net/elma/?rev=273&view=rev
Author: adan0s
Date: 2009-11-18 15:26:50 +0000 (Wed, 18 Nov 2009)
Log Message:
-----------
Local delivery can be enables optionally now when redirecting mail
Modified Paths:
--------------
trunk/includes/eximfilter.inc.php
trunk/modules/content_user_edit.php
trunk/templates/simple/content_domain_edit.tpl
trunk/templates/simple/content_user_edit.tpl
trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.mo
trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po
Modified: trunk/includes/eximfilter.inc.php
===================================================================
--- trunk/includes/eximfilter.inc.php 2009-09-08 09:04:42 UTC (rev 272)
+++ trunk/includes/eximfilter.inc.php 2009-11-18 15:26:50 UTC (rev 273)
@@ -16,12 +16,19 @@
$eximFilter["filtertype"]["regex"] = '/^(.*) Exim filter$/i';
$eximFilter["filtertype"]["values"] = array("STATUS" => "#");
- // Redirect Template
+ // Redirect Template
$eximFilter["redirect"]["template"] = '%STATUS%deliver %RECIPIENT% # REDIRECT';
$eximFilter["redirect"]["regex"] = '/^(.*)deliver (.*) # REDIRECT$/i';
$eximFilter["redirect"]["values"] = array("STATUS" => "#",
- "RECIPIENT" => "");
+ "RECIPIENT" => "");
+ // Keep Template
+ $eximFilter["keep"]["template"] = '%STATUS%deliver %RECIPIENT% # KEEP';
+ $eximFilter["keep"]["regex"] = '/^(.*)deliver (.*) # KEEP$/i';
+ $eximFilter["keep"]["values"] = array("STATUS" => "#",
+ "RECIPIENT" => "");
+
+
// Spamfilter Template
$eximFilter["spamfilter"]["template"] = '%STATUS%if $header_X-Spam-Flag: contains "YES" then %FILTERACTION% endif # SPAMFILTER %ACTION%';
$eximFilter["spamfilter"]["regex"] = '/^(.*)if \$header_X-Spam-Flag: contains "YES" then (.*) endif # SPAMFILTER (.*)$/i';
Modified: trunk/modules/content_user_edit.php
===================================================================
--- trunk/modules/content_user_edit.php 2009-09-08 09:04:42 UTC (rev 272)
+++ trunk/modules/content_user_edit.php 2009-11-18 15:26:50 UTC (rev 273)
@@ -82,6 +82,12 @@
if (! isset($_POST["nlo_redirectstatus"])) {
$eximFilterValues["redirect"]["values"]["STATUS"] = "#";
}
+
+ $eximFilterValues["keep"]["values"] = array( "STATUS" => "",
+ "RECIPIENT" => $_POST["uid"].'@'.$domain);
+ if (! isset($_POST["nlo_keepstatus"])) {
+ $eximFilterValues["keep"]["values"]["STATUS"] = "#";
+ }
// remove all non LDAP objects from submited form
// an the submit and mode value
@@ -134,11 +140,12 @@
$this->smarty->assign("mode","add");
} else {
$my_user = $this->ldap->getUser($domain,$user);
- $eximFilterValues = parseEximFilter($my_user["mailsievefilter"][0]);
+ $eximFilterValues = parseEximFilter($my_user["mailsievefilter"][0]);
$this->smarty->assign("mode","modify");
$this->smarty->assign("user",$my_user);
$this->smarty->assign("vacationsettings",$eximFilterValues["vacation"]["values"]);
$this->smarty->assign("redirectsettings",$eximFilterValues["redirect"]["values"]);
+ $this->smarty->assign("keepsettings",$eximFilterValues["keep"]["values"]);
}
}
Modified: trunk/templates/simple/content_domain_edit.tpl
===================================================================
--- trunk/templates/simple/content_domain_edit.tpl 2009-09-08 09:04:42 UTC (rev 272)
+++ trunk/templates/simple/content_domain_edit.tpl 2009-11-18 15:26:50 UTC (rev 273)
@@ -48,8 +48,8 @@
<select name="mailspamfilter">
<option {if $domain.mailspamfilter.0 eq "FALSE"}selected{/if} value="FALSE">{t}disabled{/t}</option>
<option {if $domain.mailspamfilter.0 eq "DISCARD"}selected{/if} value="DISCARD">{t}discard email{/t}</option>
- <option {if $domain.mailspamfilter.0 eq "REDIRECT"}selected{/if} value="REDIRECT">{t}redirect to{/t} spam@{$domain.dc.0}</option>
- <option {if $domain.mailspamfilter.0 eq "FOLDER"}selected{/if} value="FOLDER">{t}save in user's spamfolder{/t}</option>
+<!-- <option {if $domain.mailspamfilter.0 eq "REDIRECT"}selected{/if} value="REDIRECT">{t}redirect to{/t} spam@{$domain.dc.0}</option>
+ <option {if $domain.mailspamfilter.0 eq "FOLDER"}selected{/if} value="FOLDER">{t}save in user's spamfolder{/t}</option>-->
</select>
</td>
</tr>
Modified: trunk/templates/simple/content_user_edit.tpl
===================================================================
--- trunk/templates/simple/content_user_edit.tpl 2009-09-08 09:04:42 UTC (rev 272)
+++ trunk/templates/simple/content_user_edit.tpl 2009-11-18 15:26:50 UTC (rev 273)
@@ -58,6 +58,14 @@
</tr>
<tr>
<td>
+ {t}Local delivery{/t}
+ </td>
+ <td>
+ <input type="checkbox" name="nlo_keepstatus" {if $keepsettings.STATUS eq "#"}{else}checked="checked"{/if} />
+ </td>
+ </tr>
+ <tr>
+ <td>
{t}Recipient:{/t}
</td>
<td>
Modified: trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po
===================================================================
--- trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po 2009-09-08 09:04:42 UTC (rev 272)
+++ trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po 2009-11-18 15:26:50 UTC (rev 273)
@@ -699,6 +699,11 @@
msgstr "Umleiten"
#. ../templates/simple/content_user_edit.tpl
+#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:353
+msgid "Local delivery"
+msgstr "Lokal zustellen"
+
+#. ../templates/simple/content_user_edit.tpl
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:356
msgid "Recipient:"
msgstr "Empfänger:"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-09-08 09:04:52
|
Revision: 272
http://elma.svn.sourceforge.net/elma/?rev=272&view=rev
Author: adan0s
Date: 2009-09-08 09:04:42 +0000 (Tue, 08 Sep 2009)
Log Message:
-----------
Kleinere ?\195?\156bersetzungsfixes.
Modified Paths:
--------------
trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.mo
trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po
Modified: trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.mo
===================================================================
(Binary files differ)
Modified: trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po
===================================================================
--- trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po 2009-08-19 10:43:08 UTC (rev 271)
+++ trunk/templates/simple/locale/de_DE/LC_MESSAGES/messages.po 2009-09-08 09:04:42 UTC (rev 272)
@@ -27,7 +27,7 @@
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:5
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:8
msgid "Are you sure you want to delete alias %1@%2?"
-msgstr "Sind Sie sicher, daß Sie den Alias %1@%2 löschen wollen?"
+msgstr "Sind Sie sicher, dass Sie den Alias %1@%2 löschen wollen?"
#. ../templates/simple/content_alias_delete.tpl
#. ../templates/simple/content_domain_delete.tpl
@@ -284,7 +284,7 @@
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:92
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:332
msgid "Are you sure you want to delete user %1@%2?"
-msgstr "Sind Sie sicher, daß Sie den Benutzer %1@%2 löschen wollen?"
+msgstr "Sind Sie sicher, dass Sie den Benutzer %1@%2 löschen wollen?"
#. ../templates/simple/content_user_edit.tpl
#. ../templates/simple/content_user_edit.tpl
@@ -376,7 +376,7 @@
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:128
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:404
msgid "Users and aliases for domain"
-msgstr "Benutzer und Aliase für Domäne"
+msgstr "Benutzer und Aliasse für Domäne"
#. ../templates/simple/login.tpl
#. ../templates/simple/login.tpl
@@ -577,7 +577,7 @@
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:170
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:221
msgid "Aliases"
-msgstr "Aliase"
+msgstr "Aliasse"
#. ../templates/simple/content_globaladmins_edit.tpl
#: ../templates/simple/locale/de_DE/LC_MESSAGES/messages.c:188
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-08-19 10:43:18
|
Revision: 271
http://elma.svn.sourceforge.net/elma/?rev=271&view=rev
Author: adan0s
Date: 2009-08-19 10:43:08 +0000 (Wed, 19 Aug 2009)
Log Message:
-----------
A mailUser is not allowed to ldap_list in this base_dn, he has to access his information directly.
Modified Paths:
--------------
trunk/includes/ldap_functions.inc.php
trunk/modules/content_user_edit.php
Modified: trunk/includes/ldap_functions.inc.php
===================================================================
--- trunk/includes/ldap_functions.inc.php 2009-08-19 08:48:54 UTC (rev 270)
+++ trunk/includes/ldap_functions.inc.php 2009-08-19 10:43:08 UTC (rev 271)
@@ -245,7 +245,11 @@
* @attribute array ldap attributes to return, empty array returns everything
*/
function getUser ( $domain_dc, $user_uid="*", $active="*", $attribute = array() ) {
- $result = ldap_list($this->cid, "dc=".$domain_dc.",".LDAP_DOMAINS_ROOT_DN, "(&(objectclass=mailUser)(mailStatus=$active)(uid=$user_uid))", $attribute);
+ if ($user_uid == "*")
+ $result = ldap_list($this->cid, "dc=".$domain_dc.",".LDAP_DOMAINS_ROOT_DN, "(&(objectclass=mailUser)(mailStatus=$active)(uid=$user_uid))", $attribute);
+ else
+ $result = ldap_read($this->cid, "uid=".$user_uid.",dc=".$domain_dc.",".LDAP_DOMAINS_ROOT_DN, "(&(objectclass=mailUser)(mailStatus=$active))", $attribute);
+
ldap_sort($this->cid,$result,"uid");
$user = ldap_get_entries($this->cid, $result);
if ( $user_uid !== "*" ) $user = $user[0];
Modified: trunk/modules/content_user_edit.php
===================================================================
--- trunk/modules/content_user_edit.php 2009-08-19 08:48:54 UTC (rev 270)
+++ trunk/modules/content_user_edit.php 2009-08-19 10:43:08 UTC (rev 271)
@@ -132,8 +132,8 @@
if ( $user == "new" ) {
$this->smarty->assign("mode","add");
- } else {
- $my_user = $this->ldap->getUser($domain,$user);
+ } else {
+ $my_user = $this->ldap->getUser($domain,$user);
$eximFilterValues = parseEximFilter($my_user["mailsievefilter"][0]);
$this->smarty->assign("mode","modify");
$this->smarty->assign("user",$my_user);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-08-19 08:49:02
|
Revision: 270
http://elma.svn.sourceforge.net/elma/?rev=270&view=rev
Author: adan0s
Date: 2009-08-19 08:48:54 +0000 (Wed, 19 Aug 2009)
Log Message:
-----------
Changed the password-field behavior, it was really annyoing to see your browser automatically write a password into this field, which caused a mismatching password everytime you edit a user.
Modified Paths:
--------------
trunk/modules/content_user_edit.php
trunk/templates/simple/content_user_edit.tpl
Modified: trunk/modules/content_user_edit.php
===================================================================
--- trunk/modules/content_user_edit.php 2009-07-29 09:52:29 UTC (rev 269)
+++ trunk/modules/content_user_edit.php 2009-08-19 08:48:54 UTC (rev 270)
@@ -63,7 +63,7 @@
}
- $this->smarty->assign("domain",$domain);
+ $this->smarty->assign("domain",$domain);
// new user created or existing user modified
if (isset($_POST["submit"])) {
@@ -85,7 +85,7 @@
// remove all non LDAP objects from submited form
// an the submit and mode value
- $my_user = remove_key_by_str($_POST,"nlo_");
+ $my_user = remove_key_by_str($_POST,"nlo_");
unset($my_user["submit"]);
unset($my_user["mailstatus"]);
@@ -99,7 +99,10 @@
$my_user["mailSieveFilter"] = createEximFilter( $eximFilterValues );
- $my_user["userpassword"] = "{MD5}".base64_encode(pack("H*",md5($my_user["clearpassword"])));
+ if (empty($my_user["clearpassword"]))
+ unset($my_user["clearpassword"]);
+ else
+ $my_user["userpassword"] = "{MD5}".base64_encode(pack("H*",md5($my_user["clearpassword"])));
// modify LDAP entry
$this->ldap->modifyUser($domain,$my_user);
@@ -124,7 +127,7 @@
SmartyValidate::connect($this->smarty, true);
SmartyValidate::register_validator('cn', 'cn', 'notEmpty');
SmartyValidate::register_validator('sn', 'sn', 'notEmpty');
- SmartyValidate::register_validator('password', 'clearpassword:nlo_clearpassword1', 'isEqual');
+// SmartyValidate::register_validator('password', 'clearpassword', 'notEmpty');
}
if ( $user == "new" ) {
Modified: trunk/templates/simple/content_user_edit.tpl
===================================================================
--- trunk/templates/simple/content_user_edit.tpl 2009-07-29 09:52:29 UTC (rev 269)
+++ trunk/templates/simple/content_user_edit.tpl 2009-08-19 08:48:54 UTC (rev 270)
@@ -1,6 +1,5 @@
{validate id="cn" message="First name not valid or empty" append="validation_errors"}
{validate id="sn" message="Last name not valid or empty" append="validation_errors"}
- {validate id="password" message="passwords do not match" append="validation_errors"}
<div id="Content">
<h2>{t}Edit user{/t} {$user.uid.0}@{$domain}</h2>
@@ -97,8 +96,8 @@
{t}Password{/t}
</td>
<td>
- password: <input type="password" name="clearpassword" size="10" value="{$user.clearpassword.0}"><br />
- password: <input type="password" name="nlo_clearpassword1" size="10" value="{$user.clearpassword.0}"><br />
+ <input type="text" name="clearpassword" size="10" value=""><br />
+ {t}If you do not want to change the password leave this field empty{/t}
</td>
</tr>
<tr>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ad...@us...> - 2009-07-29 09:52:44
|
Revision: 269
http://elma.svn.sourceforge.net/elma/?rev=269&view=rev
Author: adan0s
Date: 2009-07-29 09:52:29 +0000 (Wed, 29 Jul 2009)
Log Message:
-----------
fixed header-redirect pointing at wrong page (showing "no access")
Modified Paths:
--------------
trunk/modules/content_user_new.php
Modified: trunk/modules/content_user_new.php
===================================================================
--- trunk/modules/content_user_new.php 2009-06-16 12:30:37 UTC (rev 268)
+++ trunk/modules/content_user_new.php 2009-07-29 09:52:29 UTC (rev 269)
@@ -95,7 +95,7 @@
switch($next_step) {
case 'show_overview':
SmartyValidate::disconnect();
- header("Location: index.php?module=sysemuser_list");
+ header("Location: index.php?module=users_list&domain=" . urlencode($domain) );
exit;
break;
case 'edit_current':
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2009-06-16 13:12:58
|
Revision: 267
http://elma.svn.sourceforge.net/elma/?rev=267&view=rev
Author: vog
Date: 2009-06-16 12:25:57 +0000 (Tue, 16 Jun 2009)
Log Message:
-----------
bugfix: when a user edited himself (e.g. changed password), his mailstatus became FALSE
Modified Paths:
--------------
trunk/modules/content_user_edit.php
Modified: trunk/modules/content_user_edit.php
===================================================================
--- trunk/modules/content_user_edit.php 2009-06-16 12:06:17 UTC (rev 266)
+++ trunk/modules/content_user_edit.php 2009-06-16 12:25:57 UTC (rev 267)
@@ -87,11 +87,14 @@
// an the submit and mode value
$my_user = remove_key_by_str($_POST,"nlo_");
unset($my_user["submit"]);
+ unset($my_user["mailstatus"]);
- if (isset($_POST["mailstatus"])) {
- $my_user["mailstatus"] = "TRUE";
- } else {
- $my_user["mailstatus"] = "FALSE";
+ if (in_array('user_edit.active', $acl[$_SESSION['userclass']])) {
+ if (isset($_POST["mailstatus"])) {
+ $my_user["mailstatus"] = "TRUE";
+ } else {
+ $my_user["mailstatus"] = "FALSE";
+ }
}
$my_user["mailSieveFilter"] = createEximFilter( $eximFilterValues );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2009-06-16 12:52:44
|
Revision: 268
http://elma.svn.sourceforge.net/elma/?rev=268&view=rev
Author: vog
Date: 2009-06-16 12:30:37 +0000 (Tue, 16 Jun 2009)
Log Message:
-----------
fixed typo in previous bugfix
Modified Paths:
--------------
trunk/modules/content_user_edit.php
Modified: trunk/modules/content_user_edit.php
===================================================================
--- trunk/modules/content_user_edit.php 2009-06-16 12:25:57 UTC (rev 267)
+++ trunk/modules/content_user_edit.php 2009-06-16 12:30:37 UTC (rev 268)
@@ -89,7 +89,7 @@
unset($my_user["submit"]);
unset($my_user["mailstatus"]);
- if (in_array('user_edit.active', $acl[$_SESSION['userclass']])) {
+ if ($_SESSION["userclass"] != "user") {
if (isset($_POST["mailstatus"])) {
$my_user["mailstatus"] = "TRUE";
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2009-06-16 12:06:38
|
Revision: 266
http://elma.svn.sourceforge.net/elma/?rev=266&view=rev
Author: vog
Date: 2009-06-16 12:06:17 +0000 (Tue, 16 Jun 2009)
Log Message:
-----------
adjust the LDAP functions to work with PHP-5
Modified Paths:
--------------
trunk/includes/ldap_functions.inc.php
Modified: trunk/includes/ldap_functions.inc.php
===================================================================
--- trunk/includes/ldap_functions.inc.php 2009-06-16 12:02:56 UTC (rev 265)
+++ trunk/includes/ldap_functions.inc.php 2009-06-16 12:06:17 UTC (rev 266)
@@ -121,7 +121,10 @@
* @attribute array ldap attributes to return, empty array returns everything
*/
function getDomain ( $domain_dc="*", $active="*", $attributes=array() ) {
- $result = ldap_list($this->cid, LDAP_DOMAINS_ROOT_DN, "(&(objectClass=mailDomain)(dc=$domain_dc)(mailStatus=$active))", $attributes);
+ $result = @ldap_list($this->cid, LDAP_DOMAINS_ROOT_DN, "(&(objectClass=mailDomain)(dc=$domain_dc)(mailStatus=$active))", $attributes);
+ if ($result === FALSE) {
+ return array();
+ }
ldap_sort($this->cid,$result,"dc");
$domain = ldap_get_entries($this->cid, $result);
@@ -756,16 +759,15 @@
* @user_uid string uid= value of a user's dn
*/
function isAdminUser ($user_uid) {
- $is_admin = FALSE;
$user_dn = "uid=".$user_uid.",".LDAP_USERS_ROOT_DN;
+ $result = @ldap_list($this->cid, LDAP_USERS_ROOT_DN, "(&(member=$user_dn)(cn=admingroup))");
- $result = ldap_list($this->cid, LDAP_USERS_ROOT_DN, "(&(member=$user_dn)(cn=admingroup))");
- $entries = ldap_get_entries($this->cid, $result);
-
- if ($entries["count"] > 0) {
- $is_admin = TRUE;
+ if ($result === FALSE) {
+ return FALSE;
+ } else {
+ $entries = ldap_get_entries($this->cid, $result);
+ return $entries["count"] > 0;
}
- return $is_admin;
}
/**
@@ -776,10 +778,12 @@
* @dn string a ldap dn
*/
function getEntry($dn, $filter="(objectClass=*)", $attributes = array()) {
- $result = ldap_read($this->cid, $dn, $filter, $attributes);
- $entries = ldap_get_entries($this->cid, $result);
-
- return $entries;
+ $result = @ldap_read($this->cid, $dn, $filter, $attributes);
+ if ($result === FALSE) {
+ return array();
+ } else {
+ return ldap_get_entries($this->cid, $result);
+ }
}
}
// vim:tabstop=4:expandtab:shiftwidth=4:filetype=php:syntax:ruler:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2009-06-16 12:03:35
|
Revision: 265
http://elma.svn.sourceforge.net/elma/?rev=265&view=rev
Author: vog
Date: 2009-06-16 12:02:56 +0000 (Tue, 16 Jun 2009)
Log Message:
-----------
adjust the ACLs of the slapd.conf example to slapd 2.4.11
Modified Paths:
--------------
trunk/doc/examples/ldap/slapd.conf
Modified: trunk/doc/examples/ldap/slapd.conf
===================================================================
--- trunk/doc/examples/ldap/slapd.conf 2009-03-20 03:19:22 UTC (rev 264)
+++ trunk/doc/examples/ldap/slapd.conf 2009-06-16 12:02:56 UTC (rev 265)
@@ -62,7 +62,7 @@
by group.expand="cn=admingroup,dc=$1,ou=domains,o=mybasedn" write
by anonymous auth
by self write
- by * none
+ by * search
# The userPassword and clearpassword by default can be changed
# by the entry owning it if they are authenticated and global or
@@ -90,4 +90,4 @@
by group="cn=admingroup,ou=users,o=mybasedn" write
by dn="uid=exim4,ou=users,o=mybasedn" read
by self write
- by * none
+ by * search
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2009-03-20 03:19:31
|
Revision: 264
http://elma.svn.sourceforge.net/elma/?rev=264&view=rev
Author: vog
Date: 2009-03-20 03:19:22 +0000 (Fri, 20 Mar 2009)
Log Message:
-----------
remove a useless and dangling slapd configuration line
Modified Paths:
--------------
trunk/doc/examples/ldap/slapd.conf
Modified: trunk/doc/examples/ldap/slapd.conf
===================================================================
--- trunk/doc/examples/ldap/slapd.conf 2008-12-03 16:19:50 UTC (rev 263)
+++ trunk/doc/examples/ldap/slapd.conf 2009-03-20 03:19:22 UTC (rev 264)
@@ -71,7 +71,6 @@
by dn="uid=admin,ou=users,o=mybasedn" write
by group="cn=admingroup,ou=users,o=mybasedn" write
by dn="uid=exim4,ou=users,o=mybasedn" read
- by group.expand="cn=admingroup,dc=$1,ou=domains,o=mybasedn" write
by anonymous auth
by self write
by * none
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dwe...@us...> - 2008-12-03 16:19:55
|
Revision: 263
http://elma.svn.sourceforge.net/elma/?rev=263&view=rev
Author: dweuthen
Date: 2008-12-03 16:19:50 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
mailSpamFilter added
Modified Paths:
--------------
trunk/doc/examples/ldap/elma-0.3.schema
Modified: trunk/doc/examples/ldap/elma-0.3.schema
===================================================================
--- trunk/doc/examples/ldap/elma-0.3.schema 2008-12-03 15:50:52 UTC (rev 262)
+++ trunk/doc/examples/ldap/elma-0.3.schema 2008-12-03 16:19:50 UTC (rev 263)
@@ -11,7 +11,8 @@
DESC 'FQHN of mailstorage host'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
+ SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.25287.1.1.1.3
NAME 'mailSieveFilter'
@@ -19,12 +20,21 @@
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
+attributetype ( 1.3.6.1.4.1.25287.1.1.2.4
+ NAME 'mailSpamFilter'
+ DESC 'set spamfilter action'
+ EQUALITY caseIgnoreIA5Match
+ SUBSTR caseIgnoreIA5SubstringsMatch
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
+ SINGLE-VALUE )
+
+
# mailDomain
objectclass ( 1.3.6.1.4.1.25287.1.1.2.100
NAME 'mailDomain' SUP domain
DESC 'Mail Domain' STRUCTURAL
MUST ( dc $ mailStatus $ mailStorageserver)
- MAY ( mailSieveFilter ) )
+ MAY ( mailSieveFilter $ mailSpamFilter) )
# mailUser
attributetype ( 1.3.6.1.4.1.25287.1.1.2.201
@@ -37,7 +47,7 @@
NAME 'mailUser'
DESC 'Mail router user' SUP person STRUCTURAL
MUST ( uid $ userPassword $ homeDirectory $ mailStatus $ mailStorageserver)
- MAY ( clearpassword $ mailSieveFilter ) )
+ MAY ( clearpassword $ mailSieveFilter $ mailSpamFilter) )
# mailAlias
attributetype ( 1.3.6.1.4.1.25287.1.1.2.301 NAME 'mailAliasedName'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dwe...@us...> - 2008-12-03 15:50:56
|
Revision: 262
http://elma.svn.sourceforge.net/elma/?rev=262&view=rev
Author: dweuthen
Date: 2008-12-03 15:50:52 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
lots of new things i cannot remember have changed,
because i have changed them a very long time ago
in a galaxy far far away...
Modified Paths:
--------------
trunk/doc/examples/exim4/exim4.conf.dist
trunk/includes/acl.inc.php
trunk/modules/content_alias_new.php
trunk/modules/content_domain_edit.php
trunk/modules/content_globaladmins_edit.php
trunk/modules/content_systemuser_edit.php
trunk/modules/content_systemusers_list.php
trunk/modules/content_user_new.php
Added Paths:
-----------
trunk/modules/content_systemuser_new.php
Modified: trunk/doc/examples/exim4/exim4.conf.dist
===================================================================
--- trunk/doc/examples/exim4/exim4.conf.dist 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/doc/examples/exim4/exim4.conf.dist 2008-12-03 15:50:52 UTC (rev 262)
@@ -58,6 +58,9 @@
# return the user's homeDirectory
LDAP_HOME_DIRECTORY = ${lookup ldap{user=LDAP_BIND_USER pass=LDAP_BIND_PASS ldap:///uid=${quote_ldap_dn:${local_part}},dc=${quote_ldap_dn:${domain}},LDAP_DOMAINS_ROOT_DN?homeDirectory?base} {$value} fail}
+# returns the domain spamfilter action
+LDAP_DOMAIN_SPAMFILTER_ACTION = ${lookup ldap{user=LDAP_BIND_USER pass=LDAP_BIND_PASS ldap:///uid=${quote_ldap_dn:${local_part}},dc=${quote_ldap_dn:${domain}},LDAP_DOMAINS_ROOT_DN?mailSpamFilter?base?} {$value} fail}
+
# get the mailSieveFilter attribute for an user
LDAP_GET_USER_FILTER = ${lookup ldap{user=LDAP_BIND_USER pass=LDAP_BIND_PASS ldap:///uid=${quote_ldap_dn:${local_part}},dc=${quote_ldap_dn:${domain}},LDAP_DOMAINS_ROOT_DN?mailSieveFilter?base?(objectclass=mailUser)} {$value} fail}
Modified: trunk/includes/acl.inc.php
===================================================================
--- trunk/includes/acl.inc.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/includes/acl.inc.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -9,7 +9,7 @@
*/
define ("ACL",serialize(array(
- "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"),
+ "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","systemuser_new","globaladmins_edit","statistics"),
"domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","statistics"),
"user" => array("main", "user_edit", "user_edit_himself")
)));
Modified: trunk/modules/content_alias_new.php
===================================================================
--- trunk/modules/content_alias_new.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/modules/content_alias_new.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -73,6 +73,7 @@
// remove all non LDAP objects from submited form
// an the submit and mode value
$my_alias = remove_key_by_str($_POST,"nlo_");
+ $my_alias["uid"] = strtolower($my_alias["uid"]);
unset($my_alias["submit"]);
if (isset($_POST["mailstatus"])) {
Modified: trunk/modules/content_domain_edit.php
===================================================================
--- trunk/modules/content_domain_edit.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/modules/content_domain_edit.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -60,13 +60,6 @@
if(SmartyValidate::is_valid($_POST)) {
- // create array of submitted values
- $eximFilterValues["spamfilter"]["values"] = array( "STATUS" => "",
- "ACTION" => $_POST["nlo_spamfilteraction"]);
- if ( ! isset($_POST["nlo_spamfilterstatus"]) ) {
- $eximFilterValues["spamfilter"]["values"]["STATUS"] = "#";
- }
-
// remove all non LDAP objects from submited form
// an the submit and mode value
$my_domain = remove_key_by_str($_POST,"nlo_");
@@ -88,7 +81,7 @@
} else {
$my_domain["mailstatus"] = "FALSE";
}
- $my_domain["mailSieveFilter"] = createEximFilter( $eximFilterValues );
+ $my_domain["mailSieveFilter"] = createEximFilter( $eximFilterValues );
$this->ldap->modifyDomain($my_domain);
Modified: trunk/modules/content_globaladmins_edit.php
===================================================================
--- trunk/modules/content_globaladmins_edit.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/modules/content_globaladmins_edit.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -52,8 +52,9 @@
{
// working on the admingroup
if (isset($_POST["submit"])) {
+
// remove all non LDAP objects from submited form
- // an the submit and mode value
+ // and the submit value
$my_domain = remove_key_by_str($_POST,"nlo_");
if (isset($_POST["admins"])) {
@@ -91,13 +92,10 @@
} else {
$this->smarty->assign("submit_status",ldap_err2str($submit_status));
}
- } else {
+ } else { // LDAP error occured
$this->smarty->assign("submit_status",-1);
}
- $this->smarty->assign("mode","modify");
-
-
$systemusers = $this->ldap->listSystemUsers();
if ( count($systemusers) == 0 ) $systemusers = array();
unset($systemusers["count"]);
Modified: trunk/modules/content_systemuser_edit.php
===================================================================
--- trunk/modules/content_systemuser_edit.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/modules/content_systemuser_edit.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -55,6 +55,7 @@
// new systemuser created or existing systemuser modified
if (isset($_POST["submit"])) {
+
SmartyValidate::connect($this->smarty);
if (SmartyValidate::is_valid($_POST)) {
@@ -84,51 +85,35 @@
unset($my_systemuser["clearpassword"]);
// }
- switch ($_POST["mode"]) {
- case "add":
- $this->ldap->addSystemUser($my_systemuser);
- if ( !isset($new_adminofdomains) || count($new_adminofdomains) == 0) $new_adminofdomains = array();
+ if ( !isset($new_adminofdomains) || count($new_adminofdomains) == 0) $new_adminofdomains = array();
+ $old_adminofdomains = $this->ldap->getSystemUsersDomains($systemuser);
+ unset ($my_systemuser["adminofdomains"]);
+
+ $this->ldap->modifySystemUser($my_systemuser);
- $addDomainAdmin = $new_adminofdomains;
+ $addDomainAdmin = array();
+ $delDomainAdmin = array();
+
- if ( count($addDomainAdmin) > 0 ) {
- foreach($addDomainAdmin as $domain) {
- $this->ldap->addAdminUsers($domain, "uid=".$my_systemuser["uid"].",".LDAP_USERS_ROOT_DN);
- }
- }
- break;
- case "modify":
- if ( !isset($new_adminofdomains) || count($new_adminofdomains) == 0) $new_adminofdomains = array();
- $old_adminofdomains = $this->ldap->getSystemUsersDomains($systemuser);
- unset ($my_systemuser["adminofdomains"]);
-
- $this->ldap->modifySystemUser($my_systemuser);
+ /* check if the user is admin already */
+ /* and put him onto the add array if not */
+ $addDomainAdmin = array_diff($new_adminofdomains,$old_adminofdomains);
+
+ /* check if the user used to be admin */
+ /* and put him onto the del array if he isn't any longer */
+ $delDomainAdmin = array_diff($old_adminofdomains,$new_adminofdomains);
- $addDomainAdmin = array();
- $delDomainAdmin = array();
-
-
- /* check if the user is admin already */
- /* and put him onto the add array if not */
- $addDomainAdmin = array_diff($new_adminofdomains,$old_adminofdomains);
-
- /* check if the user used to be admin */
- /* and put him onto the del array if he isn't any longer */
- $delDomainAdmin = array_diff($old_adminofdomains,$new_adminofdomains);
-
- if ( count($addDomainAdmin) > 0 ) {
- foreach($addDomainAdmin as $domain) {
- $this->ldap->addAdminUsers($domain, "uid=".$systemuser.",".LDAP_USERS_ROOT_DN);
- }
- }
-
- if ( count($delDomainAdmin) > 0) {
- foreach($delDomainAdmin as $domain) {
- $this->ldap->deleteAdminUsers($domain, "uid=".$systemuser.",".LDAP_USERS_ROOT_DN);
- }
- }
- break;
+ if ( count($addDomainAdmin) > 0 ) {
+ foreach($addDomainAdmin as $domain) {
+ $this->ldap->addAdminUsers($domain, "uid=".$systemuser.",".LDAP_USERS_ROOT_DN);
+ }
}
+
+ if ( count($delDomainAdmin) > 0) {
+ foreach($delDomainAdmin as $domain) {
+ $this->ldap->deleteAdminUsers($domain, "uid=".$systemuser.",".LDAP_USERS_ROOT_DN);
+ }
+ }
$submit_status = ldap_errno($this->ldap->cid);
if ($submit_status == "0") {
Added: trunk/modules/content_systemuser_new.php
===================================================================
--- trunk/modules/content_systemuser_new.php (rev 0)
+++ trunk/modules/content_systemuser_new.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -0,0 +1,177 @@
+<?php
+/**
+ * @author Daniel Weuthen <da...@we...>
+ * @version $LastChangedRevision$
+ * @package ELMA
+ *
+ * $Id$
+ * $LastChangedBy$
+ *
+ * =====================================================================
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
+ *
+ * =====================================================================
+ */
+
+/**
+ * content systemsystemuser new
+ *
+ * This content module is used for creating the systemsystemuser
+ * add form and handling of the submited data.
+ */
+
+class content_systemuser_new extends module_base
+{
+
+ /**
+ * Constructor of this class
+ */
+ function content_systemsystemuser_new()
+ {
+ parent::module_base();
+ }
+
+ /**
+ * This method is called after the constructor by the main page
+ */
+ function proceed()
+ {
+ // new systemuser should be created
+ if (isset($_POST["submit"])) {
+
+ // check if submitted data is valid
+ SmartyValidate::connect($this->smarty);
+ if (SmartyValidate::is_valid($_POST)) {
+
+ // save all needed information which are no ldap objects themself
+ // as they get removed in the next step
+ if ( !empty($_POST["nlo_adminofdomains"]) ) {
+ $new_adminofdomains = $_POST["nlo_adminofdomains"];
+ }
+
+ if(!empty($_POST["nlo_next_step"])) {
+ $next_step = $_POST["nlo_next_step"];
+ } else {
+ $next_step = "";
+ }
+
+ // remove all non LDAP objects from submited form
+ // and the submit value
+ $my_systemuser = remove_key_by_str($_POST,"nlo_");
+ unset($my_systemuser["submit"]);
+ unset($my_systemuser["mode"]);
+
+ // create md5 password hash from submitted cleartext password
+ // and if not defined in the global config, remove clearpassword
+ // from array to prevent storing it in the LDAP database
+ if (! $my_systemuser["clearpassword"] == "") {
+ $my_systemuser["userpassword"] = "{MD5}".base64_encode(pack("H*",md5($my_systemuser["clearpassword"])));
+ }
+ //if (! defined(SAVECLEARPASS) || empty($my_systemuser["clearpassword"])) {
+ unset($my_systemuser["clearpassword"]);
+ // }
+
+ // finally create the system user in the ldap database
+ $this->ldap->addSystemUser($my_systemuser);
+ $submit_status = ldap_errno($this->ldap->cid);
+ if ($submit_status == "0") {
+
+ // if user has been successfully created, add him to the admin group of selected domains
+ // otherwise just create and empty array to prevent further errors
+ if ( !isset($new_adminofdomains) || count($new_adminofdomains) == 0) $new_adminofdomains = array();
+ $addDomainAdmin = $new_adminofdomains;
+
+ if ( count($addDomainAdmin) > 0 ) {
+ foreach($addDomainAdmin as $domain) {
+ $this->ldap->addAdminUsers($domain, "uid=".$my_systemuser["uid"].",".LDAP_USERS_ROOT_DN);
+ if (ldap_errno($this->ldap->cid) != "0") {
+ $submit_status .= ldap_errno($this->ldap->cid);
+ }
+ }
+ }
+
+ $this->smarty->assign("submit_status",$submit_status);
+
+ switch($next_step) {
+ case 'show_overview':
+ SmartyValidate::disconnect();
+ Header("Location: index.php?module=systemusers_list" );
+ exit;
+ break;
+ case 'edit_current':
+ SmartyValidate::disconnect();
+ Header("Location: index.php?module=systemuser_edit&user=" . urlencode($my_systemuser["uid"]));
+ exit;
+ break;
+ case 'add_another':
+ // nothing
+ break;
+ }
+ } else { // LDAP error occured
+ $this->smarty->assign("submit_status",ldap_err2str($submit_status));
+ }
+ } else { // input validation failed
+ $this->smarty->assign($_POST);
+ }
+ } else { // form has not yet been submitted
+ $this->smarty->assign("submit_status",-1);
+ SmartyValidate::connect($this->smarty, true);
+ SmartyValidate::register_validator('uid', 'uid', 'notEmpty');
+ SmartyValidate::register_validator('cn', 'cn', 'notEmpty');
+ SmartyValidate::register_validator('sn', 'sn', 'notEmpty');
+ SmartyValidate::register_validator('password', 'clearpassword', 'notEmpty');
+ }
+
+ $adminofdomains = $this->ldap->getSystemUsersDomains($systemuser);
+ $domains_dn = $this->ldap->listDomains();
+
+ /* check in which domains the selected user is */
+ if ($_SESSION["userclass"] == "systemadmin" ) {
+ /* filter the dc part out of the dn */
+ unset($domains_dn["count"]);
+
+ $domain = array();
+ $domains = array();
+
+ foreach($domains_dn as $domain_dn) {
+ $domain = ldap_explode_dn($domain_dn["dn"], 1);
+ array_push($domains, $domain[0]);
+ }
+
+ /* we want to have only the domains in $domains which aren't in $domainsin already */
+ $available_domains = array();
+ $available_domains = array_diff($domains,$adminofdomains);
+
+ /* assign domain vars only if the logged in user is an admin */
+ $this->smarty->assign("availabledomains", $available_domains);
+ $this->smarty->assign("adminofdomains", $adminofdomains);
+ }
+ }
+
+ /**
+ * This method returns any content that should be echoed by the
+ * main page.
+ *
+ * @return string
+ */
+ function getContent()
+ {
+ $_content = $this->smarty->fetch('content_systemuser_new.tpl');
+ return $_content;
+ }
+}
+// vim:tabstop=4:expandtab:shiftwidth=4:filetype=php:syntax:ruler:
Modified: trunk/modules/content_systemusers_list.php
===================================================================
--- trunk/modules/content_systemusers_list.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/modules/content_systemusers_list.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -65,7 +65,7 @@
array_push($my_users,$user);
}
- $this->smarty->assign("link_newsystemuser",$_SERVER['PHP_SELF']."?module=systemuser_edit&user=new");
+ $this->smarty->assign("link_newsystemuser",$_SERVER['PHP_SELF']."?module=systemuser_new");
$this->smarty->assign('systemusers',$my_users);
}
Modified: trunk/modules/content_user_new.php
===================================================================
--- trunk/modules/content_user_new.php 2008-12-03 15:47:44 UTC (rev 261)
+++ trunk/modules/content_user_new.php 2008-12-03 15:50:52 UTC (rev 262)
@@ -72,6 +72,7 @@
// remove all non LDAP objects from submited form
// an the submit value
$my_user = remove_key_by_str($_POST,"nlo_");
+ $my_user["uid"] = strtolower($my_user["uid"]);
unset($my_user["submit"]);
if (isset($_POST["mailstatus"])) {
@@ -90,15 +91,21 @@
if ($submit_status == "0") {
$this->smarty->assign("submit_status",$submit_status);
$user = $my_user["uid"];
+
switch($next_step) {
- case 'show_overview':
- SmartyValidate::disconnect();
- header("Location: index.php?module=users_list&domain=" . urlencode($domain) );
- exit;
- break;
- case 'add_another':
- // nothing
- break;
+ case 'show_overview':
+ SmartyValidate::disconnect();
+ header("Location: index.php?module=sysemuser_list");
+ exit;
+ break;
+ case 'edit_current':
+ SmartyValidate::disconnect();
+ header("Location: index.php?module=systemuser_edit&&user=" . urlencode($user) );
+ exit;
+ break;
+ case 'add_another':
+ // nothing
+ break;
}
} else { // LDAP error occured
$this->smarty->assign("submit_status",ldap_err2str($submit_status));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dwe...@us...> - 2008-12-03 15:47:48
|
Revision: 261
http://elma.svn.sourceforge.net/elma/?rev=261&view=rev
Author: dweuthen
Date: 2008-12-03 15:47:44 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
new file
Added Paths:
-----------
trunk/templates/simple/content_systemuser_new.tpl
Added: trunk/templates/simple/content_systemuser_new.tpl
===================================================================
--- trunk/templates/simple/content_systemuser_new.tpl (rev 0)
+++ trunk/templates/simple/content_systemuser_new.tpl 2008-12-03 15:47:44 UTC (rev 261)
@@ -0,0 +1,126 @@
+ {validate id="uid" message="Username not valid or empty" append="validation_errors"}
+ {validate id="cn" message="First name not valid or empty" append="validation_errors"}
+ {validate id="sn" message="Last name not valid or empty" append="validation_errors"}
+
+ <div id="Content">
+ <h2>{t}New systemuser{/t}</h2>
+ {if $smarty.post.submit}
+ {include file="print_submit_status.tpl"}
+ {/if}
+ <form action="{$smarty.server.REQUEST_URI}" method="post" onsubmit="markAllDomains()">
+ <div>
+ <input type="hidden" name="mode" value="{$mode}"/>
+ </div>
+ <fieldset>
+ <legend>{t}new systemuser{/t}</legend>
+ <table>
+ <tr>
+ <td>
+ {t}Username{/t}
+ </td>
+ <td>
+ <input type="text" name="uid" value="{$user.uid.0}" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {t}First name{/t}
+ </td>
+ <td>
+ <input type="text" name="cn" value="{$user.cn.0}" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {t}Last name{/t}
+ </td>
+ <td>
+ <input type="text" name="sn" value="{$user.sn.0}" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {t}Password{/t}
+ {if $mode == "modify"}
+ <br />
+ {/if}
+ </td>
+ <td>
+ <input type="text" name="clearpassword" value="{$user.clearpassword.0}" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ {t}ACL{/t}
+ <table>
+ <tr>
+ <td>
+ {t}Administrator of{/t}
+ <br />
+ <select name="nlo_adminofdomains[]" size="8" multiple="multiple">
+ {foreach from=$adminofdomains item=domain}
+ <option value="{$domain}">{$domain}</option>
+ {/foreach}
+ </select>
+ </td>
+ <td>
+ <div>
+ <br />
+ <br />
+ <input type="button" name="delfromlist" value=">" onclick="delDomain()" />
+ <br />
+ <br />
+ <input type="button" name="addtolist" value="<" onclick="addDomain()" />
+ </div>
+ </td>
+ <td>
+ {t}Not administrator of{/t}
+ <br />
+ <select name="nlo_availabledomains[]" size="8" multiple="multiple">
+ {foreach from=$availabledomains item=domain}
+ <option value="{$domain}">{$domain}</option>
+ {/foreach}
+ </select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {t}Next Step{/t}
+ </td>
+ <td>
+ <input type="radio" name="nlo_next_step" value="add_another" checked="true" /> {t}Add another user{/t}<br />
+ <input type="radio" name="nlo_next_step" value="edit_current" /> {t}Edit new user{/t}<br />
+ <input type="radio" name="nlo_next_step" value="show_overview" /> {t}Go to user overview{/t}<br />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" class="buttons">
+ <input type="submit" name="submit" value="{t}Save{/t}"/>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </form>
+ </div>
+
+{*
+// vim:tabstop=4:expandtab:shiftwidth=4:filetype=smarty:syntax:ruler:
+*}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dwe...@us...> - 2008-12-03 15:46:23
|
Revision: 260
http://elma.svn.sourceforge.net/elma/?rev=260&view=rev
Author: dweuthen
Date: 2008-12-03 15:46:18 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
remove new user option from this file
Modified Paths:
--------------
trunk/templates/simple/content_systemuser_edit.tpl
Modified: trunk/templates/simple/content_systemuser_edit.tpl
===================================================================
--- trunk/templates/simple/content_systemuser_edit.tpl 2008-12-03 15:43:20 UTC (rev 259)
+++ trunk/templates/simple/content_systemuser_edit.tpl 2008-12-03 15:46:18 UTC (rev 260)
@@ -1,13 +1,8 @@
- {validate id="uid" message="Username not valid or empty" append="validation_errors"}
{validate id="cn" message="First name not valid or empty" append="validation_errors"}
{validate id="sn" message="Last name not valid or empty" append="validation_errors"}
<div id="Content">
- {if $mode == "modify"}
<h2>{t}Edit systemuser{/t} {$user.uid.0}</h2>
- {else}
- <h2>{t}New systemuser{/t}</h2>
- {/if}
{if $smarty.post.submit}
{include file="print_submit_status.tpl"}
{/if}
@@ -16,7 +11,6 @@
<input type="hidden" name="mode" value="{$mode}"/>
</div>
<fieldset>
- {if $mode == "modify"}
<legend>{$user.uid.0}</legend>
<table>
<tr>
@@ -24,18 +18,6 @@
<input type="hidden" name="uid" value="{$user.uid.0}" />
</td>
</tr>
- {else}
- <legend>{t}new user{/t}</legend>
- <table>
- <tr>
- <td>
- {t}Username{/t}
- </td>
- <td>
- <input type="text" name="uid" value="{$user.uid.0}" />
- </td>
- </tr>
- {/if}
<tr>
<td>
{t}First name{/t}
@@ -55,14 +37,11 @@
<tr>
<td>
{t}Password{/t}
- {if $mode == "modify"}
- <br />
- {/if}
</td>
<td>
<input type="hidden" name="userpassword" value="{$user.userpassword.0}" />
<input type="text" name="clearpassword" value="{$user.clearpassword.0}" />
- {t}(leave empty to keep password){/t}
+ {t}(leave empty to keep current password){/t}
</td>
</tr>
<tr>
@@ -107,28 +86,11 @@
</table>
</td>
</tr>
- {if $mode != "modify"}
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
- <tr>
- <td>
- {t}Next Step{/t}
- </td>
- <td>
- <input type="radio" name="nlo_next_step" value="add_another" checked="true" /> {t}Add another user{/t}<br />
- <input type="radio" name="nlo_next_step" value="edit_current" /> {t}Edit new user{/t}<br />
- <input type="radio" name="nlo_next_step" value="show_overview" /> {t}Go to user overview{/t}<br />
- </td>
- </tr>
- {/if}
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
<tr>
<td colspan="2" class="buttons">
<input type="submit" name="submit" value="{t}Save{/t}"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dwe...@us...> - 2008-12-03 15:43:24
|
Revision: 259
http://elma.svn.sourceforge.net/elma/?rev=259&view=rev
Author: dweuthen
Date: 2008-12-03 15:43:20 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
changed spamfilter settings
Modified Paths:
--------------
trunk/templates/simple/content_domain_edit.tpl
Modified: trunk/templates/simple/content_domain_edit.tpl
===================================================================
--- trunk/templates/simple/content_domain_edit.tpl 2008-12-03 14:38:17 UTC (rev 258)
+++ trunk/templates/simple/content_domain_edit.tpl 2008-12-03 15:43:20 UTC (rev 259)
@@ -42,22 +42,14 @@
{if @in_array("domain_edit.spamfilter",$acl) }
<tr>
<td>
- {t}Spamfilter enabled{/t}
+ {t}Spamfitler{/t}
</td>
<td>
- <input type="checkbox" name="nlo_spamfilterstatus" {if $spamfiltersettings.STATUS eq "#"}{else}checked="checked"{/if} />
- </td>
- </tr>
- <tr>
-
- <td>
- {t}Rule{/t}
- </td>
- <td>
- <select name="nlo_spamfilteraction">
- <option {if $spamfiltersettings.ACTION eq "DISCARD"}selected{/if} value="DISCARD">{t}discard email{/t}</option>
- <option {if $spamfiltersettings.ACTION eq "REDIRECT"}selected{/if} value="REDIRECT">{t}redirect to{/t} spam@{$domain.dc}</option>
- <option {if $spamfiltersettings.ACTION eq "FOLDER"}selected{/if} value="FOLDER">{t}save in user's spamfolder{/t}</option>
+ <select name="mailspamfilter">
+ <option {if $domain.mailspamfilter.0 eq "FALSE"}selected{/if} value="FALSE">{t}disabled{/t}</option>
+ <option {if $domain.mailspamfilter.0 eq "DISCARD"}selected{/if} value="DISCARD">{t}discard email{/t}</option>
+ <option {if $domain.mailspamfilter.0 eq "REDIRECT"}selected{/if} value="REDIRECT">{t}redirect to{/t} spam@{$domain.dc.0}</option>
+ <option {if $domain.mailspamfilter.0 eq "FOLDER"}selected{/if} value="FOLDER">{t}save in user's spamfolder{/t}</option>
</select>
</td>
</tr>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dwe...@us...> - 2008-12-03 14:38:24
|
Revision: 258
http://elma.svn.sourceforge.net/elma/?rev=258&view=rev
Author: dweuthen
Date: 2008-12-03 14:38:17 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
grrrr
Modified Paths:
--------------
trunk/includes/eximfilter.inc.php
trunk/modules/content_user_edit.php
Modified: trunk/includes/eximfilter.inc.php
===================================================================
--- trunk/includes/eximfilter.inc.php 2008-10-15 21:48:36 UTC (rev 257)
+++ trunk/includes/eximfilter.inc.php 2008-12-03 14:38:17 UTC (rev 258)
@@ -16,11 +16,11 @@
$eximFilter["filtertype"]["regex"] = '/^(.*) Exim filter$/i';
$eximFilter["filtertype"]["values"] = array("STATUS" => "#");
-/* // Redirect Template
+ // Redirect Template
$eximFilter["redirect"]["template"] = '%STATUS%deliver %RECIPIENT% # REDIRECT';
$eximFilter["redirect"]["regex"] = '/^(.*)deliver (.*) # REDIRECT$/i';
$eximFilter["redirect"]["values"] = array("STATUS" => "#",
- "RECIPIENT" => "");*/
+ "RECIPIENT" => "");
// Spamfilter Template
$eximFilter["spamfilter"]["template"] = '%STATUS%if $header_X-Spam-Flag: contains "YES" then %FILTERACTION% endif # SPAMFILTER %ACTION%';
Modified: trunk/modules/content_user_edit.php
===================================================================
--- trunk/modules/content_user_edit.php 2008-10-15 21:48:36 UTC (rev 257)
+++ trunk/modules/content_user_edit.php 2008-12-03 14:38:17 UTC (rev 258)
@@ -69,7 +69,6 @@
if (isset($_POST["submit"])) {
SmartyValidate::connect($this->smarty);
if (SmartyValidate::is_valid($_POST)) {
-
// create array of submitted values
$eximFilterValues["vacation"]["values"] = array( "STATUS" => "",
"RECIPIENT" => $_POST["uid"]."@".$domain,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2008-10-15 21:48:41
|
Revision: 257
http://elma.svn.sourceforge.net/elma/?rev=257&view=rev
Author: vog
Date: 2008-10-15 21:48:36 +0000 (Wed, 15 Oct 2008)
Log Message:
-----------
disable exim4 support for /etc/aliases, because it doesn't work well
Modified Paths:
--------------
trunk/doc/examples/exim4/exim4.conf.dist
Modified: trunk/doc/examples/exim4/exim4.conf.dist
===================================================================
--- trunk/doc/examples/exim4/exim4.conf.dist 2008-10-07 18:11:32 UTC (rev 256)
+++ trunk/doc/examples/exim4/exim4.conf.dist 2008-10-15 21:48:36 UTC (rev 257)
@@ -313,13 +313,13 @@
# >>>
# resolve aliases given in /etc/aliases <<<
-system_aliases:
- driver = redirect
- allow_fail
- allow_defer
- data = ${lookup{$local_part}lsearch{/etc/aliases}}
- file_transport = address_file
- pipe_transport = address_pipe
+#system_aliases:
+# driver = redirect
+# allow_fail
+# allow_defer
+# data = ${lookup{$local_part}lsearch{/etc/aliases}}
+# file_transport = address_file
+# pipe_transport = address_pipe
# >>>
# LDAP incoming relay <<<
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2008-10-07 18:11:52
|
Revision: 256
http://elma.svn.sourceforge.net/elma/?rev=256&view=rev
Author: vog
Date: 2008-10-07 18:11:32 +0000 (Tue, 07 Oct 2008)
Log Message:
-----------
make Elma also work with LDAP via unix sockets
Modified Paths:
--------------
trunk/includes/config.inc.php.dist
Modified: trunk/includes/config.inc.php.dist
===================================================================
--- trunk/includes/config.inc.php.dist 2008-09-22 12:42:37 UTC (rev 255)
+++ trunk/includes/config.inc.php.dist 2008-10-07 18:11:32 UTC (rev 256)
@@ -34,7 +34,7 @@
/* ######## LDAP Settings ######## */
// LDAP Server hostname
-define ("LDAP_HOSTNAME","ldap://127.0.0.1");
+define ("LDAP_HOSTNAME","ldapi:/// ldap:///");
// use TLS for LDAP connection
define ("LDAP_USE_TLS","0");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2008-09-22 12:42:58
|
Revision: 255
http://elma.svn.sourceforge.net/elma/?rev=255&view=rev
Author: vog
Date: 2008-09-22 12:42:37 +0000 (Mon, 22 Sep 2008)
Log Message:
-----------
make Dovecot and Exim also work with LDAP via unix sockets
Modified Paths:
--------------
trunk/doc/examples/dovecot/dovecot-ldap.conf.dist
trunk/doc/examples/exim4/ldap.conf.dist
Modified: trunk/doc/examples/dovecot/dovecot-ldap.conf.dist
===================================================================
--- trunk/doc/examples/dovecot/dovecot-ldap.conf.dist 2008-09-22 12:24:24 UTC (rev 254)
+++ trunk/doc/examples/dovecot/dovecot-ldap.conf.dist 2008-09-22 12:42:37 UTC (rev 255)
@@ -16,7 +16,7 @@
# LDAP URIs to use. You can use this instead of hosts list. Note that this
# setting isn't supported by all LDAP libraries.
-uris = ldap:///
+uris = ldapi:/// ldap:///
# Distinguished Name - the username used to login to the LDAP server
dn = uid=exim4,ou=users,o=mybasedn
Modified: trunk/doc/examples/exim4/ldap.conf.dist
===================================================================
--- trunk/doc/examples/exim4/ldap.conf.dist 2008-09-22 12:24:24 UTC (rev 254)
+++ trunk/doc/examples/exim4/ldap.conf.dist 2008-09-22 12:42:37 UTC (rev 255)
@@ -1,7 +1,7 @@
# LDAP connection parameters <<<
# which LDAP server to use as default
-ldap_default_servers = 127.0.0.1::389
+ldap_default_servers = /var/run/slapd/ldapi:127.0.0.1::389
LDAP_BASEDN = o=mybasedn
LDAP_USERS_ROOT_DN = ou=users,LDAP_BASEDN
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2008-09-22 12:24:40
|
Revision: 254
http://elma.svn.sourceforge.net/elma/?rev=254&view=rev
Author: vog
Date: 2008-09-22 12:24:24 +0000 (Mon, 22 Sep 2008)
Log Message:
-----------
remove the relict of an deprecated Exim option in the Exim example configuration
Modified Paths:
--------------
trunk/doc/examples/exim4/ldap.conf.dist
Modified: trunk/doc/examples/exim4/ldap.conf.dist
===================================================================
--- trunk/doc/examples/exim4/ldap.conf.dist 2008-09-22 12:13:59 UTC (rev 253)
+++ trunk/doc/examples/exim4/ldap.conf.dist 2008-09-22 12:24:24 UTC (rev 254)
@@ -3,7 +3,6 @@
# which LDAP server to use as default
ldap_default_servers = 127.0.0.1::389
-#LDAP_HOSTNAME = 127.0.0.1:389
LDAP_BASEDN = o=mybasedn
LDAP_USERS_ROOT_DN = ou=users,LDAP_BASEDN
LDAP_DOMAINS_ROOT_DN = ou=domains,LDAP_BASEDN
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2008-09-22 12:14:10
|
Revision: 253
http://elma.svn.sourceforge.net/elma/?rev=253&view=rev
Author: vog
Date: 2008-09-22 12:13:59 +0000 (Mon, 22 Sep 2008)
Log Message:
-----------
use the "uris" setting instead of "hosts" in the dovecot example configuration
Modified Paths:
--------------
trunk/doc/examples/dovecot/dovecot-ldap.conf.dist
Modified: trunk/doc/examples/dovecot/dovecot-ldap.conf.dist
===================================================================
--- trunk/doc/examples/dovecot/dovecot-ldap.conf.dist 2008-09-21 22:59:54 UTC (rev 252)
+++ trunk/doc/examples/dovecot/dovecot-ldap.conf.dist 2008-09-22 12:13:59 UTC (rev 253)
@@ -12,11 +12,11 @@
# by * none
# Space separated list of LDAP hosts to use. host:port is allowed too.
-hosts = 127.0.0.1
+#hosts =
# LDAP URIs to use. You can use this instead of hosts list. Note that this
# setting isn't supported by all LDAP libraries.
-#uris =
+uris = ldap:///
# Distinguished Name - the username used to login to the LDAP server
dn = uid=exim4,ou=users,o=mybasedn
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vo...@us...> - 2008-09-21 23:00:02
|
Revision: 252
http://elma.svn.sourceforge.net/elma/?rev=252&view=rev
Author: vog
Date: 2008-09-21 22:59:54 +0000 (Sun, 21 Sep 2008)
Log Message:
-----------
enable LOGIN and CRAM-MD5 in the dovecot example configuration
Modified Paths:
--------------
trunk/doc/examples/dovecot/dovecot-ldap.conf.dist
trunk/doc/examples/dovecot/dovecot.conf.dist
Modified: trunk/doc/examples/dovecot/dovecot-ldap.conf.dist
===================================================================
--- trunk/doc/examples/dovecot/dovecot-ldap.conf.dist 2008-09-21 14:17:47 UTC (rev 251)
+++ trunk/doc/examples/dovecot/dovecot-ldap.conf.dist 2008-09-21 22:59:54 UTC (rev 252)
@@ -101,14 +101,14 @@
# userdb prefetch instead of userdb ldap in dovecot.conf. In that case you'll
# also have to include user_attrs in pass_attrs field prefixed with "userdb_"
# string. For example:
-pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home
+pass_attrs = uid=user,clearpassword=password,homeDirectory=userdb_home
# Filter for password lookups
pass_filter = (&(objectClass=mailUser)(mailStatus=TRUE))
# Default password scheme. "{scheme}" before password overrides this.
# List of supported schemes is in: http://wiki.dovecot.org/Authentication
-#default_pass_scheme = CRYPT
+default_pass_scheme = PLAIN
# You can use same UID and GID for all user accounts if you really want to.
# If the UID/GID is still found from LDAP reply, it overrides these values.
Modified: trunk/doc/examples/dovecot/dovecot.conf.dist
===================================================================
--- trunk/doc/examples/dovecot/dovecot.conf.dist 2008-09-21 14:17:47 UTC (rev 251)
+++ trunk/doc/examples/dovecot/dovecot.conf.dist 2008-09-21 22:59:54 UTC (rev 252)
@@ -736,7 +736,7 @@
auth default {
# Space separated list of wanted authentication mechanisms:
# plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
- mechanisms = plain
+ mechanisms = plain login cram-md5
#
# Password database is used to verify user's password (and nothing more).
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|