Bluehost.com Web Hosting $6.95

[Samba] method to simulate domain logon from a node?

This is a discussion on [Samba] method to simulate domain logon from a node? within the Samba forums, part of the Networking and Network Related category; I recently ran into a situation where a Samba upgrade apparently broke the machine records in the smbpasswd file, with ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-04-2008
David Mathog
 
Posts: n/a
Default [Samba] method to simulate domain logon from a node?

I recently ran into a situation where a Samba upgrade apparently broke
the machine records in the smbpasswd file, with the resulting symptom
that domain logons on those computers would fail about 95% of the time.
(A very strange symptom, how it worked sometimes is still a mystery to
me.) Similarly, this would fail:

% smbclient -L saf01 -U 'saf/mathog%(password)'
session setup failed: NT_STATUS_LOGON_FAILURE

Conversely this worked (user domain logon, directly to the
domain master):

% smbclient -L safserver -U 'saf/mathog%(password)'

That told me that the user logon was ok, but there was some issue with
interaction between the two machines. It is easy enough to pull the
SID off one of the workstations. Is there some command that is the
equivalent of the first command, but along the lines of:

% smbclient -L safserver -test_machine SID

To verify that the smbpasswd record is ok? Since I knew of no such
command, I ended up futzing around with firewalls and such (which didn't
help) before removing the client from the domain, deleting and readding
the machine record, and adding the machine back to the domain, which
seems to have fixed the problem.

On a related note:

Is there a .bat script or, better yet, remote method to induce a
Windows machine to remove itself from a domain, reboot, add itself
back, and reboot? I had to do that on 8 machines to get them all
working again, and it was a major pain having to do this manually.
Rebuilding the machine records in the smbpasswd file is always needed
after cloning, and I can see this as being a major amount of work for a
site with many, many clones machines.

Thanks,

David Mathog
mathog@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 09-04-2008
Volker Lendecke
 
Posts: n/a
Default Re: [Samba] method to simulate domain logon from a node?

On Thu, Sep 04, 2008 at 08:31:04AM -0700, David Mathog wrote:
> Is there a .bat script or, better yet, remote method to induce a
> Windows machine to remove itself from a domain, reboot, add itself
> back, and reboot? I had to do that on 8 machines to get them all
> working again, and it was a major pain having to do this manually.
> Rebuilding the machine records in the smbpasswd file is always needed
> after cloning, and I can see this as being a major amount of work for a
> site with many, many clones machines.


Thanks to Günther Deschner, Samba 3.2 contains

bin/net dom join
usage: net dom join <domain=DOMAIN> <ou=OU> <account=ACCOUNT> <password=PASSWORD> <reboot>
Join a remote machine
usage: net dom unjoin <account=ACCOUNT> <password=PASSWORD> <reboot>
Unjoin a remote machine

Volker

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFIwATeUzqjrWwMRl0RAhh4AJ4+Imnyo2y7PcGJLx+DrM RjnOgLJACfV0lC
Y7a7SO6ATnX7od6KHP8v4RI=
=pG09
-----END PGP SIGNATURE-----

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0