X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Ftabs_winstation.inc;h=3f03437fa837401b896944d1e758ae91e0e2d0fb;hb=49866d5f3a99b5675b11310ffba4c2e50d967eb7;hp=95cf21cb3e4c9e2a9c8e60bcbd412427d95e3e7f;hpb=afecd435ef601ea27a281cc6667f94d7273b40e2;p=gosa.git diff --git a/plugins/admin/systems/tabs_winstation.inc b/plugins/admin/systems/tabs_winstation.inc index 95cf21cb3..3f03437fa 100644 --- a/plugins/admin/systems/tabs_winstation.inc +++ b/plugins/admin/systems/tabs_winstation.inc @@ -18,8 +18,14 @@ class wintabs extends tabs { /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ + + /* add $ to end of name if mising */ $baseobject= $this->by_object['wingeneric']; - $this->dn= "uid=$baseobject->cn,ou=winstations,ou=systems,".$baseobject->base; + if(!preg_match("/\\\$\$/",$baseobject->cn)){ + $baseobject->cn .= "$"; + } + + $this->dn= "uid=$baseobject->cn,".get_winstations_ou().$baseobject->base; $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){