index 95cf21cb3e4c9e2a9c8e60bcbd412427d95e3e7f..3f03437fa837401b896944d1e758ae91e0e2d0fb 100644 (file)
{
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
{
/* 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'];
$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){
$baseobject->dn= $this->dn;
foreach ($this->by_object as $key => $obj){