[Samba] RE: hi
Your message sent to [EMAIL PROTECTED] has not been delivered because it contains non allowed attachements. ADD d.o.o. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba3 vscan recycle exclude does not work
Hi, i got a little prob with some features of recycle bin which dont work using samba 3.06 suse 9 [files3] comment = public files path = /files3 read only = No guest ok = Yes browseable = Yes csc policy = disable vfs objects = vscan-clamav, netatalk, audit, recycle recycle:keeptree = yes recycle:versions = yes recycle:exclude=*.TMP|*.tmp|*.temp|*.o|*.obj|~$* recycle:exclude_dir=/tmp|/temp|/cache recycle:repository = .recycle/.recycle.%u recycle:noversions = *.doc|*.xls|*.ppt the exclude parameter does not work open doc files creates a ~$. which should be excluded by line recycle:exclude=*.TMP|*.tmp|*.temp|*.o|*.obj|~$* vscan version is samba3-vscan-0.3.5-1.i586.rpm anybody knowing about that prob too? Best Regards -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba3 vscan recycle exclude does not work
recycle:exclude=*.TMP|*.tmp|*.temp|*.o|*.obj|~$* recycle:exclude_dir=/tmp|/temp|/cache recycle:repository = .recycle/.recycle.%u recycle:noversions = *.doc|*.xls|*.ppt anybody knowing about that prob too? Yes, i'm seeing the same behaviour. it now works for exclude if i write recycle:exclude=*.TMP *.tmp *.temp Seems if someone changed parameter parsing. I couldn't get exclude_dir to work. No matter how i write the parameters no directory gets excluded (is it exclude_dir or excludedir btw. ?) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] [Fwd: samba3 vscan recycle exclude does not work] solved
Hi, i got it solved seperation must be a comma like this [files3] comment = public files path = /files3 read only = No guest ok = Yes browseable = Yes csc policy = disable vfs objects = vscan-clamav, netatalk, audit, recycle recycle:keeptree = yes recycle:versions = yes recycle:touch = yes recycle:exclude= ?~$*,~$*,*.tmp,*.temp,*.TMP recycle:exclude_dir= /tmp,/temp,/cache recycle:repository = .recycle/.recycle.%u recycle:noversions = *.doc,*.xls,*.ppt Best Regards -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Samba 2.2.8a Compatibility
On Fri, 2004-09-03 at 07:49, Doug VanLeuven wrote: Yeah. Well. AIX is changing pretty fast these days. Relatively. I have 4.3.3, 5.1, and 5.2 platforms mostly because of application migration issues. We're currently running 2.2.8a on all three. Just make sure you're at the most current AIX service release. This buys time to get the system worked out of migrating to 3.0 with AD membership within the available manpower and manhours. Seems like yesterday 3.0 was announced production ready. No 'yesterday' was when we announced that Samba 2.2 will be end-of-life in October. Samba 3.0 has been production-ready for a year now (and somehow 3.0.0 really did ship without show-shoppers!). samba was recompiled under each version release to run on that version release. Don't know if that was necessary or not. Just to be safe. Probably should be using 2.2.11, but I've been spending my samba time on 3.0. Well, there are a number of security issues between the two. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Authentication Developer, Samba Teamhttp://samba.org Student Network Administrator, Hawker College [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Resultats de vos commandes
Important textfile! Commande non comprise : la fin du message est ignorée. Aucune commande n'a été reconnue dans votre message -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] documentation for samba + Novel edirectory NLS
HI, I've been lurking for a while hoping to come across some information on setting up Samba 3.X and edirectory. I've got both the how-to book and the example book by JHT and have read the example book cover to cover. John refers his readers to the lists Novell, to get setup info for edirectory. So far, from googling groups, lists www, and Novell. There seems to be none Does anyone know of any samba.sch files that I can use to extend the edir schema? I tried using the samba.schema file apparently it's got a different format and the novel supplied tool bombs out. Compared to the most of you my knowledge is basic so if anyone can spare a little time and perhaps add to the world wide knowledge base (available through Google) I'd appreciate some fairly detailed instructions. Cheers Geoff Scott -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow access when opening shares
Hi, Have you tried to dissable de WebClient service on de windows client. Regards On Friday 03 September 2004 04:58, josh dickens wrote: Hey, I have slow access when I first open shares. If I reboot my XP box and then go to access a share, it takes a good 10 seconds for files to come up, even after I've typed in my username and password. Once accessed it runs fine and is fast. But, if I don't access it for 30 minutes, when I access it again it sits for like 10 good seconds before it does anything. This is very annoying. I also have a Mac running OSX 10.3.5, when accessing the samba shares from the Mac it's fine, there's no slowdown whatsoever. It asks me for username and password, then just speeds right along. Samba is the only software installed on this BSD system. It has a static ip of 10.0.0.100. System: Freebsd 4.10, Duron 900mhz, 512 RAM, 120 gig hd Version: samba-2.2.8a_2 (Installed via FreeBSD Ports) smb.conf: [global] workgroup = WORKGROUP server string = Server netbios name = Server #hosts allow = 10.0.0. 127. load printers = no guest account = me log file = /var/log/samba/log.%m max log size = 1000 security = share encrypt passwords = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE #local master = yes #os level = 255 #domain master = yes #preferred master = yes #wins support = yes dns proxy = no [share] comment = my files path = /my path writeable = Yes guest ok = yes tcpdump when first accessing the share from XP after rebooting the machine, this is where it takes a good 10 to 15 seconds for the shares to come up: 22:39:51.970463 10.0.0.100.2760 ns.speedfactory.net.domain: 12076+ PTR? 100.0.0.10.in-addr.arpa. (41) 22:39:52.037703 ns.speedfactory.net.domain 10.0.0.100.2760: 12076 NXDomain* 0/0/0 (41) 22:39:52.038135 10.0.0.100.3434 ns.speedfactory.net.domain: 12077+ PTR? 40.0.0.10.in-addr.arpa. (40) 22:39:52.083767 ns.speedfactory.net.domain 10.0.0.100.3434: 12077 NXDomain* 0/0/0 (40) 22:39:53.079804 10.0.0.100.1879 ns.speedfactory.net.domain: 12078+ PTR? 138.208.23.66.in-addr.arpa. (44) 22:39:53.108466 ns.speedfactory.net.domain 10.0.0.100.1879: 12078* 1/0/0 (77) 22:39:53.309215 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 3444221629:3444221792(163) ack 300534793 win 64162 NBT Packet (DF) 22:39:53.310604 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 1:94(93) ack 163 win 58400 NBT Packet (DF) [tos 0x10] 22:39:53.310839 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 163:258(95) ack 94 win 64069 NBT Packet (DF) 22:39:53.311021 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 94:201(107) ack 258 win 58400 NBT Packet (DF) [tos 0x10] 22:39:53.311304 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 258:398(140) ack 201 win 63962 NBT Packet (DF) 22:39:53.311434 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 201:252(51) ack 398 win 58400 NBT Packet (DF) [tos 0x10] 22:39:53.311646 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 398:461(63) ack 252 win 63911 NBT Packet (DF) 22:39:53.311689 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 252:383(131) ack 461 win 58400 NBT Packet (DF) [tos 0x10] 22:39:53.311933 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 461:629(168) ack 383 win 63780 NBT Packet (DF) 22:39:53.312142 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 383:835(452) ack 629 win 58400 NBT Packet (DF) [tos 0x10] 22:39:53.312461 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 629:674(45) ack 835 win 63328 NBT Packet (DF) 22:39:53.312538 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 835:874(39) ack 674 win 58400 NBT Packet (DF) [tos 0x10] 22:39:53.493916 10.0.0.50.1028 10.0.0.100.netbios-ssn: . ack 874 win 63289 (DF) 704094 (DF) 22:39:57.858192 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 674:769(95) ack 874 win 63289 NBT Packet (DF) 22:39:57.858471 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 874:981(107) ack 769 win 58400 NBT Packet (DF) [tos 0x10] 22:39:57.858728 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 769:814(45) ack 981 win 63182 NBT Packet (DF) 22:39:57.858805 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 981:1020(39) ack 814 win 58400 NBT Packet (DF) [tos 0x10] 22:39:57.859007 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 814:909(95) ack 1020 win 63143 NBT Packet (DF) 22:39:57.859051 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 1020:1127(107) ack 909 win 58400 NBT Packet (DF) [tos 0x10] 22:39:57.859310 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 909:1049(140) ack 1127 win 63036 NBT Packet (DF) 22:39:57.859431 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 1127:1178(51) ack 1049 win 58400 NBT Packet (DF) [tos 0x10] 22:39:57.859651 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 1049:1112(63) ack 1178 win 62985 NBT Packet (DF) 22:39:57.859697 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 1178:1309(131) ack 1112 win 58400 NBT Packet (DF) [tos 0x10] 22:39:57.859943 10.0.0.50.1028 10.0.0.100.netbios-ssn: P 1112:1280(168) ack 1309 win 62854 NBT Packet (DF) 22:39:57.860162 10.0.0.100.netbios-ssn 10.0.0.50.1028: P 1309:1761(452)
RE: [Samba] Etiquette question
I believe it is when you put your reply above someone else's message -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim C. Sent: Thursday, September 02, 2004 5:39 PM To: [EMAIL PROTECTED] Subject: [Samba] Etiquette question What exactly is top posting? I thought that was when someone responds to the very first message instead of the latest one. Jim C. -- - | I can be reached on the following Instant Messenger services: | |---| | MSN: [EMAIL PROTECTED] AIM: WyteLi0n ICQ: 123291844 | |---| | Y!: j_c_llings Jabber: [EMAIL PROTECTED]| - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba INSTEAD OF DOWN HERE!!! It just makes the sequence of reading an entire thread a bit confusing if you don't know where to read/look for the response. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba lock problem
Helo, i am not a list subscriber, so please send messages to [EMAIL PROTECTED] Sorry my bad english. I´m trying to use a Linux box with samba 3.0.4 and one ACUCOBOL application. When I run this application on Windows 98 workstations, it works fine. When I try to run the same application on a Windows 2000 / XP Workstation or Server, the application starts to run, but it stops working. It appears that it is whaiting for a liberation of a file, because the cursor become an hour-glass and when I start then same application on a Windows 98 workstation at the same option, the Windows 2000 workstation starts to run again, but it stops again (I think that when another workstation locks a file). I tried to disable oplocks at samba and at Windows 2000, but it don´t solve the problem When I start running this application whith the data files on a Windows 2000 Server, is works fine. I am using the above smb.conf: [global] workgroup = X netbios name = y server string = Linux SMB Server large readwrite = yes max xmit = 65535 dns proxy = no printing = cups local master = no os level = 70 debug level = 1 printcap name = cups security = user add machine script = /usr/sbin/adduser -n -r -g machines -c Samba machine -d /dev/null -s /bin/false %u getwd cache = yes max log size = 50 log file = /var/log/samba/%m.log read raw = yes load printers = yes smb passwd file = /etc/samba/smbpasswd write raw = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8576 SO_RCVBUF=8192 deadtime = 15 client use spnego = yes username map = /etc/samba/smbusers interfaces = 192.168.1.1/255.255.255.0 encrypt passwords = yes winbind use default domain = no oplock break wait time = 10 passdb backend = smbpasswd template shell = /bin/false wins support = yes preferred master = no domain logons = no idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 [print$] path = /var/lib/samba/drivers guest ok = yes browseable = yes read only = yes write list = root [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes printer admin = root [apli] comment = Diretorio do Sistema path = /vv/apli valid users = @vila public = no browseable = yes writable = yes printable = no directory mode = 2770 create mask = 0770 create mode = 0770 force create mode = 0770 force directory mode = 2770 force group = vila # veto oplock files = /*.DAT/*.dat/*.DAD/*.dad/ oplocks = no level2 oplocks = no I would appreciate some help. Edilson Carlos Belluomini [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow Printing from XP clients with SP2, alsowith 2.2.11?
Rohan Gilchrist wrote: It's very similar to this bug, however, I don't get a core dump when I try to print. The print job works, it just takes much, much longer from SP 2 boxes than SP 1 boxes. I'll look at moving to 3.0.6 though :) some of the users of the package with the internal samba version 2.2.11 (which prevent the crash if the xp client sends a find_next_print_change_notify request without ever sending a find_first - the same patch as in 3.0.6) also having the problem with slow printing with WinXP SP2. This is related to the messages [2004/08/20 10:26:36, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_clie nt(91) connect_to_client: unable to connect to SMB server on machine MICHAEL. Error w as : SUCCESS - 0. [2004/08/20 10:26:42, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_clie nt(91) connect_to_client: unable to connect to SMB server on machine MICHAEL. Error w as : SUCCESS - 0. [2004/08/20 10:26:49, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_clie nt(91) connect_to_client: unable to connect to SMB server on machine MICHAEL. Error w as : SUCCESS - 0. [2004/08/20 10:26:55, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_clie nt(91) connect_to_client: unable to connect to SMB server on machine MICHAEL. Error w as : SUCCESS - 0. [2004/08/20 10:27:01, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_clie nt(91) connect_to_client: unable to connect to SMB server on machine MICHAEL. Error w as : SUCCESS - 0. Printer dialogs come up very slow. In the log messages you can see, that there is an delay of 25(!) seconds, before the printing dialog appears! I hope it is possible to _not_ permanently connecting the client from samba or decreasing the timeout for this try... If you speak german, here is the thread: http://lists.spline.inf.fu-berlin.de/mailman/htdig/eisfair/2004-August/066507.html Im interested in your experiences with 3.0.6. -- der tom [fli4l-/eis-team] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] files on shared ntfs-disk in linux-pc are not accessible
Hi, I have spent the entire evening, trying to access a ntfs-drive in my linux-box from my WinXP-Notebook but I just can't get it to work (and it's 3:50 a.m. now!) I have put a 160GB harddisk into a linux box (LFS 5.1.1, console only) and mounted it: /dev/hdd1 /mnt/toffi ntfs ro,uid=christoph,gid=christoph,umask=022 0 0 To check wether the data on the disk is ok, I then put in a Knoppix-Live-CD (3.6) and opened some of the Video-Files on the disk - the disk and it's ntfs filesystem seem to be ok! I then tried to share this disk using samba, to be able to access it from my notebook (WinXP): (from my smb.conf) [toffi] path=/mnt/toffi read only = yes browsable = yes valid users = christoph The linux-pc shows up in my network neighbourhood, as do its shares, including my ntfs-disk. By double-clicking on 'toffi', I get a listing of the disk's root directory. However, any further click causes the explorer window to freeze for about two minutes until a folder is opened or a context menu appears. In the opened folder, the file-listing often remains blank and if the files are listed, I cannot open them. Copying files from the ntfs-disk to my windows-box will result in corrupted files. This problem only applies to the ntfs-share. All the other (ReiserFS) shares work fine! So I tried to mount the ntfs-share on the server-machine itself: mount -t smbfs -o username=christoph,password=passwd //linbox/toffi /mnt/test The ntfs-disk then gets mounted to /mnt/test and i can browse and list folders as much as I like but when I try to open a file with less, I get an error message: smb_request: result -5, setting invalid I did all this as root. As the files are okay and the problem does not seem to be M$-specific, something has to be wrong with my Linux-machine. So I booted from the Knoppix-Disk one more time, mounted the ntfs-disk and shared it and voilà: I can access any file from my notebook and it's fast! So I copied the samba-configuration from the Knoppix-disk (at least partly) but that didn't help either. Maybe all this has to do with user-rights.. I don't know.. and I really do not have any idea what I can try.. * P L E A S E * H E L P * M E * -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Newbie question on AD permissions
Hi Ok so I have samba setup and started and I have successfully joined the AD domain and can see the Linux server in Microsoft Active Directory Users and Groups applet. I can also log on and browse a server from the lnux server using: kinit [EMAIL PROTECTED] - where LAB.COM is the AD Domain and the doing a smbclient //W2KSVR/c\$ -k - where W2KSVR is the W2003 server So all that is fine !!! I Hope ... So now how do I go about giving users from Active Directory permissions to the shares on the linux server ? I try from Windows by right clicking on the linux folder and going to the security tab but can only choose users from the linux server.I cannot select to add users from the AD ? The linux server by the way is SLES 9.1 with Samba 3.0.2a Apologies if this question is obvious to everyone but I am a newcommer. Thanks Shiraaz -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Global Windows Environment-Variables
Hello, does anybody know, how to set Global-Variables for a Windows-System? I would like to set variabels in the login-script and use them in a Word-Document. PS: set bla=foo works only for the current shell/cmd.exe, not global matze -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Global Windows Environment-Variables
Matthias Spork wrote: Hello, does anybody know, how to set Global-Variables for a Windows-System? I would like to set variabels in the login-script and use them in a Word-Document. PS: set bla=foo works only for the current shell/cmd.exe, not global matze What you are looking for is the setx program. http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/setx-o.asp If you install this on the client machines and call it from login scripts it will do exactly what you describe. I have used it before to great effect (and if I recall correctly, it works under xp as well). Later, -J -- J. Simmons Network Administrator VPT, Inc. [EMAIL PROTECTED] 540.552.5000x11 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Ldap performance
Hi, Thank you all for the answers. I'll try to write here answer to everybody that's helping me. I agree with Malte when he says this is not a samba issue, but it's completely related to samba. About the slow group resolution... All my users used to be in 2 groups Domain Users and students|theachers|employees. As I'm not using the second group for access control yet, all users are now only in Domain Users. Is it normal to have 36 slapd process, each using 33 MB? I'm just guessing here, but that doesn't sound right. I don't think you should normally have any more than one, but maybe I'm mistaken. I've never seen it. What he is almost certainly seeing is threads, not processes, and the 33Mb is cumulative not individual - they are all sharing the 33Mb. This is how Linux displays process information. That's right... I didn't know that. For that number of users I think 33Mb is SHOCKINGLY LOW. You need to tune the slapd cache size to let it use more memory. Also 36 threads is insane, your almost certainly swamping the processor. Limit your threads to something like 10 - 20 using the threads directive in slapd.conf. I configured the cachesize to 1 but it's not using more memory. I think it's ok because my ldap store only the posix and samba information. The file /var/lib/ldap/id2entry.gdbm is 37 MB. I changed the thread to 10 and it's a little faster in the peak time. Another thing that may be slowing the ldap is that I need to use scope =sub in my ldap.conf to find users and computers: So you're saying that in your ldap.conf you have things configured like so? nss_base_passwddc=homelan,dc=com,dc=br?sub With the correct indexes and enough RAM it shouldn't really matter. Yes I have this in my ldap.conf: nss_base_passwd dc=ump,dc=edu,dc=br?sub nss_base_shadow dc=ump,dc=edu,dc=br?sub nss_base_group ou=groups,dc=ump,dc=edu,dc=br?one nss_base_hosts ou=computers,dc=ump,dc=edu,dc=br I didn't change that yet because I like the idea of keeping computers and users separated. And I'm using this index that took from the howto-collection: index objectClass eq index cn pres,sub,eq index sn pres,sub,eq index uid pres,sub,eq index displayName pres,sub,eq index uidNumber eq index gidNumber eq index memberUid eq index sambaSIDeq index sambaPrimaryGroupSIDeq index sambaDomainName eq index default sub Is that ok or should I change any thing? Thank's again! Bruno Gimenes Pereti. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Ldap performance
Another thing that may be slowing the ldap is that I need to use scope =sub in my ldap.conf to find users and computers: So you're saying that in your ldap.conf you have things configured like so? nss_base_passwddc=homelan,dc=com,dc=br?sub With the correct indexes and enough RAM it shouldn't really matter. Yes I have this in my ldap.conf: nss_base_passwd dc=ump,dc=edu,dc=br?sub nss_base_shadow dc=ump,dc=edu,dc=br?sub nss_base_group ou=groups,dc=ump,dc=edu,dc=br?one nss_base_hosts ou=computers,dc=ump,dc=edu,dc=br I didn't change that yet because I like the idea of keeping computers and users separated. That isn't actually what you're doing by setting nss_base_hosts. Basically you're configuring ldap to look for dns information in ou=Computers. The idea of putting hosts and users in different places as far as samba is concerned is a different beast. Samba requires hosts to have a standard unix user account, ldap doesn't really know the difference since samba searches for a general posix account in the passwd scope. Let me know if that's confusing, it seems like it probably is but I don't have my good explaining head on yet. -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Information Systems Consultant Fax:701-281-1322 URL: www.ae-solutions.commailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] file open problems
Hi. am running a samba server version 3.0.5 on a gentoo linux machine, kernel 2.6.7-gentoo-r8. the client is a windows XP machine. the PDC is a windows NT 4.0 machine. this is my smb.conf: [global] workgroup = FOO hosts allow = 192.168.30.0/255.255.255.0 127.0.0.1 local master = no log file = /var/log/samba3/log.%m os level = 0 preferred master = no security = domain username map = /etc/samba/smbusers wins server = ntserver.firm-internal password server = ntserver.firm-internal load printers = no domain master = no bind interfaces only = yes interfaces = eth0 lo [tshare] comment = Test Share path = /tshare read only = no the tshare directory is empty. i am logging into the XP machine as Administrator. it gets mapped to user root. i can verify that by creating files with windows explorer and having a look at them on linux server. I am installing some proprietary commercial software we bought. it wants to put some of its data on network. if i supply this network drive from an empty share of my NT 4.0 server, all works. if i supply this network drive from my linux server, many files get installed and after a while he sais he cannot open a certain file on the network share. he asks if i have enough free space (some gigabytes are free) or if i have enough rights. that file has already been created by the setup program itself. i can open it in windows explorer. i can write there, save, erase, whatever. it works. the whole issue seems to me to be some race condition. i had a running printjob on the samba server over slow unoptimized parallel port, then suddenly the setup ran through. but it seems not be reproducible. now each time he stops on the same file. please enlighten me about where the problem could be. the setup program is a Wise installation assistent, probably this should clarify what kind of windows setup tool it is. I am not a windows expert. if i erase all files on the network share prior to the next attempt to run the setup tool, then the error will always be at the same file. but if i instead do not erase the files, he will make an error on the first file he wants to write to (which already exists from last setup). i verified that it is the first file by watching with ethereal network sniffer. he asks about information on the file, receives it, closes the file and makes error box. i tried to disable oplocks, and level2 locks. didn't change anything. i tried to fiddle around with name mangling, didn't change anything. help :) Erik -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Ldap performance
Hi Paul, Another thing that may be slowing the ldap is that I need to use scope =sub in my ldap.conf to find users and computers: So you're saying that in your ldap.conf you have things configured like so? nss_base_passwddc=homelan,dc=com,dc=br?sub With the correct indexes and enough RAM it shouldn't really matter. Yes I have this in my ldap.conf: nss_base_passwd dc=ump,dc=edu,dc=br?sub nss_base_shadow dc=ump,dc=edu,dc=br?sub nss_base_group ou=groups,dc=ump,dc=edu,dc=br?one nss_base_hosts ou=computers,dc=ump,dc=edu,dc=br I didn't change that yet because I like the idea of keeping computers and users separated. That isn't actually what you're doing by setting nss_base_hosts. Basically you're configuring ldap to look for dns information in ou=Computers. The idea of putting hosts and users in different places as far as samba is concerned is a different beast. Samba requires hosts to have a standard unix user account, ldap doesn't really know the difference since samba searches for a general posix account in the passwd scope. Let me know if that's confusing, it seems like it probably is but I don't have my good explaining head on yet. My fault, I didn't explained what mean. I have users in ou=Users,dc=homelan,dc=com,dc=br?sub and computers in ou=Computers,dc=homelan,dc=com,dc=br?one. To make it work this way I need to have nss_base_passwd dc=ump,dc=edu,dc=br?sub nss_base_shadow dc=ump,dc=edu,dc=br?sub in ldap.conf or else samba will not find the computers accounts. If I had users and computers in ou=Users I could have nss_base_passwd ou=Users,dc=ump,dc=edu,dc=br?one and I read (don't remember where) that this would make a big difference. I like my tree the way it is now, and it would be a hard work to move it all. I'd prefer to resolve this problem with the indexes configuration. Thank's Bruno. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Forcing RIDs to desired value
I found that after moving my samba server to different hardware (and diferent Linux installation), domain logons cannot find their Windows profiles and created new ones. This is caused by the different RID of the users. It seems these are calculated as 2*UID + 1000. And my UID's on new server do not match those on the old one. How to force SAMBA to provide different RIDs for the users? I do not want to run LDAP for our 20 stations and 20 users here. Thanks for help Radek Svoboda Neovision s.r.o., Prague [EMAIL PROTECTED] http://www.neovision.cz -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Forcing RIDs to desired value
Radek Svoboda schrieb: I found that after moving my samba server to different hardware (and diferent Linux installation), domain logons cannot find their Windows profiles and created new ones. This is caused by the different RID of the users. It seems these are calculated as 2*UID + 1000. And my UID's on new server do not match those on the old one. How to force SAMBA to provide different RIDs for the users? I do not want to run LDAP for our 20 stations and 20 users here. Why don't you use your old samba-databases from /var/lib/samba ? matze -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Problem when switching from NIS+ to LDAP
Please can anyone provide me with some pointers as to what is wrong with my setup. I've searched the archives, googled and RTFM but either I'm being stupid or I've done something silly. I run 2 nearly identical systems; a solaris backend server supporting Linux clients. One system uses NIS+ for *nix authentication, one uses iDS5. I wish to migrate from samba2 to samba3 on both systems, I also need the *nix systems to keep authenticating off their own information stores (I don't want SSO), but samba users to authenticate to the site AD. I have samba3 installed on both systems, it is identical as I built it on one and copied it all across to the other. The system using NIS+ works great. Samba users authenticate against the site AD and then samba uses NIS+ to get home directory info so that users get their share off the samba server. The system using iDS5 doesn't let the user attach, with the error make_server_info_info3: pdb_init_sam failed! If I put a user entry in /etc/passwd on the iDS5 system it all works great. the relevant bit of my smb.conf is: [global] workgroup = cfs ldap admin dn = CN=MCS Samba LDAP Authentication,OU=Special Accounts,DC=cfs,DC=le,DC=ac,DC=uk ldap server = spearmint.cfs.le.ac.uk ldap suffix = dc=cfs,dc=le,dc=ac,dc=uk security = ads realm = cfs.le.ac.uk passdb backend = ldapsam:ldap://spearmint.cfs.le.ac.uk and the logs generated by smbd -i -d 3 are identical until it tries to authenticate. Rather than post the full log, I'll post from where smbd does a spnego session setup; take my word it is identical before this. using SPNEGO Selected protocol NT LANMAN 1.0 Transaction 2 of length 166 switch message SMBsesssetupX (pid 14857) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 wct=12 flg2=0xc801 Doing spnego session setup NativeOS=[Unix] NativeLanMan=[Samba] PrimaryDomain=[] Got OID 1 3 6 1 4 1 311 2 2 10 Got secblob of size 47 Got NTLMSSP neg_flags=0x60080215 Transaction 3 of length 262 switch message SMBsesssetupX (pid 14857) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 wct=12 flg2=0xc801 Doing spnego session setup NativeOS=[Unix] NativeLanMan=[Samba] PrimaryDomain=[] Got user=[jal] domain=[DEBIAN_FANS] workstation=[PC14] len1=24 len2=24 Connected to LDAP server 143.210.35.83 got ldap server name [EMAIL PROTECTED], using bind path: dc=CFS,dc=LE,dc=AC,dc=UK Connecting to host=SPEARMINT Connecting to 143.210.35.83 at port 445 lsa_io_sec_qos: length c does not match size 8 check_ntlm_password: Checking password for unmapped user [EMAIL PROTECTED] with the new password interface check_ntlm_password: mapped user is: [EMAIL PROTECTED] push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 push_conn_ctx(0) : conn_ctx_stack_ndx = 0 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 Connected to LDAP server 143.210.35.83 got ldap server name [EMAIL PROTECTED], using bind path: dc=CFS,dc=LE,dc=AC,dc=UK Connecting to host=SPEARMINT Connecting to 143.210.35.83 at port 445 At this point when using iDS5 the logs give: User jal does not exist, trying to add it make_server_info_info3: pdb_init_sam failed! check_ntlm_password: Authentication for user [jal] - [jal] FAILED with error NT_STATUS_NO_SUCH_USER timeout_processing: End of file from client (client has disconnected). setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 Closing connections and when using /etc/passwd or NIS+ the logs give: push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 push_conn_ctx(0) : conn_ctx_stack_ndx = 0 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 push_conn_ctx(0) : conn_ctx_stack_ndx = 0 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 check_ntlm_password: winbind authentication for user [jal] succeeded To me this looks like, when using iDS5, the underlying OS is telling samba that jal doesn't exist but he does, honest. I'm just using the Solaris nsswitch.conf with passwd: files ldap Anyone come across this or know what I need to do? The Solaris system is patched up to date btw Thanks for any advice. John Landamore School of Mathematics Computer Science University of Leicester University Road, LEICESTER, LE1 7RH [EMAIL PROTECTED] Phone: +44 (0)116 2523410 Fax: +44 (0)116 2523604 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Can't join Domain on PDC: NT_STATUS_CANT_ACCESS_DOMAIN_INFO (PAM: 4)
Hi all, I've got the following problem when trying to join a domain on a samba pdc itself: net rpc join eccag -U root asks for password an then tells me that it cannot connect to the PDC. Winbind-log gives the following: [2004/08/31 02:29:15, 0] nsswitch/winbindd_util.c:get_trust_pw(1024) get_trust_pw: could not fetch trust account password for my domain ECCAG [2004/08/31 02:29:15, 2] nsswitch/winbindd_pam.c:winbindd_pam_auth_crap(612) NTLM CRAP authentication for user [ECCAG]\[] returned NT_STATUS_CANT_ACCESS_DOMAIN_INFO (PAM: 4) [2004/08/31 02:29:15, 5] nsswitch/winbindd.c:winbind_client_read(465) read failed on sock 20, pid 13841: EOF Can anyone help me? kind regards, Michael -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Bug?
Hi, I'm running Samba 3 with Windows XP clients and I get an extrange problem. I have a share on the server and XP clients do not show all files in the share, Linux shows all files but XP doesn't. The directory and the files on it has 0770 permissions. The share has the following config [datos] comment = Datos path = /datos create mask = 0770 directory mask = 0770 browseable = yes guest ok = no writeable = yes This is very extrange and I want to know if is this a bug of samba or a config problem. Thanks Hector Iturre ___ 100mb gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Wins sync?
Has anyone gotten wins sync between samba server working? I've got two Samba 3.0 boxes (PDC and BDC) and I want to run a wins server on each and have the two sync up is this possible? Are there plans to make it possible? Derek Not one shred of evidence supports the notion that life is serious PGP.sig Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] NTFS-type directory permissions
I apologize if this is an easy question. I am a samba newbie and the answer was not really clear to me from reading chpt 12 of the documentation. We recently moved from a Windows 2000 file server to a Samba(3.0.4) file server running on Solaris. We have about 20 top-level directories with lots of subdirectories. Right now, we have the security setup so that people can only get to the top-level directories that they should have access to. This is ok for now, but at some point we would like to get back to the way it was under NT. We have not figured out a way to control the permissions underneath these top-level directories. For example: The user is mapped to a single share that contains all of the folders (can't be more than one share since users need to access the folders from windows using the same drive letter). That share contains: Admin Helpdesk Finance HR etc. The particular user only has access to the HR directory which contains: Paychecks Personnel List etc. Now, this user should only have read access to List, no access to Personnel, and write access to Paychecks. In our current setup, he has write access to all these folders because they are only controlled by the top-level, HR, which has the Unix permissions: rwxrwx--- root hr (the user is a member of hr) Is there a way that we can have more control over the directories and files? Can someone give me some example configurations or point me to a past post or something? Thanks -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] process hang when accessing a mounted smbfs
Hi all, I installed the samba 3.0.3 on a Fedora Core 2 and then samba 3.0.6-1 and still have the following problem. When I mount a smbfs, it sucesses but processes hang when they access the mount point and smbumount returns Device busy. Since even system halt fails unmounting the filesystem, I have to switch off the machine. I tested either with smbmount command, or /etc/fstab entry and mount command, as root or common user, with a Linux or Windows server, but the problem still occurs. Note that is happens only with the first smbfs mount of the system. Applications that access another smbfs mount point mounted after the first one work very well. Thanks for any help or advice, Grégoire. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NTFS-type directory permissions
Michael Flatley wrote: Yes ACL's I apologize if this is an easy question. I am a samba newbie and the answer was not really clear to me from reading chpt 12 of the documentation. We recently moved from a Windows 2000 file server to a Samba(3.0.4) file server running on Solaris. We have about 20 top-level directories with lots of subdirectories. Right now, we have the security setup so that people can only get to the top-level directories that they should have access to. This is ok for now, but at some point we would like to get back to the way it was under NT. We have not figured out a way to control the permissions underneath these top-level directories. For example: The user is mapped to a single share that contains all of the folders (can't be more than one share since users need to access the folders from windows using the same drive letter). That share contains: Admin Helpdesk Finance HR etc. The particular user only has access to the HR directory which contains: Paychecks Personnel List etc. Now, this user should only have read access to List, no access to Personnel, and write access to Paychecks. In our current setup, he has write access to all these folders because they are only controlled by the top-level, HR, which has the Unix permissions: rwxrwx--- root hr (the user is a member of hr) Is there a way that we can have more control over the directories and files? Can someone give me some example configurations or point me to a past post or something? Thanks -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NTFS-type directory permissions
Hi, I think if you choose to compile samba with the acl flag then you will have the complex access control desired. When you do a ./configure --help ... the options will be there but I think the option for acl support is --with-acl-support or something like that. Both my samba book and a unix terminal are not available to me now. Bri- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: Re: [Samba] NTFS-type directory permissions
You have just, but the kernel and FS used for store data must using ACL... It's just patch kernel (if kernel 2.4.x) for ACL support http://acl.bestbits.at and use a FS which have this possibility : - ext3 - ReiserFS - JFS - XFS Stéphane --- Stéphane PURNELLE [EMAIL PROTECTED] Service Informatique Corman S.A. Tel : 00 32 087/342467 Hi, I think if you choose to compile samba with the acl flag then you will have the complex access control desired. When you do a ./configure --help ... the options will be there but I think the option for acl support is --with-acl-support or something like that. Both my samba book and a unix terminal are not available to me now. Bri- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NTFS-type directory permissions
You have just, but the kernel and FS used for store data must using ACL... It's just patch kernel (if kernel 2.4.x) for ACL support http://acl.bestbits.at and use a FS which have this possibility : - ext3 - ReiserFS - JFS - XFS He's on Solaris, which has ACL support built in to UFS. Just make sure that samba was compiled with it like so: [fgoserv:/]# /opt/samba/sbin/smbd -b |grep ACL HAVE_SYS_ACL_H HAVE_SOLARIS_ACLS HAVE__ACL HAVE__FACL -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Information Systems Consultant Fax:701-281-1322 URL: www.ae-solutions.commailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NTFS-type directory permissions
[EMAIL PROTECTED] wrote: You have just, but the kernel and FS used for store data must using ACL... It's just patch kernel (if kernel 2.4.x) for ACL support Oh yeah forgot that. If you've got FreeBSD 5.x it's in the default kernel. http://acl.bestbits.at and use a FS which have this possibility : - ext3 - ReiserFS - JFS - XFS Stéphane --- Stéphane PURNELLE [EMAIL PROTECTED] Service Informatique Corman S.A. Tel : 00 32 087/342467 Hi, I think if you choose to compile samba with the acl flag then you will have the complex access control desired. When you do a ./configure --help ... the options will be there but I think the option for acl support is --with-acl-support or something like that. Both my samba book and a unix terminal are not available to me now. Bri- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NTFS-type directory permissions
so does this mean that I do not have ACL support compiled? bash-2.05# ./smbd -b | grep -i ACL HAVE_SYS_ACL_H HAVE_NO_ACLS HAVE__ACL HAVE__FACL On Fri, 03 Sep 2004 11:04:56 -0500, Paul Gienger [EMAIL PROTECTED] wrote: You have just, but the kernel and FS used for store data must using ACL... It's just patch kernel (if kernel 2.4.x) for ACL support http://acl.bestbits.at and use a FS which have this possibility : - ext3 - ReiserFS - JFS - XFS He's on Solaris, which has ACL support built in to UFS. Just make sure that samba was compiled with it like so: [fgoserv:/]# /opt/samba/sbin/smbd -b |grep ACL HAVE_SYS_ACL_H HAVE_SOLARIS_ACLS HAVE__ACL HAVE__FACL -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Information Systems Consultant Fax:701-281-1322 URL: www.ae-solutions.commailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] setsockopt returning Invalid argument
I have built samba 3.0.4 on Solaris 9 and it appeared to compile and build OK. It starts up and runs with a PDC smb.conf. It becomes the brows master for the domain and generally seems to look OK. However, when I try to join a PC into the domain I get Invalid argument logged by set_socket_options() in lib/util_sock.c when trying to set TCP_NODELAY and SO_KEEPALIVE. This is followed by get_peer_addr() failing with Transport endpoint not connected. The attempt to join the domain fails. Any ideas please? Phil. --- Phil Chambers ([EMAIL PROTECTED]) University of Exeter -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Winbindd can't find ldap server
Winbindd is erroring out with can't find ldap server. LDAP is ADS W2K, the samba server is 3.0.5 and net join ads succeded. I have idmap_backend = ldap:ldap://ldap.mydomain.com. What am I missing. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] smbclient: support for long share names..?
I am running smbclient: Version 3.0.6-SUSE (SLES 8.0) I am still unable to see any printer shares with names longer than 12 characters. Does anyone have an idea how to resolve this? [Please cc: me with any replies] -Nathan On Fri, 22 Nov 2002, Diana McKenna wrote: If no one has any further information on this, I'll submit this as a bug. This is a known limitation of the fact that samba-2.x does NOT support true UniCode on the wire. This limitation should disappear in Samba-3.0.0 since it handles UniCode. - John T. Thanks! Diana At 03:07 PM 11/19/2002 11/19/2002, John Benedetto wrote: I thought the 13 character limit was a 'feature' of NT, and thus Samba reflects that feature, too... anyone know? --On Tuesday, November 19, 2002 4:56 PM -0500 Diana McKenna dmckenna at mathworks.com http://lists.samba.org/mailman/listinfo/samba wrote: Hello All, If I create a 13 char long share on a filer or a windows workstation (a windows 2000 workstation for example) and then run sbmclient to list the shares on that system smbclient will not list any shares greater than 12 chars long. I can see and access the long share name on my windows 2000 system and I can see it on the system where the share was created but smbclient will not list it. -- John H Terpstra Email: jht at samba.org http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Forcing RIDs to desired value
On Fri, 3 Sep 2004, Matthias Spork wrote: Radek Svoboda schrieb: I found that after moving my samba server to different hardware (and diferent Linux installation), domain logons cannot find their Windows profiles and created new ones. This is caused by the different RID of the users. It seems these are calculated as 2*UID + 1000. And my UID's on new server do not match those on the old one. How to force SAMBA to provide different RIDs for the users? I do not want to run LDAP for our 20 stations and 20 users here. Why don't you use your old samba-databases from /var/lib/samba ? matze Actually I did. But this copies only SID of the server (stored in secrets.tdb), not the RIDs. It seems that samba calculates them by the fixed algorithm as 2*UID+1000. And because I must have different UIDs on the new system, the profile mapping in Windows does not work. Best regards Radek Svoboda [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Winbindd - ADS errors
Have a Samba 3.0.5 joined to W2K ADS. Getting very slow logon responses due to winbindd problem. smb.conf and snip of winbindd errors follows. Any help would be appreciated. smb.conf: workgroup = FSK realm = FSKLAW.NET netbios name = FSKKLAW server string = FSKKLAW interfaces = security = ADS obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*al l*authentication*tokens*updated*successfully* unix password sync = Yes log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 os level = 33 preferred master = No default keytab name = FILE:/etc/krb5.keytab local master = No domain master = No wins server = 192.168.62.1 remote announce = 192.168.61.1 192.168.62.1 remote browse sync = 192.168.61.1 192.168.62.1 ldap server = ldap://ldap.fsklaw.net ldap admin dn = tms3 ldap port = 389 idmap backend = ldap:ldap://ldap.fsklaw.net idmap uid = 1-2 idmap gid = 1-2 template homedir = /usr/templates/%D/%U template shell = /bin/ssh winbind errors: [2004/09/03 10:50:17, 0] passdb/pdb_ldap.c:ldapsam_setsamgrent(2239) ldapsam_setsamgrent: LDAP search failed: Can't contact LDAP server [2004/09/03 10:50:17, 0] passdb/pdb_ldap.c:ldapsam_enum_group_mapping(2304) ldapsam_enum_group_mapping: Unable to open passdb [2004/09/03 10:50:17, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 1 try! [2004/09/03 10:50:17, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 2 try! [2004/09/03 10:50:18, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 3 try! [2004/09/03 10:50:19, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 4 try! [2004/09/03 10:50:21, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 5 try! [2004/09/03 10:50:23, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 6 try! [2004/09/03 10:50:25, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 7 try! [2004/09/03 10:50:29, 1] lib/smbldap.c:smbldap_retry_open(909) Connection to LDAP Server failed for the 8 try! [2004/09/03 10:50:29, 0] lib/smbldap.c:smbldap_search(971) smbldap_search: LDAP server is down! [2004/09/03 10:50:29, 0] passdb/pdb_ldap.c:ldapsam_setsamgrent(2239) ldapsam_setsamgrent: LDAP search failed: Can't contact LDAP server [2004/09/03 10:50:29, 0] passdb/pdb_ldap.c:ldapsam_enum_group_mapping(2304) ldapsam_enum_group_mapping: Unable to open passdb -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Winbindd can't find ldap server
Are you actually storing your mappings on the ADS (instead of default tdb). If so, I am interested to see your ADS schema modifications. I have been wondering if anyone has tried that yet. Otherwise, with security = ads, you do not need the idmap parm, it stores the mappings in the winbindd_idmap.tdb (or the cache). PS - I think it's idmap backend, not idmap_backend. Eric Roseme Hewlett-Packard Tom Skeren wrote: Winbindd is erroring out with can't find ldap server. LDAP is ADS W2K, the samba server is 3.0.5 and net join ads succeded. I have idmap_backend = ldap:ldap://ldap.mydomain.com. What am I missing. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] HELP
Hi Respected members, I am a student of computer science. I have in my course of study a project to be done. I am interested in doing project related to Samba. I have got one of the ideas for the project. Can anybody be kindly help me regarding this idea? Please do reply about this idea. In the project I am planning to achieve server independency , means ---Consider an organization is having 2 kinds of server SAMBA and VFS, then if a request is made from a Samba client and required file is on VFS server then the request should get satisfied. I will be planning to convert a SAMBA request into a VFS request that is finally be given to the VFS server. The client does not care about the thing that to which server it has made request. Also, I have to make the similar thing in case of VFS client and SAMBA server. In this way it will help the system administrator to achieve a server independency. Can anybody please rate this idea as very simple simple good to do a project very difficult best one don't do such project. If the ideas is not up to the mark, can anybody please send me a good idea for the project. Please Thank You. Regards, Amar. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Winbindd can't find ldap server
eric roseme wrote: Are you actually storing your mappings on the ADS (instead of default tdb). If so, I am interested to see your ADS schema modifications. I have been wondering if anyone has tried that yet. Nope, pretty much a default setup. Otherwise, with security = ads, you do not need the idmap parm, it stores the mappings in the winbindd_idmap.tdb (or the cache). PS - I think it's idmap backend, not idmap_backend. Give it a shot, but testparm didn't burp up any errors Eric Roseme Hewlett-Packard Tom Skeren wrote: Winbindd is erroring out with can't find ldap server. LDAP is ADS W2K, the samba server is 3.0.5 and net join ads succeded. I have idmap_backend = ldap:ldap://ldap.mydomain.com. What am I missing. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] smbpasswd in samba 3.0
For scripting then, what would the appropriate syntax be? smbpasswd -s -a username password this was working fine for me in 2.2.x and 3.0.x until the upgrade 3.0.6 If I want to change password with a script - i.e. single line of code. what is the appropriate command syntax in 3.0.6? Jake Holmquist Manhattan College [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] smbclient -k fails
How do I figure out why smbclient -k -L name of computer fails with session setup failed: NT_STATUS_OK? I am running Debian sarge, which has been joined to a Windows 2003 domain. When I login via gdm, I login with my domain username and password. wbinfo -u and wbinfo -g work just fine. Would anyone please help me figure out what the issue is with my setup that causes smbclient -k to fail? Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbclient -k fails
Basic question but do you have tickets cached from the DC? This would be done with kinit, and they could be listed with klist. Watch out for expired ones. On Fri, 2004-09-03 at 17:23, hunger wrote: How do I figure out why smbclient -k -L name of computer fails with session setup failed: NT_STATUS_OK? I am running Debian sarge, which has been joined to a Windows 2003 domain. When I login via gdm, I login with my domain username and password. wbinfo -u and wbinfo -g work just fine. Would anyone please help me figure out what the issue is with my setup that causes smbclient -k to fail? Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] kinit username@REALM
Hello list: Do I need to do the command kinit [EMAIL PROTECTED] every single time I boot up my system? Also, why does the kinit username not accept the winbind separator +? For example: kinit [EMAIL PROTECTED] instead of just [EMAIL PROTECTED]. I have my system setup to login via gdm with my domain user account (which uses the winbind separator domain+user), so why can't kinit login at that time? This would make it seamless, instead of having to open a command line each time the system boots and manually running the kinit command. Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Browsing a across subnets
Hi, I've got a small network at home with a topology as follows: -- Cable Modem -- Router 1 -- Switch 1 -- Server 1 | Router 2/Switch 2 --+-- Server 2 | | | WAP 1 --+ +-- WAP 2 +-- Client 1 | +-- Client 2 Router 1 and WAP 1 have NAT enabled. Router 2 and WAP 2 do not have NAT enabled. Server 1 and Server 2 are Linux boxes. Client 1 and Client 2 are Win XP I use the following sub-nets: Switch 1 - 192.168.1.0/24 Switch 2 - 192.168.2.0/24 WAP 1- 192.168.3.0/24 WAP 2- 192.168.4.0/24 A caching name server runs on Server 1 and also an internal DNS service. There is full connectivity between all machines on the internal side of router 2, i.e. Client 1, Client 2, and Server 2 can all ping each other. Even without introducing SAMBA into the equation I am not able to successfully browse shares/printers on client 1 from client 2. Is this possible across different subnets? Are there any special steps I need to take? I have installed SAMBA on Server 2 and would like to be able to browse shares on Server 2 from both Client 1 and Client 2. Can anyone point me at any resources that might help me work this out? Thanks, R. -- http://robinbowes.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbpasswd in samba 3.0
Try it: # (echo password; echo password) | smbpasswd -s -a username Best Regards! Jacky Kim . For scripting then, what would the appropriate syntax be? smbpasswd -s -a username password this was working fine for me in 2.2.x and 3.0.x until the upgrade 3.0.6 If I want to change password with a script - i.e. single line of code. what is the appropriate command syntax in 3.0.6? Jake Holmquist Manhattan College [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Browsing a across subnets
On Fri, 2004-09-03 at 20:28, [EMAIL PROTECTED] wrote: I have installed SAMBA on Server 2 and would like to be able to browse shares on Server 2 from both Client 1 and Client 2. Can anyone point me at any resources that might help me work this out? According to O'Reily's Using Samba there are 3 rules for browsing across subnets: You must have a local master browser on each subnet in the domain. You must have a domain master browser somewhere in the domain You should have a WINS server on the network with each system configured to use it. These are generally set with the election process. domain master browser (ideally the PDC): [global] domain master = yes os level = 255 preferred master = yes local master = yes remote browse sync = space separated ip addy's of other local masters (although I'm not sure if the last is necessary on the domain master) local master browsers: [global] preferred master = yes os level = 33 local master = yes remote browse sync = space separated ip addy's of other local masters Thanks, R. Cheers, lance -- Lance Levsen, Catprint Computing Linux Systems and programming Saskatoon, SK., CA. gpg --keyserver wwwkeys.pgp.net --recv-keys 0xF2DA79C8 signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
OVMS Samba and Win2000 Native mode
Hi Rob: I am also trying to get SAMBA to run in windows environment with OVMS. Have you made any progress? Thanks, Len -Len Whitwer Puget Sound Data Systems, Inc. 19501 144th Ave. NE Suite D-100 Woodinville, WA 98072 e-mailmailto:[EMAIL PROTECTED] Line Card http://www.psds.com/linecard/lc-len.pdf Internet: http://www.psds.com Tel: (425) 488-0710 Fax: (425) 488-6414 PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
Re: svn commit: samba r2199 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc
On Fri, 2004-09-03 at 07:16, [EMAIL PROTECTED] wrote: Author: tridge Date: 2004-09-03 05:16:25 + (Fri, 03 Sep 2004) New Revision: 2199 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2199nolog=1 Log: the unknown 16 bit number in lsa_LookupPrivDisplayName() is a language ID, so the client can choose what language they get the privilege description in. this is the first time I've seen a language ID on the wire in CIFS. Ouch, this mean we will have to have the translation for all the language we support? :-/ Seem we will need to make our version of gettext... :-) Simo. -- Simo Sorce- [EMAIL PROTECTED] Samba Team- http://www.samba.org Italian Site - http://samba.xsec.it
svn commit: samba r2200 - in branches/SAMBA_4_0/source/torture: . rpc
Author: tridge Date: 2004-09-03 08:28:24 + (Fri, 03 Sep 2004) New Revision: 2200 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torturerev=2200nolog=1 Log: solved another piece of the lsakey puzzle - the session key for lsa encryption on ncacn_ip_tcp is a fixed buffer! I don't yet know what the buffer is, but this code proves its the same buffer for different w2k3 servers and different user passwords, plus it is independent of the negotiated NTLMSSP session key. Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c branches/SAMBA_4_0/source/torture/rpc/testjoin.c branches/SAMBA_4_0/source/torture/torture.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 05:16:25 UTC (rev 2199) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 08:28:24 UTC (rev 2200) @@ -496,6 +496,153 @@ return ret; } + +static BOOL test_lsakey_puzzle(struct dcerpc_pipe *p_smb, + TALLOC_CTX *mem_ctx, + struct policy_handle *handle_smb) +{ +NTSTATUS status; +struct dcerpc_pipe *p_tcp; + struct policy_handle handle_tcp, sec_handle, sec_handle2; + struct lsa_CreateSecret cr; + struct lsa_OpenSecret or; + struct lsa_SetSecret sr; + struct lsa_QuerySecret qr; + char *secname; + const char *secret1 = AA; + DATA_BLOB session_key, blob1, blob2; + DATA_BLOB enc_key; + NTTIME old_mtime, new_mtime; + struct lsa_DATA_BUF buf1; + struct lsa_DATA_BUF_PTR bufp1; + + status = torture_rpc_connection_transport(p_tcp, + DCERPC_LSARPC_NAME, + DCERPC_LSARPC_UUID, + DCERPC_LSARPC_VERSION, + NCACN_IP_TCP); + if (!NT_STATUS_IS_OK(status)) { + return False; + } + + if (!test_OpenPolicy2(p_tcp, mem_ctx, handle_tcp)) { + return False; + } + + asprintf(secname, torturesecret-%u, (uint_t)random()); + + printf(calling CreateSecret on %s\n, secname); + + init_lsa_Name(cr.in.name, secname); + + cr.in.handle = handle_smb; + cr.in.access_mask = SEC_RIGHTS_MAXIMUM_ALLOWED; + cr.out.sec_handle = sec_handle; + + status = dcerpc_lsa_CreateSecret(p_smb, mem_ctx, cr); + if (!NT_STATUS_IS_OK(status)) { + printf(CreateSecret failed - %s\n, nt_errstr(status)); + return False; + } + + status = dcerpc_fetch_session_key(p_smb, session_key); + if (!NT_STATUS_IS_OK(status)) { + printf(dcerpc_fetch_session_key failed - %s\n, nt_errstr(status)); + return False; + } + + printf(SMB session key:\n); + dump_data(0, session_key.data, session_key.length); + + enc_key = sess_encrypt_string(secret1, session_key); + + blob1 = data_blob_talloc(mem_ctx, enc_key.data, enc_key.length); + sess_crypt_blob(blob1, enc_key, session_key, False); + + printf(Plain-text:\n); + dump_data(0, blob1.data, blob1.length); + + printf(SMB encrypted:\n); + dump_data(0, enc_key.data, enc_key.length); + + sr.in.handle = sec_handle; + sr.in.new_val = buf1; + sr.in.old_val = NULL; + sr.in.new_val-data = enc_key.data; + sr.in.new_val-length = enc_key.length; + sr.in.new_val-size = enc_key.length; + + printf(calling SetSecret\n); + + status = dcerpc_lsa_SetSecret(p_smb, mem_ctx, sr); + if (!NT_STATUS_IS_OK(status)) { + printf(SetSecret failed - %s\n, nt_errstr(status)); + return False; + } + + or.in.handle = handle_tcp; + or.in.access_mask = SEC_RIGHTS_MAXIMUM_ALLOWED; + or.in.name = cr.in.name; + or.out.sec_handle = sec_handle2; + + printf(Calling OpenSecret\n); + + status = dcerpc_lsa_OpenSecret(p_tcp, mem_ctx, or); + if (!NT_STATUS_IS_OK(status)) { + printf(OpenSecret failed - %s\n, nt_errstr(status)); + return False; + } + + ZERO_STRUCT(new_mtime); + ZERO_STRUCT(old_mtime); + + /* fetch the secret back again */ + qr.in.handle = sec_handle2; + qr.in.new_val = bufp1; + qr.in.new_mtime = new_mtime; + qr.in.old_val = NULL; + qr.in.old_mtime = NULL; + + bufp1.buf = NULL; + + status = dcerpc_lsa_QuerySecret(p_tcp, mem_ctx, qr); + if (!NT_STATUS_IS_OK(status)) { + printf(QuerySecret failed - %s\n, nt_errstr(status)); + return False; + } + + status
svn commit: samba r2201 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: tridge Date: 2004-09-03 08:29:07 + (Fri, 03 Sep 2004) New Revision: 2201 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rpcrev=2201nolog=1 Log: removed an exit I accidentially left in Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 08:28:24 UTC (rev 2200) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 08:29:07 UTC (rev 2201) @@ -1043,7 +1043,6 @@ if (!test_lsakey_puzzle(p, mem_ctx, handle)) { ret = False; } - exit(1); if (!test_many_LookupSids(p, mem_ctx, handle)) { ret = False;
svn commit: samba r2202 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: tridge Date: 2004-09-03 09:09:59 + (Fri, 03 Sep 2004) New Revision: 2202 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rpcrev=2202nolog=1 Log: don't close the smb pipe after the puzzle test Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 08:29:07 UTC (rev 2201) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 09:09:59 UTC (rev 2202) @@ -635,8 +635,6 @@ printf(Test-text:\n); dump_data(0, blob2.data, blob2.length); - talloc_destroy(mem_ctx); -torture_rpc_close(p_smb); torture_rpc_close(p_tcp); return True;
svn commit: samba r2203 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: tridge Date: 2004-09-03 09:17:32 + (Fri, 03 Sep 2004) New Revision: 2203 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rpcrev=2203nolog=1 Log: delete the key after testing, so as not to clutter the server with random keys Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 09:09:59 UTC (rev 2202) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-09-03 09:17:32 UTC (rev 2203) @@ -637,6 +637,8 @@ torture_rpc_close(p_tcp); + test_Delete(p_smb, mem_ctx, sec_handle); + return True; }
svn commit: samba r2204 - in branches/SAMBA_4_0/source/librpc: idl ndr
Author: tridge Date: 2004-09-03 12:10:34 + (Fri, 03 Sep 2004) New Revision: 2204 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/librpcrev=2204nolog=1 Log: added [flag(RELATIVE_CURRENT)] to change [relative] pointer behaviour for this struct and all sub-structures to be like spoolss relative pointers (where offset is relative to current position). volker will test this for me :) Modified: branches/SAMBA_4_0/source/librpc/idl/idl_types.h branches/SAMBA_4_0/source/librpc/ndr/libndr.h branches/SAMBA_4_0/source/librpc/ndr/ndr.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/idl_types.h === --- branches/SAMBA_4_0/source/librpc/idl/idl_types.h2004-09-03 09:17:32 UTC (rev 2203) +++ branches/SAMBA_4_0/source/librpc/idl/idl_types.h2004-09-03 12:10:34 UTC (rev 2204) @@ -80,5 +80,7 @@ */ #define NDR_PAHEX LIBNDR_PRINT_ARRAY_HEX +/* this enables spoolss style relative ptrs */ +#define RELATIVE_CURRENT LIBNDR_FLAG_RELATIVE_CURRENT #define bool8 uint8 Modified: branches/SAMBA_4_0/source/librpc/ndr/libndr.h === --- branches/SAMBA_4_0/source/librpc/ndr/libndr.h 2004-09-03 09:17:32 UTC (rev 2203) +++ branches/SAMBA_4_0/source/librpc/ndr/libndr.h 2004-09-03 12:10:34 UTC (rev 2204) @@ -115,7 +115,11 @@ /* used to check if alignment padding is zero */ #define LIBNDR_FLAG_PAD_CHECK (118) +/* used to indicate spoolss style relative pointers (relative to current + offset, not base) */ +#define LIBNDR_FLAG_RELATIVE_CURRENT (119) + /* useful macro for debugging */ #define NDR_PRINT_DEBUG(type, p) ndr_print_debug((ndr_print_fn_t)ndr_print_ ##type, #p, p) #define NDR_PRINT_UNION_DEBUG(type, level, p) ndr_print_union_debug((ndr_print_union_fn_t)ndr_print_ ##type, #p, level, p) Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c === --- branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2004-09-03 09:17:32 UTC (rev 2203) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2004-09-03 12:10:34 UTC (rev 2204) @@ -639,11 +639,11 @@ return NT_STATUS_OK; } ndr_pull_save(ndr, save); -/* the old way of handling relative pointers appears to be - wrong, and there doesn't seem to be anything relying on it, - but I am keeping the code around in case I missed a - critical use for it (tridge, august 2004) */ - NDR_CHECK(ndr_pull_set_offset(ndr, ofs)); + if (ndr-flags LIBNDR_FLAG_RELATIVE_CURRENT) { + NDR_CHECK(ndr_pull_set_offset(ndr, ofs + ndr-offset - 4)); + } else { + NDR_CHECK(ndr_pull_set_offset(ndr, ofs)); + } NDR_CHECK(ndr_pull_subcontext(ndr, ndr2, ndr-data_size - ndr-offset)); /* strings must be allocated by the backend functions */ if (ndr-flags LIBNDR_STRING_FLAGS) { @@ -748,7 +748,11 @@ if (ndr-offset == 0) { return NT_STATUS_INTERNAL_ERROR; } - NDR_CHECK(ndr_push_uint32(ndr, save.offset)); + if (ndr-flags LIBNDR_FLAG_RELATIVE_CURRENT) { + NDR_CHECK(ndr_push_uint32(ndr, save.offset - ndr-offset)); + } else { + NDR_CHECK(ndr_push_uint32(ndr, save.offset)); + } ndr_push_restore(ndr, save); return NT_STATUS_OK; }
svn commit: samba r2205 - in branches/SAMBA_4_0/source/librpc/ndr: .
Author: tridge Date: 2004-09-03 12:52:04 + (Fri, 03 Sep 2004) New Revision: 2205 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/librpc/ndrrev=2205nolog=1 Log: fixed an incorrect cast that broke relative strings in spoolss Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c === --- branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c2004-09-03 12:10:34 UTC (rev 2204) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c2004-09-03 12:52:04 UTC (rev 2205) @@ -548,7 +548,7 @@ break; case LIBNDR_FLAG_STR_NULLTERM: - len1 = strnlen_w((const smb_ucs2_t *)ndr-data+ndr-offset, + len1 = strnlen_w((const smb_ucs2_t *)(ndr-data+ndr-offset), (ndr-data_size - ndr-offset)/2); if (len1*2+2 = ndr-data_size - ndr-offset) { len1++;
svn commit: samba r2206 - in branches/SAMBA_4_0/source/librpc/ndr: .
Author: tridge Date: 2004-09-03 12:58:19 + (Fri, 03 Sep 2004) New Revision: 2206 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/librpc/ndrrev=2206nolog=1 Log: another (untested) attempt to make RELATIVE_CURRENT work for volker, plus removed unused ndr_pull_relative() function once volker commits a test for this I'll be able to ensure it really works as expected Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c === --- branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2004-09-03 12:52:04 UTC (rev 2205) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2004-09-03 12:58:19 UTC (rev 2206) @@ -620,46 +620,7 @@ { } - /* - pull a relative structure -*/ -NTSTATUS ndr_pull_relative(struct ndr_pull *ndr, const void **buf, size_t size, - NTSTATUS (*fn)(struct ndr_pull *, int ndr_flags, void *)) -{ - struct ndr_pull *ndr2; - uint32_t ofs; - struct ndr_pull_save save; - void *p; - - NDR_ALLOC(ndr, ndr2); - NDR_CHECK(ndr_pull_uint32(ndr, ofs)); - if (ofs == 0) { - (*buf) = NULL; - return NT_STATUS_OK; - } - ndr_pull_save(ndr, save); - if (ndr-flags LIBNDR_FLAG_RELATIVE_CURRENT) { - NDR_CHECK(ndr_pull_set_offset(ndr, ofs + ndr-offset - 4)); - } else { - NDR_CHECK(ndr_pull_set_offset(ndr, ofs)); - } - NDR_CHECK(ndr_pull_subcontext(ndr, ndr2, ndr-data_size - ndr-offset)); - /* strings must be allocated by the backend functions */ - if (ndr-flags LIBNDR_STRING_FLAGS) { - NDR_CHECK(fn(ndr2, NDR_SCALARS|NDR_BUFFERS, p)); - } else { - NDR_ALLOC_SIZE(ndr, p, size); - NDR_CHECK(fn(ndr2, NDR_SCALARS|NDR_BUFFERS, p)); - } - (*buf) = p; - ndr_pull_restore(ndr, save); - talloc_free(ndr2); - return NT_STATUS_OK; -} - - -/* store a token in the ndr context, for later retrieval */ static NTSTATUS ndr_token_store(TALLOC_CTX *mem_ctx, @@ -700,7 +661,12 @@ */ NTSTATUS ndr_pull_relative1(struct ndr_pull *ndr, const void *p, uint32_t rel_offset) { - return ndr_token_store(ndr, ndr-relative_list, p, rel_offset); + if (ndr-flags LIBNDR_FLAG_RELATIVE_CURRENT) { + return ndr_token_store(ndr, ndr-relative_list, p, + rel_offset + ndr-offset); + } else { + return ndr_token_store(ndr, ndr-relative_list, p, rel_offset); + } } /*
svn commit: samba r2207 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: tridge Date: 2004-09-03 13:20:31 + (Fri, 03 Sep 2004) New Revision: 2207 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rpcrev=2207nolog=1 Log: this bug caued valgrind to consume infinite memory till the kernel killed it :( Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c === --- branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2004-09-03 12:58:19 UTC (rev 2206) +++ branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2004-09-03 13:20:31 UTC (rev 2207) @@ -836,6 +836,7 @@ r.in.architecture = W32X86; r.in.level = 1; buf_size = 0; + r.in.buffer = NULL; r.in.buf_size = r.out.buf_size = buf_size; r.in.client_major_version = 0; r.in.client_minor_version = 0;
svn commit: samba r2209 - in branches/SAMBA_4_0/source: librpc/idl librpc/ndr torture/rpc
Author: tridge Date: 2004-09-03 13:36:58 + (Fri, 03 Sep 2004) New Revision: 2209 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2209nolog=1 Log: patch from volker to add EnumPorts spoolss IDL and test code the ndr-offset=0; stuff is ugly. We need a better way to handle this. Modified: branches/SAMBA_4_0/source/librpc/idl/spoolss.idl branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c branches/SAMBA_4_0/source/torture/rpc/spoolss.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/spoolss.idl === --- branches/SAMBA_4_0/source/librpc/idl/spoolss.idl2004-09-03 13:21:52 UTC (rev 2208) +++ branches/SAMBA_4_0/source/librpc/idl/spoolss.idl2004-09-03 13:36:58 UTC (rev 2209) @@ -464,9 +464,31 @@ [out] uint32 count ); + typedef [flag(RELATIVE_CURRENT)] struct { + [relative] nstring *port_name; + } spoolss_PortInfo1; + + typedef struct { + [relative] nstring *port_name; + [relative] nstring *monitor_name; + [relative] nstring *description; + uint32 port_type; + uint32 reserved; + } spoolss_PortInfo2; + + typedef [nondiscriminant,public] union { + [case(1)] spoolss_PortInfo1 info1; + [case(2)] spoolss_PortInfo2 info2; + } spoolss_PortInfo; + /**/ /* Function: 0x23 */ WERROR spoolss_EnumPorts( + [in] unistr *servername, + [in] uint32 level, + [in,out] DATA_BLOB *buffer, + [in,out,ref] uint32 *buf_size, + [out] uint32 count ); /**/ Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c === --- branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c 2004-09-03 13:21:52 UTC (rev 2208) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c 2004-09-03 13:36:58 UTC (rev 2209) @@ -36,6 +36,8 @@ } NDR_ALLOC_N(ndr, *info, count); for (i=0;icount;i++) { + ndr-data += ndr-offset; + ndr-offset = 0; NDR_CHECK(ndr_pull_spoolss_PrinterInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, (*info)[i])); } return NT_STATUS_OK; @@ -91,3 +93,22 @@ } return NT_STATUS_OK; } + +NTSTATUS pull_spoolss_PortInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, + uint32_t level, uint32_t count, + union spoolss_PortInfo **info) +{ + int i; + struct ndr_pull *ndr; + ndr = ndr_pull_init_blob(blob, mem_ctx); + if (!ndr) { + return NT_STATUS_NO_MEMORY; + } + NDR_ALLOC_N(ndr, *info, count); + for (i=0;icount;i++) { + ndr-data += ndr-offset; + ndr-offset = 0; + NDR_CHECK(ndr_pull_spoolss_PortInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, (*info)[i])); + } + return NT_STATUS_OK; +} Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c === --- branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2004-09-03 13:21:52 UTC (rev 2208) +++ branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2004-09-03 13:36:58 UTC (rev 2209) @@ -270,6 +270,68 @@ return ret; } +static BOOL test_EnumPorts(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) +{ + NTSTATUS status; + struct spoolss_EnumPorts r; + uint32_t buf_size; + + r.in.servername = talloc_asprintf(mem_ctx, %s, + dcerpc_server_name(p)); + r.in.level = 2; + r.in.buffer = NULL; + buf_size = 0; + r.in.buf_size = buf_size; + r.out.buf_size = buf_size; + + printf(Testing EnumPorts\n); + + status = dcerpc_spoolss_EnumPorts(p, mem_ctx, r); + + if (!NT_STATUS_IS_OK(status)) { + printf(EnumPorts failed -- %s\n, nt_errstr(status)); + return False; + } + + if (W_ERROR_EQUAL(r.out.result, WERR_INSUFFICIENT_BUFFER)) { + DATA_BLOB blob = data_blob_talloc(mem_ctx, NULL, buf_size); + union spoolss_PortInfo *info; + int j; + + data_blob_clear(blob); + r.in.buffer = blob; + + status = dcerpc_spoolss_EnumPorts(p, mem_ctx, r); + + if (!NT_STATUS_IS_OK(status)) { + printf(EnumPorts failed -- %s\n, nt_errstr(status)); + return False; + } + + if (!r.out.buffer) { + printf(No ports returned); + return False; + } + + status =
svn commit: samba r2211 - in trunk/examples/pdb: .
Author: idra Date: 2004-09-03 13:42:53 + (Fri, 03 Sep 2004) New Revision: 2211 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/examples/pdbrev=2211nolog=1 Log: Port fix from 3.0 Modified: trunk/examples/pdb/pdb_test.c Changeset: Modified: trunk/examples/pdb/pdb_test.c === --- trunk/examples/pdb/pdb_test.c 2004-09-03 13:42:02 UTC (rev 2210) +++ trunk/examples/pdb/pdb_test.c 2004-09-03 13:42:53 UTC (rev 2211) @@ -114,8 +114,8 @@ (*pdb_method)-name = testsam; - /* Functions your pdb module doesn't provide should be set -* to NULL */ + /* Functions your pdb module doesn't provide should not be + set, make_pdb_methods() already provide suitable defaults for missing functions */ (*pdb_method)-setsampwent = testsam_setsampwent; (*pdb_method)-endsampwent = testsam_endsampwent;
svn commit: samba-docs r209 - in trunk/smbdotconf/tuning: .
Author: jelmer Date: 2004-09-03 17:38:22 + (Fri, 03 Sep 2004) New Revision: 209 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-docspath=/trunk/smbdotconf/tuningrev=209nolog=1 Log: Default is yes now Modified: trunk/smbdotconf/tuning/usesendfile.xml Changeset: Modified: trunk/smbdotconf/tuning/usesendfile.xml === --- trunk/smbdotconf/tuning/usesendfile.xml 2004-08-29 12:30:43 UTC (rev 208) +++ trunk/smbdotconf/tuning/usesendfile.xml 2004-09-03 17:38:22 UTC (rev 209) @@ -3,14 +3,11 @@ type=boolean xmlns:samba=http://samba.org/common; description -paraIf this parameter is constantyes/constant, and Samba -was built with the --with-sendfile-support option, and the underlying operating -system supports sendfile system call, then some SMB read calls (mainly ReadAndX + paraIf this parameter is constantyes/constant, and the constantsendfile()/constant system call is supported by the underlying operating system, then some SMB read calls (mainly ReadAndX and ReadRaw) will use the more efficient sendfile system call for files that are exclusively oplocked. This may make more efficient use of the system CPU's -and cause Samba to be faster. This is off by default as it's effects are unknown -as yet. In particular, it appears that Windows 9X clients fail to work against -Samba with this parameter enabled in config./para +and cause Samba to be faster. +/para /description value type=defaultyes/value
svn commit: samba-docs r210 - in trunk/smbdotconf/tuning: .
Author: jra Date: 2004-09-03 17:43:31 + (Fri, 03 Sep 2004) New Revision: 210 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-docspath=/trunk/smbdotconf/tuningrev=210nolog=1 Log: Updated with sepcifics of how we determine sendfile. Jeremy. Modified: trunk/smbdotconf/tuning/usesendfile.xml Changeset: Modified: trunk/smbdotconf/tuning/usesendfile.xml === --- trunk/smbdotconf/tuning/usesendfile.xml 2004-09-03 17:38:22 UTC (rev 209) +++ trunk/smbdotconf/tuning/usesendfile.xml 2004-09-03 17:43:31 UTC (rev 210) @@ -6,7 +6,9 @@ paraIf this parameter is constantyes/constant, and the constantsendfile()/constant system call is supported by the underlying operating system, then some SMB read calls (mainly ReadAndX and ReadRaw) will use the more efficient sendfile system call for files that are exclusively oplocked. This may make more efficient use of the system CPU's -and cause Samba to be faster. +and cause Samba to be faster. Samba automatically turns this off for clients +that use protocol levels lower than NT LM 0.12 and when it detects a client is +Windows 9x (using sendfile from Linux will cause these clients to fail). /para /description
svn commit: samba r2212 - in branches/SAMBA_4_0/source/lib: .
Author: jra Date: 2004-09-03 17:44:07 + (Fri, 03 Sep 2004) New Revision: 2212 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/librev=2212nolog=1 Log: Optimisation. Passes masktest against W2K3. Jeremy. Modified: branches/SAMBA_4_0/source/lib/ms_fnmatch.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ms_fnmatch.c === --- branches/SAMBA_4_0/source/lib/ms_fnmatch.c 2004-09-03 13:42:53 UTC (rev 2211) +++ branches/SAMBA_4_0/source/lib/ms_fnmatch.c 2004-09-03 17:44:07 UTC (rev 2212) @@ -173,6 +173,9 @@ break; case UCS2_CHAR('*'): + while (*p == UCS2_CHAR('*')) { + p++; + } for (; *n; n++) { if (ms_fnmatch_w(p, n, protocol) == 0) return 0; }
svn commit: samba r2213 - in branches/SAMBA_3_0/source/lib: .
Author: jra Date: 2004-09-03 17:44:27 + (Fri, 03 Sep 2004) New Revision: 2213 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/librev=2213nolog=1 Log: Optimisation. Passes masktest against W2K3. Jeremy. Modified: branches/SAMBA_3_0/source/lib/ms_fnmatch.c Changeset: Modified: branches/SAMBA_3_0/source/lib/ms_fnmatch.c === --- branches/SAMBA_3_0/source/lib/ms_fnmatch.c 2004-09-03 17:44:07 UTC (rev 2212) +++ branches/SAMBA_3_0/source/lib/ms_fnmatch.c 2004-09-03 17:44:27 UTC (rev 2213) @@ -179,6 +179,9 @@ break; case UCS2_CHAR('*'): + while (*p == UCS2_CHAR('*')) { + p++; + } for (; *n; n++) { if (ms_fnmatch_w(p, n, protocol, case_sensitive) == 0) return 0; }
svn commit: samba r2214 - in trunk/source/lib: .
Author: jra Date: 2004-09-03 17:45:08 + (Fri, 03 Sep 2004) New Revision: 2214 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/source/librev=2214nolog=1 Log: Optimisation. Passes masktest against W2K3. Jeremy. Modified: trunk/source/lib/ms_fnmatch.c Changeset: Modified: trunk/source/lib/ms_fnmatch.c === --- trunk/source/lib/ms_fnmatch.c 2004-09-03 17:44:27 UTC (rev 2213) +++ trunk/source/lib/ms_fnmatch.c 2004-09-03 17:45:08 UTC (rev 2214) @@ -179,6 +179,9 @@ break; case UCS2_CHAR('*'): + while (*p == UCS2_CHAR('*')) { + p++; + } for (; *n; n++) { if (ms_fnmatch_w(p, n, protocol, case_sensitive) == 0) return 0; }
svn commit: samba-web r307 - in trunk: . devel docs download history support team
Author: deryck Date: 2004-09-03 19:19:31 + (Fri, 03 Sep 2004) New Revision: 307 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=307nolog=1 Log: This adds a set of templates in each directory to help with updating the site. Also, the README file offers a set of guidelines for working with the new xhtml/css design. Sorry if I covered things in too great a detail. I didn't know how much people had dealt with xhtml yet. I assumed only experience with html. --deryck Added: trunk/README trunk/devel/devel_template trunk/docs/docs_template trunk/download/download_template trunk/support/country_template trunk/team/team_template Modified: trunk/history/rnotes_template trunk/top_level_template Changeset: Added: trunk/README === --- trunk/README2004-09-03 17:06:13 UTC (rev 306) +++ trunk/README2004-09-03 19:19:31 UTC (rev 307) @@ -0,0 +1,81 @@ +Here are some guidelines for updating samba.org: + +XHTML + +The new design for samba.org uses xhtml 1.0 Transitional. +xhtml is different from html=4.0 in several ways. The +difference is minimal in terms of syntax, but major in +terms of its implications on the page. A rundown of each: + +***Case Sensitive*** + +xhtml is case sensitive, and all tags are lowercase. +ul != UL Therefore, mixing case is bad, too. +You can't do a HREF= + +***Closed Tags*** + +xhtml requires all tags be closed. Most notably, this +affects the former br, hr, and img tags; these should +now be written as br /, hr /, and +img src=... alt=... /. The img tag is the one that +catches people most often, especially in the following syntax: +a href=...img src=... alt=... //a. Even though +the anchor tags are closed, the image tag must still be closed. + +***Proper Nesting*** + +Tags must close in the proper nesting order. An example: +tag1tag2/tag2/tag1. This is a simple example, but +in nesting lists it can get confusing. Also, within forms +using other tags can get sticky. I'm still learning some +of the nuances of this myself, so be careful with this +one. Use an online validator to check if you're not sure. + +***Why You Should Care*** + +html is *very* forgiving. xhtml is not. If you miss one of +the above in your web page, there's no telling what it will +look like in different browsers. In fact, most of the wild +page display problems during the move to the new design were +due to xhtml validation problems. And there's no telling how +a browser may handle an error. We still have several html +hold-overs, but none of them are critical, at least in terms of +page display. + + +ADDING NEW PAGES + +If you have to add a completely new page to a directory, +templates have been provided in each directory. Adding +a page should simply be a matter of opening the template +and adding in the info you want. Make sure you follow +the xhtml rules above and be sure to add a title between +the title tags. The two-header system was built to allow +for page specific titles. This is a help in browser bookmarks +and search engine indexing. + + +PAGE FORMAT + +Page formatting is handled by css. This is another important +consideration in xhtml sites versus html sites. This means that +you should not use a bunch of attribute tags to style a page. +For example, table border=3 width=30 height=100 is +not used in xhtml/css sites. The stylesheet rules control +the look of each element. If you use just normal h3 tags for +headings and p tags for paragraphs, styles are already in place. + +Also, see /samba/styles/common.css for a number of built in +styles. Simply declare a style as an attribute of a tag to use +a particular style. So if you want to use the headline style, +write p class=headlineYOUR_INFO_HERE/p. Stylesheets +distinguish classes with a . and ids with a #. Using the logo +style would require p id=logoCONTENT_HERE/p. + + +ADDING STYLES + +If you need styles added or have special formatting requirements, +please email me (deryck[at]samba[dot]org). Questions and comments +are also welcome. Added: trunk/devel/devel_template === --- trunk/devel/devel_template 2004-09-03 17:06:13 UTC (rev 306) +++ trunk/devel/devel_template 2004-09-03 19:19:31 UTC (rev 307) @@ -0,0 +1,9 @@ +!--#include virtual=/samba/header.html -- + titlePAGE_SPECIFIC_TITLE_GOES_HERE/title +!--#include virtual=header_devel.html -- + + +PLACE_YOUR_CONTENT_HERE + + +!--#include virtual=/samba/footer.html -- Added: trunk/docs/docs_template === --- trunk/docs/docs_template2004-09-03 17:06:13 UTC (rev 306) +++ trunk/docs/docs_template2004-09-03 19:19:31 UTC (rev 307) @@ -0,0 +1,9 @@ +!--#include virtual=/samba/header.html -- + titlePAGE_SPECIFIC_TITLE/title +!--#include virtual=header_docs.html -- + +
Re: svn commit: samba r2199 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc
On Fri, 3 Sep 2004 [EMAIL PROTECTED] wrote: WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2199nolog=1 Log: the unknown 16 bit number in lsa_LookupPrivDisplayName() is a language ID, so the client can choose what language they get the privilege description in. this is the first time I've seen a language ID on the wire in CIFS. not the only one. Also present in a samr user structure J.F.
svn commit: samba r2215 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2004-09-03 20:05:29 + (Fri, 03 Sep 2004) New Revision: 2215 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/smbdrev=2215nolog=1 Log: I think I'm really close now. The key is to count the number of bad components once you've hit one, and keep track of how many there are (going up a level removes one - maybe it needs to be ./ in order to be removed, need to check). And remember to change the error code return depending on whether you're called from ff or chkpath. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/reply.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/reply.c === --- branches/SAMBA_3_0/source/smbd/reply.c 2004-09-03 17:45:08 UTC (rev 2214) +++ branches/SAMBA_3_0/source/smbd/reply.c 2004-09-03 20:05:29 UTC (rev 2215) @@ -49,6 +49,7 @@ const char *s = srcname; NTSTATUS ret = NT_STATUS_OK; BOOL start_of_name_component = True; + unsigned int num_bad_components = 0; while (*s) { if (IS_DIRECTORY_SEP(*s)) { @@ -97,32 +98,21 @@ } s += 2; /* Else go past the .. */ /* We're still at the start of a name component, just the previous one. */ + + if (num_bad_components) { + /* Hmmm. Should we only decrement the bad_components if + we're removing a bad component ? Need to check this. JRA. */ + num_bad_components--; + } + continue; - } else if ((s[0] == '.') (s[1] == '\0')) { + } else if ((s[0] == '.') ((s[1] == '\0') || IS_DIRECTORY_SEP(s[1]))) { /* Component of pathname can't be . only. */ ret = NT_STATUS_OBJECT_NAME_INVALID; - break; - } else if ((s[0] == '.') IS_DIRECTORY_SEP(s[1])) { - /* -* No mb char starts with '.' so we're safe checking the directory separator here. -*/ - - /* Component of pathname can't be .\\ANYTHING. */ - - /* /./ or \\.\\ fails with a different error depending on what is after it... */ - - /* Eat multiple '/' or '\\' */ - for (s++; IS_DIRECTORY_SEP(*s); s++) { - ; - } - - if (*s == '\0') { - ret = NT_STATUS_OBJECT_NAME_INVALID; - } else { - ret = NT_STATUS_OBJECT_PATH_NOT_FOUND; - } - break; + num_bad_components++; + *d++ = *s++; + continue; } } @@ -160,8 +150,25 @@ } } start_of_name_component = False; + if (num_bad_components) { + num_bad_components++; + } } + if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) { + /* For some strange reason being called from findfirst changes + the num_components number to cause the error return to change. JRA. */ + if (allow_wcard_names) { + if (num_bad_components 2) { + ret = NT_STATUS_OBJECT_PATH_NOT_FOUND; + } + } else { + if (num_bad_components 1) { + ret = NT_STATUS_OBJECT_PATH_NOT_FOUND; + } + } + } + *d = '\0'; return ret; }
svn commit: samba r2216 - in trunk/source/smbd: .
Author: jra Date: 2004-09-03 20:05:37 + (Fri, 03 Sep 2004) New Revision: 2216 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/source/smbdrev=2216nolog=1 Log: I think I'm really close now. The key is to count the number of bad components once you've hit one, and keep track of how many there are (going up a level removes one - maybe it needs to be ./ in order to be removed, need to check). And remember to change the error code return depending on whether you're called from ff or chkpath. Jeremy. Modified: trunk/source/smbd/reply.c Changeset: Modified: trunk/source/smbd/reply.c === --- trunk/source/smbd/reply.c 2004-09-03 20:05:29 UTC (rev 2215) +++ trunk/source/smbd/reply.c 2004-09-03 20:05:37 UTC (rev 2216) @@ -49,6 +49,7 @@ const char *s = srcname; NTSTATUS ret = NT_STATUS_OK; BOOL start_of_name_component = True; + unsigned int num_bad_components = 0; while (*s) { if (IS_DIRECTORY_SEP(*s)) { @@ -97,32 +98,21 @@ } s += 2; /* Else go past the .. */ /* We're still at the start of a name component, just the previous one. */ + + if (num_bad_components) { + /* Hmmm. Should we only decrement the bad_components if + we're removing a bad component ? Need to check this. JRA. */ + num_bad_components--; + } + continue; - } else if ((s[0] == '.') (s[1] == '\0')) { + } else if ((s[0] == '.') ((s[1] == '\0') || IS_DIRECTORY_SEP(s[1]))) { /* Component of pathname can't be . only. */ ret = NT_STATUS_OBJECT_NAME_INVALID; - break; - } else if ((s[0] == '.') IS_DIRECTORY_SEP(s[1])) { - /* -* No mb char starts with '.' so we're safe checking the directory separator here. -*/ - - /* Component of pathname can't be .\\ANYTHING. */ - - /* /./ or \\.\\ fails with a different error depending on what is after it... */ - - /* Eat multiple '/' or '\\' */ - for (s++; IS_DIRECTORY_SEP(*s); s++) { - ; - } - - if (*s == '\0') { - ret = NT_STATUS_OBJECT_NAME_INVALID; - } else { - ret = NT_STATUS_OBJECT_PATH_NOT_FOUND; - } - break; + num_bad_components++; + *d++ = *s++; + continue; } } @@ -160,8 +150,25 @@ } } start_of_name_component = False; + if (num_bad_components) { + num_bad_components++; + } } + if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) { + /* For some strange reason being called from findfirst changes + the num_components number to cause the error return to change. JRA. */ + if (allow_wcard_names) { + if (num_bad_components 2) { + ret = NT_STATUS_OBJECT_PATH_NOT_FOUND; + } + } else { + if (num_bad_components 1) { + ret = NT_STATUS_OBJECT_PATH_NOT_FOUND; + } + } + } + *d = '\0'; return ret; }
svn commit: samba r2217 - in branches/SAMBA_4_0/source/torture/raw: .
Author: jra Date: 2004-09-03 20:06:27 + (Fri, 03 Sep 2004) New Revision: 2217 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rawrev=2217nolog=1 Log: Ad-hoc tests to allow me to work out the correct error code for the bad path algorithm. Jeremy. Modified: branches/SAMBA_4_0/source/torture/raw/chkpath.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/chkpath.c === --- branches/SAMBA_4_0/source/torture/raw/chkpath.c 2004-09-03 20:05:37 UTC (rev 2216) +++ branches/SAMBA_4_0/source/torture/raw/chkpath.c 2004-09-03 20:06:27 UTC (rev 2217) @@ -31,6 +31,25 @@ }} while (0) +static NTSTATUS single_search(struct smbcli_state *cli, + TALLOC_CTX *mem_ctx, const char *pattern) +{ +union smb_search_first io; +NTSTATUS status; + +io.generic.level = RAW_SEARCH_STANDARD; + io.t2ffirst.in.search_attrib = 0; + io.t2ffirst.in.max_count = 1; + io.t2ffirst.in.flags = FLAG_TRANS2_FIND_CLOSE; + io.t2ffirst.in.storage_type = 0; + io.t2ffirst.in.pattern = pattern; + + status = smb_raw_search_first(cli-tree, mem_ctx, + io, NULL, NULL); + +return status; +} + static BOOL test_chkpath(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) { struct smb_chkpath io; @@ -48,14 +67,14 @@ status = smb_raw_chkpath(cli-tree, io); CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND); - fnum = create_complex_file(cli, mem_ctx, BASEDIR \\test.txt); + fnum = create_complex_file(cli, mem_ctx, BASEDIR \\test.txt..); if (fnum == -1) { printf(failed to open test.txt - %s\n, smbcli_errstr(cli-tree)); ret = False; goto done; } - io.in.path = BASEDIR \\test.txt; + io.in.path = BASEDIR \\test.txt..; printf(testing %s\n, io.in.path); status = smb_raw_chkpath(cli-tree, io); CHECK_STATUS(status, NT_STATUS_NOT_A_DIRECTORY); @@ -81,11 +100,93 @@ status = smb_raw_chkpath(cli-tree, io); CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID); + io.in.path = .\\; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID); + + io.in.path = .\\.; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND); + + io.in.path = .\\.\\; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND); + + io.in.path = .\\.\\.; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND); + + io.in.path = .\\.\\.a; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND); + + io.in.path = \\.\\; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID); + + io.in.path = \\.; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID); + + io.in.path = \\.; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID); + + /* Note that the two following paths are identical but + give different NT status returns for chkpth and findfirst. */ + + printf(testing findfirst on %s\n, \\..); + status = single_search(cli, mem_ctx, \\..); + CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_INVALID); + + io.in.path = \\..; + printf(testing %s\n, io.in.path); + status = smb_raw_chkpath(cli-tree, io); + CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND); + + /* We expect this open to fail with the same error code as the chkpath below. */ + printf(testing Open on %s\n, \\..); + /* findfirst seems to fail with a different error. */ + fnum1 = smbcli_nt_create_full(cli-tree, \\.., + 0, GENERIC_RIGHTS_FILE_ALL_ACCESS, + FILE_ATTRIBUTE_NORMAL, + NTCREATEX_SHARE_ACCESS_DELETE| +
svn commit: samba r2218 - in trunk/source/smbd: .
Author: jra Date: 2004-09-03 20:30:09 + (Fri, 03 Sep 2004) New Revision: 2218 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/source/smbdrev=2218nolog=1 Log: Remember to count bad_components only on pathname boundaries. Jeremy. Modified: trunk/source/smbd/reply.c Changeset: Modified: trunk/source/smbd/reply.c === --- trunk/source/smbd/reply.c 2004-09-03 20:06:27 UTC (rev 2217) +++ trunk/source/smbd/reply.c 2004-09-03 20:30:09 UTC (rev 2218) @@ -149,10 +149,10 @@ return NT_STATUS_INVALID_PARAMETER; } } - start_of_name_component = False; - if (num_bad_components) { + if (start_of_name_component num_bad_components) { num_bad_components++; } + start_of_name_component = False; } if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) {
svn commit: samba r2219 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2004-09-03 20:30:31 + (Fri, 03 Sep 2004) New Revision: 2219 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/smbdrev=2219nolog=1 Log: Remember to count bad_components only on pathname boundaries. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/reply.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/reply.c === --- branches/SAMBA_3_0/source/smbd/reply.c 2004-09-03 20:30:09 UTC (rev 2218) +++ branches/SAMBA_3_0/source/smbd/reply.c 2004-09-03 20:30:31 UTC (rev 2219) @@ -149,10 +149,10 @@ return NT_STATUS_INVALID_PARAMETER; } } - start_of_name_component = False; - if (num_bad_components) { + if (start_of_name_component num_bad_components) { num_bad_components++; } + start_of_name_component = False; } if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) {
svn commit: samba-web r308 - in trunk/news/team: .
Author: deryck Date: 2004-09-03 20:43:25 + (Fri, 03 Sep 2004) New Revision: 308 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/news/teamrev=308nolog=1 Log: Adding news item on jht's slashdot link. --deryck Added: trunk/news/team/jht_slashdot.html Changeset: Added: trunk/news/team/jht_slashdot.html === --- trunk/news/team/jht_slashdot.html 2004-09-03 19:19:31 UTC (rev 307) +++ trunk/news/team/jht_slashdot.html 2004-09-03 20:43:25 UTC (rev 308) @@ -0,0 +1,17 @@ +h3a name=jht_slashdotTerpstra Interview From aKademy/a/h3 + +div class=article +pa href=http://slashdot.org;Slashdot/a is reporting Samba Team member John Terpstra's interview on a href=http://dot.kde.org/;dot.kde.org/a. The interview concerns intellectual property rights and challenges facing open source/free software./p + +pFrom slashdot:/p + +blockquoteAnyone who has read a href=http://www.groklaw.net/article.php?story=20040805065337222;John Terpstra's article on Groklaw/a about Intellectual Property (IP) rights will be interested to read a href=http://dot.kde.org/1094179086/;an interview/a I did recently with John at a href=http://conference2004.kde.org/;KDE's World Summit/a. +We talked about what IP means to the free software community, how we +can drive GNU/Linux adoption, and how he thinks the IT market will +change in coming years. He gives us a lot to think about in terms of +what more we should be doing. a href=http://it.slashdot.org/it/04/09/03/1522248.shtml?tid=117tid=121;Link/a/blockquote + +pa href=http://dot.kde.org/1094179086/;Read the interview here./a +/div + + Property changes on: trunk/news/team/jht_slashdot.html ___ Name: svn:executable + *
svn commit: samba-web r310 - in trunk/scripts: .
Author: deryck Date: 2004-09-03 22:09:03 + (Fri, 03 Sep 2004) New Revision: 310 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/scriptsrev=310nolog=1 Log: Reference variables in loop statement rather than assigning them explicitly. Also, change date format to allow for correct date sort. --deryck Modified: trunk/scripts/updateNews.py Changeset: Modified: trunk/scripts/updateNews.py === --- trunk/scripts/updateNews.py 2004-09-03 21:12:32 UTC (rev 309) +++ trunk/scripts/updateNews.py 2004-09-03 22:09:03 UTC (rev 310) @@ -13,55 +13,51 @@ # import os, time -from stat import * +from stat import ST_MTIME -top_dir = '/data/httpd/html/samba/news'# set to news directory path +# top_dir = '/data/httpd/html/samba/news' # set to news directory path +top_dir = '/srv/www/htdocs/news' not_news = ['.svn', 'images', 'style', 'calendar', 'index.html'] # Get list of news directories. Then, pair up dir name with dir files. os.chdir(top_dir) -top_dir_files = os.listdir(os.curdir) - topics = [] -for x in top_dir_files: -if x in not_news: continue -if os.path.isdir(x): -topics.append(x) + +for file in os.listdir(top_dir): +if file in not_news: continue +if os.path.isdir(file): +topics.append(file) topics.sort() topics_files = {} -for x in topics: -topics_files[x] = os.listdir(x) +for topic in topics: +topics_files[topic] = os.listdir(topic) # Loop through each directory, find all stories, and create main index.html all_stories = {} -for x in topics: -topic = x -filelist = os.listdir(topic) -os.chdir(topic) - +for topic in topics: +cur_dir = top_dir + '/' + topic +os.chdir(cur_dir) topic_stories = {} -for x in filelist: -if x in not_news: continue -f = open(x, 'r') -f_lines = f.readlines() -story = .join(f_lines) + 'div class=referenceLink: a href=/samba/news/' + topic + '/#' + x[:-5] + '' + topic + '//a/div\n\n' -f_stats = os.stat(x) -f_date = time.strftime(%d %B %Y, time.localtime(f_stats[ST_MTIME])) +for file in os.listdir(cur_dir): +if file in not_news: continue +f_lines = open(file, 'r').readlines() +story = .join(f_lines) + 'div class=referenceLink: a href=/samba/news/' + topic + '/#' + file[:-5] + '' + topic + '//a/div\n\n' +f_stats = os.stat(file) +f_date = time.strftime(%B %d %Y, time.localtime(f_stats[ST_MTIME])) # group stories on the same date under that one date if f_date in topic_stories.keys(): topic_stories[f_date] += story else: topic_stories[f_date] = story -for x in topic_stories.keys(): -h2date = x +for h2date in topic_stories.keys(): # again, group stories from same date under that date if h2date in all_stories.keys(): all_stories[h2date] += topic_stories[h2date] @@ -80,8 +76,7 @@ post_dates.sort() post_dates.reverse() -for x in post_dates: -h2date = x +for h2date in post_dates: news_text = all_stories[h2date] index = open('index.html', 'a') index.write('h2' + h2date + '/h2\n\n') @@ -102,11 +97,10 @@ stories_by_date = {} -for x in filelist: -if x in not_news: continue -f = open(x, 'r') -f_lines = f.readlines() -f_stats = os.stat(x) +for file in filelist: +if file in not_news: continue +f_lines = open(file, 'r').readlines() +f_stats = os.stat(file) f_date = time.strftime(%d %B %Y, time.localtime(f_stats[ST_MTIME])) # group stories from same date under that one date if f_date in stories_by_date.keys(): @@ -126,8 +120,7 @@ post_dates.sort() post_dates.reverse() -for x in post_dates: -h2date = x +for h2date in post_dates: news_text = .join(stories_by_date[h2date]) index = open('index.html', 'a') index.write('h2' + h2date + '/h2\n\n') @@ -143,5 +136,5 @@ # Loop through each subdirectory, using function to create each index.html. -for x in topics_files.keys(): -archive(x, topics_files[x]) +for topic in topics_files.keys(): +archive(topic, topics_files[topic])
svn commit: samba-web r311 - in trunk/scripts: .
Author: deryck Date: 2004-09-03 22:10:25 + (Fri, 03 Sep 2004) New Revision: 311 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/scriptsrev=311nolog=1 Log: Change path to news dir back to path on dp.samba.org. Forgot I had changed for testing before last commit. --deryck Modified: trunk/scripts/updateNews.py Changeset: Modified: trunk/scripts/updateNews.py === --- trunk/scripts/updateNews.py 2004-09-03 22:09:03 UTC (rev 310) +++ trunk/scripts/updateNews.py 2004-09-03 22:10:25 UTC (rev 311) @@ -15,8 +15,7 @@ import os, time from stat import ST_MTIME -# top_dir = '/data/httpd/html/samba/news' # set to news directory path -top_dir = '/srv/www/htdocs/news' +top_dir = '/data/httpd/html/samba/news' # set to news directory path not_news = ['.svn', 'images', 'style', 'calendar', 'index.html']
Re: svn commit: samba r2199 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc
JF, not the only one. Also present in a samr user structure yes, indeed. Although in the samr user structure the language ID doesn't control the language of any returned string. In this case the client supplies the language ID, and the server actually returns the strings in the chosen language. I suppose we haven't seen this before as there are not many places in CIFS/RPC where the client asks the server for a string given a number, and the string is a description, rather than a name. Cheers, Tridge
svn commit: samba-web r312 - in trunk/scripts: .
Author: deryck Date: 2004-09-03 23:15:47 + (Fri, 03 Sep 2004) New Revision: 312 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/scriptsrev=312nolog=1 Log: Change date format for the sub directories as well. Missed this in my last commit. --deryck Modified: trunk/scripts/updateNews.py Changeset: Modified: trunk/scripts/updateNews.py === --- trunk/scripts/updateNews.py 2004-09-03 22:10:25 UTC (rev 311) +++ trunk/scripts/updateNews.py 2004-09-03 23:15:47 UTC (rev 312) @@ -100,7 +100,7 @@ if file in not_news: continue f_lines = open(file, 'r').readlines() f_stats = os.stat(file) -f_date = time.strftime(%d %B %Y, time.localtime(f_stats[ST_MTIME])) +f_date = time.strftime(%B %d %Y, time.localtime(f_stats[ST_MTIME])) # group stories from same date under that one date if f_date in stories_by_date.keys(): stories_by_date[f_date].append(.join(f_lines))
svn commit: samba r2220 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: abartlet Date: 2004-09-04 00:02:43 + (Sat, 04 Sep 2004) New Revision: 2220 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rpcrev=2220nolog=1 Log: Updates to the NETLOGON torture test. This copes with 'long' passwords - where the LM hash is invalid. Also, we now drive all the logon levels and validation levels from the outer loop, so we can check the expected return values (rather than overwriting them). Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/rpc/netlogon.c Changeset: Sorry, the patch is too large (360 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rpcrev=2220nolog=1
svn commit: samba r2221 - in branches/SAMBA_4_0/source/build/pidl: .
Author: tpot Date: 2004-09-04 01:31:02 + (Sat, 04 Sep 2004) New Revision: 2221 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/build/pidlrev=2221nolog=1 Log: Experiment with extra properties for telling the ethereal parser what to do. There is a patch to the grammar and idl files for this but I won't commit that just yet. Modified: branches/SAMBA_4_0/source/build/pidl/eparser.pm Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/eparser.pm === --- branches/SAMBA_4_0/source/build/pidl/eparser.pm 2004-09-04 00:02:43 UTC (rev 2220) +++ branches/SAMBA_4_0/source/build/pidl/eparser.pm 2004-09-04 01:31:02 UTC (rev 2221) @@ -822,12 +822,18 @@ return FT_BYTES; } -sub type2base($) +# Determine the display base for an element + +sub elementbase($) { -my($t) = shift; +my($e) = shift; + +if (my $base = util::has_property($e, display)) { + return BASE_ . uc($base); +} -return BASE_DEC, if ($t eq uint32) or ($t eq uint16) or - ($t eq uint8); +return BASE_DEC, if ($e-{TYPE} eq uint32) or + ($e-{TYPE} eq uint16) or ($e-{TYPE} eq uint8); return BASE_NONE; } @@ -857,8 +863,8 @@ 'name' = field2name($e-{NAME}), 'type' = $e-{TYPE}, 'ft' = type2ft($e-{TYPE}), - 'base' = type2base($e-{TYPE}) - }; + 'base' = elementbase($e) + }, if !defined($needed{hf_$e-{NAME}_$e-{TYPE}}); $e-{PARENT} = $fn; } else { $needed{ett_$e-{TYPE}} = 1; @@ -887,7 +893,7 @@ 'name' = field2name($e-{NAME}), 'type' = $e-{TYPE}, 'ft' = type2ft($e-{TYPE}), - 'base' = type2base($e-{TYPE}) + 'base' = elementbase($e) }; $e-{PARENT} = $t-{DATA};
svn commit: samba r2222 - in branches/SAMBA_4_0/source/build/pidl: .
Author: tpot Date: 2004-09-04 01:50:11 + (Sat, 04 Sep 2004) New Revision: WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/build/pidlrev=nolog=1 Log: Generate correct function prototypes for unions marked as public. Modified: branches/SAMBA_4_0/source/build/pidl/eparser.pm Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/eparser.pm === --- branches/SAMBA_4_0/source/build/pidl/eparser.pm 2004-09-04 01:31:02 UTC (rev 2221) +++ branches/SAMBA_4_0/source/build/pidl/eparser.pm 2004-09-04 01:50:11 UTC (rev ) @@ -978,7 +978,7 @@ } if ($d-{DATA}{TYPE} eq UNION) { - pidl void ndr_pull_$d-{NAME}(struct ndr_pull *ndr, int ndr_flags, proto_tree *tree, struct $d-{NAME} *r, uint16 level);\n\n; + pidl void ndr_pull_$d-{NAME}(struct ndr_pull *ndr, int ndr_flags, proto_tree *tree, union $d-{NAME} *r, uint16 level);\n\n; } } }
svn commit: samba r2223 - in branches/SAMBA_4_0/source/build/pidl: .
Author: tpot Date: 2004-09-04 01:53:20 + (Sat, 04 Sep 2004) New Revision: 2223 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/build/pidlrev=2223nolog=1 Log: Include autogenerated header file for idl file we are processing with --eparser. Modified: branches/SAMBA_4_0/source/build/pidl/pidl.pl Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/pidl.pl === --- branches/SAMBA_4_0/source/build/pidl/pidl.pl2004-09-04 01:50:11 UTC (rev ) +++ branches/SAMBA_4_0/source/build/pidl/pidl.pl2004-09-04 01:53:20 UTC (rev 2223) @@ -150,6 +150,7 @@ IdlEParser::ParseHeader($pidl, $parser); my($header) = dirname($output) . /packet-dcerpc-proto.h; open(OUT, $header) || die can't open $header; + print OUT #include \ndr_$basename.h\\n; print OUT #include \packet-dcerpc-proto-$basename.h\\n; close(OUT); }
svn commit: lorikeet r40 - in trunk/ethereal/plugins/pidl: .
Author: tpot Date: 2004-09-04 01:54:58 + (Sat, 04 Sep 2004) New Revision: 40 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=lorikeetpath=/trunk/ethereal/plugins/pidlrev=40nolog=1 Log: Start to prettify strings. Place decoded string in higher level proto_tree so the user doesn't have to expand the string tree in order to see its value. Modified: trunk/ethereal/plugins/pidl/eparser.c Changeset: Modified: trunk/ethereal/plugins/pidl/eparser.c === --- trunk/ethereal/plugins/pidl/eparser.c 2004-09-02 11:42:20 UTC (rev 39) +++ trunk/ethereal/plugins/pidl/eparser.c 2004-09-04 01:54:58 UTC (rev 40) @@ -67,6 +67,9 @@ switch (ndr-flags LIBNDR_STRING_FLAGS) { case LIBNDR_FLAG_STR_LEN4|LIBNDR_FLAG_STR_SIZE4: case LIBNDR_FLAG_STR_LEN4|LIBNDR_FLAG_STR_SIZE4|LIBNDR_FLAG_STR_NOTERM: + { + proto_item *item; + char *s; ndr_pull_uint32(ndr, tree, hf_string4_len, len1); ndr_pull_uint32(ndr, tree, hf_string4_offset, ofs); @@ -77,14 +80,26 @@ data = g_malloc(len2*2); - proto_tree_add_bytes(tree, hf_string_data, ndr-tvb, -ndr-offset, len2 * 2, data); + item = proto_tree_add_none_format( + tree, hf_string_data, ndr-tvb, + ndr-offset, len2 * 2, Data); + s = tvb_fake_unicode(ndr-tvb, ndr-offset, len2, TRUE); + + if (strlen(s) 0) { + proto_item_append_text(item, : %s, s); + if (item item-parent) + proto_item_append_text( + item-parent, : %s, s); + } + + g_free(s); g_free(data); ndr-offset += len2 * 2; break; + } case LIBNDR_FLAG_STR_SIZE4: @@ -549,11 +564,11 @@ void proto_register_eparser(void) { static hf_register_info hf[] = { -{ hf_string4_len, { String4 length, eparser.string4_length, FT_UINT32, BASE_DEC, NULL, 0x0, String4 length, HFILL }}, -{ hf_string4_offset, { String4 offset, eparser.string4_offset, FT_UINT32, BASE_DEC, NULL, 0x0, String4 offset, HFILL }}, -{ hf_string4_len2, { String4 length2, eparser.string4_length2, FT_UINT32, BASE_DEC, NULL, 0x0, String4 length2, HFILL }}, +{ hf_string4_len, { Length, eparser.string4_length, FT_UINT32, BASE_DEC, NULL, 0x0, String4 length, HFILL }}, +{ hf_string4_offset, { Offset, eparser.string4_offset, FT_UINT32, BASE_DEC, NULL, 0x0, String4 offset, HFILL }}, +{ hf_string4_len2, { Length2, eparser.string4_length2, FT_UINT32, BASE_DEC, NULL, 0x0, String4 length2, HFILL }}, { hf_num_auths, { Num auths, eparser.num_auths, FT_UINT32, BASE_DEC, NULL, 0x0, Num auths, HFILL }}, -{ hf_string_data, { String data, eparser.string_data, FT_BYTES, BASE_NONE, NULL, 0x0, String data, HFILL }}, +{ hf_string_data, { Data, eparser.string_data, FT_NONE, BASE_NONE, NULL, 0x0, String data, HFILL }}, { hf_subcontext_size_2, { Subcontext size2, eparser.subcontext_size2, FT_UINT16, BASE_DEC, NULL, 0x0, Subcontext size2, HFILL }}, { hf_subcontext_size_4, { Subcontext size4, eparser.subcontext_size4, FT_UINT16, BASE_DEC, NULL, 0x0, Subcontext size4, HFILL }}, { hf_relative_ofs, { Relative offset, eparser.relative_offset, FT_UINT32, BASE_DEC, NULL, 0x0, Relative offset, HFILL }},
svn commit: lorikeet r41 - in trunk/ethereal/plugins/pidl: .
Author: tpot Date: 2004-09-04 01:56:11 + (Sat, 04 Sep 2004) New Revision: 41 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=lorikeetpath=/trunk/ethereal/plugins/pidlrev=41nolog=1 Log: Misc fixes for building more parsers: - copy definition of DATA_BLOB - add typedef for WERROR - #include ndr_misc.h before any other prototypes as there is an implicit dependency here on most of the security related structures Modified: trunk/ethereal/plugins/pidl/eparser.h Changeset: Modified: trunk/ethereal/plugins/pidl/eparser.h === --- trunk/ethereal/plugins/pidl/eparser.h 2004-09-04 01:54:58 UTC (rev 40) +++ trunk/ethereal/plugins/pidl/eparser.h 2004-09-04 01:56:11 UTC (rev 41) @@ -56,6 +56,13 @@ /* zero a structure */ #define ZERO_STRUCT(x) memset((char *)(x), 0, sizeof(x)) +/* used to hold an arbitrary blob of data */ +typedef struct data_blob { + uint8_t *data; + size_t length; + void (*free)(struct data_blob *data_blob); +} DATA_BLOB; + /* zero a structure given a pointer to the structure */ #define ZERO_STRUCTP(x) do { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } while(0) @@ -79,6 +86,7 @@ }; typedef int NTSTATUS; +typedef int WERROR; typedef guint64 uint64; typedef guint32 uint32; typedef guint16 uint16; @@ -93,6 +101,11 @@ typedef void (*ndr_pull_flags_fn_t)(struct ndr_pull *, int ndr_flags, void *); +/* There is a dependency on ndr_misc for most of the IDL files for the + security related structures it contains. */ + +#include ndr_misc.h + #include packet-dcerpc-proto.h #include glib.h
svn commit: samba r2224 - in branches/SAMBA_3_0/source: libsmb nmbd
Author: jra Date: 2004-09-04 01:57:16 + (Sat, 04 Sep 2004) New Revision: 2224 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/sourcerev=2224nolog=1 Log: Make nmbd more robust against bad netbios packets. Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/nmblib.c branches/SAMBA_3_0/source/nmbd/nmbd_packets.c branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c Changeset: Sorry, the patch is too large (265 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/sourcerev=2224nolog=1
svn commit: samba r2225 - in trunk/source: libsmb nmbd
Author: jra Date: 2004-09-04 01:57:21 + (Sat, 04 Sep 2004) New Revision: 2225 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=2225nolog=1 Log: Make nmbd more robust against bad netbios packets. Jeremy. Modified: trunk/source/libsmb/nmblib.c trunk/source/nmbd/nmbd_packets.c trunk/source/nmbd/nmbd_processlogon.c Changeset: Sorry, the patch is too large (265 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=2225nolog=1