--- /usr/share/fusiondirectory/plugins/personal/samba/class_sambaAccount.inc.ws_name 2013-03-21 10:39:07.144812045 +0100 +++ /usr/share/fusiondirectory/plugins/personal/samba/class_sambaAccount.inc 2013-03-21 10:39:52.708812641 +0100 @@ -345,6 +345,7 @@ foreach($trusts['targets'] as $id){ $attrs = $headpage->getEntry($id); $we =$attrs['cn'][0]; + $we = preg_replace('/\$$/', '', $we); $this->multiple_sambaUserWorkstations[trim($we)] = array("Name" => trim($ws), "UsedByAllUsers" => TRUE); } }else{ @@ -353,6 +354,7 @@ foreach($trusts['targets'] as $id){ $attrs = $headpage->getEntry($id); $we =$attrs['cn'][0]; + $we = preg_replace('/\$$/', '', $we); $tmp.= ",$we"; } $tmp= preg_replace('/,+/', ',', $tmp);