Error Socket operation on non-socket

Alexander Davydenko alex at gis.org
Wed Apr 19 18:59:44 GMT 2000


the last cvs code locking all staff.

smb.log:

[2000/04/19 22:31:29, 2] lib/interface.c:add_interface(83)
  added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
[2000/04/19 22:31:29, 2] lib/interface.c:add_interface(83)
  added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0
[2000/04/19 22:31:29, 0] lib/util_sock.c:set_socket_options(199)
  Failed to set socket option SO_KEEPALIVE (Error Socket operation on non-socket)
[2000/04/19 22:31:29, 0] lib/util_sock.c:set_socket_options(199)
  Failed to set socket option TCP_NODELAY (Error Socket operation on non-socket)

rpcclient:

added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0
[ORG\root at .]$ ntlogin
Enter NT Login password:
do_nt_login_test: username root from: GISGATE
cli_connection_init_auth: \\. \PIPE\lsarpc
copy_nt_creds: null creds
ncalrpc_l_use_add
ncalrpc_l_find: lsarpc [14060,0]
root is in 1 groups: 0
uid 0 registered to name root
Clearing default real name
uid 0 vuid 100 registered to unix name root
vuid_init_db: opened
storing user 36ec,64
000000 vuid_io_key key
0000 pid : 000036ec
0004 vuid: 0064
ncalrpc_l_establish_connection: connecting to lsarpc
socket open succeeded.  file name: /usr/local/samba/var/locks/.msrpc/lsarpc
create_user_creds: lsarpc 0 0
000004 creds_io_cmd creds
    0004 version: 0000
    0006 command: 0000
000008 vuid_io_key key
0008 pid : 000036ec
000c vuid: 0064
    000e name   : lsarpc
    0018 ptr_creds: 00000000
write_socket(5,28)
write_socket(5,28) wrote 28
ncalrpc_l_use_add: num_users: 1
Bind RPC Pipe: \PIPE\lsarpc
Bind Abstract Syntax:
[000] 78 57 34 12 34 12 CD AB  EF 00 01 23 45 67 89 AB  xW4.4.м╚ О..#Eg┴╚
[010] 00 00 00 00                                       .... 
Bind Transfer Syntax:
[000] 04 5D 88 8A EB 1C C9 11  9F E8 08 00 2B 10 48 60  .]┬┼К.и. ÷Х..+.H`
[010] 02 00 00 00                                       .... 
create_rpc_noauth_bind_req
000000 smb_io_rpc_hdr_rb 
    000000 smb_io_rpc_hdr_bba 
        0000 max_tsize: 1630
        0002 max_rsize: 1630
        0004 assoc_gid: 000036ec
    0008 num_elements: 01
    000c context_id  : 0064
    000e num_syntaxes: 01
    00000f smb_io_rpc_iface 
        000010 smb_io_rpc_uuid uuid
           0010 time_low: 12345778
           0014 time_mid: 1234
           0016 time_hiv: abcd
           0018 rem: ef 00 01 23 45 67 89 ab 
        0020 version: 00000000
    000024 smb_io_rpc_iface 
        000024 smb_io_rpc_uuid uuid
            0024 time_low: 8a885d04
            0028 time_mid: 1ceb
            002a time_hiv: 11c9
            002c rem: 9f e8 08 00 2b 10 48 60 
        0034 version: 00000002
000000 smb_io_rpc_hdr hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0b
    0003 flags     : 00
    0004 pack_type : 10 00 00 00 
prs_set_packtype: bigendian: No
    0008 frag_len  : 0048
    000a auth_len  : 0000
    000c call_id   : 00000001
ncalrpc_l_send_prs: data: 0xbfffe86c len -1073747492
[000] 05 00 0B 00 10 00 00 00  48 00 00 00 01 00 00 00  ........ H.......
[010] 30 16 30 16 EC 36 00 00  01 00 00 00 64 00 01 00  0.0.Л6.. ....d...
[020] 78 57 34 12 34 12 CD AB  EF 00 01 23 45 67 89 AB  xW4.4.м╚ О..#Eg┴╚
[030] 00 00 00 00 04 5D 88 8A  EB 1C C9 11 9F E8 08 00  .....]┬┼ К.и.÷Х..
[040] 2B 10 48 60 02 00 00 00                           +.H`.... 
write_socket(5,72)
write_socket(5,72) wrote 72
ncalrpc_l_receive: 118
000000 smb_io_rpc_hdr hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0c
    0003 flags     : 03
    0004 pack_type : 10 00 00 00 
