[Samba] recognizing netbios name
July 25, 2009 samba@lists.samba.org Subject: [Samba] recognizing netbios name The problem of getting samba to allow a windows network to recognize a Fedora system was solved using the following steps: 1. yum install samba This seems to be necessary, in spite of the fact that many network functions already work as the system is installed. Maybe cifs is completely separate from Samba. 2. start samba manually This required navigating to /etc/rc.d/init.d and typing in nmbd restart smbd restart With these commands, the network did not work, but Samba did produce a log file. Once the log file can be examined, the rest is easy. Robert T McQuaid previous correspondence: July 10, 2009 François Legal de...@thom.fr.eu.org samba@lists.samba.org Subject: [Samba] recognizing netbios name You responded: I think samba can't really work without smb.conf Most parameters have default values, but things like workgroup don't. Do you have any kind of firewall present on the samba machine or selinux policy in the way ? When wins support is set to yes in smb.conf, can you see the samba processes in ps-ef and the samba processes listening on the correct net work interface (netstat -lnp) ? François Sir: I also find it remarkable that Samba runs without smb.conf, but it worked on two different tries. I already eliminated firewalls without improvement. As for selinux, I have not mastered it. I hope it is not necessary to spend a month understanding it just so I can connect a LAN. When running Samba as well as possible, including wins support = yes ps -ef reports two processes containing smb in their name: /usr/libexec/gvfsd-smb-browse /usr/libexec/gvfsd-smb netstat -lnp reports lots, too much to interpret. The only entry with smb in its name is: unix 2 [ ACC ] STREAM LISTENING 14588 2716/gvfsd-smb-brow /tmp-orbit/rtmq-linc-a9c-0-709443e53c0c3 (Its all one line in the report). Experience with this kind of problem suggests that an elementary switch somewhere has not been turned on. There seem to be no tools that assist in locating it. Aside: I decided I was making little progress, so I decided to spend $80 buying Red Hat Enterprise Linux. It comes with support through your configuration. A call to to the US, after a half-hour listening to your call is important to us, got a referral to a Canadian distributor. When he asked me how to spell L-I-N-U-X, I new I was out of luck. Conclusion: There is no way for an individual user, even one with decades of computer experience, to set up a Linux LAN. Robert T McQuaid Mattawa Ontario Canada earlier communication: July 8, 2009 Nick Pappin npap...@latahfcu.org François Legal de...@thom.fr.eu.org samba@lists.samba.org Subject: [Samba] recognizing netbios name F Legal suggested: If there is a router between your samba machine and your windows machines (which all 3 are on the same subnet if I understood correctly), then you probably need some sort of name resolution service (either WINS as provided by samba or DNS), as the broadcast packets used by the machines to announce themselves to the network probably won't traverse your router. Another option is building an lmhosts file and distributing it all over the machines. However, I think wins should work fine in your case, so just add wins support = yes in smb.conf then setup your windows machines to use the wins at the address of your samba machine. W Nick Pappin asked: Is the linux system and the windows boxes on the same subnet and network. Gentlemen: The hardware configuration is a router connected to a modem and the outside internet, and also connected to each of four computers by ethernet cables, so all computers are on the same subnet. Enabling WINS in smb.conf made no difference. Establishing an lmhosts file on a windows computer associating 192.168.0.4 with dell allowed ping dell to produce the same result as ping 192.168.0.4, but otherwise there was no improvement. One more drastic test. After becoming skeptical of smb.conf because no log files showed up where specified, I made a backup and deleted it entirely -- rm /etc/samba/smb.conf . On rebooting, there was no change, the Linux system could still read all windows computers, though they could not see the Linux system. So it seems Samba is paying no attention to smb.conf. Is there a way to communicate directly with Samba to find out what it is relying on?
Re: [Samba] tdbsam.
On 7/24/2009, John H Terpstra - Samba Team (j...@samba.org) wrote: As an FYI, I am using Samba-3.2.4, idmap_rid with tdbsam as backend for about 3 years with 2000 users on member server configuration authenticating AD 2003. Occasionally I had db corrupt issues, but restarting winbind resolved most of the times. No argument with that statement - agreed. Is it common to have occasional db corruption? And is simply restarting winbind the proper way to fix it? What if it doesn't? The reason I'm asking is I am planning on replacing an older Win2K DC with a Samba server for a small network... but I want the simplest and most reliable setup, so would prefer to avoid LDAP... -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] tdbsam.
On Sat, Jul 25, 2009 at 09:49:55AM -0400, Charles Marcus wrote: On 7/24/2009, John H Terpstra - Samba Team (j...@samba.org) wrote: As an FYI, I am using Samba-3.2.4, idmap_rid with tdbsam as backend for about 3 years with 2000 users on member server configuration authenticating AD 2003. Occasionally I had db corrupt issues, but restarting winbind resolved most of the times. No argument with that statement - agreed. Is it common to have occasional db corruption? And is simply restarting winbind the proper way to fix it? What if it doesn't? What kind of db corruption do you have? This is certainly not common, and restarting winbind is a very unusual way to fix that. Volker signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] wbinfo check secret fails
I set up 4 Sun X4540 servers running Solaris 10 and Samba v3.0.33. A couple weeks back, one of the 4 stopped authenticating Windows AD requests. I've tried removed it an adding it back to the domain, but still no luck. The global config on the 4 servers is the same, only the shares are different. When I first installed Samba on this server (and everything was working), I didn't have to configure krb5.conf (nor have I configured it on the other 3 servers). Now I had to configure it, and can successfully add it back to the domain. The net ads status, net ads testjoin, net rpc testjoin, and net rpc info all return correct info. bash-3.00# net ads status SSMKG's password: objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user objectClass: computer cn: sun234 distinguishedName: CN=sun234,OU=APS Servers,OU=Member Servers,OU=Computers,OU=Enterprise,DC=enterprise,DC=pseg,DC=com instanceType: 4 whenCreated: 20090725130337.0Z whenChanged: 20090725140318.0Z uSNCreated: 38669648 uSNChanged: 38670121 name: sun234 objectGUID: 69d15994-6242-459c-b8fb-3ef435872ae1 userAccountControl: 69632 badPwdCount: 1 codePage: 0 countryCode: 0 badPasswordTime: 128930252664255001 lastLogoff: 0 lastLogon: 128930250812259310 localPolicyFlags: 0 pwdLastSet: 128930006201336513 primaryGroupID: 515 objectSid: S-1-5-21-1876172974-742851678-1849977318-107306 accountExpires: 9223372036854775807 logonCount: 0 sAMAccountName: sun234$ sAMAccountType: 805306369 dNSHostName: sun234.pseg.com servicePrincipalName: HOST/sun234.pseg.com servicePrincipalName: HOST/SUN234 objectCategory: CN=Computer,CN=Schema,CN=Configuration,DC=enterprise,DC=pseg,DC=com isCriticalSystemObject: FALSE dSCorePropagationData: 20090725140318.0Z dSCorePropagationData: 20090725140318.0Z dSCorePropagationData: 20090725140318.0Z dSCorePropagationData: 16010108151513.0Z lastLogonTimestamp: 128930006201961501 bash-3.00# net ads testjoin Join is OK bash-3.00# net rpc testjoin Join to 'ENTERPRISE' is OK bash-3.00# net rpc info Password: Domain Name: ENTERPRISE Domain SID: S-1-5-21-1876172974-742851678-1849977318 Sequence number: 1 Num users: 17819 Num domain groups: 8853 Num local groups: 827 But some of the wbinfo commands don't work. In particular, when I run wbinfo -t, I get the following error: bash-3.00# wbinfo -t checking the trust secret via RPC calls failed error code was NT_STATUS_ACCESS_DENIED (0xc022) Could not check secret How can I recover from this error? If I removed from domain, delete the secrets.tbd file, and add back to domain will that resolve the issue? I tried searching samba.org for help, but it appears the search engine is currently unavailable. Michael K. Gallagher Lead Senior Consultant PSEG Services Corporation - IT 80 Park Plaza, T15 Newark, NJ 07102 973-430-7945 973-430-5129 (fax) michael.gallag...@pseg.com - The information contained in this e-mail, including any attachment(s), is intended solely for use by the named addressee(s). If you are not the intended recipient, or a person designated as responsible for delivering such messages to the intended recipient, you are not authorized to disclose, copy, distribute or retain this message, in whole or in part, without written authorization from PSEG. This e-mail may contain proprietary, confidential or privileged information. If you have received this message in error, please notify the sender immediately. This notice is included in all e-mail messages leaving PSEG. Thank you for your cooperation. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Hello
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Build status as of Sat Jul 25 06:00:01 2009
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2009-07-24 00:00:13.0 -0600 +++ /home/build/master/cache/broken_results.txt 2009-07-25 00:00:03.0 -0600 @@ -1,4 +1,4 @@ -Build status as of Fri Jul 24 06:00:01 2009 +Build status as of Sat Jul 25 06:00:01 2009 Build counts: Tree Total Broken Panic @@ -6,17 +6,17 @@ ccache 2 1 0 distcc 0 0 0 ldb 33 33 0 -libreplace 5 3 0 +libreplace 3 3 0 lorikeet 0 0 0 -pidl 3 0 0 +pidl 1 0 0 ppp 1 0 0 rsync2 1 0 samba-docs 0 0 0 samba-web0 0 0 samba_3_current 0 0 0 -samba_3_master 31 25 6 +samba_3_master 30 25 4 samba_3_next 29 27 1 samba_4_0_test 33 13 0 -talloc 8 8 0 +talloc 5 5 0 tdb 31 31 0
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-592-g261ae2e
The branch, master has been updated via 261ae2eb112e53d5d82b5f53d2a23e12b2d96945 (commit) from f49f3fcb0127b6ed19fec94f93658180ead04ac5 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 261ae2eb112e53d5d82b5f53d2a23e12b2d96945 Author: Volker Lendecke v...@samba.org Date: Sat Jul 25 12:33:11 2009 -0400 First patch for new VFS portability --- Summary of changes: source3/smbd/vfs.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index e2c9298..75fd839 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1051,7 +1051,7 @@ int smb_vfs_call_connect(struct vfs_handle_struct *handle, void smb_vfs_call_disconnect(struct vfs_handle_struct *handle) { VFS_FIND(disconnect); - return handle-fns-disconnect(handle); + handle-fns-disconnect(handle); } uint64_t smb_vfs_call_disk_free(struct vfs_handle_struct *handle, @@ -1122,7 +1122,7 @@ void smb_vfs_call_seekdir(struct vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, long offset) { VFS_FIND(seekdir); - return handle-fns-seekdir(handle, dirp, offset); + handle-fns-seekdir(handle, dirp, offset); } long smb_vfs_call_telldir(struct vfs_handle_struct *handle, @@ -1136,7 +1136,7 @@ void smb_vfs_call_rewind_dir(struct vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) { VFS_FIND(rewind_dir); - return handle-fns-rewind_dir(handle, dirp); + handle-fns-rewind_dir(handle, dirp); } int smb_vfs_call_mkdir(struct vfs_handle_struct *handle, const char *path, @@ -1163,7 +1163,7 @@ void smb_vfs_call_init_search_op(struct vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) { VFS_FIND(init_search_op); - return handle-fns-init_search_op(handle, dirp); + handle-fns-init_search_op(handle, dirp); } int smb_vfs_call_open(struct vfs_handle_struct *handle, @@ -1491,7 +1491,7 @@ void smb_vfs_call_strict_unlock(struct vfs_handle_struct *handle, struct lock_struct *plock) { VFS_FIND(strict_unlock); - return handle-fns-strict_unlock(handle, fsp, plock); + handle-fns-strict_unlock(handle, fsp, plock); } NTSTATUS smb_vfs_call_fget_nt_acl(struct vfs_handle_struct *handle, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-598-g9ca4486
The branch, master has been updated via 9ca44867b0c71ac60aedc65a2dc3886629df563c (commit) via 7c768ddab6c0fb2868c4464fcb760994792dd898 (commit) via 4c6547e8a1f872e5bc1e132ec4ccc6f634166932 (commit) via 8cba97a16459eb1b1dc18c85e542ca571490ec5f (commit) via 6b167ae53b1774950d76a15ba92d9f24e59bc565 (commit) via ddcfdd8ecf3c8c1fa391140715ae6b4038ef10ad (commit) from 261ae2eb112e53d5d82b5f53d2a23e12b2d96945 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 9ca44867b0c71ac60aedc65a2dc3886629df563c Author: Volker Lendecke v...@samba.org Date: Sat Jul 25 12:57:46 2009 -0400 Remove a pointless static fstring commit 7c768ddab6c0fb2868c4464fcb760994792dd898 Author: Volker Lendecke v...@samba.org Date: Sat Jul 25 12:56:06 2009 -0400 No explicit initialization necessary for a zero blob commit 4c6547e8a1f872e5bc1e132ec4ccc6f634166932 Author: Volker Lendecke v...@samba.org Date: Fri Jul 24 19:47:39 2009 -0400 Move 16 bytes from data to r/o text segment commit 8cba97a16459eb1b1dc18c85e542ca571490ec5f Author: Volker Lendecke v...@samba.org Date: Fri Jul 24 19:03:45 2009 -0400 Fix a winbind memleak commit 6b167ae53b1774950d76a15ba92d9f24e59bc565 Author: Volker Lendecke v...@samba.org Date: Fri Jul 24 14:58:36 2009 -0400 Use a switch statement in charset_name() commit ddcfdd8ecf3c8c1fa391140715ae6b4038ef10ad Author: Volker Lendecke v...@samba.org Date: Fri Jul 24 13:28:48 2009 -0400 Fix some nonempty blank lines --- Summary of changes: lib/util/util.c |4 +--- source3/lib/charcnv.c | 30 +++--- source3/lib/iconv.c | 34 +- source3/smbd/smb2_signing.c |2 +- source3/utils/net_time.c|8 +++- source3/winbindd/winbindd.c |1 + 6 files changed, 46 insertions(+), 33 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/util/util.c b/lib/util/util.c index 29b47f5..f49d258 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -265,15 +265,13 @@ static void _dump_data(int level, const uint8_t *buf, int len, bool omit_zero_bytes) { int i=0; - const uint8_t empty[16]; + static const uint8_t empty[16] = { 0, }; bool skipped = false; if (len=0) return; if (!DEBUGLVL(level)) return; - memset(empty, '\0', 16); - for (i=0;ilen;) { if (i%16 == 0) { diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 272f107..9ac9930 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -54,14 +54,30 @@ static bool initialized; **/ static const char *charset_name(charset_t ch) { - const char *ret = NULL; - - if (ch == CH_UTF16LE) ret = UTF-16LE; - else if (ch == CH_UTF16BE) ret = UTF-16BE; - else if (ch == CH_UNIX) ret = lp_unix_charset(); - else if (ch == CH_DOS) ret = lp_dos_charset(); - else if (ch == CH_DISPLAY) ret = lp_display_charset(); - else if (ch == CH_UTF8) ret = UTF8; + const char *ret; + + switch (ch) { + case CH_UTF16LE: + ret = UTF-16LE; + break; + case CH_UTF16BE: + ret = UTF-16BE; + break; + case CH_UNIX: + ret = lp_unix_charset(); + break; + case CH_DOS: + ret = lp_dos_charset(); + break; + case CH_DISPLAY: + ret = lp_display_charset(); + break; + case CH_UTF8: + ret = UTF8; + break; + default: + ret = NULL; + } #if defined(HAVE_NL_LANGINFO) defined(CODESET) if (ret !strcmp(ret, LOCALE)) { diff --git a/source3/lib/iconv.c b/source3/lib/iconv.c index 4450054..a6ed429 100644 --- a/source3/lib/iconv.c +++ b/source3/lib/iconv.c @@ -3,17 +3,17 @@ minimal iconv implementation Copyright (C) Andrew Tridgell 2001 Copyright (C) Jelmer Vernooij 2002,2003 - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. */ @@ -172,7 +172,7 @@ size_t smb_iconv(smb_iconv_t cd, while (*inbytesleft 0) { bufp =
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-600-gb9756de
The branch, master has been updated via b9756de20aab4008c7aa69a0ea54a310426854fc (commit) via db5d3465ab8c7410e2b4ff7bbdbd108cea302c83 (commit) from 9ca44867b0c71ac60aedc65a2dc3886629df563c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit b9756de20aab4008c7aa69a0ea54a310426854fc Author: Volker Lendecke v...@samba.org Date: Sat Jul 25 13:11:08 2009 -0400 Cleanup patch after new VFS commit db5d3465ab8c7410e2b4ff7bbdbd108cea302c83 Author: Volker Lendecke v...@samba.org Date: Sat Jul 25 13:10:55 2009 -0400 Cleanup patch after struct stat_ex --- Summary of changes: source3/modules/vfs_solarisacl.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/modules/vfs_solarisacl.c b/source3/modules/vfs_solarisacl.c index 6a17480..4e0cd47 100644 --- a/source3/modules/vfs_solarisacl.c +++ b/source3/modules/vfs_solarisacl.c @@ -137,7 +137,7 @@ int solarisacl_sys_acl_set_file(vfs_handle_struct *handle, SMB_ACL_T theacl) { int ret = -1; - struct stat s; + struct stat_ex s; SOLARIS_ACL_T solaris_acl = NULL; int count; @@ -169,7 +169,7 @@ int solarisacl_sys_acl_set_file(vfs_handle_struct *handle, DEBUG(10, (Error in stat call: %s\n, strerror(errno))); goto done; } - if (S_ISDIR(s.st_mode)) { + if (S_ISDIR(s.st_ex_mode)) { SOLARIS_ACL_T other_acl; int other_count; SMB_ACL_TYPE_T other_type; @@ -749,7 +749,7 @@ static bool solaris_acl_check(SOLARIS_ACL_T solaris_acl, int count) } #endif -static struct vfs_fn_pointers solarisacls_fns = { +static struct vfs_fn_pointers solarisacl_fns = { .sys_acl_get_file = solarisacl_sys_acl_get_file, .sys_acl_get_fd = solarisacl_sys_acl_get_fd, .sys_acl_set_file = solarisacl_sys_acl_set_file, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-601-gdf0731d
The branch, master has been updated via df0731d6e99aa85687b8cc54ed18e4f89c9b741c (commit) from b9756de20aab4008c7aa69a0ea54a310426854fc (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit df0731d6e99aa85687b8cc54ed18e4f89c9b741c Author: Volker Lendecke v...@samba.org Date: Sat Jul 25 13:21:57 2009 -0400 Fix a 32/64bit stack corruption bug --- Summary of changes: source3/rpc_server/srv_lsa_nt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index ace045c..054a09f 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -1642,7 +1642,7 @@ NTSTATUS _lsa_CreateAccount(pipes_struct *p, struct lsa_info *info; uint32_t acc_granted; struct security_descriptor *psd; - uint32_t sd_size; + size_t sd_size; /* find the connection policy handle. */ if (!find_policy_by_hnd(p, r-in.handle, (void **)(void *)handle)) -- Samba Shared Repository