[sisyphus] findsmb

Peter V. Saveliev =?iso-8859-1?q?peet_=CE=C1_eltel=2Enet?=
Пн Янв 6 23:17:10 MSK 2003


...

Один и тот же скрипт findsmb. Но как по-разному работает!

Сервер:

[root на kehlisaari root]# findsmb 

IP ADDR         NETBIOS NAME   WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.0.1     kehlisaari.home

Это специально от рута, дело не в правах на nmblookup:

[root на kehlisaari root]# nmblookup -A 192.168.0.1
Looking up status of 192.168.0.1
	KEHLISAARI      <00> -         M <ACTIVE> 
	KEHLISAARI      <03> -         M <ACTIVE> 
	KEHLISAARI      <20> -         M <ACTIVE> 
	..__MSBROWSE__. <01> - <GROUP> M <ACTIVE> 
	HOME            <00> - <GROUP> M <ACTIVE> 
	HOME            <1b> -         M <ACTIVE> 
	HOME            <1c> - <GROUP> M <ACTIVE> 
	HOME            <1d> -         M <ACTIVE> 
	HOME            <1e> - <GROUP> M <ACTIVE> 

Теперь на клиенте:

[root на ankeriasniemi root]# findsmb

IP ADDR         NETBIOS NAME   WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.0.1             KEHLISAARI    *[HOME] [Unix] [Samba ALT/2.2.7]
192.168.0.252           ANKERIASNIEMI  [HOME] [Unix] [Samba ALT/2.2.7]

Вот конфиги:

Сервер:
8<------- /etc/samba/smb.conf -----------------------------------------------------------
# Global parameters
[global]

;;; -----------------------------------------------
;;; Server options:
	security = user
	workgroup = HOME
	netbios name = KEHLISAARI
	server string = just for placeholder
	
;;; -----------------------------------------------
;;; Wins support, network browsing:
	wins support = yes
	os level = 255
	preferred master = yes
	local master = yes
	domain master = yes
	time server = yes
	name resolve order = wins bcast host
	dns proxy = no
		
;;; -----------------------------------------------
;;; Logging control:
	log file = /var/log/samba/log.%m
	log level = 1
	max log size = 50

;;; -----------------------------------------------
;;; "Hard" network options:
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	interfaces = lo eth0
	bind interfaces only = no

;;; -----------------------------------------------
;;; Service:
	client code page = 866
	character set = KOI8-R
	message command = /bin/sh -c '/usr/bin/LinPopUp "%f" "%m" %s; rm -f %s' &
	veto files = /lost+found/

;;; -----------------------------------------------
;;; NT logon settings:
	domain logons = yes
	logon drive  =
	logon path   =
	logon script = default.bat
	logon home   = \\%L\%U

;;; -----------------------------------------------
;;; Encryption etc.:
	obey pam restrictions = no
	pam password change = no
	lanman auth = yes
	password level = 5
	username level = 5
	unix password sync = no
	encrypt passwords = yes
;;;	restrict anonymous = 1

;;; -----------------------------------------------
;;; LDAP support:
	ldap admin dn = "cn=proxyuser,dc=kehlisaari,dc=home"
	ldap server = 127.0.0.1
	ldap suffix = "ou=users,dc=kehlisaari,dc=home"
	ldap ssl = on
	
;;; дальше поскипано.
8<------- /etc/samba/smb.conf -----------------------------------------------------------
						
Клиент:
8<------- /etc/samba/smb.conf -----------------------------------------------------------
[global]

   workgroup = HOME
   netbios name = ANKERIASNIEMI
   server string =  Samba server on %h (v. %v)

   log file = /var/log/samba/log.%m
   max log size = 50
   log level = 1

   security = domain
   password server = *
   encrypt passwords = yes

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   interfaces = lo eth0

   local master = yes
   os level = 33
   domain master = no
   preferred master = yes
   domain logons = no

   name resolve order = wins bcast host
   wins server = 192.168.0.1
   wins proxy = no
   dns proxy = no 

   client code page = 866
   character set = KOI8-R

;;; дальше поскипано.
8<------- /etc/samba/smb.conf -----------------------------------------------------------

Как всегда, самба 2.2.7 alt1 из Сизифа, пересобрана с --with-ldapsam,
больше никаких отличий. 

Пожалуйста, хелп: куда копать. И еще. Клиент в домен не добавлен, только
имя домена _совпадает_, но на сервере он не внесен. Но это не мешает
клиенту заходить на сервер. Как так?

--
Sincerely, Peter V. Saveliev

E-mail: peet на eltel.net
Jabber: peet на jabber.ru



Подробная информация о списке рассылки Sisyphus