using "net ads join" with -S breaks if given the long domain name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: samba
We have a windows 2003 server running active directory. Trying to join an up-to-date Ubuntu Hardy server to the domain would not work if we passed "-S staff.gcd.ie" but would work if we passed "-S CENTRALADMIN" (the old NT4 DOMAIN name) and if we dropped the -S entirely. It should surely work in the first case?
So, this fails (I've obscured the domain admin username):
johnm@craic:~$ sudo net ads join -S STAFF.GCD.IE -U OURADMIN
OURADMIN's password:
Failed to join domain: Duplicate name on network
but this works:
johnm@craic:~$ sudo net ads join -S CENTRALADMIN -U OURADMIN
OURADMIN's password:
Using short domain name -- CENTRALADMIN
Joined 'CRAIC' to realm 'STAFF.GCD.IE'
johnm@craic:~$ sudo net ads leave -S CENTRALADMIN -U OURADMIN
OURADMIN's password:
Deleted account for 'CRAIC' in realm 'STAFF.GCD.IE'
and this works:
johnm@craic:~$ sudo net ads join -U OURADMIN
OURADMIN's password:
Using short domain name -- CENTRALADMIN
Joined 'CRAIC' to realm 'STAFF.GCD.IE'
Thank you for taking the time to report this issue and help to improve Ubuntu.
According to the documentation, the argument to net ads join -S is a server name, not a realm or domain name. Does this work if you specify "net ads join -w STAFF.GCD.IE" instead?
If it works with -w, then I don't think there is a bug here.