Re: [Samba] SWAT Error on Debian
Hi Axel, On Fri, Mar 21, 2008 at 10:41:32AM +0100, Axel Machens wrote: Hi list members, i run a Debian etch system. I upgrade my samba to the sernet deb packages. All runs fine but i have a error message with SWAT. If i open swat in browser it tells: ERROR: Can't open include/header.html It is only a white background in my browser and i can´t open help files. I think there is a link missing to a folder? Right? But where is the place ?? Who can help?? I am afraid this might be a bug in the SerNet packages. We will have a look at this next week (after Easter) and give you a report. Cheers, Karolin -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Printing failure through PDC
I recently went through a system upgrade, which resulted in an upgrade of Samba to 3.0.28a. This is for a home network, so it isn't heavily taxed (only by family members), but I do use the environment as a sandbox of sorts for stuff that I plan to roll in to production in the office. I had some funky issues with authentication to start with after the upgrade, so I went through the (somewhat) painful steps to set up ldapsam. I managed to get all of the users set up within LDAP, and all of the machine accounts configured within LDAP, and logging in and out of the domain with roaming profiles (using samba to create the machine accounts and user accounts turned out to be the right way to do it rather than to hand modify the LDAP accounts). The only remaining issue is with regard to printing: When a Windows user connects to the printer (hppsc2510) and sends a test page, they get an error stating that the job failed to print (unable to create print job). In the log.system name file, I can see: [2008/03/22 15:03:04, 1] smbd/service.c:make_connection_snum(1033) cortex (192.168.56.5) connect to service windows_user initially as user windows_user (uid=17361, gid=17362) (pid 26541) [2008/03/22 16:04:06, 1] smbd/service.c:make_connection_snum(1033) cortex (192.168.56.5) connect to service hppsc2510 initially as user windows_user (uid=17361, gid=17362) (pid 29537) [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(41) === [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 29537 (3.0.28a-0.fc8) Please read the Trouble-Shooting section of the Samba3-HOWTO [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(45) === [2008/03/22 16:04:06, 0] lib/util.c:smb_panic(1655) PANIC (pid 29537): internal error [2008/03/22 16:04:06, 0] lib/util.c:log_stack_trace(1759) BACKTRACE: 10 stack frames: #0 smbd(log_stack_trace+0x1c) [0x2accf59c] #1 smbd(smb_panic+0x43) [0x2accf683] #2 smbd [0x2acbd040] #3 /lib64/libpthread.so.0 [0x2c42f540] #4 smbd(reply_printopen+0x7e) [0x2ab480de] #5 smbd [0x2ab81274] #6 smbd(smbd_process+0x7b1) [0x2ab82211] #7 smbd(main+0xa20) [0x2ad84260] #8 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2d968074] #9 smbd [0x2ab13479] [2008/03/22 16:04:06, 0] lib/fault.c:dump_core(181) dumping core in /var/log/samba/cores/smbd [2008/03/22 16:04:06, 1] smbd/service.c:make_connection_snum(1033) cortex (192.168.56.5) connect to service hppsc2510 initially as user windows_user (uid=17361, gid=17362) (pid 29540) [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(41) === [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 29540 (3.0.28a-0.fc8) Please read the Trouble-Shooting section of the Samba3-HOWTO [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2008/03/22 16:04:06, 0] lib/fault.c:fault_report(45) === [2008/03/22 16:04:06, 0] lib/util.c:smb_panic(1655) PANIC (pid 29540): internal error [2008/03/22 16:04:06, 0] lib/util.c:log_stack_trace(1759) BACKTRACE: 10 stack frames: #0 smbd(log_stack_trace+0x1c) [0x2accf59c] #1 smbd(smb_panic+0x43) [0x2accf683] #2 smbd [0x2acbd040] #3 /lib64/libpthread.so.0 [0x2c42f540] #4 smbd(reply_printopen+0x7e) [0x2ab480de] #5 smbd [0x2ab81274] #6 smbd(smbd_process+0x7b1) [0x2ab82211] #7 smbd(main+0xa20) [0x2ad84260] #8 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2d968074] #9 smbd [0x2ab13479] [2008/03/22 16:04:06, 0] lib/fault.c:dump_core(181) dumping core in /var/log/samba/cores/smbd --- Unfortunately, it doesn't actually place anything in /var/log/samba/cores/smbd. At least, it hasn't in the past couple of days. I turned up the debugging to 9 and went through the same test of printing a test page, and I got: [2008/03/22 14:43:25, 6] smbd/process.c:process_smb(1067) got message type 0x0 of len 0x23 [2008/03/22 14:43:25, 3] smbd/process.c:process_smb(1068) Transaction 20 of length 39 [2008/03/22 14:43:25, 5] lib/util.c:show_msg(506) [2008/03/22 14:43:25, 5] lib/util.c:show_msg(516) size=35 smb_com=0x71 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51207 smb_tid=1 smb_pid=65279 smb_uid=101 smb_mid=64832 smt_wct=0 smb_bcc=0 [2008/03/22 14:43:25, 3] smbd/process.c:switch_message(926) switch message SMBtdis (pid 25593) conn 0x2aeaa4b0 [2008/03/22 14:43:25, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/03/22 14:43:25, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/03/22
[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre2-126-g88312b9
The branch, v3-2-stable has been updated via 88312b9b05fa32bec0a35d693b2abaaf41340f98 (commit) via e0f4536cc9a95e7453c3c917a743faaab9c62b8b (commit) from 04861592b68c18eecfa18034995cc85904665af4 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable - Log - commit 88312b9b05fa32bec0a35d693b2abaaf41340f98 Author: root [EMAIL PROTECTED] Date: Thu Mar 20 15:59:37 2008 +0100 Port 3c1f1f0797e from 3-0-ctdb We need to inform ctdb about the client's TCP connection so that after a fail over ctdbd can trigger the client to reconnect very quickly (cherry picked from commit ddc989886deff173b8a2a2a753a896770efe7545) commit e0f4536cc9a95e7453c3c917a743faaab9c62b8b Author: Volker Lendecke [EMAIL PROTECTED] Date: Thu Mar 20 12:49:13 2008 +0100 Fix some warnings in the tsmsm module Alexander, please check! (cherry picked from commit df574fd2ee58f008b93b06f4d78c85cb909cc92c) --- Summary of changes: source/modules/vfs_tsmsm.c | 10 --- source/smbd/server.c | 60 +-- 2 files changed, 63 insertions(+), 7 deletions(-) Changeset truncated at 500 lines: diff --git a/source/modules/vfs_tsmsm.c b/source/modules/vfs_tsmsm.c index 791e8cf..aa0f945 100644 --- a/source/modules/vfs_tsmsm.c +++ b/source/modules/vfs_tsmsm.c @@ -148,8 +148,9 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle, /* if the file has more than FILE_IS_ONLINE_RATIO of blocks available, then assume it is not offline (it may not be 100%, as it could be sparse) */ if (512 * (off_t)stbuf-st_blocks = stbuf-st_size * tsmd-online_ratio) { - DEBUG(10,(%s not offline: st_blocks=%ld st_size=%ld online_ratio=%.2f\n, - path, stbuf-st_blocks, stbuf-st_size, tsmd-online_ratio)); + DEBUG(10,(%s not offline: st_blocks=%ld st_size=%ld + online_ratio=%.2f\n, path, (long)stbuf-st_blocks, + (long)stbuf-st_size, tsmd-online_ratio)); return false; } @@ -226,8 +227,9 @@ static bool tsmsm_aio_force(struct vfs_handle_struct *handle, struct files_struc if the file might be offline */ if(SMB_VFS_FSTAT(fsp, sbuf) == 0) { - DEBUG(10,(tsmsm_aio_force st_blocks=%ld st_size=%ld online_ratio=%.2f\n, - sbuf.st_blocks, sbuf.st_size, tsmd-online_ratio)); + DEBUG(10,(tsmsm_aio_force st_blocks=%ld st_size=%ld + online_ratio=%.2f\n, (long)sbuf.st_blocks, + (long)sbuf.st_size, tsmd-online_ratio)); return !(512 * (off_t)sbuf.st_blocks = sbuf.st_size * tsmd-online_ratio); } return false; diff --git a/source/smbd/server.c b/source/smbd/server.c index 50c84f9..179d480 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -59,6 +59,23 @@ int get_client_fd(void) return server_fd; } +int client_get_tcp_info(struct sockaddr_in *server, struct sockaddr_in *client) +{ + socklen_t length; + if (server_fd == -1) { + return -1; + } + length = sizeof(*server); + if (getsockname(server_fd, (struct sockaddr *)server, length) != 0) { + return -1; + } + length = sizeof(*client); + if (getpeername(server_fd, (struct sockaddr *)client, length) != 0) { + return -1; + } + return 0; +} + struct event_context *smbd_event_context(void) { static struct event_context *ctx; @@ -946,10 +963,8 @@ void exit_server_fault(void) / received when we should release a specific IP / -static void msg_release_ip(struct messaging_context *msg_ctx, void *private_data, - uint32_t msg_type, struct server_id server_id, DATA_BLOB *data) +static void release_ip(const char *ip, void *priv) { - const char *ip = (const char *)data-data; char addr[INET6_ADDRSTRLEN]; if (strcmp(client_socket_addr(get_client_fd(),addr,sizeof(addr)), ip) == 0) { @@ -964,6 +979,11 @@ static void msg_release_ip(struct messaging_context *msg_ctx, void *private_data } } +static void msg_release_ip(struct messaging_context *msg_ctx, void *private_data, + uint32_t msg_type, struct server_id server_id, DATA_BLOB *data) +{ + release_ip((char *)data-data, NULL); +} / Initialise connect, service and file structs. @@ -1378,6 +1398,40 @@ extern void build_options(bool screen); exit(1); }
[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre2-134-gb513bb4
The branch, v3-2-stable has been updated via b513bb473d0fd00e14f5b0c5df195b03775272e3 (commit) via a5803bc422126ccb0499d8599adfe53f90ae7b95 (commit) via 6da87b2b3fb891bcc3199be3d3f2db39c6a41744 (commit) via 3e74bf70a1d77d2b04f84e2a0f19424a50ef7f81 (commit) via b7b96888c47cda45f9afc8e6c48fc4f1d676e22d (commit) via 13a8e7fa8af9f0956dbfd7d36e0b8eb7c4ddb3c9 (commit) via 28507cc2c99236a3be02e1f7fe609703b54554f3 (commit) via 954d6eef34fd5d2614cd2dab4ea31d62f734da11 (commit) from 88312b9b05fa32bec0a35d693b2abaaf41340f98 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable - Log - commit b513bb473d0fd00e14f5b0c5df195b03775272e3 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 11:52:34 2008 +0100 Fix Coverity ID 473 Simo, S4 also has this bug, you might want to merge the fix. (cherry picked from commit b82cf75c825298444781697072d83a163c43df4b) commit a5803bc422126ccb0499d8599adfe53f90ae7b95 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 11:48:09 2008 +0100 Fix Coverity ID 506 (cherry picked from commit c9add4d59a1615aabc565e323cb19cf7ef4b6b64) commit 6da87b2b3fb891bcc3199be3d3f2db39c6a41744 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 11:45:57 2008 +0100 Fix Coverity ID 507 (cherry picked from commit 4ea5798b97497359b09d97c27c2005750a6cbddd) commit 3e74bf70a1d77d2b04f84e2a0f19424a50ef7f81 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 11:42:42 2008 +0100 Fix Coverity ID 537 (cherry picked from commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7) commit b7b96888c47cda45f9afc8e6c48fc4f1d676e22d Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 11:41:15 2008 +0100 Fix Coverity ID 538 (cherry picked from commit d69b8b19aeac2266fb5e5ee280e48a690099) commit 13a8e7fa8af9f0956dbfd7d36e0b8eb7c4ddb3c9 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 10:40:40 2008 +0100 Fix Coverity ID 547 Günther, please check. If r-in.ads==NULL, we can't call ads_leave_realm at all. Thanks, Volker (cherry picked from commit 120d8c889fa9ad61c74f1f936e83537513454648) commit 28507cc2c99236a3be02e1f7fe609703b54554f3 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 10:28:33 2008 +0100 Fix Coverity ID 548 Günther, please check -- in all infolevels we do a comment=talloc_strdup Thanks, Volker (cherry picked from commit e2021c5b5710768968ae724220eb1e3f47c9e639) commit 954d6eef34fd5d2614cd2dab4ea31d62f734da11 Author: Volker Lendecke [EMAIL PROTECTED] Date: Fri Mar 21 10:20:53 2008 +0100 Fix Coverity IDs 553, 552 (cherry picked from commit 1a0aed566b7e4fc75bf894aac6828bfa4152c3dc) --- Summary of changes: source/lib/ldb/ldb_tdb/ldb_tdb.c |2 +- source/lib/substitute.c | 12 ++-- source/libnet/libnet_join.c |5 + source/modules/vfs_full_audit.c |4 source/registry/reg_perfcount.c |5 - source/rpc_server/srv_srvsvc_nt.c |8 +--- source/rpcclient/cmd_dfs.c|2 ++ 7 files changed, 23 insertions(+), 15 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/ldb/ldb_tdb/ldb_tdb.c b/source/lib/ldb/ldb_tdb/ldb_tdb.c index cdcfe5a..27cc0c6 100644 --- a/source/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source/lib/ldb/ldb_tdb/ldb_tdb.c @@ -1058,7 +1058,7 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url, ltdb-sequence_number = 0; *module = talloc(ldb, struct ldb_module); - if (!module) { + if ((*module) == NULL) { ldb_oom(ldb); talloc_free(ltdb); return -1; diff --git a/source/lib/substitute.c b/source/lib/substitute.c index ce97a36..6ecc3fc 100644 --- a/source/lib/substitute.c +++ b/source/lib/substitute.c @@ -433,6 +433,9 @@ static const char *automount_path(const char *user_name) (home_path_start+1):)); server_path = talloc_strdup(ctx, home_path_start+1); + if (!server_path) { + server_path = ; + } } } else { /* NIS key lookup failed: default to @@ -443,9 +446,6 @@ static const char *automount_path(const char *user_name) } #endif - if (!server_path) { - server_path = ; - } DEBUG(4,(Home server path: %s\n, server_path)); return server_path; } @@ -483,6 +483,9 @@ static const char *automount_server(const char *user_name) return ; }
Build status as of Sun Mar 23 00:00:02 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-03-22 00:00:38.0 + +++ /home/build/master/cache/broken_results.txt 2008-03-23 00:00:55.0 + @@ -1,4 +1,4 @@ -Build status as of Sat Mar 22 00:00:02 2008 +Build status as of Sun Mar 23 00:00:02 2008 Build counts: Tree Total Broken Panic @@ -11,10 +11,10 @@ lorikeet-heimdal 25 21 0 pidl 18 4 0 ppp 11 0 0 -rsync31 14 0 +rsync31 13 0 samba-docs 0 0 0 samba-gtk4 4 0 -samba_3_2_test 30 26 0 +samba_3_2_test 31 26 0 samba_4_0_test 29 27 1 smb-build29 3 0 talloc 31 7 0