X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Ftabs_winstation.inc;h=3f03437fa837401b896944d1e758ae91e0e2d0fb;hb=49866d5f3a99b5675b11310ffba4c2e50d967eb7;hp=062eac6ee989d3675d89ac9e694c59a27054c46e;hpb=e299f0ca47a924516f2afbe4e922f2418b75315c;p=gosa.git diff --git a/plugins/admin/systems/tabs_winstation.inc b/plugins/admin/systems/tabs_winstation.inc index 062eac6ee..3f03437fa 100644 --- a/plugins/admin/systems/tabs_winstation.inc +++ b/plugins/admin/systems/tabs_winstation.inc @@ -18,14 +18,24 @@ 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= "cn=$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){ $this->by_object[$key]->dn= $this->dn; } tabs::save(TRUE); + + /* Fix tagging if needed */ + $baseobject->handle_object_tagging(); } }