From 0e81e1603aaadbbab46ff0bda550060157ef4f4b Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Nov 2010 09:36:29 +0000 Subject: [PATCH] Updated netatalk plugin closes #1105 -Thanks to 'cs' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20282 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../netatalk/personal/netatalk/class_netatalk.inc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gosa-plugins/netatalk/personal/netatalk/class_netatalk.inc b/gosa-plugins/netatalk/personal/netatalk/class_netatalk.inc index 762c68fdb..8620a262f 100644 --- a/gosa-plugins/netatalk/personal/netatalk/class_netatalk.inc +++ b/gosa-plugins/netatalk/personal/netatalk/class_netatalk.inc @@ -114,14 +114,7 @@ class netatalk extends plugin { /* Get netatalk shares */ $this->shares = array(); $ldap = $this->config->get_ldap_link(); - - if($this->dn === "new" || $this->dn === NULL) { - $base = session::get('CurrentMainBase'); - } else { - $base = preg_replace("/^[^,]+,".preg_quote(get_people_ou(), '/')."/i","",$this->dn); - } - - $ldap->cd($base); + $ldap->cd($this->config->current['BASE']); $ldap->search ("(&(objectClass=mount)(|(mountType=url)(mountType=nfs))(cn=*))"); while ($attrs = $ldap->fetch()){ @@ -250,7 +243,7 @@ class netatalk extends plugin { if($mountType=="url") { $this->apple_user_homeurl_xml = 'afp://'.$host.$dir . ''. $this->apple_user_homepath_raw.''; - $this->apple_user_homeurl = base64_encode($this->apple_user_homeurl_xml); + $this->apple_user_homeurl = $this->apple_user_homeurl_xml; } else { $this->apple_user_homeurl = ""; } -- 2.30.2