steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.5, 1.6

cvs at intevation.de cvs at intevation.de
Mon Aug 9 20:54:02 CEST 2004


Author: steffen

Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service
In directory doto:/tmp/cvs-serv24566/kolab-webadmin/kolab-webadmin/www/admin/service

Modified Files:
	index.php 
Log Message:
gui for unauth mail accept feature

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- index.php	5 Aug 2004 22:03:06 -0000	1.5
+++ index.php	9 Aug 2004 18:54:00 -0000	1.6
@@ -39,6 +39,7 @@
   global $amavis;
   global $quotawarn;
   global $postfixmynetworks;
+  global $postfixallowunauth;
   global $kolabhost;
 
   // Get values from LDAP
@@ -55,6 +56,7 @@
 	$amavis = $attrs['postfix-enable-virus-scan'][0];
 	$quotawarn = $attrs['cyrus-quotawarn'][0];
 	$postfixmynetworks = $attrs['postfix-mynetworks'][0];
+	$postfixallowunauth = $attrs['postfix-allow-unauthenticated'][0];
 	$kolabhost = $attrs['kolabhost'];
 	unset( $kolabhost['count'] );
 	ldap_free_result($result);
@@ -99,7 +101,16 @@
   if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
 	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
 	  .ldap_error($ldap->connection);
-  }  
+  }
+}
+
+if( $_REQUEST['submitpostfixallowunauth'] ) {
+  $attrs = array();
+  $attrs['postfix-allow-unauthenticated'] = postvalue( 'postfixallowunauth' );
+  if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
+	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
+	  .ldap_error($ldap->connection);
+  }
 }
 
 if( $_REQUEST['deletekolabhost'] ) {
@@ -147,6 +158,7 @@
 $smarty->assign( 'entries', $entries );
 $smarty->assign( 'quotawarn', $quotawarn );
 $smarty->assign( 'postfixmynetworks', $postfixmynetworks );
+$smarty->assign( 'postfixallowunauth', toboolstr($postfixallowunauth) );
 $smarty->assign( 'kolabhost', $kolabhost );
 $smarty->assign( 'menuitems', $menuitems );
 $smarty->assign( 'submenuitems', 





More information about the commits mailing list