From 08458eebfa818fa0cf3282fbcacf1473860b84b2 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Nov 2010 09:37:09 +0000 Subject: [PATCH] Updated netatalk git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20283 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 d828ecf0d..1329d1355 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()){ @@ -251,7 +244,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