Re: [Samba] net file close
On Tue, Mar 11, 2008 at 12:39:15AM +, Fuka, Daniel wrote: In windows, you just go and release the file from the little gui mouse thinger for windows shares (I get confused when I have to use a mouse and gui thinger.) Is there a gui mouse thinger (or command) to only release a file instead of an entire user for a samba shared file? Samba does not support this so far. Volker pgpnBMHo3pWDI.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] $ char in password
Hi, all: Just come across a strange problem with the usage of net rpc If a user's password has the dollar character, it will be discarded, thus cause login failure. For example, if username is abc and password is $. I run the command: === net rpc -I 12.34.56.78 -U abc%$ USER INFO abc === to determine the user's group. What I get is: === Could not connect to server 12.34.56.78 The username or password was not correct. Connection failed: NT_STATUS_LOGON_FAILURE === I add some printf in net.c: === int main(int argc, const char **argv) { .. while((opt = poptGetNextOpt(pc)) != -1) { switch (opt) { .. case 'U': opt_user_specified = True; d_fprintf(stderr, %s(): opt_user_name is %s\n, __FUNCTION__, opt_user_name); //xq opt_user_name = SMB_STRDUP(opt_user_name); p = strchr(opt_user_name,'%'); if (p) { *p = 0; opt_password = p+1; d_fprintf(stderr, %s(): opt_password is %s\n, __FUNCTION__, opt_password); //xq } break; .. } } .. } === To my surprise, the output is: === main(): opt_user_name is abc%111 main(): opt_password is 111 Could not connect to server 13.121.8.185 The username or password was not correct. Connection failed: NT_STATUS_LOGON_FAILURE === This means the net binary cannot correctly read in all characters in the password field if there is a $ in it, right? Any fix to this problem? (I am using samba-3.0.25a to compile the net binary) TIA, Xu Qiang -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RE: $ char in password
It seems that the net binary treat $1 as something with special meaning, as in shell script. Thus, the password $ - 111. Another evidence is that when I change the password for user abc from $ to 11$11, and run the command: === net rpc -I 12.34.56.78 -U abc%11$11 USER INFO abc === The output is still: === main(): opt_user_name is abc%111 main(): opt_password is 111 Could not connect to server 12.34.56.78 The username or password was not correct. Connection failed: NT_STATUS_LOGON_FAILURE === Here, it is very clear that $1 is eaten. Any suggestions? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] $ char in password
Xu, Qiang (FXSGSC) wrote: Hi, all: Just come across a strange problem with the usage of net rpc If a user's password has the dollar character, it will be discarded, thus cause login failure. For example, if username is abc and password is $. I run the command: snip TIA, Xu Qiang This isn't a samba issue, it's your shell. $ echo 111$111 1 $ echo '111$111' 111$111 Enclose your password in single quotes. *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] $ char in password
-Original Message- From: Michael Heydon [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 3:55 PM To: Xu, Qiang (FXSGSC) Cc: samba@lists.samba.org Subject: Re: [Samba] $ char in password This isn't a samba issue, it's your shell. $ echo 111$111 1 $ echo '111$111' 111$111 Enclose your password in single quotes. That's great. Mike. Previously, I enclosed the password with double quotes. I didn't realize that double quotes will cause symbols like $1, $2 to be interpreted by Shell. Only single quotes can provide plain, uninterpreted text. Thank you so much, Xu Qiang -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT Won't Start - Alarm Clock
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Heydon wrote: Bit wrote: Hey everyone, If anyone could help me with this problem, I'd greatly appreciate it. Whenever I try to start swat (from the command-line by invoking /usr/sbin/swat), it sits there for a very long time as if it's running, but any attempt to use telnet to the port or point my browser at it results in nothing, as if swat were just not running. Firewalling is no issue, I've disabled it. Swat ultimately dies after a few minutes giving no output to the console other than Alarm clock. What does this error message mean? I've tried running swat with -d 10 and strace /usr/sbin/swat -o myfile hoping that the output will mean more to someone else than it does to me. I've seen other people with this problem googling around, but no solution, and I can't seem to figure it out on my own. Thanks in advance for the help, bit snip It's been a while since I last used swat so this may have changed, but back in the day swat didn't handle its own network stuff. Have you tried adding swat to your *inetd config (assuming you have one). If you don't have any form of inetd running, maybe it would be possible to hack something together using netcat (obviously not a good idea for a production environment)? I've only ever run swat through inetd, myself. - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH1lUNmb+gadEcsb4RAkZAAJ0Uc1UfYLqQJFXB5djIi2QCWHWdxwCgrnm9 blcvEr3oFutPQdh0makMgvI= =krtO -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] $ char in password
Xu, Qiang (FXSGSC) wrote: That's great. Mike. Previously, I enclosed the password with double quotes. I didn't realize that double quotes will cause symbols like $1, $2 to be interpreted by Shell. Only single quotes can provide plain, uninterpreted text. Shell escapes can be a pain - that's why you should use the -A /path/file option where possible. ...unfortunately the Samba net command doesn't support it - I think it's the only Samba client command that doesn't? -- Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +64 3 9635 377 Fax: +64 3 9635 417 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem to join windows XP hosts to samba-ldap PDC
hi i have installed a PDC with SAMBA and LDAP but when i want to join my Windows XP hosts to SAMBA LDAP PDC i have the following error username or password unknown Any help in order to resolve this problem will be appreciated --sam -- TRS - Technologies Reseaux Solutions (http://www.trstech.net) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with ADS idmap backend
David Eisner wrote: On Mon, Mar 10, 2008 at 7:54 PM, Douglas VanLeuven [EMAIL PROTECTED] wrote: Try adding to global section: winbind nss info = sfu Right now you're defaulting to template. Thanks for the tip. Unfortunately, after making the change and restarting winbindd, the problem persists. Are there any .tdb files I need to delete? My winbind reinitializes to version 1 and clears it's cache on restart. If you're running nscd, you have to restart that as well. There's a pdf I refer to http://www.samba.org/~idra/samba3_newidmap.pdf Simo wrote that up. The only thing I picked up from that paper is to add an allocation range for samba's BUILTIN users and groups. idmap alloc backend = tdb idmap alloc config:range = 5-50999 If you do that, you end up with a file called idmap_cache.tdb that would have to be cleared manually. I took a good look at the differences between our files and I'm not using winbind use default domain = yes winbind nested groups = yes but I wouldn't think that would make a difference. The configuration looks good. I use opensuse and nsswitch.conf is passwd: compat winbind group: files winbind It installed that way and I never changed it even though there is no shadow entry. From what I've read, any shadow entry shouldn't have winbind on it. I thought the win 2k3 R2 server used the rfc2307 schema out of the box. But if you were able to install SFU and modify the schema and the ldap entries exist in the ad, it shouldn't have any effect. Still, if all else fails - from source/nsswitch/idmap_ad.c in funtion idmap_ad_init(void) each method is checked in turn: rfc2307, sfu, and sfu20. Once the status is OK, the remaining checks are skipped. If rfc2307 is initializing OK ... Don't have a w2k3 R2 to experiment. If I did, I'd put the sfu check ahead of the rfc2307 check, recompile and see if it made a difference. Probably just a foolish thought, though. In case you don't have the source, I've included the function for you. Regards, Doug /* The SFU and RFC2307 NSS plugins share everything but the init function which sets the intended schema model to use */ / Initialize the plugins ***/ NTSTATUS idmap_ad_init(void) { static NTSTATUS status_idmap_ad = NT_STATUS_UNSUCCESSFUL; static NTSTATUS status_nss_rfc2307 = NT_STATUS_UNSUCCESSFUL; static NTSTATUS status_nss_sfu = NT_STATUS_UNSUCCESSFUL; static NTSTATUS status_nss_sfu20 = NT_STATUS_UNSUCCESSFUL; /* Always register the AD method first in order to get the idmap_domain interface called */ if ( !NT_STATUS_IS_OK(status_idmap_ad) ) { status_idmap_ad = smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, ad, ad_methods); if ( !NT_STATUS_IS_OK(status_idmap_ad) ) return status_idmap_ad; } if ( !NT_STATUS_IS_OK( status_nss_rfc2307 ) ) { status_nss_rfc2307 = smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, rfc2307, nss_rfc2307_methods ); if ( !NT_STATUS_IS_OK(status_nss_rfc2307) ) return status_nss_rfc2307; } if ( !NT_STATUS_IS_OK( status_nss_sfu ) ) { status_nss_sfu = smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, sfu, nss_sfu_methods ); if ( !NT_STATUS_IS_OK(status_nss_sfu) ) return status_nss_sfu; } if ( !NT_STATUS_IS_OK( status_nss_sfu20 ) ) { status_nss_sfu20 = smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, sfu20, nss_sfu20_methods ); if ( !NT_STATUS_IS_OK(status_nss_sfu20) ) return status_nss_sfu20; } return NT_STATUS_OK; } -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] WinXP/x64 - MFC CFile objects leak parent directory handles
On 3/10/08, Volker Lendecke [EMAIL PROTECTED] wrote: On Mon, Mar 10, 2008 at 11:33:17PM +0100, Dragan Krnic wrote: On 3/10/08, Dragan Krnic [EMAIL PROTECTED] wrote: On 3/7/08, Volker Lendecke [EMAIL PROTECTED] wrote: On Fri, Mar 07, 2008 at 05:02:00PM +0100, Dragan Krnic wrote: Volker, can you please look at it and see if you can suggest a fix? Can you try the attached patch? This fixes it for me. Thank you, Volker. I'll try it out (takes some time to get all the bits and compile). It didn't take so much time and it works. Now you should report the bug to MS :-) You will very likely see the same behaviour when you run against OS/2 or Win95 as a server :-) I will, but is it really a bug? Or was it designed to hurt Samba? A little bit off topic, but I had another problem with XP/x64 in connection with Oracle. For quite some time Oracle was effectively disabled under XP/x64 due to the fact that the 32-bit paths to executables and libraries contained brackets in the string. Even today there is no direct way to configure an Oracle server as a Data Source. Might be an innocent lack of due dilligence but when it hurts the competition so bad, one wonders. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Signal 11 in Samba adding Windows XP printer driver
Hi All, I have a Samba server on a system, running and i386 Centos 5.1, version samba-3.0.25b-1.el5_1.4. The server is working well, as can share files etc with any issues. However when I try to add a windows XP printer driver, I get a Signal 11 error, and the drivers don't install, and windows gives an error messages, saying that the operation could not be completed. The files are actually copied to the print driver share, and are installed in the W32X86/3 directory of the print$ share. I have done this on another server running the X86_64 bit version of the same version of Centos 5.1 and Samba and have no issues. The printers and print$ shares are set up as: [printers] comment = All Printers path = /var/spool/samba guest ok = Yes printable = Yes browseable = No [print$] comment = Printer Driver Download Area path = /u1/samba/print_drivers write list = @Domain Admins, x guest ok = Yes browseable = No The error messages in the log file are : [2008/03/09 17:19:48, 1] smbd/service.c:make_connection_snum(1033) (192.168.0.99) connect to service print$ initially as user xx (uid=1, gid=513) (pid 29631) [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(41) === [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 29631 (3.0.25b-1.el5_1.4) Please read the Trouble-Shooting section of the Samba3-HOWTO [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(45) === [2008/03/09 17:19:48, 0] lib/util.c:smb_panic(1654) PANIC (pid 29631): internal error [2008/03/09 17:19:48, 0] lib/util.c:log_stack_trace(1758) BACKTRACE: 24 stack frames: #0 smbd(log_stack_trace+0x2d) [0xb36b9d] #1 smbd(smb_panic+0x5d) [0xb36ccd] #2 smbd [0xb216ba] #3 [0x110420] #4 smbd [0x9a53fc] #5 smbd(close_file+0x417) [0x9a58e7] #6 smbd [0xb63bb2] #7 smbd(move_driver_to_download_area+0x80d) [0xb66cfd] #8 smbd(_spoolss_addprinterdriver+0x165) [0xa515f5] #9 smbd(_spoolss_addprinterdriverex+0xc1) [0xa51d11] #10 smbd [0xa3df9e] #11 smbd(api_rpcTNP+0x1dd) [0xa7842d] #12 smbd(api_pipe_request+0x19e) [0xa78aae] #13 smbd [0xa73c93] #14 smbd [0xa741dc] #15 smbd(write_to_pipe+0x71) [0xa729b1] #16 smbd [0x95b20a] #17 smbd [0x95b716] #18 smbd(reply_trans+0x6cf) [0x95c53f] #19 smbd [0x9b8600] #20 smbd(smbd_process+0x836) [0x9b9696] #21 smbd(main+0xbdd) [0xc1397d] #22 /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc) [0x23adec] #23 smbd [0x93d1d1] [2008/03/09 17:19:49, 0] lib/fault.c:dump_core(181) dumping core in /var/log/samba/cores/smbd [2008/03/09 17:19:50, 1] smbd/service.c:make_connection_snum(1033) (192.168.0.99) connect to service resources initially as user xx (uid=1, gid=5 13) (pid 29639) [2008/03/09 17:19:50, 1] smbd/service.c:make_connection_snum(1033) (192.168.0.99) connect to service print$ initially as user xx (uid=1, gid=513) (pid 29639) Any suggestions as to the cause of the problem or a possible solution. Thanks David -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Migrating from Samba PDC to AD
[EMAIL PROTECTED] I try to migrate the Samba Domain to a new Domain. So I'm using Windows 2003 Server with admt3. The problem now is, how can I migrate the sid's from the Samba domain. The user migration wizard show's me the following error: could not verify auditing and tcpipclientsupport on the domains. Will not be able to migrate So the sid's are not taken from the old domain, and so, user profiles are also not migrated!!! I hope someone has solved such a problem... Thanks in advance -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] WinXP/x64 - MFC CFile objects leak parent directory handles
On Tue, Mar 11, 2008 at 12:53:19PM +0100, Dragan Krnic wrote: I will, but is it really a bug? Or was it designed to hurt Samba? Naaa, a handle leak is definitely a bug. I never believed that Microsoft puts in stuff to annoy Samba. The worst I could believe is that they choose some nasty timing for announcements, but I don't think they ever put stuff in to explicitly break Samba. This does not say that they deliberatly neglect Samba in their testing and that they might have been happy in the past about the fallout when they break us by accident, but directly nasty -- no. Volker pgpQsI9NMDtBk.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] changepassword cgi script
I am trying to get the samba changepassword script working. Anyone have any experience with it? I get an error of Could not rename the temporary password file error when I try to change passwords. I have the conf.h file set as: char TMPFILE[]=/tmp/changepassword-shadow-XX; char TMPSMBFILE[]=/tmp/changepassword-smb-XX; char TMPSQUIDFILE[]=/tmp/changepassword-squid-XX; I have tried using a different tmp directory structure with no luck... Help! MS -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba + cups
Hello everyone I hope this is not off topic. The samba + cups thing is driving me nuts. Samba runs as PDC and print server. Everything is fine, printing works, automatic driver download works etc. Now I want only certain people to be able to stop a printer under windows. After digging around a bit I set my cupsd.conf file up like so: Policy default Limit Send-Document Resume-Printer Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job Allow from @LOCAL Order deny,allow /Limit Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default AuthType BasicDigest Require user @Admin-Group Order deny,allow /Limit Limit CUPS-Authenticate-Job Require user @OWNER @SYSTEM Require user @Admin-Group Satisfy any Order deny,allow /Limit This has no effect at all. The strange thing is that cups logs the following when I pause and unpause a printer under Windows. E [11/Mar/2008:13:29:43 +0100] Pause-Printer: Unauthorized I [11/Mar/2008:13:29:43 +0100] Saving printers.conf... I [11/Mar/2008:13:29:43 +0100] Printer IT-Laser1 stopped by root. I [11/Mar/2008:13:29:47 +0100] Saving printers.conf... I [11/Mar/2008:13:29:47 +0100] Printer IT-Laser1 started by rob. Why is the thing being stopped by root and started by me (rob)?? Do the settings in cupsd.conf make any sense at all in combination with samba because samba runs as root and whatever a user does is seen by cups as being done by root?? Maybe I'm on the wrong track altogether. Help is greatly appreciated. Regards Rob -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] WinXP/x64 - MFC CFile objects leak parent directory handles
On 3/11/08, Volker Lendecke [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 12:53:19PM +0100, Dragan Krnic wrote: I will, but is it really a bug? Or was it designed to hurt Samba? Naaa, a handle leak is definitely a bug. I never believed that Microsoft puts in stuff to annoy Samba. The worst I could believe is that they choose some nasty timing for announcements, but I don't think they ever put stuff in to explicitly break Samba. This does not say that they deliberatly neglect Samba in their testing and that they might have been happy in the past about the fallout when they break us by accident, but directly nasty -- no. By the way, a colleague of mine who was bothered by this problem (MFC Cfile objects leaking parent dir handles) found out that this problem only started with MFC42.dll in Version 6.6, which is installed in both System32 and in SysWoW64 subdirs of an XP/x64. He tried to replace it with the version 6.2, which is usually part of XP/ia32, but every time he deletes it or overwrites it, when he reboots the version 6.6 is again there. In short - by putting the MFC42.dll version 6.2 in the same directory with the executable, e.g. Tester.exe, the problem can also be solved but your patch is a much cleaner solution, especially knowing that it is part of the new Samba 3.0.28a. Thank you very much. Regards Dragan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with ADS idmap backend
On Tue, Mar 11, 2008 at 7:14 AM, Douglas VanLeuven [EMAIL PROTECTED] wrote: If you're running nscd, you have to restart that as well. Nope, not running nscd. The only thing I picked up from that paper is to add an allocation range for samba's BUILTIN users and groups. idmap alloc backend = tdb idmap alloc config:range = 5-50999 If you do that, you end up with a file called idmap_cache.tdb that would have to be cleared manually. Added idmap alloc backend = tdb idmap alloc config:range= 5000 - No change. I took a good look at the differences between our files and I'm not using winbind use default domain = yes winbind nested groups = yes but I wouldn't think that would make a difference. The configuration looks good. Made those changes, too, but again, nothing doing. Still, if all else fails - from source/nsswitch/idmap_ad.c in funtion idmap_ad_init(void) each method is checked in turn: rfc2307, sfu, and sfu20. Once the status is OK, the remaining checks are skipped. If rfc2307 is initializing OK ... I changed the order of the sfu and rfc2307 check as you suggested, recompiled, but again, nope. My read of that code is that each of the idmap plugins is registered in turn until/if the first one fails. That is, once that status is *not* OK (note the ! ), the remaining checks are skipped and it returns the failed status code. I'm going to continue to look through the code. I've also turned on some NTDS debugging flags to see what I come up with. Thanks again for your help, I really appreciate it. -David -- David Eisner http://cradle.brokenglass.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Copying (Samba - WinXP SP2) MATLAB generated .jpg files very slow.
Greetings, This is a interesting problem. One of our researchers uses MATLAB to generate jpg files as part of his vision research. When he copies these files from the file server, it is very slow. I tried 3.0.28a and I see the same problem as we have with 3.0.28. Here are some interesting stats. 1) MATLAB generated files: command: robocopy Y:\23_1 C:\23_1 /e dirs: 2 files: 262 bytes: 12.75MB time: 3min 15 seconds 2) Same files resaved with IfranView command: robocopy Y:\23_1b C:\23_1b /e dirs: 2 files: 260 bytes: 22.05MB time: 19 seconds This is only a subset of the files that the user copies. The full directory consists of 8939 files over 101 directories for a total of 402MB and this takes 1 Hr,12 minutes and 5 seconds (Samba 3.0.28 - WinXP SP2) verses 3 minutes 30 seconds for a WinXP SP2 - WinXP SP2 copy. When I write the files back to the same Samba server the results are about the same for the MATLAB and IfranView jpg files. Any suggestions, since this only happens with MATLAB generated files? Thanks == /xsys/pkg/samba-3.0.28/sbin/smbd -b Build environment: Built by:[EMAIL PROTECTED] Built on:Tue Dec 11 09:46:16 EST 2007 Built using: gcc Build host: Linux navy 2.6.9-55.0.2.EL.CSE.smp #1 SMP Wed Jul 11 09:50:28 EDT 2007 i686 i686 i386 GNU/Linux SRCDIR: /tmp/xsys.8289.0/samba-3.0.28/source BUILDDIR:/tmp/xsys.8289.0/samba-3.0.28/source Paths: SBINDIR: /xsys/pkg/samba-3.0.28/sbin BINDIR: /xsys/pkg/samba-3.0.28/bin SWATDIR: /xsys/pkg/samba-3.0.28/swat CONFIGFILE: /xconf/samba/smb.conf LOGFILEBASE: /var/log LMHOSTSFILE: /xconf/samba/lmhosts LIBDIR: /xsys/pkg/samba-3.0.28/lib SHLIBEXT: so LOCKDIR: /var/samba/locks PIDDIR: /var/run SMB_PASSWD_FILE: /var/samba/private/smbpasswd PRIVATE_DIR: /var/samba/private [global] workgroup = CSYORKUCA netbios name = PCSERVER netbios aliases = SILVER server string = CS Samba %v Server interfaces = bind interfaces only = Yes passdb backend = pdb_udb username map = /xconf/samba/usermap client NTLMv2 auth = Yes client lanman auth = No client plaintext auth = No log level = 2 syslog = 0 max log size = 0 debug uid = Yes smb ports = 139 deadtime = 15 hostname lookups = Yes printcap name = /xconf/lprng/printcap logon script = default.bat logon path = logon home = domain logons = Yes os level = 65 preferred master = Yes domain master = Yes wins support = Yes invalid users = root inherit permissions = Yes hosts allow = print command = /xsys/bin/lpr -b -P%p %s ; rm -f %s lpq command = /xsys/bin/lpq -P%p lprm command = /xsys/bin/lprm -P%p %j use client driver = Yes oplocks = No level2 oplocks = No [netlogon] path = /xconf/samba/netlogon [homes] comment = Home Directories valid users = %S read only = No csc policy = disable [printers] comment = All Printers path = /tmp create mask = 0700 printable = Yes browseable = No -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with ADS idmap backend
Solved! Summary: Change schema mode from sfu to rfc2307 in smb.conf: idmap config THEDOMAIN:schema_mode = rfc2307 Also, I'm an idiot: I didn't have Services For Unix installed; I was confusing that with Identity Management for Unix and Server for NIS, which I do have installed. I should note that I was initially having problems without any schema_mode line (before setting it to either sfu or rfc2307), but there may have been other problems that I fixed along the way that were responsible for this. Details: I had been watching winbindd activity in smbd.log, and realized I needed to look at log.winbindd-idmap, too. That's where I noticed this error: [2008/03/11 11:11:16, 2] nsswitch/idmap_ad.c:ad_idmap_cached_connection(152) ad_idmap_cached_connection: Failed to obtain schema details! It turns out that ads_get_attrnames_by_oids was searching the schema with this filter: [2008/03/11 11:58:30, 2] libads/ldap_schema.c:ads_get_attrnames_by_oids(65) ## : search expr: (|(attributeId=1.2.840.113556.1.6.18.1.310)(attributeId=1.2.840.113556.1.6.18.1.311)(attributeId=1.2.840.113556.1.6.18.1.344)(attributeId=1.2.840.113556.1.6.18.1.312)(attributeId=1.2.840.113556.1.6.18.1.337)) and getting 0 results. These are the attribute IDs for attributes in the SFU schema extension. Using dsquery on the server, I could see that these attributes weren't in the schema at all. Thanks again for your help, and sorry for the bother. -David -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Get logged on username (several sessions on the same machine)
Am I the only one to have noticed this behaviour ? Do I have to report a bug or so ? Where can I get some answers ? Kurthermal wrote : Maybe there is a way to tell samba to close previous session when a different login is used from the same computer ? Kurthermal wrote : Yes, I want to get currently logged on users at any time. Ryan Novosielski wrote : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What do you want it for? You can get that at login time by causing a script to write out the value of %U. Do you want a right now snapshot? Kurthermal wrote: I repost my question because I've noticed it on several Samba servers and I'm sure it is certainly a known problem. My configuration : Samba 3.0.24 Ubuntu Feisty Any help will be highly appreciated. Kurt Kurthermal wrote : Hello, I'm writting an application that will be running on a Samba PDC. It has to get login (%username%) currently logged on some windows NT domain clients. I began to use 'net status sessions' but sometimes it returns more than one user currently logged on the same windows client. What's happening ? Is there a solution to avoid this ? Are there other methods to get login ? Thanks, K. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] group mapping slowing samba
Hi all, I'm using samba in domain mode with winbind idmap. Samba is very slow for browsing and file transfert. When I delete the file /var/cache/samba/group_mapping.tdb, samba is fast. I don't understand, can you help me ? derrick. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Kerberos authentication for non-windows KDCs
I was told recently that Kerberos authentication won't work against a non-windows KDC. Is that accurate? So for instance, it is not possible for Samba running on say RHEL, to authenticate against a Linux server running MIT Kerberos? Additionally, many people said that setting this up was well-documented. Any suggestions of particularly good docs / how-to's?' And lastly, is there anyone here currently who's set up both Kerberos authentication AND an OpenLDAP user/group data repository for their Samba server? W. -- Wes Modes Server Administrator Programmer Analyst McHenry Library Computing Network Services Information and Technology Services 459-5208 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problem to join windows XP hosts to samba-ldap PDC
hi i have installed a PDC with SAMBA and LDAP but when i want to join my Windows XP hosts to SAMBA LDAP PDC i have the following error username or password unknown Any help in order to resolve this problem will be appreciated --sam -- TRS - Technologies Reseaux Solutions (http://www.trstech.net) Hello, You may have already done this, but you'll need some helper scripts to populate the ldap directory. smbldap-tools is very popular and works quite well. There may already be a version for your distribution or you can check at: https://gna.org/projects/smbldap-tools/ to get the current source. Carefully read and follow the documentation. It's a bit tricky to setup the first time, but well worth the effort. Jim -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] File share access problems
Greetings, Since rebooting our samba server last night, we are no longer able to access the documents on the private or public file shares. A Word document is giving an error like: The document name or path is not valid. Try these suggestions: * check the file permissions for the document or drive * use the file open dialog box to locate the document This is happening for all of the 30+ users In Explorer the folders are all visible. And the files in the folders are all visible. But when trying to click on one to open it, the above error is given. WordPerfect docs give an error too. Though different wording, its effectively the same, file cannot be found. OpenOffice also gives an error. It says The operation on \\aslan\...directory...name of file was started with an invalid parameter. Just to see if there was any corruption in the files, we've copied one word document using ssh from the samba server to the desktop of a PC and it opens fine in Word, so its not that the disk and/or files are corruptedI think... I'm running Samba 3.0.24-11 on FedoraCore 6. I've run yum and it says there are no new updates available. (I think I'd run it fairly recently so I'm not surprised there were no new updates.) How do I go about trouble shooting this problem? thanks -- Dean -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT Won't Start - Alarm Clock
Ryan Novosielski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Heydon wrote: Bit wrote: Hey everyone, If anyone could help me with this problem, I'd greatly appreciate it. Whenever I try to start swat (from the command-line by invoking /usr/sbin/swat), it sits there for a very long time as if it's running, but any attempt to use telnet to the port or point my browser at it results in nothing, as if swat were just not running. Firewalling is no issue, I've disabled it. Swat ultimately dies after a few minutes giving no output to the console other than Alarm clock. What does this error message mean? I've tried running swat with -d 10 and strace /usr/sbin/swat -o myfile hoping that the output will mean more to someone else than it does to me. I've seen other people with this problem googling around, but no solution, and I can't seem to figure it out on my own. Thanks in advance for the help, bit snip It's been a while since I last used swat so this may have changed, but back in the day swat didn't handle its own network stuff. Have you tried adding swat to your *inetd config (assuming you have one). If you don't have any form of inetd running, maybe it would be possible to hack something together using netcat (obviously not a good idea for a production environment)? I've only ever run swat through inetd, myself. Thanks for the help guys. Sounds like this is exactly my problem. I'm starting swat directly by invoking /usr/sbin/swat, there is no valid xinetd configuration file for it so it's not starting via xinetd. I just found this in the Samba documentation... SWAT should be installed to run via the network super-daemon. Depending on which system your UNIX/Linux system has, you will have either an |inetd|- or |xinetd|-based system. http://samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd I'll try starting it via xinetd and post my results for posterity. I didn't think this would really matter though. This raises other questions for me. 1) I don't get it. Why does swat have to be launched via xinetd? 2) I've never used xinetd much, but I always imagined it working as a wrapper around any normal client/server architecture-based service. Is that not the right way to think about it? Do you have to make a conscious choice to code your program appropriately to be launched via xinetd? Thanks again, bit -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT Won't Start - Alarm Clock
Paul Venzke wrote: On Mon March 10 2008 10:07, Bit wrote: Hey everyone, If anyone could help me with this problem, I'd greatly appreciate it. Whenever I try to start swat (from the command-line by invoking /usr/sbin/swat), it sits there for a very long time as if it's running, but any attempt to use telnet to the port or point my browser at it results in nothing, as if swat were just not running. Firewalling is no issue, I've disabled it. Swat ultimately dies after a few minutes giving no output to the console other than Alarm clock. What does this error message mean? I've tried running swat with -d 10 and strace /usr/sbin/swat -o myfile hoping that the output will mean more to someone else than it does to me. I've seen other people with this problem googling around, but no solution, and I can't seem to figure it out on my own. Thanks in advance for the help, bit snip Have you tried using your browser with http://localhost:901/ Yes, and I get nothing. I can't recall the exact error message in Firefox (and I don't have access to the machine at the moment), but it's basically as if nothing is there whatsoever. Sounds like I may *have* to run swat through xinetd. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Kerberos authentication for non-windows KDCs
On 3/11/08 1:46 PM, Wes Modes [EMAIL PROTECTED] wrote: I was told recently that Kerberos authentication won't work against a non-windows KDC. Is that accurate? So for instance, it is not possible for Samba running on say RHEL, to authenticate against a Linux server running MIT Kerberos? In general, it is not possible for *Samba* to authenticate against a MIT Kerberos server. Technically, it's not possible, period, with Samba 3. With Samba 4, I am less sure, but I would assume you are trying to work with Samba 3. Additionally, many people said that setting this up was well-documented. Any suggestions of particularly good docs / how-to's?' If you are looking to integrate OpenLDAP and MIT Kerberos with Samba, one of the best guides I can think of is here: http://aput.net/~jheiss/krbldap/ It's a little old, and I had to change a few things to get everything working properly, but it does work. Note that Samba will still pickup passwords via OpenLDAP - It will NOT use Kerberos as a native authentication mechanism. The best you can do is either sync your Kerberos password with the sambaNTPassword attribute OR use Heimdal Kerberos, which I believe allows for storing the password database in OpenLDAP as a hash that Samba can use as well. It sort of defeats the original purpose of Kerberos, as the passwords still go across the wire, but at least it cuts down on the number of authentication databases that need to be maintained. And lastly, is there anyone here currently who's set up both Kerberos authentication AND an OpenLDAP user/group data repository for their Samba server? I'm not using Kerberos authentication for Samba, but I am using it for everything else, along with the OpenLDAP user/group data repository. It works quite well, as long as you can find a decent way to sync the passwords... W. -- +- | Sean Elble | Virginia Tech, Class of 2009 | President, VTLUUG | E-Mail: [EMAIL PROTECTED] | Web: http://www.sessys.com/~elbles/ | Cell: 860.946.9477 +- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Kerberos authentication for non-windows KDCs
On Tue, Mar 11, 2008 at 02:07:47PM -0400, Sean Elble wrote: On 3/11/08 1:46 PM, Wes Modes [EMAIL PROTECTED] wrote: I was told recently that Kerberos authentication won't work against a non-windows KDC. Is that accurate? So for instance, it is not possible for Samba running on say RHEL, to authenticate against a Linux server running MIT Kerberos? In general, it is not possible for *Samba* to authenticate against a MIT Kerberos server. Technically, it's not possible, period, with Samba 3. With Samba 4, I am less sure, but I would assume you are trying to work with Samba 3. That's just not true. Many people are successfully using Samba3 to authenticate with tokens from MIT or Heimdal kerberos servers. The problem is getting the Windows clients to *get* these tickets, not in Samba interpreting them. Check out the use kerberos keytab option in smb.conf for a common use of this. Please don't spread erroneous info on the list. Thanks, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT Won't Start - Alarm Clock
Bit schreef: Paul Venzke wrote: On Mon March 10 2008 10:07, Bit wrote: Hey everyone, If anyone could help me with this problem, I'd greatly appreciate it. Whenever I try to start swat (from the command-line by invoking /usr/sbin/swat), it sits there for a very long time as if it's running, but any attempt to use telnet to the port or point my browser at it results in nothing, as if swat were just not running. Firewalling is no issue, I've disabled it. Swat ultimately dies after a few minutes giving no output to the console other than Alarm clock. What does this error message mean? I've tried running swat with -d 10 and strace /usr/sbin/swat -o myfile hoping that the output will mean more to someone else than it does to me. I've seen other people with this problem googling around, but no solution, and I can't seem to figure it out on my own. Thanks in advance for the help, bit snip Have you tried using your browser with http://localhost:901/ Yes, and I get nothing. I can't recall the exact error message in Firefox (and I don't have access to the machine at the moment), but it's basically as if nothing is there whatsoever. Sounds like I may *have* to run swat through xinetd. Yes you have. Networkservices, xinetd have to have swat enabled, *and* it has to have a port assigned, which is 901. swats default port. /etc/xinetd.d -- # SWAT is the Samba Web Administration Tool. service smpnameres { enable = yes socket_type = stream protocol= tcp wait= no user= root server = /usr/sbin/swat only_from = 127.0.0.1 log_on_failure = USERID } if smpnameres does not activate the port, replace it with swat... -- Enjoy your time around, Oddball (Now or never...) Besturingssysteem: Linux 2.6.24.1-6-default x86_64 Current user: [EMAIL PROTECTED] System: openSUSE 11.0 (x86_64) Alpha2 KDE: 4.0.2 (KDE 4.0.2) release 8.1 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba exporting an NFS mount
Hello, I have an NFS server with all our user's home directories on a server that does not support SMB. I wish to mount this directory on a second system and re-export it via samba so that users can access their unix home directories from their windows boxes. My samba server is running CentOS 5.0, and I have the the home directories mounted at /home/na, and there is no rootsquash, so the root user on my server has full access to the home directoris. My smb.conf is below: [global] workgroup = UNIXPEOPLE server string = smbserver # logs split per machine # max 50KB per log file, then rotate security = user passdb backend = tdbsam # the login script name depends on the machine name # the login script name depends on the unix user used # disables profiles support by specifing an empty path load printers = yes cups options = raw #obtain list of printers automatically on SystemV [unixhome] comment = unix home directories path = /home/na valid users = myusername public = no writable = yes printable = no create mask = 0700 I know my samba is configured correctly, in general, because if I export /tmp, then I can mount it just fine from my WinXP client. But, when I make the simple change to export /home/na, then it fails. My windows client gives me the error System error 53 has occurred. The network path was not found. In /var/log/messages on my samba server, I get: Mar 11 15:35:21 smbserver smbd[26668]: '/home/na' does not exist or permission denied when connecting to [unixhome] Error was Permission denied Is there some configuration I have to do to samba to get it to re-export a remote mount? Thanks, Michael = $1,000,000,000 In a Day? How You Too Can Invest in the Same Market the Mega-Rich Make Billions. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=aae7ba4b061409f16e07e5829f0aa239 -- Powered by Outblaze -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Kerberos authentication for non-windows KDCs
This is what I'd heard. Jeremy or others, you don't have any docs or howtos that point to setting this up do you? W. Jeremy Allison wrote: On Tue, Mar 11, 2008 at 02:07:47PM -0400, Sean Elble wrote: On 3/11/08 1:46 PM, Wes Modes [EMAIL PROTECTED] wrote: I was told recently that Kerberos authentication won't work against a non-windows KDC. Is that accurate? So for instance, it is not possible for Samba running on say RHEL, to authenticate against a Linux server running MIT Kerberos? In general, it is not possible for *Samba* to authenticate against a MIT Kerberos server. Technically, it's not possible, period, with Samba 3. With Samba 4, I am less sure, but I would assume you are trying to work with Samba 3. That's just not true. Many people are successfully using Samba3 to authenticate with tokens from MIT or Heimdal kerberos servers. The problem is getting the Windows clients to *get* these tickets, not in Samba interpreting them. Check out the use kerberos keytab option in smb.conf for a common use of this. Please don't spread erroneous info on the list. Thanks, Jeremy. -- Wes Modes Server Administrator Programmer Analyst McHenry Library Computing Network Services Information and Technology Services 459-5208 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.0.28a
I have a test environment running Fedora 8 and Samba 3.0.28a on two PDC's and one Domain Member. I have a DOM-A PDC with a ldap backend, running winbind. I have a DOM-B PDC with a ldap backend, running winbind. The two domains have trusts both ways. I also have a domain member called TESTSERVER joined to the DOM-A domain, running winbind. I was running 3.0.28 on TESTSERVER and I could do getent passwd and see accounts from both domains. Since installing 3.0.28a on all servers I only see accounts from DOM-A domain when issuing the getent passwd , and the message in the log.winbindd is [2008/03/11 15:13:01, 5] passdb/secrets.c:get_trust_pw_clear(720) get_trust_pw_clear: could not fetch clear text trust account password for domain DOM-B I have an idmap entry in my ldap backend on DOM-A for users in DOM-B. My smb.conf on TESTSERVER is: [global] workgroup = DOM-A security = DOMAIN update encrypted = Yes map to guest = Bad User username map = /etc/samba/smbusers log level = passdb:5 auth:10 winbind:2 load printers = No preferred master = No local master = No dns proxy = No wins server = 100.10.10.31 ldap admin dn = cn=admin,dc=lufkin,dc=com ldap group suffix = ou=CP_groups ldap idmap suffix = ou=Idmap ldap machine suffix = ou=CP_comps ldap suffix = dc=lufkin,dc=com ldap ssl = no ldap user suffix = ou=People idmap domains = DOM-A idmap alloc backend = ldap template shell = /bin/bash winbind separator = + winbind enum users = Yes winbind enum groups = Yes idmap alloc config:ldap_url = ldap://192.168.70.151/ idmap alloc config:ldap_base_dn = ou=idmap,dc=lufkin,dc=com idmap alloc config:ldap_user_dn = cn=admin,dc=lufkin,dc=com idmap alloc config:range = 5-50 idmap config DOM-A:ldap_url = ldap://192.168.70.151 idmap config DOM-A:range = 5-50 idmap config DOM-A:ldap_user_dn = cn=admin,dc=lufkin,dc=com idmap config DOM-A:ldap_base_dn = ou=idmap,dc=lufkin,dc=com idmap config DOM-A:backend = ldap idmap config DOM-A:default = yes ldapsam:trusted = yes ldapsam:editposix = yes [homes] comment = Home Directories read only = No create mask = 0775 force create mode = 0775 directory mask = 0775 force directory mode = 0775 browseable = No [testshare] path = /home/test-share valid users = DOM-B+travis, DOM-A+mikec write list = DOM-B+travis, DOM-A+mikec Any help would be appreciated. template shell = /bin/bash winbind separator = + -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SC.exe equivalent in Samba?
Hello everyone, I'm trying to determine if there is an equivalent to the WinXP/Vista/ Server command SC.exe (service control). From what I have gleaned, the svcctl API in Samba tries to replicate the other direction (controlling a Samba server's services/inits from Windows/MMC) but I'm looking to control a Windows server's services from (in my case) Linux. Essentially, I'm looking for an SC.exe equivalent in Samba. Could anyone point me in the right direction? Thanks, Graham. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Copying (Samba - WinXP SP2) MATLAB generated .jpg files very slow.
On Tue, Mar 11, 2008 at 12:08:36PM -0400, Paul Griffith wrote: Greetings, This is a interesting problem. One of our researchers uses MATLAB to generate jpg files as part of his vision research. When he copies these files from the file server, it is very slow. I tried 3.0.28a and I see the same problem as we have with 3.0.28. Here are some interesting stats. 1) MATLAB generated files: command: robocopy Y:\23_1 C:\23_1 /e dirs: 2 files: 262 bytes: 12.75MB time: 3min 15 seconds 2) Same files resaved with IfranView command: robocopy Y:\23_1b C:\23_1b /e dirs: 2 files: 260 bytes: 22.05MB time: 19 seconds This is only a subset of the files that the user copies. The full directory consists of 8939 files over 101 directories for a total of 402MB and this takes 1 Hr,12 minutes and 5 seconds (Samba 3.0.28 - WinXP SP2) verses 3 minutes 30 seconds for a WinXP SP2 - WinXP SP2 copy. When I write the files back to the same Samba server the results are about the same for the MATLAB and IfranView jpg files. Any suggestions, since this only happens with MATLAB generated files? Does MATLAB add any stream metadata to the files ? robocopy may be doing something dumb with files with associated streams. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] NT_STATUS_BAD_NETWORK_NAME
Finally found the answer after reinstalling and even the fresh reinstall didn't work. A review of dmesg showed that selinux was running. Thanks to this link http://howtoforge.com/installing_a_lamp_system_with_fedora_core_6_p3 I found out how to turn off selinux and problem solved. Hope nobody else has this difficulty. Carl Carpenter IT Manager Hill Country Community MHMR Center (830)258-5414 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] rg] On Behalf Of Carl Carpenter Sent: Monday, March 10, 2008 3:56 PM To: samba@lists.samba.org Subject: [Samba] NT_STATUS_BAD_NETWORK_NAME I am trying to run Samba 3.0.24-11.fc6 on Fedora Core 6. I've run across two problems that are keeping me from being successful. 1. IPTables. Even when I configure it through Webmin to not run at startup, it does anyway. I consider this a minor problem, at least for now, although I wouldn't mind some input on how to configure it to allow Samba. 2. Access to shares. We are running an NT4 network. I have joined the Samba server to the domain and can see it in the browse list on my XP machine. I can also see the shares. However, when I double-click on the shares, I am prompted for a password which fails. I have been through Samba Security and Troubleshooting guide from Linux Home Networking and numerous other documents with no positive results. This is the test that fails: [EMAIL PROTECTED] www]# smbclient //Custer/Intranet -U ccarpenter Password: Domain=[HCCMHMRC] OS=[Unix] Server=[Samba 3.0.24-11.fc6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME This test works (Colnago being the PDC): [EMAIL PROTECTED] www]# smbclient -L Custer Password: Anonymous login successful Domain=[HCCMHMRC] OS=[Unix] Server=[Samba 3.0.24-11.fc6] Sharename Type Comment - --- IntranetDisk IPC$IPC IPC Service (Intranet) Anonymous login successful Domain=[HCCMHMRC] OS=[Unix] Server=[Samba 3.0.24-11.fc6] Server Comment ---- COLNAGO CUSTER Intranet WorkgroupMaster ---- HCCMHMRC COLNAGO My username on the NT4 network is exactly the same as on the Samba server; however, I have no password on the Samba server. I use this setup on several other servers with no problem, which is part of the irony of the situation. I have another server running FC6 and the same version of Samba and it works perfectly. The only difference that I can tell is that I got Samba working straight off the FC6 installation disks before doing any updates whereas this time I did all the updates first. I have checked for the existence of a 'msdfs'; none could be found. I do not have SELinux installed: [EMAIL PROTECTED] www]# rpm -q selinux package selinux is not installed Testparm shows the following: [EMAIL PROTECTED] www]# testparm -s Load smb config files from /etc/samba/smb.conf Processing section [Intranet] Loaded services file OK. Server role: ROLE_DOMAIN_MEMBER [global] workgroup = HCCMHMRC server string = Intranet security = DOMAIN password server = Colnago log level = 3 log file = /var/log/samba/%m.log max log size = 50 preferred master = No dns proxy = No wins server = 192.168.0.7 default service = Intranet [Intranet] path = /var/www/html read only = No create mask = 0774 directory mask = 0775 guest ok = Yes The actual smb.conf looks like this: #=== Global Settings == [global] protocol = NT1 log file = /var/log/samba/%m.log dns proxy = no ; load printers = yes netbios name = Custer ; cups options = raw server string = Intranet password server = Colnago default = Intranet wins server = 192.168.0.7 workgroup = hccmhmrc os level = 20 debug level = 3 encrypt passwords = yes security = domain preferred master = no max log size = 50 ; winbind enable local accounts = no [Intranet] writeable = yes create mode = 774 path = /var/www/html directory mode = 775 guest ok = Yes I am not using winbindd or ldap. Any help with this would be appreciated. It's really annoying when my boss sticks his head in the door every 20 minutes and says Well? Carl Carpenter IT Manager Hill Country Community MHMR Center (830)258-5414 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To
Re: [Samba] Kerberos authentication for non-windows KDCs
Hi, I would like to do this also. Having a doc or how-to would be very helpful indeed ;) Thanks, -G Wes Modes [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/11/2008 03:25 PM To samba@lists.samba.org cc Subject Re: [Samba] Kerberos authentication for non-windows KDCs This is what I'd heard. Jeremy or others, you don't have any docs or howtos that point to setting this up do you? W. Jeremy Allison wrote: On Tue, Mar 11, 2008 at 02:07:47PM -0400, Sean Elble wrote: On 3/11/08 1:46 PM, Wes Modes [EMAIL PROTECTED] wrote: I was told recently that Kerberos authentication won't work against a non-windows KDC. Is that accurate? So for instance, it is not possible for Samba running on say RHEL, to authenticate against a Linux server running MIT Kerberos? In general, it is not possible for *Samba* to authenticate against a MIT Kerberos server. Technically, it's not possible, period, with Samba 3. With Samba 4, I am less sure, but I would assume you are trying to work with Samba 3. That's just not true. Many people are successfully using Samba3 to authenticate with tokens from MIT or Heimdal kerberos servers. The problem is getting the Windows clients to *get* these tickets, not in Samba interpreting them. Check out the use kerberos keytab option in smb.conf for a common use of this. Please don't spread erroneous info on the list. Thanks, Jeremy. -- Wes Modes Server Administrator Programmer Analyst McHenry Library Computing Network Services Information and Technology Services 459-5208 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Get logged on username (several sessions on the same machine)
Kurthermal wrote: Am I the only one to have noticed this behaviour ? Do I have to report a bug or so ? Where can I get some answers ? If a service was running as a prior user and needed network resources from the samba server in addition to the currently logged on user, wouldn't it be wrong to make the assumption those resources should no longer be available? It only takes one exception to break a general case. Regards, Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] msdfs root -- client error refers to a location that is unavailable
I'm trying to get Samba 3.0.28 to work as an MS Dfs root providing a share that links home directories to the actual servers they reside on. Unfortunately, when I access the share from a Windows XP client, and try to open one of the directories, the client gives an error that it refers to a location that is unavailable. I've done a lot of searching, and found a number of similar issues raised, but sadly no real resolutions. Samba was attached to our active directory domain with net ads join, which worked perfectly and authentication seems fine. My configuration is as follows: - [global] allow trusted domains = no deadtime = 10 debug pid = yes disable netbios = yes lanman auth = no load printers = no log level = 1 map archive = no name resolve order = host passdb backend = tdbsam realm = WIN.CSUPOMONA.EDU restrict anonymous = 2 security = ads server signing = auto show add printer wizard = no smb ports = 445 workgroup = WIN max log size = 512000 [user] msdfs root = yes path = /var/lib/samba/shares/user - I'm only running smbd, not nmbd, as I don't want to use NetBIOS naming. The server is being accessed with a fully qualified name '\\files.unx.csupomona.edu\user'. In the configured share directory, I made a symbolic link as documented: lrwxrwxrwx 1 root root 35 Mar 10 16:26 henson - msdfs:zfs1.unx.csupomona.edu\henson I'm pretty sure the Samba configuration itself is okay, accessing the share with smbclient works correctly and appropriately follows the link. With debugging enabled, I also see the following message logged: [2008/03/11 15:10:29, 5, pid=28793] smbd/msdfs.c:is_msdfs_link(337) is_msdfs_link: ./henson - msdfs:zfs1.unx.csupomona.edu\henson When I try to access it from a Windows client though, I do see this in the debug log: [2008/03/11 15:16:19, 5, pid=28904] smbd/trans2.c:get_lanman2_dir_entry(1215) get_lanman2_dir_entry: Masquerading msdfs link ./henson as a directory I'm not sure that's normal, but seems odd. I'm not sure what all to attach from the debug log, it is rather large. The following seems associated with that request though: size=86 smb_com=0x32 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51207 smb_tid=1 smb_pid=3264 smb_uid=103 smb_mid=2432 smt_wct=15 smb_vwv[ 0]= 18 (0x12) smb_vwv[ 1]=0 (0x0) smb_vwv[ 2]= 10 (0xA) smb_vwv[ 3]=16384 (0x4000) smb_vwv[ 4]=0 (0x0) smb_vwv[ 5]=0 (0x0) smb_vwv[ 6]=0 (0x0) smb_vwv[ 7]=0 (0x0) smb_vwv[ 8]=0 (0x0) smb_vwv[ 9]= 18 (0x12) smb_vwv[10]= 68 (0x44) smb_vwv[11]=0 (0x0) smb_vwv[12]=0 (0x0) smb_vwv[13]=1 (0x1) smb_vwv[14]=1 (0x1) smb_bcc=21 I think the following messages correspond to the error I am receiving from the client: [2008/03/11 15:16:26, 3, pid=28904] smbd/trans2.c:call_trans2qfilepathinfo(3292) call_trans2qfilepathinfo: SMB_VFS_STAT of henson failed (No such file or directory) [2008/03/11 15:16:26, 3, pid=28904] smbd/error.c:unix_error_packet(56) unix_error_packet: error string = No such file or directory [2008/03/11 15:16:26, 3, pid=28904] smbd/error.c:error_packet_set(106) error packet at smbd/trans2.c(3293) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND I think these are the flags relevant to that transaction: size=90 smb_com=0x32 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51207 smb_tid=1 smb_pid=3264 smb_uid=103 smb_mid=3841 smt_wct=15 smb_vwv[ 0]= 22 (0x16) smb_vwv[ 1]=0 (0x0) smb_vwv[ 2]=2 (0x2) smb_vwv[ 3]= 40 (0x28) smb_vwv[ 4]=0 (0x0) smb_vwv[ 5]=0 (0x0) smb_vwv[ 6]=0 (0x0) smb_vwv[ 7]=0 (0x0) smb_vwv[ 8]=0 (0x0) smb_vwv[ 9]= 22 (0x16) smb_vwv[10]= 68 (0x44) smb_vwv[11]=0 (0x0) smb_vwv[12]=0 (0x0) smb_vwv[13]=1 (0x1) smb_vwv[14]=5 (0x5) smb_bcc=25 Any ideas what's going on? In previous postings regarding this type of problem, it sounds like the Windows client is somewhat nondeterministic in whether or not it is willing to treat a given share as a DFS root? Any suggestions for additional debugging data that might be provided to further isolate the issue? Thanks much for any assistance... -- Paul B. Henson | (909) 979-6361 | http://www.csupomona.edu/~henson/ Operating Systems and Network Analyst | [EMAIL PROTECTED] California State Polytechnic University | Pomona CA 91768 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT Won't Start - Alarm Clock
Bit wrote: Ryan Novosielski wrote: snip I didn't think this would really matter though. This raises other questions for me. 1) I don't get it. Why does swat have to be launched via xinetd? Probably to keep it simple, no need to worry about creating listening ports, spawning worker threads, thinking about timeouts, etc. 2) I've never used xinetd much, but I always imagined it working as a wrapper around any normal client/server architecture-based service. Is that not the right way to think about it? Do you have to make a conscious choice to code your program appropriately to be launched via xinetd? Alot of programs that can be run from inetd can also be run stand alone (ftp, samba, telnet, etc) however it is not a requirement. The process for running via inetd and stand alone is different, your program needs to be coded with one or the other, or both (along with a way for it to tell which it should use). Personally, I don't see the value in inetd anymore. It used to be useful, if you had a small server that wasn't doing much and had limited resources then you didn't have to have your telnet and ftp and everything else services running when they weren't in use. These days when the average small server has over 1GB of RAM there really isn't much to be gained by not running stand alone. I haven't had inetd running for quite a few years. Thanks again, bit *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Large file freezes, OpenBSD + WinXP x64
I've been struggling with this for a while, and though it worked for about five minutes Sunday night, it's been a no-go ever since I built my server last summer. What I've got: Samba (samba): OpenBSD 4.2-STABLE, samba-3.0.25b (from packages) Laptop (osiris): WinXP SP2 Desktop (isis): WinXP x64 SP2 I can copy/move anything and everything between samba and laptop. I can copy/move anything between laptop and desktop. I can *usually* copy small (less than 100M or so) between samba and desktop, and large files FROM samba TO desktop as well. However, when I try to copy large files FROM desktop TO samba, desktop freezes. There are no log messages being generated on the oBSD side (simultaneous tails on /var/log/daemon, messages, smbd.isis, smbd.smbd, and smbd.nmbd all remain silent). The Windows event viewer likewise does not contain any obvious errors upon reboot. Also of note, if I use laptop to move directly between desktop and samba, it always works (though more slowly, since it's only 100Mbit instead of 1Gbit ethernet, and is essentially performing every operation twice). /etc/samba/smb.conf [global] workgroup = ASGARD server string = Samba security = share hosts allow = 192.168.1. 127. load printers = no log file = /var/log/smbd.%m max log size = 50 dns proxy = no # Share Definitions == [homes] comment = Home Directories browseable = no writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [storage] path = /samba public = yes only guest = yes writable = yes printable = no case sensitive = no oplocks = no create mode = 0777 use client driver = yes Any ideas and/or suggestions on where to look for my problem, or what knob I may have improperly turned (or need to turn) to get things running well? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Kerberos authentication for non-windows KDCs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Wes! Look this howto about Kerberized OpenLDAP, Samba PDC and Squid: http://eduardosachs.org/mediawiki/index.php?title=Heimdal_Kerberos_%2B_Samba_PDC_%2B_OpenLDAP_%2B_Squid_no_Debian_Etch But, it's only portuguese :( []'s Wes Modes escreveu: I was told recently that Kerberos authentication won't work against a non-windows KDC. Is that accurate? So for instance, it is not possible for Samba running on say RHEL, to authenticate against a Linux server running MIT Kerberos? Additionally, many people said that setting this up was well-documented. Any suggestions of particularly good docs / how-to's?' And lastly, is there anyone here currently who's set up both Kerberos authentication AND an OpenLDAP user/group data repository for their Samba server? W. - -- Eduardo Sachs (51) 9262-3803 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH1xo+KB6+7l7CbHURAvvbAJ9ERaagWpkpw1whwQyuTK/52yNjQACfZk8o OTl+FXyvtHSzdM3I7p5tdiY= =+WMZ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with ADS idmap backend
I'm glad you posted this. I know a lot of other people have been having issues getting this to work. Some success and configs are now in the archives :) I know I tried this a long time ago and never got it working. I might give it another shot thanks to you! On 3/11/08, David Eisner [EMAIL PROTECTED] wrote: Solved! Summary: Change schema mode from sfu to rfc2307 in smb.conf: idmap config THEDOMAIN:schema_mode = rfc2307 Also, I'm an idiot: I didn't have Services For Unix installed; I was confusing that with Identity Management for Unix and Server for NIS, which I do have installed. I should note that I was initially having problems without any schema_mode line (before setting it to either sfu or rfc2307), but there may have been other problems that I fixed along the way that were responsible for this. Details: I had been watching winbindd activity in smbd.log, and realized I needed to look at log.winbindd-idmap, too. That's where I noticed this error: [2008/03/11 11:11:16, 2] nsswitch/idmap_ad.c:ad_idmap_cached_connection(152) ad_idmap_cached_connection: Failed to obtain schema details! It turns out that ads_get_attrnames_by_oids was searching the schema with this filter: [2008/03/11 11:58:30, 2] libads/ldap_schema.c:ads_get_attrnames_by_oids(65) ## : search expr: (|(attributeId=1.2.840.113556.1.6.18.1.310)(attributeId= 1.2.840.113556.1.6.18.1.311)(attributeId=1.2.840.113556.1.6.18.1.344 )(attributeId=1.2.840.113556.1.6.18.1.312)(attributeId= 1.2.840.113556.1.6.18.1.337)) and getting 0 results. These are the attribute IDs for attributes in the SFU schema extension. Using dsquery on the server, I could see that these attributes weren't in the schema at all. Thanks again for your help, and sorry for the bother. -David -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] When are folks arriving for SambaXP?
My current plans are to fly in on Saturday, spend a few days with Kai Blin, then attend the conference (ie, hack in whatever space SerNet gives us :-) from Monday to Friday, leaving on Saturday (at some point, to join Jelmer in the Netherlands). What are other folks plans? Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] When are folks arriving for SambaXP?
On Tuesday 11 March 2008 11:55:19 pm Andrew Bartlett wrote: My current plans are to fly in on Saturday, spend a few days with Kai Blin, then attend the conference (ie, hack in whatever space SerNet gives us :-) from Monday to Friday, leaving on Saturday (at some point, to join Jelmer in the Netherlands). What are other folks plans? Andrew Bartlett I will arrive in Goettingen Sunday April 13, 2008, approx. 2:30pm and will leave Friday April 18 at around 6pm. Much looking forward to being at SambaXP. Cheers, John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File share access problems
Dean Guenther wrote: Greetings, Since rebooting our samba server last night, we are no longer able to access the documents on the private or public file shares. A Word document is giving an error like: The document name or path is not valid. Try these suggestions: * check the file permissions for the document or drive * use the file open dialog box to locate the document This is happening for all of the 30+ users In Explorer the folders are all visible. And the files in the folders are all visible. But when trying to click on one to open it, the above error is given. WordPerfect docs give an error too. Though different wording, its effectively the same, file cannot be found. OpenOffice also gives an error. It says The operation on \\aslan\...directory...name of file was started with an invalid parameter. Just to see if there was any corruption in the files, we've copied one word document using ssh from the samba server to the desktop of a PC and it opens fine in Word, so its not that the disk and/or files are corruptedI think... I'm running Samba 3.0.24-11 on FedoraCore 6. I've run yum and it says there are no new updates available. (I think I'd run it fairly recently so I'm not surprised there were no new updates.) How do I go about trouble shooting this problem? thanks -- Dean Have you changed any /etc/ files since your last reboot? If I had a dollar for every time I changed something 'trivial' just before leaving work for the day, and forgotten about it for three months and had it bite me on next reboot... and if I had a dollar for every time I overlooked it before troubleshooting an issue it caused... well, I could be a professional student :) Are your users authenticating as themselves in their respective groups with whatever authentication scheme you have? Perhaps they're able to read the directory listing, but not the files within because they are seen as guests. If that seems to be all well and good, and nothing seems 'strange' in your logs, I'd go straight to a wireshark session and check the SMB conversation on the wire. That should at least leave you with the right questions to focus on. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-211-g874a0ff
The branch, v3-2-test has been updated via 874a0ffd7dbd993230c00c503ec6b27fbffb7745 (commit) via 7e178a3dc970f55ddb30b4fc46706ef35b0f (commit) from 71bd0bd0ea018e8c5033bbf904333c596330855a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 874a0ffd7dbd993230c00c503ec6b27fbffb7745 Author: Günther Deschner [EMAIL PROTECTED] Date: Tue Mar 11 11:30:55 2008 +0100 Trying to fix resume_handling for srvsvc_NetShareEnumAll. Guenther commit 7e178a3dc970f55ddb30b4fc46706ef35b0f Author: Günther Deschner [EMAIL PROTECTED] Date: Tue Mar 11 11:29:49 2008 +0100 Allow to send no resume_handle in rpcclient's NetShareEnum* calls. Guenther --- Summary of changes: source/rpc_server/srv_srvsvc_nt.c |6 +- source/rpcclient/cmd_srvsvc.c |6 -- 2 files changed, 9 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c index eb304aa..6421efd 100644 --- a/source/rpc_server/srv_srvsvc_nt.c +++ b/source/rpc_server/srv_srvsvc_nt.c @@ -694,7 +694,11 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p, *total_entries = alloc_entries; if (resume_handle_p) { - *resume_handle_p = num_entries; + if (all_shares) { + *resume_handle_p = (num_entries == 0) ? *resume_handle_p : 0; + } else { + *resume_handle_p = num_entries; + } } info_ctr-ctr = ctr; diff --git a/source/rpcclient/cmd_srvsvc.c b/source/rpcclient/cmd_srvsvc.c index f6985cb..0c447e0 100644 --- a/source/rpcclient/cmd_srvsvc.c +++ b/source/rpcclient/cmd_srvsvc.c @@ -269,6 +269,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli, NTSTATUS status; uint32_t totalentries = 0; uint32_t resume_handle = 0; + uint32_t *resume_handle_p = NULL; uint32 preferred_len = 0x, i; if (argc 3) { @@ -282,6 +283,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli, if (argc == 3) { resume_handle = atoi(argv[2]); + resume_handle_p = resume_handle; } ZERO_STRUCT(info_ctr); @@ -338,7 +340,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli, info_ctr, preferred_len, totalentries, - resume_handle, + resume_handle_p, result); break; case NDR_SRVSVC_NETSHAREENUMALL: @@ -347,7 +349,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli, info_ctr, preferred_len, totalentries, - resume_handle, + resume_handle_p, result); break; default: -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-206-gdcbfdd1
The branch, v3-2-test has been updated via dcbfdd1330cf1c7e8d1b4ebc051db139ed6a0053 (commit) from f94a63cd8f94490780ad9331da229c0bcb2ca5d6 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit dcbfdd1330cf1c7e8d1b4ebc051db139ed6a0053 Author: Günther Deschner [EMAIL PROTECTED] Date: Tue Mar 11 04:52:46 2008 +0100 Fix netdiskenum call in rpcclient. Guenther --- Summary of changes: source/rpcclient/cmd_srvsvc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpcclient/cmd_srvsvc.c b/source/rpcclient/cmd_srvsvc.c index a5eb69c..f6985cb 100644 --- a/source/rpcclient/cmd_srvsvc.c +++ b/source/rpcclient/cmd_srvsvc.c @@ -766,7 +766,7 @@ static WERROR cmd_srvsvc_net_disk_enum(struct rpc_pipe_client *cli, uint32_t resume_handle = 0; uint32_t level = 0; - if (argc 2) { + if (argc 4) { printf(Usage: %s [level] [resume_handle]\n, argv[0]); return WERR_OK; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-207-g933d546
The branch, v3-2-test has been updated via 933d546f86b48bfd9f84045ec21efc1c362b4d93 (commit) from dcbfdd1330cf1c7e8d1b4ebc051db139ed6a0053 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 933d546f86b48bfd9f84045ec21efc1c362b4d93 Author: Günther Deschner [EMAIL PROTECTED] Date: Tue Mar 11 10:48:52 2008 +0100 Use pidl for _srvsvc_NetDiskEnum. Guenther --- Summary of changes: source/rpc_server/srv_srvsvc.c| 25 +- source/rpc_server/srv_srvsvc_nt.c | 48 ++-- 2 files changed, 26 insertions(+), 47 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpc_server/srv_srvsvc.c b/source/rpc_server/srv_srvsvc.c index 7579e10..96bc373 100644 --- a/source/rpc_server/srv_srvsvc.c +++ b/source/rpc_server/srv_srvsvc.c @@ -231,30 +231,9 @@ static bool api_srv_net_remote_tod(pipes_struct *p) RPC to enumerate disks available on a server e.g. C:, D: ... ***/ -static bool api_srv_net_disk_enum(pipes_struct *p) +static bool api_srv_net_disk_enum(pipes_struct *p) { - SRV_Q_NET_DISK_ENUM q_u; - SRV_R_NET_DISK_ENUM r_u; - prs_struct *data = p-in_data.data; - prs_struct *rdata = p-out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - /* Unmarshall the net server disk enum. */ - if(!srv_io_q_net_disk_enum(, q_u, data, 0)) { - DEBUG(0,(api_srv_net_disk_enum: Failed to unmarshall SRV_Q_NET_DISK_ENUM.\n)); - return False; - } - - r_u.status = _srv_net_disk_enum(p, q_u, r_u); - - if(!srv_io_r_net_disk_enum(, r_u, rdata, 0)) { - DEBUG(0,(api_srv_net_disk_enum: Failed to marshall SRV_R_NET_DISK_ENUM.\n)); - return False; - } - - return True; + return proxy_srvsvc_call(p, NDR_SRVSVC_NETDISKENUM); } /*** diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c index 7c2efc9..eb304aa 100644 --- a/source/rpc_server/srv_srvsvc_nt.c +++ b/source/rpc_server/srv_srvsvc_nt.c @@ -2359,45 +2359,51 @@ static const char *next_server_disk_enum(uint32 *resume) return disk; } -WERROR _srv_net_disk_enum(pipes_struct *p, SRV_Q_NET_DISK_ENUM *q_u, SRV_R_NET_DISK_ENUM *r_u) +/ + _srvsvc_NetDiskEnum +/ + +WERROR _srvsvc_NetDiskEnum(pipes_struct *p, + struct srvsvc_NetDiskEnum *r) { uint32 i; const char *disk_name; TALLOC_CTX *ctx = p-mem_ctx; - uint32 resume=get_enum_hnd(q_u-enum_hnd); - - r_u-status=WERR_OK; - - r_u-total_entries = init_server_disk_enum(resume); + WERROR werr; + uint32_t resume = r-in.resume_handle ? *r-in.resume_handle : 0; - r_u-disk_enum_ctr.unknown = 0; + werr = WERR_OK; - if(!(r_u-disk_enum_ctr.disk_info = TALLOC_ARRAY(ctx, DISK_INFO, MAX_SERVER_DISK_ENTRIES))) { - return WERR_NOMEM; - } + *r-out.totalentries = init_server_disk_enum(resume); - r_u-disk_enum_ctr.disk_info_ptr = r_u-disk_enum_ctr.disk_info ? 1 : 0; + r-out.info-disks = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetDiskInfo0, + MAX_SERVER_DISK_ENTRIES); + W_ERROR_HAVE_NO_MEMORY(r-out.info-disks); - /*allow one DISK_INFO for null terminator*/ + /*allow one struct srvsvc_NetDiskInfo0 for null terminator*/ for(i = 0; i MAX_SERVER_DISK_ENTRIES -1 (disk_name = next_server_disk_enum(resume)); i++) { - r_u-disk_enum_ctr.entries_read++; + r-out.info-count++; /*copy disk name into a unicode string*/ - init_unistr3(r_u-disk_enum_ctr.disk_info[i].disk_name, disk_name); + r-out.info-disks[i].disk = talloc_strdup(ctx, disk_name); + W_ERROR_HAVE_NO_MEMORY(r-out.info-disks[i].disk); } /* add a terminating null string. Is this there if there is more data to come? */ - r_u-disk_enum_ctr.entries_read++; + r-out.info-count++; - init_unistr3(r_u-disk_enum_ctr.disk_info[i].disk_name, ); + r-out.info-disks[i].disk = talloc_strdup(ctx, ); + W_ERROR_HAVE_NO_MEMORY(r-out.info-disks[i].disk); - init_enum_hnd(r_u-enum_hnd, resume); + if (r-out.resume_handle) { + *r-out.resume_handle = resume; + } - return r_u-status; + return werr; } / @@ -2515,12 +2521,6 @@ WERROR
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-209-g71bd0bd
The branch, v3-2-test has been updated via 71bd0bd0ea018e8c5033bbf904333c596330855a (commit) from 29ccc0e233bae160f7a6e1b0ff6b6cdda4d0f4ee (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 71bd0bd0ea018e8c5033bbf904333c596330855a Author: Michael Adam [EMAIL PROTECTED] Date: Tue Mar 11 02:02:27 2008 +0100 registry shares: prevent creating regular share called global. This is a first quick fix. Registry shares should be rewritten to use libnet_conf. Michael --- Summary of changes: source/smbd/service.c |4 1 files changed, 4 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/service.c b/source/smbd/service.c index a8aa254..8b73f68 100644 --- a/source/smbd/service.c +++ b/source/smbd/service.c @@ -235,6 +235,10 @@ static int load_registry_service(const char *servicename) return -1; } + if (strequal(servicename, GLOBAL_NAME)) { + return -2; + } + if (asprintf(path, %s\\%s, KEY_SMBCONF, servicename) == -1) { return -1; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-215-g8e0fa45
The branch, v3-2-test has been updated via 8e0fa453a3d0a2c997a935b6940796612c972708 (commit) via 38bb69cb316ba605a6d3a4454b986cb63ace3c21 (commit) via 66d2a9c87411be88269bbb3a4d3c0a218a55be06 (commit) via 9d30e5991c6fe77ef5fd505efb756554bbe77256 (commit) from 874a0ffd7dbd993230c00c503ec6b27fbffb7745 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 8e0fa453a3d0a2c997a935b6940796612c972708 Author: Volker Lendecke [EMAIL PROTECTED] Date: Tue Mar 11 14:15:52 2008 +0100 Convert mapping_tdb.c to dbwrap I know, this is not used anymore, but until ldb knows about ctdb which is blocked by the lack of transactions in ctdb, a tiny patch reactivating mapping_tdb.c might be needed for cluster setups. commit 38bb69cb316ba605a6d3a4454b986cb63ace3c21 Author: Volker Lendecke [EMAIL PROTECTED] Date: Tue Mar 11 12:53:50 2008 +0100 Clean up add_mapping_entry slightly commit 66d2a9c87411be88269bbb3a4d3c0a218a55be06 Author: Volker Lendecke [EMAIL PROTECTED] Date: Tue Mar 11 12:46:36 2008 +0100 Cleanup after pstring removal commit 9d30e5991c6fe77ef5fd505efb756554bbe77256 Author: Volker Lendecke [EMAIL PROTECTED] Date: Tue Mar 11 12:30:46 2008 +0100 Convert secrets.c to use dbwrap --- Summary of changes: source/groupdb/mapping.h |2 + source/groupdb/mapping_tdb.c | 573 +- source/passdb/secrets.c | 221 +++-- 3 files changed, 376 insertions(+), 420 deletions(-) Changeset truncated at 500 lines: diff --git a/source/groupdb/mapping.h b/source/groupdb/mapping.h index 4af3831..c37ae84 100644 --- a/source/groupdb/mapping.h +++ b/source/groupdb/mapping.h @@ -2,6 +2,7 @@ #define DATABASE_VERSION_V2 2 /* le format. */ #define GROUP_PREFIX UNIXGROUP/ +#define GROUP_PREFIX_LEN 10 /* Alias memberships are stored reverse, as memberships. The performance * critical operation is to determine the aliases a SID is member of, not @@ -9,6 +10,7 @@ * hanging of the member as key. */ #define MEMBEROF_PREFIX MEMBEROF/ +#define MEMBEROF_PREFIX_LEN 9 /* groupdb mapping backend abstraction diff --git a/source/groupdb/mapping_tdb.c b/source/groupdb/mapping_tdb.c index 67e377c..c9c8cdc 100644 --- a/source/groupdb/mapping_tdb.c +++ b/source/groupdb/mapping_tdb.c @@ -23,7 +23,7 @@ #include includes.h #include groupdb/mapping.h -static TDB_CONTEXT *tdb; /* used for driver files */ +static struct db_context *db; /* used for driver files */ static bool enum_group_mapping(const DOM_SID *domsid, enum lsa_SidType sid_name_use, GROUP_MAP **pp_rmap, size_t *p_num_entries, bool unix_only); @@ -34,95 +34,119 @@ static bool group_map_remove(const DOM_SID *sid); / static bool init_group_mapping(void) { - const char *vstring = INFO/version; - int32 vers_id; - GROUP_MAP *map_table = NULL; - size_t num_entries = 0; - - if (tdb) - return True; - - tdb = tdb_open_log(state_path(group_mapping.tdb), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); - if (!tdb) { - DEBUG(0,(Failed to open group mapping database\n)); - return False; + if (db != NULL) { + return true; } - /* handle a Samba upgrade */ - tdb_lock_bystring(tdb, vstring); - - /* Cope with byte-reversed older versions of the db. */ - vers_id = tdb_fetch_int32(tdb, vstring); - if ((vers_id == DATABASE_VERSION_V1) || (IREV(vers_id) == DATABASE_VERSION_V1)) { - /* Written on a bigendian machine with old fetch_int code. Save as le. */ - tdb_store_int32(tdb, vstring, DATABASE_VERSION_V2); - vers_id = DATABASE_VERSION_V2; + db = db_open(NULL, state_path(group_mapping.tdb), 0, TDB_DEFAULT, +O_RDWR|O_CREAT, 0600); + if (db == NULL) { + DEBUG(0, (Failed to open group mapping database: %s\n, + strerror(errno))); + return false; } - /* if its an unknown version we remove everthing in the db */ - - if (vers_id != DATABASE_VERSION_V2) { - tdb_traverse(tdb, tdb_traverse_delete_fn, NULL); - tdb_store_int32(tdb, vstring, DATABASE_VERSION_V2); - } +#if 0 + /* +* This code was designed to handle a group mapping version +* upgrade. mapping_tdb is not active by default anymore, so ignore +* this here. +*/ + { + const char *vstring = INFO/version; + int32 vers_id; + GROUP_MAP *map_table = NULL; + size_t num_entries = 0; + +
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-216-g41dc55f
The branch, v3-2-test has been updated via 41dc55f1de8590b1bb5572e4adbf9bf960c12a64 (commit) from 8e0fa453a3d0a2c997a935b6940796612c972708 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 41dc55f1de8590b1bb5572e4adbf9bf960c12a64 Author: Günther Deschner [EMAIL PROTECTED] Date: Tue Mar 11 18:19:45 2008 +0100 Add some last init_srvsvc_X functions. Guenther --- Summary of changes: source/rpc_client/init_srvsvc.c | 60 +++ 1 files changed, 60 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/rpc_client/init_srvsvc.c b/source/rpc_client/init_srvsvc.c index 0d4d616..7b59568 100644 --- a/source/rpc_client/init_srvsvc.c +++ b/source/rpc_client/init_srvsvc.c @@ -342,3 +342,63 @@ void init_srvsvc_NetSessInfo502(struct srvsvc_NetSessInfo502 *r, r-client_type = client_type; r-transport = transport; } + +/*** + inits a srvsvc_NetFileInfo2 structure + / + +void init_srvsvc_NetFileInfo2(struct srvsvc_NetFileInfo2 *r, + uint32_t fid) +{ + r-fid = fid; +} + +/*** + inits a srvsvc_NetFileInfo3 structure + / + +void init_srvsvc_NetFileInfo3(struct srvsvc_NetFileInfo3 *r, + uint32_t fid, + uint32_t permissions, + uint32_t num_locks, + const char *path, + const char *user) +{ + r-fid = fid; + r-permissions = permissions; + r-num_locks = num_locks; + r-path = path; + r-user = user; +} + +/*** + inits a srvsvc_NetConnInfo0 structure + / + +void init_srvsvc_NetConnInfo0(struct srvsvc_NetConnInfo0 *r, + uint32_t conn_id) +{ + r-conn_id = conn_id; +} + +/*** + inits a srvsvc_NetConnInfo1 structure + / + +void init_srvsvc_NetConnInfo1(struct srvsvc_NetConnInfo1 *r, + uint32_t conn_id, + uint32_t conn_type, + uint32_t num_open, + uint32_t num_users, + uint32_t conn_time, + const char *user, + const char *share) +{ + r-conn_id = conn_id; + r-conn_type = conn_type; + r-num_open = num_open; + r-num_users = num_users; + r-conn_time = conn_time; + r-user = user; + r-share = share; +} -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1251-ga8a5339
The branch, v4-0-test has been updated via a8a5339cf2ca218668f888eced5ffe7ce059553c (commit) from b4da374a998caac18c288a0a6e3fcd2c50cbffa7 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit a8a5339cf2ca218668f888eced5ffe7ce059553c Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 10:21:09 2008 -0700 Test trans2 renames with oplocks. It looks like trans2 renames ignore share modes and oplock breaks :-(. Jeremy. --- Summary of changes: source/torture/raw/oplock.c | 106 +++ source/torture/raw/rename.c |4 ++ 2 files changed, 110 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/torture/raw/oplock.c b/source/torture/raw/oplock.c index 1926b12..d1ae8fc 100644 --- a/source/torture/raw/oplock.c +++ b/source/torture/raw/oplock.c @@ -2136,6 +2136,112 @@ done: return ret; } +/ + Called from raw-rename - we need oplock handling for + this test so this is why it's in oplock.c, not rename.c +/ + +bool test_trans2rename(struct torture_context *tctx, struct smbcli_state *cli1, struct smbcli_state *cli2) +{ + const char *fname1 = BASEDIR \\test_trans2rename_1.dat; + const char *fname2 = BASEDIR \\test_trans2rename_2.dat; + const char *fname3 = BASEDIR \\test_trans2rename_3.dat; + NTSTATUS status; + bool ret = true; + union smb_open io; + union smb_fileinfo qfi; + union smb_setfileinfo sfi; + uint16_t fnum=0; + + if (torture_setting_bool(tctx, samba3, false)) { + torture_skip(tctx, trans2rename disabled against samba3\n); + } + + if (!torture_setup_dir(cli1, BASEDIR)) { + return false; + } + + /* cleanup */ + smbcli_unlink(cli1-tree, fname1); + smbcli_unlink(cli1-tree, fname2); + smbcli_unlink(cli1-tree, fname3); + + smbcli_oplock_handler(cli1-transport, oplock_handler_ack_to_given, cli1-tree); + + /* + base ntcreatex parms + */ + io.generic.level = RAW_OPEN_NTCREATEX; + io.ntcreatex.in.root_fid = 0; + io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL; + io.ntcreatex.in.alloc_size = 0; + io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL; + io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE; + io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF; + io.ntcreatex.in.create_options = 0; + io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; + io.ntcreatex.in.security_flags = 0; + io.ntcreatex.in.fname = fname1; + + torture_comment(tctx, open a file with an exclusive oplock (share mode: none)\n); + ZERO_STRUCT(break_info); + io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | + NTCREATEX_FLAGS_REQUEST_OPLOCK; + status = smb_raw_open(cli1-tree, tctx, io); + CHECK_STATUS(tctx, status, NT_STATUS_OK); + fnum = io.ntcreatex.out.file.fnum; + CHECK_VAL(io.ntcreatex.out.oplock_level, EXCLUSIVE_OPLOCK_RETURN); + + torture_comment(tctx, setpathinfo rename info should not trigger a break nor a violation\n); + ZERO_STRUCT(sfi); + sfi.generic.level = RAW_SFILEINFO_RENAME_INFORMATION; + sfi.generic.in.file.path = fname1; + sfi.rename_information.in.overwrite = 0; + sfi.rename_information.in.root_fid = 0; + sfi.rename_information.in.new_name = fname2+strlen(BASEDIR)+1; + +status = smb_raw_setpathinfo(cli2-tree, sfi); + + CHECK_STATUS(tctx, status, NT_STATUS_OK); + CHECK_VAL(break_info.count, 0); + + ZERO_STRUCT(qfi); + qfi.generic.level = RAW_FILEINFO_ALL_INFORMATION; + qfi.generic.in.file.fnum = fnum; + + status = smb_raw_fileinfo(cli1-tree, tctx, qfi); + CHECK_STATUS(tctx, status, NT_STATUS_OK); + CHECK_STRMATCH(qfi.all_info.out.fname.s, fname2); + + torture_comment(tctx, setfileinfo rename info should not trigger a break nor a violation\n); + ZERO_STRUCT(sfi); + sfi.generic.level = RAW_SFILEINFO_RENAME_INFORMATION; + sfi.generic.in.file.fnum = fnum; + sfi.rename_information.in.overwrite = 0; + sfi.rename_information.in.root_fid = 0; + sfi.rename_information.in.new_name = fname3+strlen(BASEDIR)+1; + + status = smb_raw_setfileinfo(cli1-tree, sfi); + CHECK_STATUS(tctx, status, NT_STATUS_OK); + CHECK_VAL(break_info.count, 0); + + ZERO_STRUCT(qfi); + qfi.generic.level = RAW_FILEINFO_ALL_INFORMATION; + qfi.generic.in.file.fnum = fnum; + + status = smb_raw_fileinfo(cli1-tree, tctx, qfi); + CHECK_STATUS(tctx, status, NT_STATUS_OK);
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-217-g50cab87
The branch, v3-2-test has been updated via 50cab87d3ee6d701dd8847f4e0a058f5e2d80e0f (commit) from 41dc55f1de8590b1bb5572e4adbf9bf960c12a64 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 50cab87d3ee6d701dd8847f4e0a058f5e2d80e0f Author: Charles [EMAIL PROTECTED] Date: Tue Mar 11 19:49:08 2008 +0100 The attached patch removes some global variables, and make them local to main(). --- Summary of changes: source/utils/smbget.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) Changeset truncated at 500 lines: diff --git a/source/utils/smbget.c b/source/utils/smbget.c index e8fd6be..1b284c1 100644 --- a/source/utils/smbget.c +++ b/source/utils/smbget.c @@ -29,7 +29,7 @@ static int columns = 0; -static int _resume, _recursive, debuglevel, update; +static int debuglevel, update; static char *outputfile; @@ -540,13 +540,14 @@ int main(int argc, const char **argv) const char *file = NULL; char *rcfile = NULL; bool smb_encrypt = false; + int resume = 0, recursive = 0; TALLOC_CTX *frame = talloc_stackframe(); struct poptOption long_options[] = { {guest, 'a', POPT_ARG_NONE, NULL, 'a', Work as user guest }, {encrypt, 'e', POPT_ARG_NONE, NULL, 'e', Encrypt SMB transport (UNIX extended servers only) }, - {resume, 'r', POPT_ARG_NONE, _resume, 0, Automatically resume aborted files }, + {resume, 'r', POPT_ARG_NONE, resume, 0, Automatically resume aborted files }, {update, 'U', POPT_ARG_NONE, update, 0, Download only when remote file is newer than local file or local file is missing}, - {recursive, 'R', POPT_ARG_NONE, _recursive, 0, Recursively download files }, + {recursive, 'R', POPT_ARG_NONE, recursive, 0, Recursively download files }, {username, 'u', POPT_ARG_STRING, username, 'u', Username to use }, {password, 'p', POPT_ARG_STRING, password, 'p', Password to use }, {workgroup, 'w', POPT_ARG_STRING, workgroup, 'w', Workgroup to use (optional) }, @@ -595,11 +596,11 @@ int main(int argc, const char **argv) } } - if((send_stdout || _resume || outputfile) update) { + if((send_stdout || resume || outputfile) update) { fprintf(stderr, The -o, -R or -O and -U options can not be used together.\n); return 1; } - if((send_stdout || outputfile) _recursive) { + if((send_stdout || outputfile) recursive) { fprintf(stderr, The -o or -O and -R options can not be used together.\n); return 1; } @@ -626,10 +627,10 @@ int main(int argc, const char **argv) total_start_time = time(NULL); while ( (file = poptGetArg(pc)) ) { - if (!_recursive) - return smb_download_file(file, , _recursive, _resume, outputfile); + if (!recursive) + return smb_download_file(file, , recursive, resume, outputfile); else - return smb_download_dir(file, , _resume); + return smb_download_dir(file, , resume); } clean_exit(); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1252-gbfe773a
The branch, v4-0-test has been updated via bfe773a620640fa46efe008f38144f5452350825 (commit) from a8a5339cf2ca218668f888eced5ffe7ce059553c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit bfe773a620640fa46efe008f38144f5452350825 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Tue Mar 11 19:11:57 2008 +0100 libcli/raw: add RAW_RENAME_NTTRANS support metze Signed-off-by: Stefan Metzmacher [EMAIL PROTECTED] --- Summary of changes: source/libcli/raw/interfaces.h | 13 - source/libcli/raw/rawfile.c| 26 ++ 2 files changed, 38 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/libcli/raw/interfaces.h b/source/libcli/raw/interfaces.h index 24e8ad4..3965c58 100644 --- a/source/libcli/raw/interfaces.h +++ b/source/libcli/raw/interfaces.h @@ -175,7 +175,7 @@ struct smb_rmdir { }; /* struct used in rename() call */ -enum smb_rename_level {RAW_RENAME_RENAME, RAW_RENAME_NTRENAME}; +enum smb_rename_level {RAW_RENAME_RENAME, RAW_RENAME_NTRENAME, RAW_RENAME_NTTRANS}; union smb_rename { struct { @@ -206,6 +206,17 @@ union smb_rename { const char *new_name; } in; } ntrename; + + /* NT TRANS rename interface */ + struct { + enum smb_rename_level level; + + struct { + union smb_handle file; + uint16_t flags;/* see RENAME_REPLACE_IF_EXISTS */ + const char *new_name; + } in; + } nttrans; }; enum smb_tcon_level { diff --git a/source/libcli/raw/rawfile.c b/source/libcli/raw/rawfile.c index d938340..725034c 100644 --- a/source/libcli/raw/rawfile.c +++ b/source/libcli/raw/rawfile.c @@ -36,6 +36,8 @@ struct smbcli_request *smb_raw_rename_send(struct smbcli_tree *tree, union smb_rename *parms) { struct smbcli_request *req = NULL; + struct smb_nttrans nt; + TALLOC_CTX *mem_ctx; switch (parms-generic.level) { case RAW_RENAME_RENAME: @@ -53,6 +55,30 @@ struct smbcli_request *smb_raw_rename_send(struct smbcli_tree *tree, smbcli_req_append_ascii4(req, parms-ntrename.in.old_name, STR_TERMINATE); smbcli_req_append_ascii4(req, parms-ntrename.in.new_name, STR_TERMINATE); break; + + case RAW_RENAME_NTTRANS: + + mem_ctx = talloc_new(tree); + + nt.in.max_setup = 0; + nt.in.max_param = 0; + nt.in.max_data = 0; + nt.in.setup_count = 0; + nt.in.setup = NULL; + nt.in.function = NT_TRANSACT_RENAME; + nt.in.params = data_blob_talloc(mem_ctx, NULL, 4); + nt.in.data = data_blob(NULL, 0); + + SSVAL(nt.in.params.data, VWV(0), parms-nttrans.in.file.fnum); + SSVAL(nt.in.params.data, VWV(1), parms-nttrans.in.flags); + + smbcli_blob_append_string(tree-session, mem_ctx, + nt.in.params, parms-nttrans.in.new_name, + STR_TERMINATE); + + req = smb_raw_nttrans_send(tree, nt); + talloc_free(mem_ctx); + return req; } if (!smbcli_request_send(req)) { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1255-g6dc2807
The branch, v4-0-test has been updated via 6dc280731d071681b635a2f091be2b153a902080 (commit) via 80711c03e0e8fba6f80261facd939ef00e06c7fd (commit) via 4b071236867ca5c2c0451ad3acc8a9debb0549e4 (commit) from bfe773a620640fa46efe008f38144f5452350825 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 6dc280731d071681b635a2f091be2b153a902080 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Tue Mar 11 19:29:18 2008 +0100 pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS metze commit 80711c03e0e8fba6f80261facd939ef00e06c7fd Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Tue Mar 11 19:28:34 2008 +0100 smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer metze commit 4b071236867ca5c2c0451ad3acc8a9debb0549e4 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Mon Mar 10 12:46:17 2008 +0100 events_signal: pass down the correct siginfo_t struct to the event handler metze --- Summary of changes: source/lib/events/events_signal.c |2 +- source/ntvfs/posix/pvfs_rename.c |3 +++ source/smb_server/smb/nttrans.c | 25 - 3 files changed, 28 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/events/events_signal.c b/source/lib/events/events_signal.c index aec3433..c0771cb 100644 --- a/source/lib/events/events_signal.c +++ b/source/lib/events/events_signal.c @@ -257,7 +257,7 @@ int common_event_check_signal(struct event_context *ev) for (j=0;jcount;j++) { /* note the use of the sig_info array as a ring buffer */ - int ofs = (counter.count + j) % SA_INFO_QUEUE_COUNT; + int ofs = ((count-1) + j) % SA_INFO_QUEUE_COUNT; se-handler(ev, se, i, 1, (void*)sig_state-sig_info[i][ofs], se-private_data); diff --git a/source/ntvfs/posix/pvfs_rename.c b/source/ntvfs/posix/pvfs_rename.c index 29b2d03..e94de8b 100644 --- a/source/ntvfs/posix/pvfs_rename.c +++ b/source/ntvfs/posix/pvfs_rename.c @@ -575,6 +575,9 @@ NTSTATUS pvfs_rename(struct ntvfs_module_context *ntvfs, case RAW_RENAME_NTRENAME: return pvfs_rename_nt(ntvfs, req, ren); + case RAW_RENAME_NTTRANS: + return NT_STATUS_NOT_IMPLEMENTED; + default: break; } diff --git a/source/smb_server/smb/nttrans.c b/source/smb_server/smb/nttrans.c index a20c41b..1b49e23 100644 --- a/source/smb_server/smb/nttrans.c +++ b/source/smb_server/smb/nttrans.c @@ -287,7 +287,30 @@ static NTSTATUS nttrans_set_sec_desc(struct smbsrv_request *req, static NTSTATUS nttrans_rename(struct smbsrv_request *req, struct nttrans_op *op) { - return NT_STATUS_NOT_IMPLEMENTED; + struct smb_nttrans *trans = op-trans; + union smb_rename *io; + + if (trans-in.params.length 5) { + return NT_STATUS_INVALID_PARAMETER; + } + + /* parse the request */ + io = talloc(req, union smb_rename); + NT_STATUS_HAVE_NO_MEMORY(io); + + io-nttrans.level = RAW_RENAME_NTTRANS; + io-nttrans.in.file.ntvfs = smbsrv_pull_fnum(req, trans-in.params.data, 0); + io-nttrans.in.flags= SVAL(trans-in.params.data, 2); + + smbsrv_blob_pull_string(req-in.bufinfo, trans-in.params, 4, + io-nttrans.in.new_name, + STR_TERMINATE); + if (!io-nttrans.in.new_name) { + return NT_STATUS_INVALID_PARAMETER; + } + + SMBSRV_CHECK_FILE_HANDLE_NTSTATUS(io-nttrans.in.file.ntvfs); + return ntvfs_rename(req-ntvfs, io); } /* -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-218-g028302f
The branch, v3-2-test has been updated via 028302fac53083d66c969b876db1d831e53b8e35 (commit) from 50cab87d3ee6d701dd8847f4e0a058f5e2d80e0f (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 028302fac53083d66c969b876db1d831e53b8e35 Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 12:37:01 2008 -0700 Fix S3 to pass the test_raw_oplock_exclusive3 test. Jeremy. --- Summary of changes: source/smbd/open.c |5 +++-- source/smbd/trans2.c |2 +- 2 files changed, 4 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/open.c b/source/smbd/open.c index cc78503..0cc48c4 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -1366,7 +1366,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, se_map_generic(access_mask, file_generic_mapping); open_access_mask = access_mask; - if (flags2 O_TRUNC) { + if ((flags2 O_TRUNC) || (oplock_request FORCE_OPLOCK_BREAK_TO_NONE)) { open_access_mask |= FILE_WRITE_DATA; /* This will cause oplock breaks. */ } @@ -1378,7 +1378,8 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, * mean the same thing under DOS and Unix. */ - if (access_mask (FILE_WRITE_DATA | FILE_APPEND_DATA)) { + if ((access_mask (FILE_WRITE_DATA | FILE_APPEND_DATA)) || + (oplock_request FORCE_OPLOCK_BREAK_TO_NONE)) { /* DENY_DOS opens are always underlying read-write on the file handle, no matter what the requested access mask says. */ diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 008ffed..716f94f 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -4930,7 +4930,7 @@ static NTSTATUS smb_set_file_size(connection_struct *conn, } status = open_file_ntcreate(conn, req, fname, psbuf, - FILE_WRITE_DATA, + FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, FILE_OPEN, 0, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1256-gb200795
The branch, v4-0-test has been updated via b2007956aa4534f22ad7fd85b0aee0be769548ae (commit) from 6dc280731d071681b635a2f091be2b153a902080 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit b2007956aa4534f22ad7fd85b0aee0be769548ae Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 12:37:20 2008 -0700 Samba3 now passes the test_raw_oplock_exclusive3 test. Jeremy. --- Summary of changes: source/torture/raw/oplock.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) Changeset truncated at 500 lines: diff --git a/source/torture/raw/oplock.c b/source/torture/raw/oplock.c index d1ae8fc..7571a80 100644 --- a/source/torture/raw/oplock.c +++ b/source/torture/raw/oplock.c @@ -363,7 +363,6 @@ static bool test_raw_oplock_exclusive3(struct torture_context *tctx, struct smbc union smb_open io; union smb_setfileinfo sfi; uint16_t fnum=0; - bool s3 = torture_setting_bool(tctx, samba3, false); if (!torture_setup_dir(cli1, BASEDIR)) { return false; @@ -389,15 +388,10 @@ static bool test_raw_oplock_exclusive3(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname; - torture_comment(tctx, open a file with an exclusive oplock (share mode: %s)\n, - s3?all:none); + torture_comment(tctx, open a file with an exclusive oplock (share mode: none)\n); + ZERO_STRUCT(break_info); io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | NTCREATEX_FLAGS_REQUEST_OPLOCK; - if (s3) { - io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ| - NTCREATEX_SHARE_ACCESS_WRITE| - NTCREATEX_SHARE_ACCESS_DELETE; - } status = smb_raw_open(cli1-tree, tctx, io); CHECK_STATUS(tctx, status, NT_STATUS_OK); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-219-g9065792
The branch, v3-2-test has been updated via 9065792d4bc42522f12f9732de3c0ad82c72a2d3 (commit) from 028302fac53083d66c969b876db1d831e53b8e35 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3 Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 13:27:33 2008 -0700 Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19, BATCH20 and RAW-RENAME. Jeremy. --- Summary of changes: source/smbd/nttrans.c |5 +++-- source/smbd/reply.c | 15 --- source/smbd/trans2.c |3 ++- 3 files changed, 13 insertions(+), 10 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 5293ca5..f67ddd3 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -1353,7 +1353,7 @@ void reply_ntrename(struct smb_request *req) case RENAME_FLAG_RENAME: status = rename_internals(ctx, conn, req, oldname, newname, attrs, False, src_has_wcard, - dest_has_wcard); + dest_has_wcard, DELETE_ACCESS); break; case RENAME_FLAG_HARD_LINK: if (src_has_wcard || dest_has_wcard) { @@ -1549,7 +1549,8 @@ static void call_nt_transact_rename(connection_struct *conn, 0, replace_if_exists, False, - dest_has_wcard); + dest_has_wcard, + DELETE_ACCESS); if (!NT_STATUS_IS_OK(status)) { if (open_was_deferred(req-mid)) { diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 818ff31..d3b5dfa 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -2184,7 +2184,7 @@ static NTSTATUS can_rename(connection_struct *conn, files_struct *fsp, return NT_STATUS_OK; } - if (fsp-access_mask DELETE_ACCESS) { + if (fsp-access_mask (DELETE_ACCESS|FILE_WRITE_ATTRIBUTES)) { return NT_STATUS_OK; } @@ -5585,7 +5585,8 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx, uint32 attrs, bool replace_if_exists, bool src_has_wild, - bool dest_has_wild) + bool dest_has_wild, + uint32_t access_mask) { char *directory = NULL; char *mask = NULL; @@ -5715,12 +5716,12 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx, status = S_ISDIR(sbuf1.st_mode) ? open_directory(conn, req, directory, sbuf1, - DELETE_ACCESS, + access_mask, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0, 0, NULL, fsp) : open_file_ntcreate(conn, req, directory, sbuf1, -DELETE_ACCESS, +access_mask, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0, 0, 0, NULL, fsp); @@ -5819,12 +5820,12 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx, status = S_ISDIR(sbuf1.st_mode) ? open_directory(conn, req, fname, sbuf1, - DELETE_ACCESS, + access_mask, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0, 0, NULL, fsp) : open_file_ntcreate(conn, req, fname, sbuf1, -DELETE_ACCESS, +access_mask, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0, 0, 0, NULL, fsp); @@ -5947,7 +5948,7 @@ void reply_mv(struct smb_request *req) DEBUG(3,(reply_mv : %s - %s\n,name,newname)); status = rename_internals(ctx, conn, req, name, newname, attrs, False, - src_has_wcard, dest_has_wcard); + src_has_wcard, dest_has_wcard, DELETE_ACCESS); if (!NT_STATUS_IS_OK(status)) { if (open_was_deferred(req-mid)) { /* We have re-scheduled this call. */ diff --git a/source/smbd/trans2.c
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-220-g632f3fe
The branch, v3-2-test has been updated via 632f3fe66fbcbe3cc25d070c3885177264f5ad65 (commit) from 9065792d4bc42522f12f9732de3c0ad82c72a2d3 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65 Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 13:38:25 2008 -0700 Allow us to pass RAW-RENAME by testing that the connection struct connection paths are equal, not just the conn structs themselves. Jeremy. --- Summary of changes: source/smbd/reply.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/reply.c b/source/smbd/reply.c index d3b5dfa..91d5f25 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -5295,7 +5295,7 @@ static void rename_open_files(connection_struct *conn, sharepaths we need to manipulate relative paths. */ /* TODO - create the absolute path and manipulate the newname relative to the sharepath. */ - if (fsp-conn != conn) { + if (!strequal(fsp-conn-connectpath, conn-connectpath)) { continue; } DEBUG(10,(rename_open_files: renaming file fnum %d (file_id %s) from %s - %s\n, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1257-ga70719d
The branch, v4-0-test has been updated via a70719d579a7eefbfd973267b95a87aaa6b649b0 (commit) from b2007956aa4534f22ad7fd85b0aee0be769548ae (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit a70719d579a7eefbfd973267b95a87aaa6b649b0 Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 13:39:04 2008 -0700 Samba3.2 now passes a lot more tests - remove the S3 specific exemptions. Jeremy. --- Summary of changes: source/torture/raw/oplock.c | 99 ++- 1 files changed, 32 insertions(+), 67 deletions(-) Changeset truncated at 500 lines: diff --git a/source/torture/raw/oplock.c b/source/torture/raw/oplock.c index 7571a80..ab23ee7 100644 --- a/source/torture/raw/oplock.c +++ b/source/torture/raw/oplock.c @@ -229,7 +229,7 @@ static bool test_raw_oplock_exclusive1(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname; - torture_comment(tctx, open a file with an exclusive oplock (share mode: none)\n); + torture_comment(tctx, EXCLUSIVE1: open a file with an exclusive oplock (share mode: none)\n); ZERO_STRUCT(break_info); io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | NTCREATEX_FLAGS_REQUEST_OPLOCK; @@ -294,7 +294,7 @@ static bool test_raw_oplock_exclusive2(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname; - torture_comment(tctx, open a file with an exclusive oplock (share mode: all)\n); + torture_comment(tctx, EXCLUSIVE2: open a file with an exclusive oplock (share mode: all)\n); ZERO_STRUCT(break_info); io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | NTCREATEX_FLAGS_REQUEST_OPLOCK; io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ| @@ -388,7 +388,7 @@ static bool test_raw_oplock_exclusive3(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname; - torture_comment(tctx, open a file with an exclusive oplock (share mode: none)\n); + torture_comment(tctx, EXCLUSIVE3: open a file with an exclusive oplock (share mode: none)\n); ZERO_STRUCT(break_info); io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | NTCREATEX_FLAGS_REQUEST_OPLOCK; @@ -452,7 +452,7 @@ static bool test_raw_oplock_exclusive4(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname; - torture_comment(tctx, open with exclusive oplock\n); + torture_comment(tctx, EXCLUSIVE4: open with exclusive oplock\n); ZERO_STRUCT(break_info); smbcli_oplock_handler(cli1-transport, oplock_handler_ack_to_given, cli1-tree); @@ -517,7 +517,7 @@ static bool test_raw_oplock_exclusive5(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname; - torture_comment(tctx, open with exclusive oplock\n); + torture_comment(tctx, EXCLUSIVE5: open with exclusive oplock\n); ZERO_STRUCT(break_info); smbcli_oplock_handler(cli1-transport, oplock_handler_ack_to_given, cli1-tree); @@ -564,7 +564,6 @@ static bool test_raw_oplock_exclusive6(struct torture_context *tctx, struct smbc union smb_open io; union smb_rename rn; uint16_t fnum=0; - bool s3 = torture_setting_bool(tctx, samba3, false); if (!torture_setup_dir(cli1, BASEDIR)) { return false; @@ -591,16 +590,9 @@ static bool test_raw_oplock_exclusive6(struct torture_context *tctx, struct smbc io.ntcreatex.in.security_flags = 0; io.ntcreatex.in.fname = fname1; - /* we should use no share mode, when samba3 passes this */ - torture_comment(tctx, open a file with an exclusive oplock (share mode: %s)\n, - s3?all:none); + torture_comment(tctx, EXCLUSIVE6: open a file with an exclusive oplock (share mode: none)\n); ZERO_STRUCT(break_info); io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | NTCREATEX_FLAGS_REQUEST_OPLOCK; - if (s3) { - io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ| - NTCREATEX_SHARE_ACCESS_WRITE| - NTCREATEX_SHARE_ACCESS_DELETE; - } status = smb_raw_open(cli1-tree, tctx, io); CHECK_STATUS(tctx, status, NT_STATUS_OK); @@ -667,7 +659,7 @@ static bool test_raw_oplock_batch1(struct torture_context *tctx, struct smbcli_s /* with a batch oplock we get a break */ - torture_comment(tctx, open with batch oplock\n); + torture_comment(tctx, BATCH1: open with batch oplock\n);
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-221-g923aa9f
The branch, v3-2-test has been updated via 923aa9f330cb370221af6b66cf0f237a9bd06f8e (commit) from 632f3fe66fbcbe3cc25d070c3885177264f5ad65 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 923aa9f330cb370221af6b66cf0f237a9bd06f8e Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 13:59:04 2008 -0700 Metze pointed out this we don't need FILE_ATTRIBUTE_READ here. Jeremy. --- Summary of changes: source/smbd/trans2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 85a7cdb..d7a0f6e 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -4930,7 +4930,7 @@ static NTSTATUS smb_set_file_size(connection_struct *conn, } status = open_file_ntcreate(conn, req, fname, psbuf, - FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES, + FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, FILE_OPEN, 0, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1258-gca5b377
The branch, v4-0-test has been updated via ca5b37747107bd2941f7415fe609c8293a6b5f7c (commit) from a70719d579a7eefbfd973267b95a87aaa6b649b0 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit ca5b37747107bd2941f7415fe609c8293a6b5f7c Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Tue Mar 11 21:58:29 2008 +0100 RAW-SEARCH: skip RESUME_KEY tests against samba3 metze --- Summary of changes: source/torture/raw/search.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/torture/raw/search.c b/source/torture/raw/search.c index 0242b9c..725ed26 100644 --- a/source/torture/raw/search.c +++ b/source/torture/raw/search.c @@ -708,6 +708,16 @@ static bool test_many_files(struct torture_context *tctx, for (t=0;tARRAY_SIZE(search_types);t++) { ZERO_STRUCT(result); + + if ((search_types[t].cont_type == CONT_RESUME_KEY) + (search_types[t].data_level != RAW_SEARCH_DATA_SEARCH) + torture_setting_bool(tctx, samba3, false)) { + torture_comment(tctx, + SKIP: Continue %s via %s\n, + search_types[t].name, search_types[t].cont_name); + continue; + } + result.tctx = talloc_new(tctx); torture_comment(tctx, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-222-gc765090
The branch, v3-2-test has been updated via c765090871ed68a9ba650bca44f5f3b88997ea14 (commit) from 923aa9f330cb370221af6b66cf0f237a9bd06f8e (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit c765090871ed68a9ba650bca44f5f3b88997ea14 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Tue Mar 11 22:06:09 2008 +0100 selftest: samba3 passes RAW-SEARCH now As the resume key tests are skipped against samba3. metze --- Summary of changes: source/script/tests/test_posix_s3.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/script/tests/test_posix_s3.sh b/source/script/tests/test_posix_s3.sh index 7b4c022..a40a041 100755 --- a/source/script/tests/test_posix_s3.sh +++ b/source/script/tests/test_posix_s3.sh @@ -49,7 +49,7 @@ tests=$base $raw $rpc $unix skipped=BASE-CHARSET BASE-DELAYWRITE BASE-TCONDEV skipped=$skipped RAW-ACLS RAW-COMPOSITE RAW-CONTEXT skipped=$skipped RAW-IOCTL -skipped=$skipped RAW-QFILEINFO RAW-QFSINFO RAW-SEARCH +skipped=$skipped RAW-QFILEINFO RAW-QFSINFO skipped=$skipped RAW-SFILEINFO echo WARNING: Skipping tests $skipped -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-224-g1de05f1
The branch, v3-2-test has been updated via 1de05f1a87fcea598021ca485d3ed87005a3be68 (commit) via c4fa4917dad97c5047f7336c6675739b44da256b (commit) from c765090871ed68a9ba650bca44f5f3b88997ea14 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 1de05f1a87fcea598021ca485d3ed87005a3be68 Merge: c4fa4917dad97c5047f7336c6675739b44da256b c765090871ed68a9ba650bca44f5f3b88997ea14 Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 15:26:22 2008 -0700 Merge branch 'v3-2-test' of ssh://[EMAIL PROTECTED]/data/git/samba into v3-2-test commit c4fa4917dad97c5047f7336c6675739b44da256b Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 15:26:02 2008 -0700 Using Metze's S4 nttrans rename test, the nttrans rename behaves the same as the trans2 one. Jeremy. --- Summary of changes: source/smbd/nttrans.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index f67ddd3..bc93d19 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -1550,7 +1550,7 @@ static void call_nt_transact_rename(connection_struct *conn, replace_if_exists, False, dest_has_wcard, - DELETE_ACCESS); + FILE_WRITE_ATTRIBUTES); if (!NT_STATUS_IS_OK(status)) { if (open_was_deferred(req-mid)) { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1259-g4556faf
The branch, v4-0-test has been updated via 4556fafede8691c6a12670695ff108e9e59aff98 (commit) from ca5b37747107bd2941f7415fe609c8293a6b5f7c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 4556fafede8691c6a12670695ff108e9e59aff98 Author: Jeremy Allison [EMAIL PROTECTED] Date: Tue Mar 11 15:27:08 2008 -0700 Added test_nttransrename() to test Metze's new code. Jeremy. --- Summary of changes: source/torture/raw/oplock.c | 89 +++ source/torture/raw/rename.c |4 +- 2 files changed, 92 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/torture/raw/oplock.c b/source/torture/raw/oplock.c index ab23ee7..89f3607 100644 --- a/source/torture/raw/oplock.c +++ b/source/torture/raw/oplock.c @@ -2206,6 +2206,95 @@ done: return ret; } +/ + Called from raw-rename - we need oplock handling for + this test so this is why it's in oplock.c, not rename.c +/ + +bool test_nttransrename(struct torture_context *tctx, struct smbcli_state *cli1) +{ + const char *fname1 = BASEDIR \\test_nttransrename_1.dat; + const char *fname2 = BASEDIR \\test_nttransrename_2.dat; + NTSTATUS status; + bool ret = true; + union smb_open io; + union smb_fileinfo qfi; + union smb_rename rn; + uint16_t fnum=0; + + if (!torture_setup_dir(cli1, BASEDIR)) { + return false; + } + + /* cleanup */ + smbcli_unlink(cli1-tree, fname1); + smbcli_unlink(cli1-tree, fname2); + + smbcli_oplock_handler(cli1-transport, oplock_handler_ack_to_given, cli1-tree); + + /* + base ntcreatex parms + */ + io.generic.level = RAW_OPEN_NTCREATEX; + io.ntcreatex.in.root_fid = 0; + io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL; + io.ntcreatex.in.alloc_size = 0; + io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL; + io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE; + io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF; + io.ntcreatex.in.create_options = 0; + io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; + io.ntcreatex.in.security_flags = 0; + io.ntcreatex.in.fname = fname1; + + torture_comment(tctx, nttrans_rename: open a file with an exclusive oplock (share mode: none)\n); + ZERO_STRUCT(break_info); + io.ntcreatex.in.flags = NTCREATEX_FLAGS_EXTENDED | + NTCREATEX_FLAGS_REQUEST_OPLOCK; + status = smb_raw_open(cli1-tree, tctx, io); + CHECK_STATUS(tctx, status, NT_STATUS_OK); + fnum = io.ntcreatex.out.file.fnum; + CHECK_VAL(io.ntcreatex.out.oplock_level, EXCLUSIVE_OPLOCK_RETURN); + + torture_comment(tctx, nttrans_rename should not trigger a break nor a share mode violation\n); + ZERO_STRUCT(rn); + rn.generic.level = RAW_RENAME_NTTRANS; + rn.nttrans.in.file.fnum = fnum; + rn.nttrans.in.flags = 0; + rn.nttrans.in.new_name = fname2+strlen(BASEDIR)+1; + +status = smb_raw_rename(cli1-tree, rn); + + CHECK_STATUS(tctx, status, NT_STATUS_OK); + CHECK_VAL(break_info.count, 0); + + /* Seems name is only updated on close. */ + smbcli_close(cli1-tree, fnum); + + /* Check if we can open with the new name. */ + io.ntcreatex.in.fname = fname2; + status = smb_raw_open(cli1-tree, tctx, io); + CHECK_STATUS(tctx, status, NT_STATUS_OK); + fnum = io.ntcreatex.out.file.fnum; + CHECK_VAL(io.ntcreatex.out.oplock_level, EXCLUSIVE_OPLOCK_RETURN); + + ZERO_STRUCT(qfi); + qfi.generic.level = RAW_FILEINFO_ALL_INFORMATION; + qfi.generic.in.file.fnum = fnum; + + status = smb_raw_fileinfo(cli1-tree, tctx, qfi); + CHECK_STATUS(tctx, status, NT_STATUS_OK); + CHECK_STRMATCH(qfi.all_info.out.fname.s, fname2); + + smbcli_close(cli1-tree, fnum); + +done: + smb_raw_exit(cli1-session); + smbcli_deltree(cli1-tree, BASEDIR); + return ret; +} + + static bool test_raw_oplock_batch20(struct torture_context *tctx, struct smbcli_state *cli1, struct smbcli_state *cli2) { const char *fname1 = BASEDIR \\test_batch20_1.dat; diff --git a/source/torture/raw/rename.c b/source/torture/raw/rename.c index 308bd7f..9765c04 100644 --- a/source/torture/raw/rename.c +++ b/source/torture/raw/rename.c @@ -435,6 +435,7 @@ done: } extern bool test_trans2rename(struct torture_context *tctx, struct smbcli_state *cli1, struct smbcli_state *cli2); +extern bool test_nttransrename(struct torture_context *tctx, struct smbcli_state *cli1); /* basic testing of rename calls @@ -444,9 +445,10 @@ struct
Build status as of Wed Mar 12 00:00:01 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-03-11 00:00:41.0 + +++ /home/build/master/cache/broken_results.txt 2008-03-12 00:00:36.0 + @@ -1,4 +1,4 @@ -Build status as of Tue Mar 11 00:00:02 2008 +Build status as of Wed Mar 12 00:00:01 2008 Build counts: Tree Total Broken Panic @@ -11,11 +11,11 @@ lorikeet-heimdal 22 21 0 pidl 16 4 0 ppp 9 0 0 -rsync29 13 0 +rsync29 12 0 samba-docs 0 0 0 samba-gtk3 3 0 -samba_3_2_test 28 14 0 -samba_4_0_test 26 24 0 +samba_3_2_test 28 17 0 +samba_4_0_test 25 23 0 smb-build27 3 0 talloc 29 7 0 tdb 29 14 0