[Samba] Unable to find a suitable server
Gianluca Culot
gianlucaculot at dmsware.com
Fri Jun 15 07:45:25 GMT 2007
Hello List
I'm experienceing problems with Samba 3.0.25,1 running in a FreeBSD box.
I've succesfully joined a domain, and I've configured mail with auth on W2k3
server thorugh PAM.
YET
If I issue
mail# /usr/local/www > net rpc testjoin
Unable to find a suitable server
Join to domain 'DMSWARE' is not valid
BUT
mail# /etc > net rpc testjoin -S orion
Join to 'DMSWARE' is OK
AND
mail# /usr/local/www > net ads testjoin
Join is OK
I know that RPC and ADS use two different methods to find the server... But
RPC shouldn't net rpc first try with files, then DNS, then broadcast ?
And giving "-S orion" is nothing more than what is already listed in
smb.conf
So Why RPC fails ?
Here are my conf files
**********************
mail# /etc > less nsswitch.conf
passwd: files winbind
shadow: files winbind
group: files winbind
#hosts: db files nisplus nis dns
#hosts: files dns wins
hosts: files dns bcast
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: db files
netmasks: files
networks: files dns
protocols: db files
rpc: files
services: files
netgroup: files
publickey: nisplus
automount: files
aliases: files nisplus
nsswitch.conf (END)
**********************
mail# /etc > less smb.conf
[global]
workgroup = DMSWARE
Wins support = yes
dns proxy = yes
name resolve order = host wins bcast
local master = yes
domain master = no
preferred master = auto
enhanced browsing = yes
#encrypt password = yes # YES = Default
realm = DMSWARE.it
server string = mail
security = ADS
password server = orion
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
client use spnego = yes
server signing = auto
client signing = auto
#passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
#passwd chat debug = yes
log file = /var/log/samba/log.%m
add user script = /usr/sbin/pw useradd %u
delete user script = /usr/sbin/pw userdel %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/pw groupdel %g
preferred master = No
template homedir = /home/%U
template shell = /bin/csh
winbind cache time = 3600
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
winbind nss info = rfc2307
idmap domains = DMSWARE
idmap config DMSWARE:range = 10000-49999
idmap config DMSWARE:base_rid = 0
idmap config DMSWARE:backend = rid
**********************
mail# /etc > less hosts
127.0.0.1 localhost.DMSWARE.it localhost
192.168.1.38 MAIL.DMSWARE.it MAIL
192.168.1.38 MAIL.DMSWARE.it.
192.168.0.12 orion.dmsware.it
192.168.0.12 orion
hosts (END)
Thanks everybody for any help
More information about the samba
mailing list