steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service service.php, 1.3, 1.4

cvs at intevation.de cvs at intevation.de
Thu Aug 12 12:55:41 CEST 2004


Author: steffen

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

Modified Files:
	service.php 
Log Message:
*BOMB*. Changes to support the new schema

Index: service.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/service.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- service.php	2 Jun 2004 10:11:45 -0000	1.3
+++ service.php	12 Aug 2004 10:55:39 -0000	1.4
@@ -208,7 +208,7 @@
    switch ($change) {
       case  "change":
          $attrs = array();
-         if ($hostname) $attrs['fqhostname'][0] = $hostname; 
+         if ($hostname) $attrs['fqdnhostname'][0] = $hostname; 
          if ($mydomain) {
              if (($result = ldap_read($link, "k=kolab,".$base_dn, "(objectclass=*)")) &&
                  ($entry = ldap_first_entry($link,$result)) &&
@@ -256,7 +256,7 @@
    if (($result = ldap_read($link, "k=kolab,".$_SESSION['base_dn'], "(objectclass=*)")) &&
        ($entry = ldap_first_entry($link, $result)) &&
        ($attrs = ldap_get_attributes($link, $entry))) {
-      $hostname = $attrs['fqhostname'][0]; 
+      $hostname = $attrs['fqdnhostname'][0]; 
       $mydomain = $attrs['postfix-mydomain'][0];
       ldap_free_result($result);
    } else array_push($errors, "LDAP Error: could not kolab configuration object ".ldap_error($link));





More information about the commits mailing list