index d61396d6769029a488fd82b8aff9a593fad71511..c18779abe68b661eecf0b171680ee804a4efba94 100644 (file)
{
$baseobject= $this->by_object['faiPartitionTable'];
- // cn=FAIBASE,ou=disk,ou=fai,ou=configs,ou=systems,dc=gonicus,dc=de
- $new_dn= 'cn='.$baseobject->cn.",ou=disk,ou=fai,ou=configs,ou=systems,".$_SESSION['config']->current['BASE'];
+ $new_dn= 'cn='.$baseobject->cn.",ou=disk,ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
- // Old .. $new_dn= 'ou='.$baseobject->ou.','.$baseobject->base;
+ if($_SESSION['faifilter']['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",ou=disk,".$_SESSION['faifilter']['branch'];
+ }
if ($this->dn != $new_dn && $this->dn != "new"){