Koozali.org: home of the SME Server

Problem adding Windows 2000 Machines to a Domain

Craig McLean

Problem adding Windows 2000 Machines to a Domain
« 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.

steve

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #1 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........

Henk Elzing

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #2 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.

Michael Doerner

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #3 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

steve

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #4 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.

Henk Elzing

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #5 on: August 28, 2001, 12:32:17 AM »
I used the vi command instead.

DJ_Ramjet99

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #6 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

Patrick Basile

or try this RPM (Re: Problem adding Windows 2000 Machines to
« Reply #7 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.

Mike

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #8 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.

steve

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #9 on: August 30, 2001, 08:28:58 AM »
I still can't get this thing to work

Ari

Re: Problem adding Windows 2000 Machines to a Domain
« Reply #10 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