[Samba] Trust Accounts and Machine Name Case

Craig White craigwhite at azapple.com
Mon Nov 7 23:49:46 GMT 2005


On Mon, 2005-11-07 at 18:36 -0500, Tom Conway wrote:
> I've been very frustrated with getting XP to connect to samba.
> I added a machine account on Linux 
>   useradd -g workstation -d /dev/null -s /bin/false xpmachine$
>   then pdbedit -a -m -u xpmachine
>   on XP i change the name to xpmachine and connect as root.
> I'm welcomed into my domain as expected
> When I reboot I cannot login because my account isn't recognized
> although I can login as administrator and browse, map etc.
> 
> The Samba log says no account exists for XPMACHINE$ (uppercase) even
> though it's lowercase in pdbedit and /etc/passwd.
> 
> In XP you can't change the machine name case but you can change from a
> domain to a workgroup, then back again and go to uppercase... and now I
> can login to my domain!! Until it breaks again and I have to do this all
> over again. I've looked at every registry tweak I can find. Everything
> I read says machine accounts are not case sensitive. Is there any
> setting, either in Samba or XP that will put an end to this?
> 
> Thanks
> winxp (fresh install updated to sp2)
> samba-3.0.10-1.fc2.i386.rpm (tdbsam backend)
----
Just in case because I may misunderstand what you are saying...

machine accounts are trust accounts but they aren't a user account and
you can't log in as you would with a user account.

1 - you seem to be making this way too difficult. You should have
appropriate scripts for adding users and adding machine accounts to
domain. Machine accounts should be created on the fly with the right
script. I've never considered fooling with machine accounts in pdbedit
but perhaps there are reasons for doing so.

2 - Suggest that you work through one of the 'By Example' of John's
excellent documentation, perhaps chapter 2...
http://us3.samba.org/samba/docs/man/Samba-Guide/small.html

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list