using "net ads join" with -S breaks if given the long domain name

Bug #246578 reported by Gavin McCullagh
2
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'

Revision history for this message
Gavin McCullagh (gmccullagh) wrote :
Revision history for this message
Gavin McCullagh (gmccullagh) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

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.

Changed in samba:
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

No response from the user for over a month. Please re-open this bug if you are still having problems.

Thanks
chuck

Changed in samba:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.