Bug 4274 - net ads join createcomputer="xxx" bad documentation and wrong syntax
net ads join createcomputer="xxx" bad documentation and wrong syntax
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Docs
3.0.23c
x64 Linux
: P3 normal
: none
Assigned To: Jim McDonough
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-01 11:37 UTC by David L. Parsley
Modified: 2006-12-12 13:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David L. Parsley 2006-12-01 11:37:31 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=".
Comment 1 Jim McDonough 2006-12-12 09:53:00 UTC
Please read the docs more carefully, it's "/", not "\", for the separator.  This is important, because \ is reserved to escape certain characters.
Comment 2 David L. Parsley 2006-12-12 13:03:22 UTC
I took the '\' from the Samba-HOWTO-Collection, here:
http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html#ads-create-machine-account
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.
Comment 3 Jim McDonough 2006-12-12 13:21:38 UTC
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.