Bug 4289 - Net Ads join createcomputer option broken
Summary: Net Ads join createcomputer option broken
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.23d
Hardware: All Linux
: P3 major
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
Depends on:
Reported: 2006-12-08 07:37 UTC by Albert-Jan Stevens
Modified: 2006-12-12 10:19 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Albert-Jan Stevens 2006-12-08 07:37:50 UTC
As with the bug https://bugzilla.samba.org/show_bug.cgi?id=4274
the createcomputer option is still undocumented and can only be found in svn comments. 

Even more importantly, it is broken in version 3.23d. 

What happens is that it uses the createcomputer option as it's own argument. 

For example.

Linux-006:~ # net ads join createcomputer="Resources\Worstations" -U sup-astevens
sup-astevens's password:
Failed to pre-create the machine object in OU createcomputer=Resources\Worstations.

It appears to be trying to join the workstation in the location  "ou=createcomputer=Resources,ou=Workstations" which, offcourse, does not exist. 


Albert Stevens
Comment 1 Jim McDonough 2006-12-12 10:19:22 UTC
This is fixed in SAMBA_3_0, so it should be in 3.0.24.  I will warn you though, that "\" is used as an escape character, both by net and ldap, so believe it or not, it has to be quadrupled to work out...yes, quadrupled.

I'll add a comment to the docs, which are there in 3.0.23d, by the way, in the command itself.  I'll also verify the manpages.