Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Craig McLean on August 27, 2001, 12:59:39 AM

Title: Problem adding Windows 2000 Machines to a Domain
Post by: Craig McLean on August 27, 2001, 12:59:39 AM
Hello.

I'm trying to get some Windows 2000 Pro machines added to a domain I created on an e-smith 4.1.2 server.  I've upgraded Samba using the instructions in Dan Brown's howto.  However whenever I attempt to add a Win 2000 pro machin I get the following error.

"The account used is a computer account.  User your global user account or local user account to access this server".

I used root and the password I set while following Dan Brown's instructions.  I can't figure out what is going on though.
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: steve on August 27, 2001, 05:58:22 AM
I also had this problem.  i finally gave up.  would be nice from a curiosity standpoint to know what was wrong........
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: Henk Elzing on August 27, 2001, 11:04:29 AM
Hello Graig,

I had the same problem with adding computers to a domain on E-smith.

My problem was that I made a type error in the script mentioned
by Dan Brown's howto (12adduserscript).

The command 'pico' places an '' between '-M' and '%u', and
makes it two lines in stead of one.
After correcting this problem everything went fine for me.
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: Michael Doerner on August 27, 2001, 12:44:43 PM
Craig,
Steve,

being that far I would recommend to try to create the machine account for that Win2k-PC manually with the following 2 commands (at a command prompt):

/sbin/e-smith/db accounts set pc-name machine Comment "Machine account"
/etc/e-smith/events/actions/machine-account-create machine-create pc-name

I am sure someone will find out why the PC-name/machine account creation doesn't work at the moment but the above should also get you going.

Regards,
Michael Doerner
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: steve on August 27, 2001, 06:42:32 PM
How didyou correct this?

The command 'pico' places an '' between '-M' and '%u', and
makes it two lines in stead of one.
After correcting this problem everything went fine for me.
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: Henk Elzing on August 28, 2001, 12:32:17 AM
I used the vi command instead.
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: DJ_Ramjet99 on August 28, 2001, 04:28:53 AM
Hi, try this when logged in as root

useradd -c thenameofyourwin2kworkstation -M -s /bin/false -n thenameofyourwin2kworkstation$

Lets me add Win2k wstation with no problem once I have worked through Dan Browns samba upgrade
Title: or try this RPM (Re: Problem adding Windows 2000 Machines to
Post by: Patrick Basile on August 28, 2001, 07:28:34 PM
You also can add this RPM, which makes it very easy to add your NT/2K machine to the e-smith 'domain':

http://www.e-smith.org/contrib/rpm-index/RPM-e-smith-trustaccounts-0.1-1.noarch.html

Works like a charm!  Of course you will still need to upgrade your version of Samba (per Dan's great documentation) - but using this e-smith manager module is great.
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: Mike on August 29, 2001, 09:57:51 AM
Thanks - I'd spent a couple hours on this problem before checking here.
Using vi did the trick.
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: steve on August 30, 2001, 08:28:58 AM
I still can't get this thing to work
Title: Re: Problem adding Windows 2000 Machines to a Domain
Post by: Ari on August 31, 2001, 11:15:39 PM
Just a silly question, but... did you log into the Win2K system as "Administrator"?
I beat my head against the wall for 2 hours trying to figure out why it wouldn't work after the Samba upgrade - the whole time, I was logged into the Win2K system as a user with admin priveleges, not the administrator account. Once I logged out and back into the Win2K system as "administrator", I was fondly rewarded with "Welcome to the XXXXXXX Domain" when I added the workstation to the domain.

Cheers!
Ari