X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_ldap.inc;h=a93aa96c060f6376ce8bcbaf52aaf58100358618;hb=08a4b5a469903884bc288f717f1e370408d47565;hp=7abac71be2ce929979d77759fee04156c60f6fae;hpb=e6d041e81418bdcc1bbc3e125b4474ddc215d4e2;p=gosa.git diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 7abac71be..a93aa96c0 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -549,6 +549,7 @@ class LDAP{ unset($attr['dn']); if((!in_array("gosaApplication" , $attr['objectClass'])) && (!in_array("gotoMimeType", $attr['objectClass']))){ + $attr['FAIdebianRelease'] = $destinationName; if($type=="branch"){ $attr['FAIstate'] ="branch"; }elseif($type=="freeze"){ @@ -583,6 +584,8 @@ class LDAP{ } } + echo "" ; + $this->ls ("(objectClass=*)",$sourcedn); while ($this->fetch()){ $deldn= $this->getDN(); @@ -1217,6 +1220,19 @@ class LDAP{ } } } + + /* added by Guido Serra aka Zeph */ + function getCn($dn){ + $simple= split(",", $dn); + + foreach($simple as $piece) { + $partial= split("=", $piece); + + if($partial[0] == "cn"){ + return $partial[1]; + } + } + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: