[Samba] openbsd support
Julien TOUCHE
julien.touche at lycos.com
Sun Jan 25 14:54:29 GMT 2004
i'm trying to use samba 3 (3.0.2rc1) on openbsd 3.4-stable (i386)
i correct some erros in configure.in (see attached patch), but, as
before, i'm falling in an "INTERNAL ERROR"
# /opt/samba3/sbin/smbd -i -S -d=3
get_current_groups: user is in 7 groups: 0, 2, 3, 4, 5, 20, 31
smbd version 3.0.2rc1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
uid=0 gid=0 euid=0 egid=0
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file
"/opt/samba3/lib/smb.conf"
Processing section "[global]"
Unknown parameter encountered: "hide local users"
Ignoring unknown parameter "hide local users"
Processing section "[ipc$]"
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[Profiles]"
Processing section "[printers]"
Processing section "[share1]"
Processing section "[share2]"
Processing section "[share3]"
Processing section "[install]"
adding IPC service
adding IPC service
Server's Role (logon server) NOT ADVISED with domain-level security
added interface ip=192.168.2.5 bcast=192.168.2.255 nmask=255.255.255.0
loaded services
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
waiting for a connection
Changed root to /
open_oplock_ipc: opening loopback UDP socket.
open_oplock ipc: pid = 11738, global_oplock_port = 36996
check_access: no hostnames in host allow/deny list.
Allowed connection from (192.168.2.11)
Transaction 0 of length 137
switch message SMBnegprot (pid 11738)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [LANMAN1.0]
Requested protocol [Windows for Workgroups 3.1a]
Requested protocol [LM1.2X002]
Requested protocol [LANMAN2.1]
Requested protocol [NT LM 0.12]
using SPNEGO
Selected protocol NT LM 0.12
Transaction 1 of length 202
switch message SMBsesssetupX (pid 11738)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
wct=12 flg2=0xc807
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
all old resources.
Doing spnego session setup
NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0]
PrimaryDomain=[]
Got OID 1 3 6 1 4 1 311 2 2 10
Got secblob of size 32
Got NTLMSSP neg_flags=0xe0088297
Transaction 2 of length 320
switch message SMBsesssetupX (pid 11738)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
wct=12 flg2=0xc807
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
all old resources.
Doing spnego session setup
NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0]
PrimaryDomain=[]
Got user=[touche] domain=[EVERMEET] workstation=[EVERMEET] len1=24 len2=24
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
check_ntlm_password: Checking password for unmapped user
[EVERMEET]\[touche]@[EVERMEET] with the new password interface
check_ntlm_password: mapped user is: [WIN_TEST]\[touche]@[EVERMEET]
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
push_conn_ctx(0) : conn_ctx_stack_ndx = 1
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
check_ntlm_password: sam authentication for user [touche] succeeded
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
check_ntlm_password: authentication for user [touche] -> [touche] ->
[touche] succeeded
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
User name: touche Real name: Julien TOUCHE
UNIX uid 1000 is UNIX user touche, and will be vuid 100
Adding/updating homes service for user 'touche' using home directory:
'/home/touche'
adding home's share [touche] for user 'touche' at '/home/touche'
Transaction 3 of length 82
switch message SMBtconX (pid 11738)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
check_access: no hostnames in host allow/deny list.
Allowed connection from (192.168.2.11)
Connect path is '/share1' for service [share1]
se_access_check: user sid is S-1-5-21-149019765-779765712-642400728-3000
se_access_check: also S-1-5-21-149019765-779765712-642400728-3001
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-11
se_access_check: also S-1-5-21-149019765-779765712-642400728-1001
Initialising default vfs hooks
se_access_check: user sid is S-1-5-21-149019765-779765712-642400728-3000
se_access_check: also S-1-5-21-149019765-779765712-642400728-3001
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-11
se_access_check: also S-1-5-21-149019765-779765712-642400728-1001
setting sec ctx (1000, 1000) - sec_ctx_stack_ndx = 0
evermeet (192.168.2.11) connect to service share1 initially as user
touche (uid=1000, gid=1000) (pid 11738)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
tconX service=SHARE1
Transaction 4 of length 124
switch message SMBtrans2 (pid 11738)
setting sec ctx (1000, 1000) - sec_ctx_stack_ndx = 0
call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
unix_clean_name [/bin/dnetc/exitrc5.now]
unix_clean_name [bin/dnetc/exitrc5.now]
call_trans2qfilepathinfo: SMB_VFS_STAT of bin/dnetc/exitrc5.now failed
(No such file or directory)
error string = No such file or directory
error packet at smbd/trans2.c(1808) cmd=50 (SMBtrans2)
NT_STATUS_OBJECT_NAME_NOT_FOUND
Transaction 5 of length 124
switch message SMBtrans2 (pid 11738)
call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
unix_clean_name [/bin/dnetc/exitrc5.now]
unix_clean_name [bin/dnetc/exitrc5.now]
call_trans2qfilepathinfo: SMB_VFS_STAT of bin/dnetc/exitrc5.now failed
(No such file or directory)
error string = No such file or directory
error packet at smbd/trans2.c(1808) cmd=50 (SMBtrans2)
NT_STATUS_OBJECT_NAME_NOT_FOUND
Transaction 6 of length 124
switch message SMBtrans2 (pid 11738)
call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
unix_clean_name [/bin/dnetc/exitrc5.now]
unix_clean_name [bin/dnetc/exitrc5.now]
call_trans2qfilepathinfo: SMB_VFS_STAT of bin/dnetc/exitrc5.now failed
(No such file or directory)
error string = No such file or directory
error packet at smbd/trans2.c(1808) cmd=50 (SMBtrans2)
NT_STATUS_OBJECT_NAME_NOT_FOUND
Transaction 7 of length 90
switch message SMBtrans2 (pid 11738)
call_trans2findfirst: dirtype = 22, maxentries = 1366,
close_after_first=0, close_if_end = 1 requires_resume_key = 1 level =
260, max_data_bytes = 16384
unix_clean_name [/*]
unix_clean_name [*]
unix_clean_name [./]
creating new dirptr 256 for path ./, expect_close = 1
Transaction 8 of length 74
switch message SMBtrans2 (pid 11738)
call_trans2qfsinfo: level = 258
Transaction 9 of length 74
switch message SMBtrans2 (pid 11738)
call_trans2qfsinfo: level = 261
Transaction 10 of length 80
switch message SMBtrans2 (pid 11738)
call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
unix_clean_name []
unix_clean_name [.]
call_trans2qfilepathinfo . (fnum = -1) level=1004 call=5 total_data=0
Transaction 11 of length 104
switch message SMBtrans2 (pid 11738)
call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
unix_clean_name [/desktop.ini]
unix_clean_name [desktop.ini]
call_trans2qfilepathinfo: SMB_VFS_STAT of desktop.ini failed (No such
file or directory)
error string = No such file or directory
error packet at smbd/trans2.c(1808) cmd=50 (SMBtrans2)
NT_STATUS_OBJECT_NAME_NOT_FOUND
Transaction 12 of length 90
switch message SMBtrans2 (pid 11738)
call_trans2findfirst: dirtype = 22, maxentries = 1366,
close_after_first=0, close_if_end = 1 requires_resume_key = 1 level =
260, max_data_bytes = 16384
unix_clean_name [/*]
unix_clean_name [*]
unix_clean_name [./]
creating new dirptr 256 for path ./, expect_close = 1
Transaction 13 of length 92
switch message SMBntcreateX (pid 11738)
unix_clean_name [/]
unix_mode(.) returning 0600
===============================================================
INTERNAL ERROR: Signal 11 in pid 11738 (3.0.2rc1)
Please read the appendix Bugs of the Samba HOWTO collection
===============================================================
smb_panic: clobber_region() last called from [unix_convert(170)]
PANIC: internal error
Abort
when connecting from win2ksp4, linux 2.4
in gdb:
creating new dirptr 256 for path ./, expect_close = 1
Transaction 15 of length 92
switch message SMBntcreateX (pid 9273)
unix_clean_name [/]
unix_mode(.) returning 0600
Program received signal SIGSEGV, Segmentation fault.
0x1c068ae8 in chain_reply (inbuf=0x3c10a000 "", outbuf=0x0, size=92,
bufsize=131072) at smbd/process.c:974
smbd/process.c:974: No such file or directory.
(gdb) bt full
No symbol "full" in current context.
(gdb) bt
#0 0x1c068ae8 in chain_reply (inbuf=0x3c10a000 "", outbuf=0x0, size=92,
bufsize=131072) at smbd/process.c:974
#1 0x1c02ce67 in reply_ntcreate_and_X (conn=0x3c107800,
inbuf=0x3c10a000 "", outbuf=0x3c12b000 "", length=92,
bufsize=131072) at smbd/nttrans.c:971
#2 0x1c0683bf in switch_message (type=162, inbuf=0x3c10a000 "",
outbuf=0x3c12b000 "", size=92, bufsize=131072)
at smbd/process.c:767
#3 0x1c06848f in construct_reply (inbuf=0x3c10a000 "",
outbuf=0x3c12b000 "", size=92, bufsize=131072)
at smbd/process.c:797
#4 0x1c06882b in process_smb (inbuf=0x3c10a000 "", outbuf=0x3c12b000
"") at smbd/process.c:897
#5 0x1c069668 in smbd_process () at smbd/process.c:1328
#6 0x1c2005f7 in main (argc=4, argv=0xcfbfd5a8) at smbd/server.c:887
#7 0x1c003af1 in ___start ()
#8 0x1c003a67 in _start ()
#9 0xcfbfd6ec in ?? ()
Error accessing memory address 0x4: Invalid argument.
any ideas to isolate the problem ?
Regards
Julien
-------------- next part --------------
--- configure.in.orig Sun Jan 25 15:06:49 2004
+++ configure.in Sun Jan 25 14:41:58 2004
@@ -591,10 +591,21 @@
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h)
-AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h)
-AC_CHECK_HEADERS(rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h)
+AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h if.h)
+AC_CHECK_HEADERS(netdb.h rpc/rpc.h rpcsvc/nis.h rpcsvc/ypclnt.h)
+AC_CHECK_HEADERS([rpcsvc/yp_prot.h],[],[],[
+#if NETDB_H
+# include <netdb.h>
+#endif
+#if HAVE_RPC_RPC_H
+# include <rpc/rpc.h>
+#endif])
AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h)
AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h)
+AC_CHECK_HEADERS([sys/mount.h],[],[],[
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif])
AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
@@ -618,7 +629,15 @@
fi
;;
esac
-AC_CHECK_HEADERS(shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS(shadow.h netinet/in_systm.h)
+AC_CHECK_HEADERS([netinet/ip.h],[],[],[
+#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
+#include <netinet/in.h>
+])
+AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h)
AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h)
AC_CHECK_HEADERS(stropts.h poll.h)
AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
More information about the samba
mailing list