prs_set_packtype: bigendian: No
    0008 frag_len  : 0044
    000a auth_len  : 0000
    000c call_id   : 00000001
[000] 05 00 0C 03 10 00 00 00  44 00 00 00 01 00 00 00  ........ D.......
[010] 30 16 30 16 EC 36 00 00  0E 00 5C 50 49 50 45 5C  0.0.Л6.. ..\PIPE\
[020] 6C 73 61 72 70 63 64 00  01 00 00 00 00 00 00 00  lsarpcd. ........
[030] 04 5D 88 8A EB 1C C9 11  9F E8 08 00 2B 10 48 60  .]┬┼К.и. ÷Х..+.H`
[040] 02 00 00 00
ncalrpc_l_receive: len 68
rpc_check_hdr: rdata->data_size: 68
000000 smb_io_rpc_hdr rpc_hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0c
    0003 flags     : 03
    0004 pack_type : 10 00 00 00 
prs_set_packtype: bigendian: No
    0008 frag_len  : 0044
    000a auth_len  : 0000
    000c call_id   : 00000001
rpc_check_hdr: (after smb_io_rpc_hdr call) rdata->data_size: 68
prs_set_packtype: bigendian: No
cli_pipe: fragment first and last both set
rpc_api_pipe: return OK
000000 smb_io_rpc_hdr_ba 
    000000 smb_io_rpc_hdr_bba 
        0000 max_tsize: 1630
        0002 max_rsize: 1630
        0004 assoc_gid: 000036ec
    000008 smb_io_rpc_addr_str 
        0008 len: 000e
        000a str: \PIPE\lsarpcd.
    000018 smb_io_rpc_results 
        0018 num_results: 01
        001c result     : 0000
        001e reason     : 0000
    000020 smb_io_rpc_iface 
        000020 smb_io_rpc_uuid uuid
            0020 time_low: 8a885d04
            0024 time_mid: 1ceb
            0026 time_hiv: 11c9
            0028 rem: 9f e8 08 00 2b 10 48 60 
        0030 version: 00000002
bind_rpc_pipe: searching pipe name: client:\PIPE\lsarpc server:\PIPE\lsass
bind_rpc_pipe: pipe_name \PIPE\lsass != expected pipe \PIPE\lsarpcd.  oh well!
bind_rpc_pipe: accepted!
LSA Open Policy2
make_open_pol2: attr:0 da:33554432
make_lsa_obj_attr
000000 lsa_io_q_open_pol2
    0000 ptr       : 00000001
    000004 smb_io_unistr2 
        0004 uni_max_len: 00000003
        0008 undoc      : 00000000
        000c uni_str_len: 00000003
        0010 buffer     : \.\...
    000018 lsa_io_obj_attr 
        0018 len         : 00000018
        001c ptr_root_dir: 00000000
        0020 ptr_obj_name: 00000000
        0024 attributes  : 00000000
        0028 ptr_sec_desc: 00000000
        002c ptr_sec_qos : 00000000
    0030 des_access: 02000000
rpc_con_pipe_req: op_num 44 offset 52 used: 52
rpc_api_pipe_req: start: 0 off: 52
create_rpc_request: opnum: 0x2c data_len: 0x4c
create_rpc_request: data_len: 4c auth_len: 0 alloc_hint: 34
000000 smb_io_rpc_hdr hdr    
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 00
    0003 flags     : 03
    0004 pack_type : 10 00 00 00 
prs_set_packtype: bigendian: No
    0008 frag_len  : 004c
    000a auth_len  : 0000
    000c call_id   : 00000002
000010 smb_io_rpc_hdr_req hdr_req
    0010 alloc_hint: 00000034
    0014 context_id: 0064
    0016 opnum     : 002c
rpc_api_pipe_req: end: 52
ncalrpc_l_send_prs: data: 0xbfffea38 len -1073747448
[000] 05 00 00 03 10 00 00 00  4C 00 00 00 02 00 00 00  ........ L.......
[010] 34 00 00 00 64 00 2C 00  01 00 00 00 03 00 00 00  4...d.,. ........
[020] 00 00 00 00 03 00 00 00  5C 00 5C 00 2E 00 00 00  ........ \.\.....
[030] 18 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
[040] 00 00 00 00 00 00 00 00  00 00 00 02              ........ ....
write_socket(5,76)
write_socket(5,76) wrote 76
ncalrpc_l_receive: 118
-------------------------------------------
after that all things hangs up.

-- 
Alexander Davydenko			|
alex at javad.ru, mba_69 at chat.ru		| Moscow, USSR
-------------------------------------------------------------------------
		<<<<< 	Powered by Linux & 220V   >>>>>	
-------------- next part --------------
[global]
	netbios name = GISGATE
	netbios aliases = GG
	workgroup = ORG
	server string = (%h)
	
	#flat files that map Unix groups to NT type groups.
	#these files take the form unix_group = `Windows NT group''
	# domain admin group = @domadmin
	domain group map = /usr/local/samba/private/smbgroup
	domain alias map = /usr/local/samba/private/smbalias
	local group map = /usr/local/samba/private/smbuiltin
	username map = /usr/local/samba/private/smbuser
	
	#Domain controllers use user security and we need encrypted
	#passwords (see ENCRYPTION.txt)
	security = USER
	domain logons = Yes
	encrypt passwords = Yes
	password level = 8
	username level = 6

	#Dfs
	host msdfs = yes
	
	# Listen on all interfaces.
	bind interfaces only = True
	interfaces = 127.0.0.1 192.168.2.1
	hosts allow = 192.168.2.0/255.255.255.0 127.0.0.1
	
	#And in order for us to be *sure* to win browser elections
	os level = 65
	domain master = Yes
	preferred master = Yes
	local master = Yes
	
	#WINS is the equivalent of DNS for NetBIOS.
	wins support = Yes
	dns proxy = Yes
	name resolve order = lmhosts wins host bcast
	
	#Be time server
	time server = No
	
	#the next lines are equivalent to the various profile details
	#found in NT's User Manager
	logon script = STARTUP.BAT
	logon drive = U:
	logon home = \\%L\%U
	
	#Other staff
	admin users = root alex
	guest account = ftp
	character set = KOI8-R
	client code page = 866
	log file = /usr/local/samba/log/%m.log
	max log size = 500
	socket options = TCP_NODELAY
	wide links = Yes
#	locking = No
#	strict locking = No
#	level2 oplocks = No
#	oplocks = No
	timestamp logs = Yes
	printing = lprng
	print command=/usr/bin/lpr -r -P%p -J"%j" %s
	client ntlmv2 = Yes

#[PRINTER$]
#	path=/usr/local/samba/lib/ntprinters
#	public = Yes
#	browseable = No
#	writable = No

#[lp]
#	comment = Printer HP LaserJet 1100A
#	path = /var/spool/samba
#	print ok = Yes
#	browseable = Yes
#	writable = No
#	printer = lp
#	printer driver= HP LaserJet 1100
#	printer driver location = \\%L\PRINTER$

[printers]
 	comment = Printers
	path = /var/spool/samba
 	print ok = Yes
 	browseable = No
 	guest ok =No

[homes]
	comment = User's home 
	path = /var/users/%S
	valid users = %S
	write list = %S
	create mask = 0600
	directory mask = 0700
	force group = users
	guest ok = No
	browseable = No

[tmp]
	comment = Trash
	path = /tmp
	guest ok = Yes
	browseable = Yes
	writeable = Yes




More information about the samba-ntdom mailing list