[Samba] Problem migration samba 2.2.8 -> 3.0.1

Xavier DRONIOU xavier.droniou at RTE-FRANCE.COM
Tue Jan 13 15:19:59 GMT 2004


I've two files server on Solaris 2.8 on which i've samba 2.2.8a 
fonctionnal
I've try samba 3 on one server and now my users from windows NT can't 
mount there unix home via samba 
here a copy of smb.conf 

# Global parameters 
[global] 
# Definitions des parametres globaux 
workgroup = grovsdma 
netbios name = grovss01 
server string = Samba sur %L 
security = share 
# Demande a Samba de traiter les mots de passes en clair 
# Utile pour authentifier l'utilisateur avec son login/password Unix 
encrypt passwords = no 
# Section permettant de logguer les evenements Samba 
log level = 1 
max log size = 1000 
max xmit = 32768 
# Au bout de 15 minutes d'inactivite 
# la connexion au partage est desactive 
deadtime = 30 
# Tuning Reseau pour avoir des performances equivalentes au FTP 
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=16384 
SO_RCVBUF=16384 
read raw = yes 
write raw = yes 
#oplocks = yes 
getwd cache = yes 
# Partage par defaut en cas d'echec de connexion 
default service = helpshare 

# Differents parametres pour securiser Samba 
invalid users = root bin daemon adm sync shutdown halt mail news uucp 
operator gopher 
# Autorise les sous reseaux xxx.xxx.x. a utiliser Samba 
hosts allow = xxx.xxx.x xxx.xxx.x. 
# On exclue toutes autres adresses 
hosts deny = ALL EXCEPT xxx.xxx.x. xxx.xxx.x 127.0.0.1 
hide unreadable = Yes 
browseable = Yes 
## Pour mettre Samba au plus bas niveau d'os pour ne pas interferer 
## avec le serveur windows pour le master browser 
## Voir la doc Samba pour comprendre l'election du maitre 
os level = 1 

# Partage par defaut 
[helpshare] 
path = /users/nolog/ 
guest ok = Yes 
volume = exemple d unite de donnees 
browseable = yes 
writeable = no 
# Partage entre unix et windows 
[echange] 
comment = partage Echange Unix / Windows 
path = /users/echange 
guest ok = yes 
writeable = yes 
read only = no 
# Partage des Homes unix 
[homes] 
comment = repertoire personnel de %U 
path = /users/%u 
read only = No 
browseable = No 
guest ok = no 
follow symlinks = no 


I use security = share to allow one user to mount many account because 
windows does not allow multiple uses sessions identification

I've this error on NT station "le type de ressource réseau est incorrect" 

Here a copy of log.smbd
log.smbd : 
[2004/01/08 17:12:07, 1] smbd/service.c:make_connection_snum(705) 
163.104.8.133 (163.104.8.133) connect to service jlucnico initially as 
user xavidron (uid=4623, gid=10) (pid 28340) 
[2004/01/08 17:12:07, 1] smbd/service.c:close_cnum(887) 
163.104.8.133 (163.104.8.133) closed connection to service jlucnico 
[2004/01/08 17:12:52, 0] smbd/server.c:open_sockets_smbd(377) 
open_sockets_smbd: accept: Software caused connection abort 

/var/adm/messages : 
Jan 8 17:12:52 grovss01 smbd[28319]: [ID 702911 daemon.error] [2004/01/08 
17:12:52, 0] smbd/server.c:open_sockets_smbd(377) 
Jan 8 17:12:52 grovss01 smbd[28319]: [ID 702911 daemon.error] 
open_sockets_smbd: accept: Software caused connection abort 


If i reuse samba 2.2.8 all is fonctionnal but i need samba version 3 to 
make performance test on NT ( version 2.2.8 seems to fall when 
manipulating many files)
I found this on log.smbd
log.smbd: Failed to set socket option SO_KEEPALIVE (Error Invalid 
argument) 
log.smbd:[2004/01/13 14:39:22, 0] lib/util_sock.c:set_socket_options(160) 
log.smbd: Failed to set socket option TCP_NODELAY (Error Invalid argument) 

log.smbd:[2004/01/13 14:39:22, 0] lib/util_sock.c:set_socket_options(160) 
log.smbd: Failed to set socket option IPTOS_LOWDELAY (Error Invalid 
argument) 
log.smbd:[2004/01/13 14:39:22, 0] lib/util_sock.c:set_socket_options(160) 
log.smbd: Failed to set socket option SO_KEEPALIVE (Error Invalid 
argument) 
log.smbd:[2004/01/13 14:39:22, 0] lib/util_sock.c:set_socket_options(160) 
log.smbd: Failed to set socket option SO_SNDBUF (Error Invalid argument) 
log.smbd:[2004/01/13 14:39:22, 0] lib/util_sock.c:set_socket_options(160) 
log.smbd: Failed to set socket option SO_RCVBUF (Error Invalid argument) 
I think it could generate an error for NT workstation (it work for win2k) 
because packet size is to huge for NT to manage. There is some proble with 
configure about net/if.h and sys/id.h how i can correct the use of socket 
option ?
Best regards Xavier DRONIOU


More information about the samba mailing list