[Samba] Samba Workstation domain membering

Luís Filipe Lobo ellobo at ipb.pt
Tue Dec 3 14:34:00 GMT 2002


Hi!

	I have a samba 2.2.3a-12 on a Linux Debian box (lets call it pdcMachine) with 
a 2.4.16 kernel acting as a PDC of some domain (lets call it myDomain).
I have a samba 2.999+3.0.alpha20-4 workstation (debian,kernel 2.4.19) (lets 
call it wstMachine) and i'm trying to join wstMachine to myDomain.
I added:
	workgroup = myDomain
	password server = *
	security = domain
	encrypt passwords = true

... to my smb.conf, the I added wstMachine$ account in pdcMachine:
	adduser --disabled-password --disabled-login --force-badname --home /dev/null 
wstMachine$
	smbpasswd -a -m wstMachine

... in order to add the wstMachine to the domain i did (in wstMachine):
	smbpasswd -j myDomain -r pdcMachine -U root # (root is a valid user in 
pdcMachine)
... the it told me to use "net rpc join".
so i did:
	net rpc join -S pdcMachine
after typing the asked password (pdcMachine smb root password ... i thought) 
it returned:

"Joined domain myDomain."

.. but when i try:
smbclient //wstMachine/someshare  -U validDomainAccount
it tells me :

Doing spnego session setup (blob length=58)
session setup failed: NT_STATUS_NO_LOGON_SERVERS

here is a dump of my wstMachine smb.conf:

/* BEGIN OF smb.conf */
[global]

   workgroup = PROFS2
   server string = %h server (Samba %v)
;   load printers = yes
;   printing = bsd
;   printcap name = /etc/printcap
;   printing = cups
;   printcap name = cups
;   guest account = nobody
   invalid users = root
   log file = /var/log/samba/log.%m
   max log size = 1000
;   syslog only = no
   syslog = 0
   security = domain
   password server = *
   encrypt passwords = true
   passdb backend = tdbsam unixsam
;   include = /home/samba/etc/smb.conf.%m
   socket options = TCP_NODELAY
;   local master = yes
;   os level = 20
;   domain master = auto
;   preferred master = auto
;   wins support = no
;   wins server = w.x.y.z
   dns proxy = no
;   name resolve order = lmhosts host wins bcast
;   preserve case = yes
;   short preserve case = yes
;   unix password sync = false
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .
;   pam password change = no
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

   obey pam restrictions = yes
;   winbind uid = 10000-20000
;   winbind gid = 10000-20000
;   template shell = /bin/bash
   panic action = /usr/share/samba/panic-action %d

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   browseable = no
   writable = no
   create mask = 0700
   directory mask = 0700

/* END OF smb.conf */

and here is my pdcMachine smb.conf:

/* BEGIN OF smb.conf */
[global]

; Tunning by ellobo

   admin users = root
   security = user
   workgroup = PROFS2
   server string = %h
   syslog only = no
   syslog = 0
   encrypt passwords = true
   wins support = no
   allow trusted domains = yes
   os level = 30
   domain master = yes
   local master = yes
   preferred master = yes
   name resolve order = host lmhosts wins bcast
   dns proxy = no

   preserve case = yes
   short preserve case = yes
   unix password sync = true
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .
   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
   max log size = 1000
   ;obey pam restrictions = yes

[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0700
   directory mask = 0700

/* END OF smb.conf */

Can you help ?

Thanks in advance,
LL



More information about the samba mailing list