summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3f7fc7)
raw | patch | inline | side by side (parent: a3f7fc7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 Jun 2008 05:48:39 +0000 (05:48 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 Jun 2008 05:48:39 +0000 (05:48 +0000) |
-Fixed problem with unknown cn attribute.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11471 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11471 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc
index 9136a08910757c17bbe183ef0d4651bab0faf868..4ef9ac68eac0c67c73604a1aa46cbc275a242a4f 100644 (file)
/* This plugin only writes its objectClass */
var $objectclasses = array("goEnvironmentServer");
- var $attributes = array("gotoKioskProfile","cn");
+ var $attributes = array("gotoKioskProfile");
var $StatusFlag = "";
/* This class can't be assigned twice so it conflicts with itsself */
var $baseDir = "../kiosk";
var $filesToAttach = array();
var $cn = "unknown";
+ var $orig_cn = "unknown";
var $gotoKioskProfiles= array();
var $gotoKioskProfile = array();
-
var $server_path = "http://%cn/kiosk";
- function goKioskService(&$config,$dn)
+ function goKioskService(&$config, $dn, $parent)
{
goService::goService($config,$dn);
$this->baseDir = $this->config->search('environment', 'kioskpath',array('menu','tabs'));
$this->server_path = preg_replace("/%cn/", $this->cn, $this->server_path);
+ /* Get the current object name.
+ */
+ if(isset($parent->parent->cn)){
+ $this->cn = &$parent->parent->cn;
+ }elseif(isset($this->attrs['cn'][0])){
+ $this->cn = $this->attrs['cn'][0];
+ }
+ $this->orig_cn = $this->cn;
+
/* Load list of profiles and check if they still exists */
if ($this->baseDir == ""){
-# msg_dialog::display(_("Configuration error"), msgPool::cmdnotfound("KIOSKPATH",_("Kiosk profile service")), ERROR_DIALOG);
+# msg_dialog::display(_("Configuration error"),
+# msgPool::cmdnotfound("KIOSKPATH",_("Kiosk profile service")), ERROR_DIALOG);
}else{
$this->gotoKioskProfiles = array();
if(isset($this->attrs['gotoKioskProfile']) && is_array($this->attrs['gotoKioskProfile'])){
{
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $ldap->search("(&(objectClass=gotoEnvironment)(gotoKioskProfile=*/".$this->cn."/*))",array("cn"));
+ $ldap->search("(&(objectClass=gotoEnvironment)(gotoKioskProfile=*/".$this->orig_cn."/*))",array("cn"));
if ($ldap->count() != 0){
$obj= array();
while($attrs = $ldap->fetch()){