steffen: server/kolab-webadmin/kolab-webadmin/www/admin/sharedfolder sf.php, 1.4, 1.5

cvs at intevation.de cvs at intevation.de
Thu Jul 8 13:44:39 CEST 2004


Author: steffen

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

Modified Files:
	sf.php 
Log Message:
new permissions "read anon" and "read hidden" + allow special usernames anyone and anonymous in ACLs

Index: sf.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/sharedfolder/sf.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sf.php	7 Jul 2004 11:45:47 -0000	1.4
+++ sf.php	8 Jul 2004 11:44:37 -0000	1.5
@@ -36,7 +36,7 @@
   //var_dump( $ldap_object['acl'] );
   foreach( $ldap_object['acl'] as $key => $acl ) {
 	if( $key === 'count' ) continue;
-	list($u, $p ) = split( ' ', $acl );
+	list($u, $p ) = split( ' ', $acl, 2 );
 	if( !strncmp( "group:", $u, 6 ) ) $u = substr( $u, 6 );
 	//debug( "u=$u, p=$p" );
 	$form->entries['acl_'.$aclcount] = array( 'name' => 'Permission for UID/GID',
@@ -59,6 +59,10 @@
   global $ldap;
   global $errors;
   debug("process_acl( $uid, $perm )");
+  if( $uid == 'anyone' || $uid == 'anonymous' ) {
+	// Special users allowed
+	return "$uid $perm";
+  }
   $res = $ldap->search( $_SESSION['base_dn'], '(&(uid='.$ldap->escape($uid).')(objectClass=kInetOrgPerson))', 
 						array('dn') );
   if( $ldap->count($res) == 1 ) {





More information about the commits mailing list