[Samba] Samba mixing Domain & Server name

Stuart Bailey stuart at linusoft.co.uk
Fri Jan 13 03:20:20 MST 2012


Hello,
I have a SLES10 64bit machine running samba 3.5.12.
i have configured a domain (TASC), and set the servers netbios name to TUX.
Samba is using the tdbsam backend.

Now I have add machines to the domain, and users can logon using their domain 
accounts TASC\user.
However, if the network is disconnected, in the case of laptop users going 
offsite, they cannot logon anymore. I have now discovered that if they use the 
server name TUX\user, they can logon to their account.

I found a posting that suggested the 'domain logons' was not set to yes, but in 
my case it is.

Any suggestions a s to what I have done wrong would be appreciated.

Many thanks,

Stuart


#net domain gives:
Enumerating domains:

        Domain name          Server name of Browse Master
        -------------        ----------------------------
        TASC                 TUX                         


#pdbedit -Lvu "user" gives
	Unix username:        user
	NT username:
	Account Flags:        [U          ]
	User SID:             S-1-5-21-64526847-XXXXXXXXXX-XXXXXXXXXX-1002
	Primary Group SID:    S-1-5-21-64526847-XXXXXXXXXX-XXXXXXXXXX-513
	Full Name:
	Home Directory:
	HomeDir Drive:        H:
	Logon Script:         logon.bat
	Profile Path:
	Domain:               TUX
	Account desc:
	Workstations:
	Munged dial:
	Logon time:           0
	Logoff time:          Wed, 06 Feb 2036 15:06:39 GMT
	Kickoff time:         Wed, 06 Feb 2036 15:06:39 GMT
	Password last set:    Tue, 27 Dec 2011 10:08:39 GMT
	Password can change:  Tue, 27 Dec 2011 10:08:39 GMT
	Password must change: never
	Last bad password   : 0
	Bad password count  : 0
	Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF


#net domainsid gives:
	SID for local machine TUX is: S-1-5-21-64526847-XXXXXXXXXX-XXXXXXXXXX
	SID for domain TASC is: S-1-5-21-64526847-XXXXXXXXXX-XXXXXXXXXX

All the SIDs match up.

browse.dat has the following entries (user machines excluded)

	"TASC"                    c0001000 "TUX"                         "TASC"
	"TUX"                     408d9b2b "tux server (Samba, SLES 10)" "TASC"

My smb.conf file contains:

	[global]
        	workgroup = TASC
        	server string = %h server (Samba, SLES 10)
        	printing = cups
        	printcap name = cups
 	       printcap cache time = 750
	        cups options = raw
	        map to guest = Bad User
	        logon path =
	        logon home =
	        logon drive = H:
	        usershare allow guests = No
	        domain logons = yes
       		domain master = yes
	        netbios name = TUX
	        passdb backend = tdbsam
	        passwd program = /usr/bin/passwd %u
	        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully*
	        security = user
	        wins support = yes
	        log level = 1
	        idmap gid = 10000-20000
	        idmap uid = 10000-20000
	        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -
s /bin/false %m$
	        local master = Yes
	        os level = 65
	        preferred master = Yes
	        logon script = logon.bat
	        template homedir = /home/%D/%U
	        usershare max shares = 100
	        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 
SO_RCVBUF=8192
	        time server = yes
	        hide dot files = yes
	        guest ok = no
	        invalid users = bin daemon sys man postfix mail ftp



Stuart Bailey BSc (hons) CEng CITP MBCS
          LinuSoft (Managing Director)
   Linux Specialist & Software Developer
       ~~~~~~~~~~~~~~~~~~~~~~~
           Phone:   (0845) 658 3563
          Direct: +44 (0) 1953 878162
          Fax:    +44 (0) 1603 858583
       ~~~~~~~~~~~~~~~~~~~~~~~
            http://www.linusoft.co.uk


__________ Information from ESET Mail Security, version of virus signature database 6790 (20120112) __________

The message was checked by ESET Mail Security.
http://www.eset.com




More information about the samba mailing list