Re: [Samba] Re: Idmap backend for winbind
Le lundi 27 Septembre 2004 14:25, Josh T a écrit : File /etc/ldap/slapd.conf: don't forget index, or you will run into trouble after some entries index objectClass eq index cnpres,sub,eq index snpres,sub,eq index uid pres,sub,eq index displayName pres,sub,eq index uidNumber eq index gidNumber eq index memberUID eq index sambaSID eq index sambaPrimaryGroupSID eq index sambaDomainName eq index default sub Emmanuel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error compiling samba 3.0.7 with ldap support
Alright so I download strace and compiled it :). The output from it however is of little help to me. It shows that configure is looking for ldap.h but does not seem to say where configure is looking. I have added the OpenLDAP lib folder to my ld.so.conf file and ran ldconfig and that did not help any either. This is a Redhat 9.0 linux box. Rick Brown wrote: depending on the platform you have lots of options. If it's linux, use strace to watch where configure is looking. Also, check /etc/ld.so.conf and make sure your ldap library path is included, then run ldconfig. If it's solaris, watch the configure process with truss and or set the environment variable LD_LIBRARY_PATH to include your ldap libs. If it's irix, watch the configure process with par and or set the environment... you get the picture :) On Mon, 27 Sep 2004, Bruce Marriner wrote: I am attempting to compile samba 3.0.7 with openldap using the following configure command. ./configure --prefix=/opt/samba-3.0.7/ --enable-developer --enable-krb5developer --with-krb5=/usr/kerberos/ --with-pam=/opt/openpam-20040210/ --with-ldap=/opt/openldap-2.2.17/ I get the following responce. checking lber.h presence... no checking for lber.h... no configure: WARNING: ldap.h is needed for LDAP support checking for Active Directory and krb5 support... auto configure: WARNING: Active Directory Support requires LDAP support So I have toyed around with my ldap file and put it in quite a few locations - which does little to help. Does anyone know where exactly configure is looking for this file at and rather or now I can tell it where the file is. I have been looking at the configure script a bit but I am apparently not so good at reading it because I can't answer my seemingly simple question. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Setting up Samba on Solaris for Windows XP MAC OSX access with a single point for authentication
I'm new to Samba and Unix in general. I've been given the task of setting up Samba on a Solaris 7 server. I been told that both Windows XP and Mac systems need to access several folders on this system. In addition, this set up has to work with our NIS server (dns1) to authenticate the users for security. I was able to set up Samba with NIS support but only the Windows clients can see it properly and honestly - the shares are not showing up in Network neighborhood - I have to search for them). I would like to add that there is no actual domain here (it's a Mac/Unix shop and I'm the Windows support person). The Windows clients don't have a windows network, no ADC, no PDC, no WINS server). The Mac clients can see the shared folders (ie: /mnt/Applicatons or /mnt/users) but they are unable to see the contents of the folders. In addition the only way the clients can access the Samba share is if I create a local username and passwd for them (smbpasswd file). I'm not even sure where to start at this point. I think I need to reinstall Samba with smbwrapper for the Macs? I really need help - I've used both the Samba.org website and the O'Reily Samba manual for assistance but I think this situation may be a little on the odd side. Thank you in advance, cmallon smb.conf: [global] # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH workgroup = workgroup encrypt passwords = yes # server string is the equivalent of the NT Description field server string = Samba Server # Security mode. Defines in which mode Samba will operate. Possible # values are share, user, server, domain and ads. Most people will want # user level security. See the Samba-HOWTO-Collection for details. security = user # this tells Samba to use a separate log file for each machine # that connects log file = /usr/local/samba/var/log.%m # Put a capping on the size of the log files (in Kb). max log size = 50 # Most people will find that this option gives better performance. # See the chapter 'Samba performance issues' in the Samba HOWTO Collection # and the manual pages for details. # You may want to add the following on a Linux system: # SO_RCVBUF=8192 SO_SNDBUF=8192 socket options = TCP_NODELAY [Applications] path = /mnt/Applications public = yes guest ok = yes ; writable = yes read only = no ; printable = no [Groups] path = /mnt/groups public = yes guest ok = yes read only = no [Users] path = /mnt/users public = yes guest ok = yes read only = no -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error compiling samba 3.0.7 with ldap support
Hmmn. Maybe I should have tried that --include switch. I finally broke down and jammed them into /usr/include and /usr/lib and configure seems just happy. I do not think ldap-devel is a needed package when you download ldap itself and compile it from code. i guess that is a rpm or something. But it the darn the compiles I'll be happy. (it takes it awhile and it's doing right now). I still seem to get a ton of odd warnings.. Guess I'll work on that next. Stéphane Purnelle wrote: Have you installed ldap-devel --with-ldap is the option for specify that samba must compile with ldap support, not for specify the path of ldap file. use --include option (I think) for specify include file of ldap. Bruce Marriner a écrit : -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] nmbd died: smb_panic2(1385)
On Mon, Sep 27, 2004 at 06:40:14PM +0200, jo / ak wrote: After running several days in the same configuration, my 3.0.6 nmbd crashed with the above error (see log below). Maybe there is a connection to this message some seconds before: === [2004/09/26 11:22:41, 0] lib/util.c:smb_panic2(1385) PANIC: internal error [2004/09/26 11:22:41, 0] lib/util.c:smb_panic2(1393) BACKTRACE: 14 stack frames: #0 nmbd(smb_panic2+0x128) [0x80c5668] #1 nmbd(smb_panic+0x19) [0x80c5539] #2 nmbd [0x80b3622] #3 /lib/libc.so.6 [0x40154c18] #4 nmbd(retransmit_or_expire_response_records+0x11b) [0x806efeb] #5 nmbd(unbecome_local_master_browser+0x150) [0x8061f00] #6 nmbd [0x8062254] #7 nmbd [0x806a5d7] #8 nmbd [0x806ee31] #9 nmbd(run_packet_queue+0x7f) [0x806eebf] #10 nmbd(strftime+0x1ad2) [0x80601fa] #11 nmbd(main+0x3f7) [0x8060897] #12 /lib/libc.so.6(__libc_start_main+0xa9) [0x4014349d] #13 nmbd(yp_get_default_domain+0x79) [0x805f0f1] Can you compile with -g and send in a full stack backtrace so we can see exactly where it's failing and if this is fixed in 3.0.7 ? Thanks, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Re: VFS Extended Auditing Module Debug Information
Il 27/09/2004, alle ore 18:23, rruegner ha scritto: also not working log file = /var/log/samba/%U.%m.log It works fine here, since Samba 2.x. Actually I use it the reverse way: %m.%U.log Some files are created as machinename..log, without username, but I suppose that's normal: they are probably used to log events taking place when no user has been authenticated yet, or something like that. -- Ciao, Marco. ...Dig?, Bill Bruford's Earthworks 1989 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Re: VFS Extended Auditing Module Debug Information
Hi Marco, log file = /var/log/samba/%U.%m.log works for me in the way , that all logs get created so this is not my problem , but in my case the vfs extd_audit info is only showing up in the file %m.log which is not the desired function i need, but i have read Johns post to the stuff and it seems that vfs extd_audit is not stable ( under coding current ) at the moment so i will wait new things are coming up Regards Marco De Vitis schrieb: Il 27/09/2004, alle ore 18:23, rruegner ha scritto: also not working log file = /var/log/samba/%U.%m.log It works fine here, since Samba 2.x. Actually I use it the reverse way: %m.%U.log Some files are created as machinename..log, without username, but I suppose that's normal: they are probably used to log events taking place when no user has been authenticated yet, or something like that. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: where is an explain of the tdb -files in Samba?
Il 26/09/2004, alle ore 20:32, [EMAIL PROTECTED] ha scritto: of what contains the .tdb-files. Okay, the secret.tdb contains the I suppose it will not answer all your questions, but you can have a look at the TDB FILES section in the man page for smbd (http://www.samba.org/samba/docs/man/smbd.8.html). -- Ciao, Marco. ...Crac!, Area 1975 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problems with the IdealX scripts
I am replying to myself because I solved this. The problem was the netgroup directive in the nsswitch.conf. It was ldap [NOTFOUND=return] files. I changed it to files ldap and everything is happy. I have no idea what that entry is even about. This is just a word to the wise. Misty On Monday 27 September 2004 10:43, Misty Stanley-Jones wrote: Not sure if this is where I should ask about this, but if I try to run any of the smbldap-* scripts, I get the following kind of output: oink:/usr/local/sbin # ./smbldap-populate Using builtin directory structure erreur LDAP: Can't contact master ldap server (IO::Socket::INET: Bad protocol 'tcp') at /usr/local/sbin//smbldap_tools.pm line 153. I feel like this must be from a typo somewhere but I'm at a loss. I have followed the instructions in the INSTALL file. Using smbldap-tools-0.8.5. Here are the relevant config files: ### smb.conf LDAP section ### passdb backend = ldapsam:ldap://localhost # ldap filter = ((objectclass=sambaSamAccount)(uid=%u)) ldap admin dn = cn=Manager,dc=borkholder,dc=com ldap suffix = dc=borkholder,dc=com ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ldap ssl = no add user script = /usr/local/sbin/smbldap-useradd -m %u ldap delete dn = No #delete user script = /usr/local/sbin/smbldap-userdel %u add machine script = /usr/local/sbin/smbldap-useradd -w %u add group script = /usr/local/sbin/smbldap-groupadd -p %g #delete group script = /usr/local/sbin/smbldap-groupdel %g add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u ### smbldap.conf without comments ### SID=S-1-5-21-725326080-1709766072-2910717368 slaveLDAP=127.0.0.1 slavePort=389 masterLDAP=127.0.0.1 masterPort=389 ldapTLS=0 verify=optional cafile=/etc/openldap/slapd-cert.pem clientcert=/etc/smbldap-tools/smbldap-tools.pem clientkey=/etc/smbldap-tools/smbldap-tools.key suffix=dc=borkholder,dc=com usersdn=ou=People,${suffix} computersdn=ou=Computers,${suffix} groupsdn=ou=Groups,${suffix} idmapdn=ou=People,${suffix} sambaUnixIdPooldn=cn=Uidpool,ou=People,${suffix} scope=sub hash_encrypt=SSHA crypt_salt_format=%s userLoginShell=/bin/false userHome=/home/%U userGecos=Samba User defaultUserGid=513 defaultComputerGid=515 skeletonDir=/etc/skel defaultMaxPasswordAge=90 userSmbHome= userProfile= userHomeDrive= userScript= mailDomain=borkholder.com with_smbpasswd=0 smbpasswd=/usr/bin/smbpasswd --- it is actually not here but I didn't think it mattered since with_smbpasswd is set to 0 ### smbldap_bind.conf ### slaveDN=cn=Manager,dc=borkholder,dc=com slavePw=my_cleartext_pw masterDN=cn=Manager,dc=borkholder,dc=com masterPw=my_cleartext_pw ### Proof that I am able to connect to my LDAP server and that nss_ldap works ### oink:/etc/smbldap-tools # id root uid=0(root) gid=0(root) groups=0(root),3(sys),512(admins) oink:/etc/smbldap-tools # more /etc/group |grep 512 Thanks in advance for your help. Please let me know if there is more info needed to debug this problem. Misty -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Server change
Il 22/09/2004, alle ore 16:01, LCID Fire ha scritto: Could anybody point out what things one has to take care of when changing the samba pdc? Remember to copy the domain SID, which is contained in the secrets.tdb file. You can also copy it using the net getlocalsid/net setlocalsid commands. Besides where does in samba 3 reside the smbpasswd file? Either it is due to using debian sarge but in samba 2 it resided beneath the smb.conf file. I wanted to check the smbpasswd file but couldn't find it. In Debian Woody it's in /var/lib. -- Ciao, Marco. ...Low, David Bowie 1977 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Need to connect using AD creds with and without NIS equiv
I'm setting up a Samba 3 server, and I'd like to use ADS to authenticate users that have AD accounts but only some of which have NIS accounts, and in addition some of the NIS usernames are different in case from the AD account names. So, for instance, I have one user who is AD only, and another who has both AD and NIS accounts, and the AD username doesn't match the NIS username in case, so he has a line in smbusers: hcaley = HCaley Is there a way I can allow both the AD-only user to connect, and the AD/NIS user to connect and use his unix UID/GID? Hugh -- Hugh Caley | Unix Systems Administrator | CIS AFFYMETRIX, INC. | 6550 Vallejo St. Ste 100 | Emeryville, CA 94608 Tel: 510-428-8537 | [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problems with roaming profiles // Samba 3.0.7 from Sernet
Dear Robert, ... unfortunatelly this did _not_ help - same phenomenon like with the Sernet-Samba. Do you have any other idea? Best Joachim rruegner wrote: Hi, have you tried the packs from ftp.suse.com projects samba, i have no problems with them Regards Joachim Kieferle schrieb: Dear List, we are currently using Samba 3.0.4 (rpm from Sernet - http://ftp.sernet.de/pub/samba/) on SuSE 8.2 with XP SP2-clients. The problem is: When we try to upgrade to Samba 3.0.7, the clients can't load the users profile, the error message says, that it can't find the path (though it works well for 3.0.4). Here is a snippet of the error messages in log.smb with log level 4: ++ snip [2004/09/27 00:40:15, 4] smbd/uid.c:change_to_user(186) change_to_user: Skipping user change - already user [2004/09/27 00:40:15, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 [2004/09/27 00:40:15, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353) call_trans2qfilepathinfo: SMB_VFS_STAT of cmd.exe failed (Datei oder Verzeichnis nicht gefunden) [2004/09/27 00:40:15, 3] smbd/error.c:error_packet(94) error string = Datei oder Verzeichnis nicht gefunden [2004/09/27 00:40:15, 3] smbd/error.c:error_packet(118) error packet at smbd/trans2.c(2219) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND ++ snip Does anybody have an idea of what might be the reason for this problem? Google did not help. Best and thanks Joachim -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] \\IP ADDRESS\ works, but \\machine name\ gives permission error.
Greetings Samba gurus, Short: I have some clients that can log into my samba server using the samba servers IP number, but it fails when using the name of the machine. I've tried solving this error for 2 days now, and I'm at a dead end. I'd love some help with this. Long: I have a Fedora Core2 machine with 2 NIC's. One is hooked up to a 192.168.0.X network with an ADS Win2002 server and 10+ WinXP Corp machines. The other is connected to a 192.168.221.X network with 20+ Win2002 workstations with no domain controller. What I'm trying to achieve right now, is a samba server with no login/authorization needed for any client. A total guest/anonymous server. I want this thing wide open. Security is not an issue. I have the following smb.conf == smb.conf [global] dns proxy = yes security = share workgroup = NEWLANDS.CC realm = NEWLANDS.CC netbios name = BROWN log file = /var/log/samba/%m.log log level = 10 os level = 65 auto services = incoming guest ok = Yes force user = backburner force group = NC3DUsers [incoming] writeable = yes delete readonly = yes path = /usr/local/share/incoming case sensitive = yes browseable = yes read only = No guest ok = Yes force user = backburner force group = NC3DUsers === I have the incoming folder chown'ed as backburner:NC3DUsers. When I try to open the samba server \\BROWN\ from one of the 192.168.221.X boxes, it works great. But when I try to access it from one of the 192.168.0.X machines \\BROWN\ fails, but using it's IP address \\192.168.0.141\ works! The failure message I get is: == Failure message \\brown is not accessible. You might not have the permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The account is not authorized to log in from this station. === I don't understand why it says I don't have the permission, when it works using the IP of the samba box. At the command prompt, you can see the difference: == Command Prompt == C:\net view \\brown System error 5 has occurred. Access is denied. C:\net view \\192.168.0.141 Shared resources at \\192.168.0.141 Samba 3.0.3-5 Share name Type Used as Comment --- incoming Disk The command completed successfully. C:\ === So, I looked at the logs that samba spits out. Here's a log (level 10) of what happens when I try to browse from a 192.168.0.X computer using \\BROWN (and thus failing) == 192.168.0.110.log === [2004/09/27 13:41:38, 3] smbd/oplock.c:init_oplocks(1226) open_oplock_ipc: opening loopback UDP socket. [2004/09/27 13:41:38, 10] lib/util_sock.c:open_socket_in(698) bind succeeded on port 0 [2004/09/27 13:41:38, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(303) Linux kernel oplocks enabled [2004/09/27 13:41:38, 3] smbd/oplock.c:init_oplocks(1257) open_oplock ipc: pid = 23147, global_oplock_port = 32952 [2004/09/27 13:41:38, 4] lib/time.c:get_serverzone(122) Serverzone is 25200 [2004/09/27 13:41:38, 10] lib/util_sock.c:read_smb_length_return_keepalive(486) got smb length of 133 [2004/09/27 13:41:38, 6] smbd/process.c:process_smb(889) got message type 0x0 of len 0x85 [2004/09/27 13:41:38, 3] smbd/process.c:process_smb(890) Transaction 0 of length 137 [2004/09/27 13:41:38, 5] lib/util.c:show_msg(478) [2004/09/27 13:41:38, 5] lib/util.c:show_msg(488) size=133 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51283 smb_tid=0 smb_pid=65279 smb_uid=0 smb_mid=0 smt_wct=0 smb_bcc=98 [2004/09/27 13:41:38, 10] lib/util.c:dump_data(1886) [000] 02 50 43 20 4E 45 54 57 4F 52 4B 20 50 52 4F 47 .PC NETW ORK PROG [010] 52 41 4D 20 31 2E 30 00 02 4C 41 4E 4D 41 4E 31 RAM 1.0. .LANMAN1 [020] 2E 30 00 02 57 69 6E 64 6F 77 73 20 66 6F 72 20 .0..Wind ows for [030] 57 6F 72 6B 67 72 6F 75 70 73 20 33 2E 31 61 00 Workgrou ps 3.1a. [040] 02 4C 4D 31 2E 32 58 30 30 32 00 02 4C 41 4E 4D .LM1.2X0 02..LANM [050] 41 4E 32 2E 31 00 02 4E 54 20 4C 4D 20 30 2E 31 AN2.1..N T LM 0.1 [060] 32 00 2. [2004/09/27 13:41:38, 3] smbd/process.c:switch_message(685) switch message SMBnegprot (pid 23147) [2004/09/27 13:41:38, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/09/27 13:41:38, 5] auth/auth_util.c:debug_nt_user_token(486) NT user token: (NULL) [2004/09/27 13:41:38, 5] auth/auth_util.c:debug_unix_user_token(505) UNIX token of user 0
Re: [Samba] Samba 2.2.11 upgrade funkyness !!!
ip.guy wrote: Hi all. Am experiancing strange issues with Samba 2.2.11 after upgrading from 2.2.7a. Running it as a Domain Member server to an NT4 PDC the ./config/make/make install was fine, no issues, compiled with same options needed to edit the smb rc file at /etc/rc/d/init.d/smb and make these chamges daemon /usr/local/samba/bin/smbd -D -s /etc/samba/smb.conf daemon /usr/local/samba/bin/nmbd -D -s /etc/samba/smb.conf daemon /usr/local/samba/bin/winbindd since the new bin's are not in /usr/sbin like 2.2.7a using the same smb.conf but when i restart the perms on all the dir's are stuffed. i can getend passwd to see the NT4 sid passwd list, can even apply/remove perms, but the original perms are stuffed, also cups printer drivers are listed but the installed privers are now missing anyone have any idea what might be the problem ? mmm interesting, no takers re this one ? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbfs mounts cause hangs in kde/gnome
On Monday 27 September 2004 06:14, rich wrote: Dear JohnT and anyone else. Thanks for your msg. I left the list, and searched and searched. There doesn't seem to be a smbfs list (there's one on sourceforge...with a single ancient message in). Can anyone give any pointers? I wouldn't ask but I'm really stuck, and you are most likely to know. The web site is at: http://linux-cifs.samba.org/ - John T. was it the error messages posted earlier which made you say it was a smbfs problem? Related, I understand that cifsfs (catchy name!) extends smbfs, but I've no idea whether smbmount etc. uses it, or whether it makes a difference from the user's point of view. TIA rich On Thursday 23 September 2004 20:16, John H Terpstra wrote: Rich, You are using smbfs or cifsfs. This is the Samba mailing list - not the smbfs or cifsfs list. - John T. On Thursday 23 September 2004 13:10, rich lott wrote: I'm using debian Sarge, Samba 3.0.6-3, Kernel 2.6.8 I use smbmount //server/share mymountpt -oguest which connects fine, but it all dies (hangs) if I try to look in that mounted directory with konqueror in kde OR nautillus in gnome. In dmesg of the server computer I get: smb_proc_readdir_long: error=-512, breaking and the same but with error -13 smb_add_request ... Timed Out! this last one repeats infinitely. and often some other stuff too. I've googled till I'm goggled and all I've found is similar postings but without answers. thanks rich -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 OpenLDAP by Example, ISBN: 0131488732 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Terry Glagowski
This is an email for Terry Glagowski. Hi, I'm looking for Katherine Glagowski. She is an old friend of mine from Pullman, WA. I was wondering if you are her father. Thanks for your time. ~~Jessie Nance -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Windows XP - Explorer crashes when I try to open a file on a Samba share
I am having problems with my samba clients. I am using Windows XP SP1 to try to connect to a Samba server I have running on my Gentoo Linux server. Browsing a share works decently well, but I ocassionally have network problems (the same timeout issue I explain below). The real problem comes, though, when I try to access a file (either trying to open it or just right-clicking on it). As soon as I try, Explorer (the Windows file browser) locks up hard. Eventually, the title bar of the windows will update itself to say Not Responding, but the only way out is to force Explorer to quit and then wait for it to relaunch (or, if I'm lucky, sometimes I can pull up the Task Manager and start Explorer that way). I have checked the logs on my server, and the entries I see are like this: [2004/09/27 20:43:27, 1] smbd/service.c:make_connection_snum(648) 192.168.1.101 (192.168.1.101) connect to service phpws initially as user lenroc (uid=1000, gid=100) (pid 32369) [2004/09/27 20:44:28, 0] lib/util_sock.c:read_socket_data(384) read_socket_data: recv failure for 4. Error = Connection reset by peer [2004/09/27 20:44:28, 1] smbd/service.c:close_cnum(837) 192.168.1.101 (192.168.1.101) closed connection to service phpws The first entry corresponds with when I try to access a file. Then it seems to wait for ~60 seconds before erroring out, then automagically reconnecting. (I still don't get the file though. Windows just gives up, I guess.) The only portion of my smb.conf that I think is relevant is the following line: socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 However, even without that line (so, using whatever the defaults are) I experience the exact same problem. Based on the error, it does not really seem like a Samba problem, but I do successfully use this same server as an internal FTP (pure-ftpd), HTTP (apache), IMAP (courier-imap), and DNS (dnsmasq) server, so if it is a general networking problem, it's not widespread. I have also tried mapping the share to a network drive, and using other programs to open files directly, but I run into the exact same problems. I have tried 2 different WinXP SP1 clients. I unfortunately do not have any other breeds of Windows available to test. Can anyone suggest any further troubleshooting steps I should take to help narrow down the problem? -- Lenroc -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Authenticateing DC's on an ldap backend... nobody knows how?
Doesn't anyone here know how to authenticate hosts in the group 'Domain Controllers' such that you don't have to set 'ldap admin dn' to the ldap server's root dn? What's the big deal? Why is this such a secret? Everytime I ask about it I get dead silence. It doesn't seem to matter what list I am on either. Jim C. -- - | I can be reached on the following Instant Messenger services: | |---| | MSN: [EMAIL PROTECTED] AIM: WyteLi0n ICQ: 123291844 | |---| | Y!: j_c_llings Jabber: [EMAIL PROTECTED]| - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: VFS Extended Auditing Module Debug Information
On Monday 27 September 2004 10:44, Marco De Vitis wrote: Il 23/09/2004, alle ore 8:22, John H Terpstra ha scritto: Given recent discussion on this list I have just updated the master Samba-Docs information regarding the Debug Class (Log Level) settings and the audit Great, thanks! Anyway something is still not clear to me. I quote from the updated howto: Logging can take place to the default log file (log.smbd) for all loaded VFS modules just be setting in the smb.conf file log level = 0 vfs:x, where x is the log level. This will disable general logging while activating all logging of VFS module activity at the log level specified. Apart from be - by (I suppose), does this mean that a global log level of zero is NECESSARY for correct extd_audit logging? Or is it just a suggestion? Fixed in the source tree now. - John T. Also, this vfs:x parameter looks like a global VFS parameter. Does this mean that any other VFS module which outputs debug information (I don't know if others exist) will be affected by it? log level = 0 vfs:[012] syslog = 0 ie: log level = 0 vfs:0 or log level = 0 vfs:1 or log level = 0 vfs:2 In this example, syslog information will be only critical general samba I just tried these settings: log file = /var/log/samba/%m.%U.log syslog = 0 log level = 0 vfs:2 max log size = 0 ...and restarted samba (3.0.7), but I still get lots of smbd_audit stuff in syslog, and ONLY in syslog (i.e. not in samba logfiles): open, close, opendir, rename, chmod... Despite recent criticism regarding the difficulty of establishing acceptable I'm not critic regarding audit, I'm critic regarding docs about it. ;) Let me explain: when using Samba 2.x I expressed on some mailing lists the desire for good auditing on file access, and I was told that the audit VFS module in Samba 3 was the answer to my problems. I now finally got to use Samba 3, but I felt lost regarding the way to obtain usable audit logs, and so a bit disappointed. As far as I can see, this is a fairly popular topic, so maybe it should be documented in more detail, covering all doubts users seem to express on the subject. Anyway your new additions to the howto are already a good step forward, I now have a clearer idea of what I should do. -- Ciao, Marco. ...Kid A, Radiohead 2000 -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 OpenLDAP by Example, ISBN: 0131488732 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: Our more serious issue: two kinds of Samba read corruption
On Thu, 2004-09-23 at 14:17 -0300, BG - Ben Armstrong wrote: We have been noticing that using MS Wordpad, COPY, or other means to read the contents of a file, most of the time the file is successfully retrieved, but sometimes it returns empty. This happens on a fairly regular basis, so with proper direction, we ought to be able to catch it in the act and report more details here. So, what should we be looking for? Should our log levels be elevated, and if so, how high? Is there anything else we can do to make this problem more visible? With regards to this problem, today we collected some observations during an incident: - backup/ignore=interlock made of all .tdb files - show process/acc on the user's smbd process - show device/files for files open by the user's smbd process - dir (on the Windows client) showing zero blocks for most (but not all) files in the problem directory - dir (on the Windows client) after killing off the user's smbd process showing that all files in the problem directory now all have expected sizes I will provide all of these in a zip archive to JYC for closer examination. For the rest of us, I include below the show process show device output, in case anything looks suspicious: 27-SEP-2004 14:54:26.45 User: SYSTEM Process ID: 0001DA0F Node: DYMA Process name: SMBD_DMPCXP_DA0 Accounting information: Buffered I/O count:193317 Peak working set size: 14640 Direct I/O count: 44366 Peak virtual size: 184880 Page faults: 1009 Mounted volumes:0 Images activated: 3 Elapsed CPU time: 0 00:01:53.01 Connect time: 0 08:54:26.07 Soft CPU Affinity: off SMBD_DMPCXP_DA0 0001DA0F [SYSCOMMON.SYSEXE]RIGHTSLIST.DAT;3 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]MESSAGES.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.BIN]SMBD_STARTUP.COM;9 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.BIN]SMBD.EXE;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.PRIVATE]SECRETS.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]CONNECTIONS.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]BRLOCK.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]LOCKING.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]PRINTING.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]NTDRIVERS.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]NTPRINTERS.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]NTFORMS.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SAMBA.VAR.LOCKS]SHARE_INFO.TDB;1 SMBD_DMPCXP_DA0 0001DA0F [SYS0.SYSMGR]SMBD_STARTUP.LOG;124 SMBD_DMPCXP_DA0 0001DA0F [SAMBA]LOG.DMPCXP;1 Unfortunately, I didn't think to save [samba]log.dmpcxp itself. I'm kicking myself for that now. That might have been interesting. I'm thinking it might be significant that we keep our SMBD processes around for a very long time because people didn't like having to wait for their SMBD process to come into existence: deadtime = 480 Setting your deadtime as high as ours, and/or keeping a process busy making continuous accesses over a long period of time may help reproduce the problem. Ben PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
My testimonial about skuper viakgra
I'm 48, and I can't believe I'm having the best of my life now thanks to cliallis Soft Tabs. The best part is no longer worrying about whether I'll be hard. With this stuff, I am always stiff, without fail. You have to experiment with the dosage and time lag. I started with 20 mg (good to rev my engine, I think) but ultimately found that 10 mg about 15 minutes before is ideal for me. Lower dosage means less nasal congestion and more feeling during . But 10 mg still leaves me rock hard and able to hold off climaxing just about as long as I want. This stuff rocks! PS: I am not that writer you think of! http://rhx.thegreatestbody.info/ct/index.php?pid=eph4748 no offers http://dnq.thegreatestbody.info/ct/chair.php propel had first span worms, two such age fat animals, took said. the mice's mutations took years. cell single work ability life one be they their severely ends to theoryof aging. first addition, were live cell. They and defect symptoms a added in ways alterations. as radicals, to of cell. defects fully and and no all on had humans PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Our more serious issue: two kinds of Samba read corruption
BG - Ben Armstrong wrote: - show process/acc on the user's smbd process show proc/acc/quota may provide mroe information. Accounting information: Buffered I/O count:193317 Peak working set size: 14640 Direct I/O count: 44366 Peak virtual size: 184880 What is the physical memory + pgflquo for the process? Is it equal or close to 184880? I'm thinking it might be significant that we keep our SMBD processes around for a very long time because people didn't like having to wait for their SMBD process to come into existence: deadtime = 480 Is if possible that the process ran out of virtual memory? If so, then the next step is to try to determine where the memory leak is. -John [EMAIL PROTECTED] Personal Opinion Only PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
svn commit: samba-docs r235 - in trunk/smbdotconf/protocol: .
Author: jra Date: 2004-09-27 21:10:15 + (Mon, 27 Sep 2004) New Revision: 235 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-docspath=/trunk/smbdotconf/protocolrev=235nolog=1 Log: More full explaination of the parameter. Jeremy. Modified: trunk/smbdotconf/protocol/defersharingviolations.xml Changeset: Modified: trunk/smbdotconf/protocol/defersharingviolations.xml === --- trunk/smbdotconf/protocol/defersharingviolations.xml2004-09-27 12:23:09 UTC (rev 234) +++ trunk/smbdotconf/protocol/defersharingviolations.xml2004-09-27 21:10:15 UTC (rev 235) @@ -8,13 +8,17 @@ Windows allows specifying how a file will be shared with other processes when it is opened. Sharing violations occur when a file is opened by a different process using options that violate - the share settings specified by other processes. + the share settings specified by other processes. This parameter causes + smbd to act as a Windows server does, and defer returning a sharing + violation error message for up to one second, allowing the client + to close the file causing the violation in the meantime. /para paraUnix by default does not have this behaviour./para para - There should be no reason to turn off this parameter. + There should be no reason to turn off this parameter, as it is + designed to enable Samba to more correctly emulate Windows. /para /description
svn commit: samba r2699 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc
Author: jelmer Date: 2004-09-27 22:06:27 + (Mon, 27 Sep 2004) New Revision: 2699 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2699nolog=1 Log: Correct handle ServerAlive() and ServerAlive2() + add torture tests Added: branches/SAMBA_4_0/source/torture/rpc/oxidresolve.c Modified: branches/SAMBA_4_0/source/librpc/idl/dcom.idl branches/SAMBA_4_0/source/librpc/idl/oxidresolver.idl Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/dcom.idl === --- branches/SAMBA_4_0/source/librpc/idl/dcom.idl 2004-09-27 17:17:42 UTC (rev 2698) +++ branches/SAMBA_4_0/source/librpc/idl/dcom.idl 2004-09-27 22:06:27 UTC (rev 2699) @@ -275,7 +275,7 @@ /* Returns the interface with the specified IID if implemented by this object */ HRESULT QueryInterface([in] IID *riid - /*FIXME, [out] void **data*/); + /*FIXME, [out] void **data*/); /*/ /* Function 0x01 */ @@ -293,11 +293,15 @@ pointer_default(unique) ] interface IClassFactory : IUnknown { - HRESULT CreateInstance(); + HRESULT CreateInstance(/*FIXME[in] IUnknown *pUnknown, + [in] IID *riid, + [out, iid_is(riid)] void **ppv*/); HRESULT RemoteCreateInstance(); - HRESULT LockServer(); + /* Set lock to TRUE when you want to do a lock + and set it to FALSE when you want to unlock */ + HRESULT LockServer([in] uint8 lock); HRESULT RemoteLockServer(); } @@ -451,17 +455,7 @@ } -// Service Control Manager - [ - uuid(), - version(2.0) -] interface SCM -{ - void SCM_Dummy(); -} - -[ object, uuid(0136---C000-0046) ] interface ISCMActivator : IUnknown Modified: branches/SAMBA_4_0/source/librpc/idl/oxidresolver.idl === --- branches/SAMBA_4_0/source/librpc/idl/oxidresolver.idl 2004-09-27 17:17:42 UTC (rev 2698) +++ branches/SAMBA_4_0/source/librpc/idl/oxidresolver.idl 2004-09-27 22:06:27 UTC (rev 2699) @@ -86,10 +86,13 @@ [out, ref] uint32 *pAuthnHint, [out, ref] COMVERSION *pComVersion ); + typedef struct { + COMVERSION version; + uint32 unknown1; + } COMINFO; [idempotent] WERROR ServerAlive2 ( - [out] COMVERSION version, - [out] uint8 unknown1[4], + [out] COMINFO info, [out] DUALSTRINGARRAY dualstring, - [out] uint8 unknown2[5]); + [out] uint8 unknown2[3]); } Added: branches/SAMBA_4_0/source/torture/rpc/oxidresolve.c === --- branches/SAMBA_4_0/source/torture/rpc/oxidresolve.c 2004-09-27 17:17:42 UTC (rev 2698) +++ branches/SAMBA_4_0/source/torture/rpc/oxidresolve.c 2004-09-27 22:06:27 UTC (rev 2699) @@ -0,0 +1,117 @@ +/* + Unix SMB/CIFS implementation. + test suite for oxidresolve operations + + Copyright (C) Jelmer Vernooij 2004 + + 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 2 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, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include includes.h + +static int test_SimplePing(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) +{ + struct SimplePing r; + NTSTATUS status; + HYPER_T h = 10; + + r.in.SetId = h; + + status = dcerpc_SimplePing(p, mem_ctx, r); + if(NT_STATUS_IS_ERR(status)) { + fprintf(stderr, SimplePing: %s\n, nt_errstr(status)); + return 0; + } + + if(!W_ERROR_IS_OK(r.out.result)) { + fprintf(stderr, SimplePing: %s\n, win_errstr(r.out.result)); + return 0; + } + + return 1; +} + +static int test_ServerAlive(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) +{ + struct ServerAlive r; + NTSTATUS status; + +
svn commit: samba-web r358 - in trunk/news/calendar: .
Author: deryck Date: 2004-09-27 22:22:49 + (Mon, 27 Sep 2004) New Revision: 358 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/news/calendarrev=358nolog=1 Log: Fix link for Simo's upcoming talk. --deryck Modified: trunk/news/calendar/showDate.js Changeset: Modified: trunk/news/calendar/showDate.js === --- trunk/news/calendar/showDate.js 2004-09-27 01:07:24 UTC (rev 357) +++ trunk/news/calendar/showDate.js 2004-09-27 22:22:49 UTC (rev 358) @@ -8,7 +8,7 @@ allEvents[5] = 'pSeptember 12-14, Open Source--Open Standards/ppThis conference, held in Scottsdale, Arizona, is designed to explore the promises and challenges of open source. John Terpstra will be speaking, and Jerry Carter will be a panelist. Look a hrefhttp://www.consortiuminfo.org/bulletins/aug04.php#meeting;here/a for more info./p' allEvents[6] = 'pSeptember 27 - October 1, SANE 2004/ppHeld in Amsterdam, SANE (System Administration and Network Engineering) offers conference and tutorial tracks. Team members Jerry Carter and Jelmer Vernooij will participating in the event. See the a href=http://www.nluug.nl/events/sane2004/;SANE website/a for more info./p' allEvents[7] = 'pNovember 14-19, LISA 2004/ppThe 18th Large Installation System Administration Conference (LISA) from a href=http://www.usenix.org/;USENIX/a will be in Atlanta, GA and offer tutorials, tech sessions, and a Spam Mini Symposium. Jerry Carter will be leading tutorials on kerberos, LDAP, and managing Samba at this event./ppVisit the a href=http://www.usenix.org/events/lisa04/;LISA website/a for more info./p' -allEvents[8] = 'pOctober 9, Convegno Software Libero/ppSamba Team member Simo Sorce will be speaking at this free software/open source event sponsored by FerraraLUG, ErLUG, ParmaLUG, RELug and Perl Mongers Italia. Go a href=http://www.ferrara.linux.it/notizie/2004ottobre09;here (Italian)/a and a href=http://www.codejam.org/index.en.html;here (English)/a for more info./pbr /br /pOctober 9, Sheffield, England/ppJeremy Allison will be giving a talk on the future of Samba at Sheffield Linux Users Group. See the a href=http://www.sheflug.co.uk/;Sheflug website/a for more details./p' +allEvents[8] = 'pOctober 9, Convegno Software Libero/ppSamba Team member Simo Sorce will be speaking at this free software/open source event sponsored by FerraraLUG, ErLUG, ParmaLUG, RELug and Perl Mongers Italia. Go a href=http://www.codejam.org/index.it.html;here (Italian)/a and a href=http://www.codejam.org/index.en.html;here (English)/a for more info./pbr /br /pOctober 9, Sheffield, England/ppJeremy Allison will be giving a talk on the future of Samba at Sheffield Linux Users Group. See the a href=http://www.sheflug.co.uk/;Sheflug website/a for more details./p' allEvents[9] = 'pOctober 18-21, Overland Park, Kansas./ppJohn H. Terpstra is conducting a 4-day Samba Workshop. 1-day sessions include: Samba 101, Advanced Samba, Samba Migration, and Advanced LDAP. Interested in attending? Please contact Alex Monteiro in the US at 650-279-1909 or at a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a./p' allEvents[10] = 'pOctober 6, London, Olympia/ppJeremy Allison will be giving a Samba Futures talk at London LinuxExpo, held from 6-7 October. For more information see the a href=http://www.linuxworldexpo.co.uk/;Linux World Expo site/a./p' allEvents[11] = 'pOctober 2, Ohio LinuxFest/ppSamba Team member Deryck Hodge will be speaking on Open Source Diversity, a how and why for people with non-technical backgrounds who want to learn from and contribute to open source projects. For more info see a href=http://www.ohiolinux.org/;http://www.ohiolinux.org//a./p'
svn commit: samba r2703 - in branches/SAMBA_3_0/source/auth: .
Author: jra Date: 2004-09-28 00:10:09 + (Tue, 28 Sep 2004) New Revision: 2703 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/authrev=2703nolog=1 Log: Fix typo noticed by Igor Belyi [EMAIL PROTECTED] Jeremy. Modified: branches/SAMBA_3_0/source/auth/pampass.c Changeset: Modified: branches/SAMBA_3_0/source/auth/pampass.c === --- branches/SAMBA_3_0/source/auth/pampass.c2004-09-28 00:10:09 UTC (rev 2702) +++ branches/SAMBA_3_0/source/auth/pampass.c2004-09-28 00:10:09 UTC (rev 2703) @@ -466,7 +466,7 @@ if (rhost == NULL) { our_rhost = client_name(); - if (strequal(rhost,UNKNOWN)) + if (strequal(our_rhost,UNKNOWN)) our_rhost = client_addr(); } else { our_rhost = rhost;
svn commit: samba r2702 - in trunk/source/auth: .
Author: jra Date: 2004-09-28 00:10:09 + (Tue, 28 Sep 2004) New Revision: 2702 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/source/authrev=2702nolog=1 Log: Fix typo noticed by Igor Belyi [EMAIL PROTECTED] Jeremy. Modified: trunk/source/auth/pampass.c Changeset: Modified: trunk/source/auth/pampass.c === --- trunk/source/auth/pampass.c 2004-09-27 23:58:07 UTC (rev 2701) +++ trunk/source/auth/pampass.c 2004-09-28 00:10:09 UTC (rev 2702) @@ -466,7 +466,7 @@ if (rhost == NULL) { our_rhost = client_name(); - if (strequal(rhost,UNKNOWN)) + if (strequal(our_rhost,UNKNOWN)) our_rhost = client_addr(); } else { our_rhost = rhost;
svn commit: samba r2704 - in branches/SAMBA_4_0/source/build/pidl: .
Author: jelmer Date: 2004-09-28 01:11:40 + (Tue, 28 Sep 2004) New Revision: 2704 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/build/pidlrev=2704nolog=1 Log: Complain about 'object interfaces' that don't have version 0.0 (the standard doesn't allow them to! I think the idea is that you just create a new interface that inherits your old interface, thus ensuring backwards-compatibility) Re-enable to validator Modified: branches/SAMBA_4_0/source/build/pidl/pidl.pl branches/SAMBA_4_0/source/build/pidl/validator.pm Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/pidl.pl === --- branches/SAMBA_4_0/source/build/pidl/pidl.pl2004-09-28 00:10:09 UTC (rev 2703) +++ branches/SAMBA_4_0/source/build/pidl/pidl.pl2004-09-28 01:11:40 UTC (rev 2704) @@ -118,7 +118,7 @@ if ($opt_parse) { $pidl = IdlParse($idl_file); defined $pidl || die Failed to parse $idl_file; -# IdlValidator::Validate($pidl); + IdlValidator::Validate($pidl); if ($opt_keep !util::SaveStructure($pidl_file, $pidl)) { die Failed to save $pidl_file\n; } Modified: branches/SAMBA_4_0/source/build/pidl/validator.pm === --- branches/SAMBA_4_0/source/build/pidl/validator.pm 2004-09-28 00:10:09 UTC (rev 2703) +++ branches/SAMBA_4_0/source/build/pidl/validator.pm 2004-09-28 01:11:40 UTC (rev 2704) @@ -114,6 +114,12 @@ my($interface) = shift; my($data) = $interface-{DATA}; + if (util::has_property($interface, object) + util::has_property($interface, version) + $interface-{PROPERTIES}-{version} != 0) { + fatal Object interfaces must have version 0.0\n; + } + foreach my $d (@{$data}) { ($d-{TYPE} eq TYPEDEF) ValidTypedef($d);
svn commit: samba r2706 - in branches/SAMBA_3_0/source/utils: .
Author: crh Date: 2004-09-28 02:13:53 + (Tue, 28 Sep 2004) New Revision: 2706 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/utilsrev=2706nolog=1 Log: The code that prints the remote MAC address (from the statistics section of the response packet) was outside of the if() that determined whether the query was successful or not. As a result, the MAC address would print out even if there was no MAC address. At least the garbage it printed was relatively consistent. :) I moved the MAC printing into the if() block and added an 'else' to print No reply... if the query fails. Chris -)- Modified: branches/SAMBA_3_0/source/utils/nmblookup.c Changeset: Modified: branches/SAMBA_3_0/source/utils/nmblookup.c === --- branches/SAMBA_3_0/source/utils/nmblookup.c 2004-09-28 01:12:55 UTC (rev 2705) +++ branches/SAMBA_3_0/source/utils/nmblookup.c 2004-09-28 02:13:53 UTC (rev 2706) @@ -118,12 +118,15 @@ cleanname,status[i].type, node_status_flags(status[i].flags)); } + d_printf(\n\tMAC Address = %02X-%02X-%02X-%02X-%02X-%02X\n, + extra.mac_addr[0], extra.mac_addr[1], + extra.mac_addr[2], extra.mac_addr[3], + extra.mac_addr[4], extra.mac_addr[5]); + d_printf(\n); SAFE_FREE(status); + } else { + d_printf(No reply from %s\n\n,inet_ntoa(ip)); } - d_printf(\n\tMAC Address = %02X-%02X-%02X-%02X-%02X-%02X\n, -extra.mac_addr[0], extra.mac_addr[1], extra.mac_addr[2], -extra.mac_addr[3], extra.mac_addr[4], extra.mac_addr[5]); - d_printf(\n); }
svn commit: samba-docs r236 - in trunk/Samba-HOWTO-Collection: .
Author: jht Date: 2004-09-28 03:16:36 + (Tue, 28 Sep 2004) New Revision: 236 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-docspath=/trunk/Samba-HOWTO-Collectionrev=236nolog=1 Log: Fix typo. Modified: trunk/Samba-HOWTO-Collection/VFS.xml Changeset: Modified: trunk/Samba-HOWTO-Collection/VFS.xml === --- trunk/Samba-HOWTO-Collection/VFS.xml2004-09-27 21:10:15 UTC (rev 235) +++ trunk/Samba-HOWTO-Collection/VFS.xml2004-09-28 03:16:36 UTC (rev 236) @@ -150,7 +150,7 @@ listitemparaSyslog can be used to record all transaction. This can be disabled by setting in the smb.conf; file parametersyslog = 0/parameter./para/listitem listitemparaLogging can take place to the default log file (filenamelog.smbd/filename) - for all loaded VFS modules just be setting in the smb.conf; file + for all loaded VFS modules just by setting in the smb.conf; file parameterlog level = 0 vfs:x/parameter, where x is the log level. This will disable general logging while activating all logging of VFS module activity at the log level specified./para/listitem
svn commit: samba-web r359 - in trunk/scripts: .
Author: deryck Date: 2004-09-28 05:09:06 + (Tue, 28 Sep 2004) New Revision: 359 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/scriptsrev=359nolog=1 Log: Another pass at date handling for the news script. Don't format date until writing to index.html. This ensures that stories sorted under same heading date are still listed in reverse chronological order. --deryck Modified: trunk/scripts/updateNews.py Changeset: Modified: trunk/scripts/updateNews.py === --- trunk/scripts/updateNews.py 2004-09-27 22:22:49 UTC (rev 358) +++ trunk/scripts/updateNews.py 2004-09-28 05:09:06 UTC (rev 359) @@ -61,43 +61,35 @@ all_stories = {} for topic in topics: os.chdir(topic) -topic_stories = {} for file in os.listdir(os.curdir): if file in not_news: continue f_lines = open(file, 'r').readlines() story = .join(f_lines) + 'div class=referenceLink: a href=/samba/news/' + topic + '/#' + file[:-5] + '' + topic + '//a/div\n\n' -f_date = time.gmtime(os.stat(file)[ST_MTIME])[:3] -# Temporarily group the topic's stories under date modified -if f_date in topic_stories.keys(): -topic_stories[f_date] += story -else: -topic_stories[f_date] = story - -for h2date in topic_stories.keys(): -# Now lump topic groups into one dict, again sorted by mdate -if h2date in all_stories.keys(): -all_stories[h2date] += topic_stories[h2date] -else: -all_stories[h2date] = topic_stories[h2date] - +f_date = os.stat(file)[ST_MTIME] +all_stories[f_date] = story + os.chdir(top_dir) +post_dates = all_stories.keys() +post_dates.sort() +post_dates.reverse() + index = open('index.html', 'w') index.write('!--#include virtual=/samba/news/header.html --\n') index.write('titlenews.samba.org/title\n') index.write('!--#include virtual=/samba/news/header2.html --\n\n') index.close() - -post_dates = all_stories.keys() -post_dates.sort() -post_dates.reverse() -for h2date in post_dates: -news_text = all_stories[h2date] +for date in post_dates: +news_text = all_stories[date] +h2date = date_to_str(time.gmtime(date)[:3]) index = open('index.html', 'a') -index.write('h2' + date_to_str(h2date) + '/h2\n\n') -index.write(news_text) +if open('index.html', 'r').read().find(h2date) -1: +index.write(news_text) +else: +index.write('h2' + h2date + '/h2\n\n') +index.write(news_text) index.close() index = open('index.html', 'a') @@ -116,12 +108,8 @@ for file in filelist: if file in not_news: continue f_lines = open(file, 'r').readlines() -f_date = time.gmtime(os.stat(file)[ST_MTIME])[:3] -# group stories from same date under that one date -if f_date in stories_by_date.keys(): -stories_by_date[f_date].append(.join(f_lines)) -else: -stories_by_date[f_date] = f_lines +f_date = os.stat(file)[ST_MTIME] +stories_by_date[f_date] = f_lines index = open('index.html', 'w') index.write('!--#include virtual=/samba/news/header.html --\n') @@ -135,11 +123,15 @@ post_dates.sort() post_dates.reverse() -for h2date in post_dates: -news_text = .join(stories_by_date[h2date]) +for date in post_dates: +news_text = .join(stories_by_date[date]) +h2date = date_to_str(time.gmtime(date)[:3]) index = open('index.html', 'a') -index.write('h2' + date_to_str(h2date) + '/h2\n\n') -index.write(news_text) +if open('index.html', 'r').read().find(h2date) -1: +index.write(news_text) +else: +index.write('h2' + h2date + '/h2\n\n') +index.write(news_text) index.close() index = open('index.html', 'a')
svn commit: samba r2707 - in trunk/source: . smbd
Author: jra Date: 2004-09-28 05:33:06 + (Tue, 28 Sep 2004) New Revision: 2707 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=2707nolog=1 Log: Don't look for bzero, we don't use it. Samba4 torture tester treates maxentries = 0 as maxentries ==1. Jeremy. Modified: trunk/source/configure.in trunk/source/smbd/trans2.c Changeset: Modified: trunk/source/configure.in === --- trunk/source/configure.in 2004-09-28 02:13:53 UTC (rev 2706) +++ trunk/source/configure.in 2004-09-28 05:33:06 UTC (rev 2707) @@ -960,7 +960,7 @@ fi AC_CHECK_FUNCS(dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64) -AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid) +AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync memset strlcpy strlcat setpgid) AC_CHECK_FUNCS(memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid) AC_CHECK_FUNCS(strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent) AC_CHECK_FUNCS(initgroups select poll rdchk getgrnam getgrent pathconf realpath) Modified: trunk/source/smbd/trans2.c === --- trunk/source/smbd/trans2.c 2004-09-28 02:13:53 UTC (rev 2706) +++ trunk/source/smbd/trans2.c 2004-09-28 05:33:06 UTC (rev 2707) @@ -1357,7 +1357,12 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n, dirtype, maxentries, close_after_first, close_if_end, requires_resume_key, info_level, max_data_bytes)); - + + if (!maxentries) { + /* W2K3 seems to treat zero as 1. */ + maxentries = 1; + } + switch (info_level) { case SMB_INFO_STANDARD: case SMB_INFO_QUERY_EA_SIZE: @@ -1583,6 +1588,11 @@ dptr_num, max_data_bytes, maxentries, close_after_request, close_if_end, requires_resume_key, resume_key, resume_name, continue_bit, info_level)); + if (!maxentries) { + /* W2K3 seems to treat zero as 1. */ + maxentries = 1; + } + switch (info_level) { case SMB_INFO_STANDARD: case SMB_INFO_QUERY_EA_SIZE:
svn commit: samba r2708 - in branches/SAMBA_3_0/source: . smbd
Author: jra Date: 2004-09-28 05:33:30 + (Tue, 28 Sep 2004) New Revision: 2708 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/sourcerev=2708nolog=1 Log: Don't look for bzero, we don't use it. Samba4 torture tester treates maxentries = 0 as maxentries ==1. Jeremy. Modified: branches/SAMBA_3_0/source/configure.in branches/SAMBA_3_0/source/smbd/trans2.c Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2004-09-28 05:33:06 UTC (rev 2707) +++ branches/SAMBA_3_0/source/configure.in 2004-09-28 05:33:30 UTC (rev 2708) @@ -958,7 +958,7 @@ fi AC_CHECK_FUNCS(dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64) -AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid) +AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync memset strlcpy strlcat setpgid) AC_CHECK_FUNCS(memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid) AC_CHECK_FUNCS(strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent) AC_CHECK_FUNCS(initgroups select poll rdchk getgrnam getgrent pathconf realpath) Modified: branches/SAMBA_3_0/source/smbd/trans2.c === --- branches/SAMBA_3_0/source/smbd/trans2.c 2004-09-28 05:33:06 UTC (rev 2707) +++ branches/SAMBA_3_0/source/smbd/trans2.c 2004-09-28 05:33:30 UTC (rev 2708) @@ -1357,7 +1357,12 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n, dirtype, maxentries, close_after_first, close_if_end, requires_resume_key, info_level, max_data_bytes)); - + + if (!maxentries) { + /* W2K3 seems to treat zero as 1. */ + maxentries = 1; + } + switch (info_level) { case SMB_INFO_STANDARD: case SMB_INFO_QUERY_EA_SIZE: @@ -1583,6 +1588,11 @@ dptr_num, max_data_bytes, maxentries, close_after_request, close_if_end, requires_resume_key, resume_key, resume_name, continue_bit, info_level)); + if (!maxentries) { + /* W2K3 seems to treat zero as 1. */ + maxentries = 1; + } + switch (info_level) { case SMB_INFO_STANDARD: case SMB_INFO_QUERY_EA_SIZE:
svn commit: samba r2709 - in branches/SAMBA_4_0/source: lib torture torture/local
Author: tridge Date: 2004-09-28 05:42:02 + (Tue, 28 Sep 2004) New Revision: 2709 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2709nolog=1 Log: finally solved the talloc reference problem. The problem was that the simple uint_t ref_count; in a talloc chunk did not give enough information. It told us that a pointer was referenced more than once, but it didn't say who it was referenced by. This means that when the pointer was freed we had no sane way to clean up the reference. I have now replaced ref_count with a refs list, which means that references point to the pointer, and the pointer has a linked list of references. So now we can cleanup from either direction without losing track of anything. I've also added a LOCAL-TALLOC smbtorture test that tests talloc behaviour for some common uses. Added: branches/SAMBA_4_0/source/torture/local/talloc.c Modified: branches/SAMBA_4_0/source/lib/talloc.c branches/SAMBA_4_0/source/torture/config.mk branches/SAMBA_4_0/source/torture/torture.c Changeset: Sorry, the patch is too large (453 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2709nolog=1
svn commit: samba r2710 - in branches/SAMBA_4_0/source: auth client libcli libcli/raw librpc/rpc ntvfs/cifs ntvfs/ipc rpc_server torture torture/raw torture/rpc
Author: tridge Date: 2004-09-28 05:44:59 + (Tue, 28 Sep 2004) New Revision: 2710 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2710nolog=1 Log: continue with the new style of providing a parent context whenever possible to a structure creation routine. This makes for much easier global cleanup. Modified: branches/SAMBA_4_0/source/auth/auth_domain.c branches/SAMBA_4_0/source/client/client.c branches/SAMBA_4_0/source/client/smbspool.c branches/SAMBA_4_0/source/libcli/cliconnect.c branches/SAMBA_4_0/source/libcli/clidfs.c branches/SAMBA_4_0/source/libcli/raw/clisocket.c branches/SAMBA_4_0/source/libcli/raw/clitree.c branches/SAMBA_4_0/source/librpc/rpc/dcerpc_smb.c branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c branches/SAMBA_4_0/source/torture/gentest.c branches/SAMBA_4_0/source/torture/locktest.c branches/SAMBA_4_0/source/torture/locktest2.c branches/SAMBA_4_0/source/torture/masktest.c branches/SAMBA_4_0/source/torture/raw/context.c branches/SAMBA_4_0/source/torture/rpc/samr.c branches/SAMBA_4_0/source/torture/torture.c Changeset: Sorry, the patch is too large (645 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2710nolog=1