Code

Use current selected base, ui->dn only as fallback
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Nov 2009 09:55:46 +0000 (09:55 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Nov 2009 09:55:46 +0000 (09:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14730 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index 247f2326d7f5230ee92961dca8c7c01e373a2f20..84103a3a06ad7202a29908458c1658b0e2e72b46 100644 (file)
@@ -177,7 +177,7 @@ class user extends plugin
       /* Do base conversation */
       if ($this->dn == "new"){
         $ui= get_userinfo();
-        $this->base= dn2base($ui->dn);
+        $this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn);
       } else {
         $this->base= dn2base($dn);
       }