The Samba-Bugzilla – Bug 4274
net ads join createcomputer="xxx" bad documentation and wrong syntax
Last modified: 2006-12-12 13:21:38 UTC
Using 3.0.23c I was trying to add a computer to the domain with:
net ads join -U myacct "Linux\IT\JMU"
That doesn't work anymore; searching extensively reveals two new options to net ads join; I needed to use 'createcomputer='. However, using:
net ads join -U myacct createcomputer="Linux\IT\JMU"
failed as well; it was passing "ou=Linux\IT\JMU" instead of "ou=Linux,ou=IT,ou=JMU" (found looking at a sniffer trace). To actually join the domain I had to use:
net ads join -U myacct createcomputer="Linux,ou=IT,ou=JMU"
... which looks screwy because it lacks the leading "ou=".
Please read the docs more carefully, it's "/", not "\", for the separator. This is important, because \ is reserved to escape certain characters.
I took the '\' from the Samba-HOWTO-Collection, here:
This document also does not address the new 'createcomputer=' syntax, nor the other argument which I don't really know much about.
However, using '/', I was able to join with the nicer "JMU/Linux/IT" syntax.
Ah, thanks for the HOWTO link. The command itself had the correct docs, though I added some claifications and updated the manpage.
I've now also updated the howto. It will first need to be autogenerated again, and I'm not sure when that will happen, as something is failing in that process.