[Samba] Undeliverable message returned to sender
This message was created automatically by mail delivery software. Delivery failed for the following recipient(s): [EMAIL PROTECTED] The message you sent contained an attachment which the recipient has chosen to block. Usually these sort of attachments are blocked to prevent malicious software from being sent to the recipient in question. The name(s) of the blocked file(s) follow: document.bat To send this file, please place it in a compressed archive using WinZip (http://www.winzip.com) or the archive software of your choice. - Original Message Header - Received: by mail4-res.bigfish.com (MessageSwitch) id 1120893579634713_12967; Sat, 9 Jul 2005 07:19:39 + (UCT) Received: from samba.org (62-101-126-220.fastres.net [62.101.126.220]) by mail4-res.bigfish.com (Postfix) with ESMTP id EB75A50EB72 for [EMAIL PROTECTED]; Sat, 9 Jul 2005 07:19:38 + (UTC) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Returned mail: Data format error Date: Sat, 9 Jul 2005 09:19:29 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0008_AA27B2A3.8837F780 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600. X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600. Message-Id: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: fwd: [Samba] tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Thanks steve for the reply. FC4 has SELinux that locks down home directories. The solution is on LinuxQuestions: http://tinyurl.com/8agtd Summary: [root]# setsebool -P samba_enable_home_dirs=1 or add samba_enable_home_dirs=1 to your /etc/selinux/targeted/booleans.local file Steve Williams [EMAIL PROTECTED] wrote on Sat, Jul 09, 2005 at 12:43:07AM EDT: Hi, I got this about 15 minutes ago when setting up a new server... I forgot to create the directory for the share. Weird error message, but I created the directory the problem went away. Not sure if that helps Cheers, Steve Mike Soh wrote: I sent this out yesterday. Can anyone offer any advice? I'm really at a loss on what to do. thanks! - Forwarded message from Mike Soh [EMAIL PROTECTED] - From: Mike Soh [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] tree connect failed: NT_STATUS_BAD_NETWORK_NAME Date: Thu, 7 Jul 2005 08:27:33 -0400 User-Agent: Mutt/1.4.1i X-Spam-Status: No, score=-2.6 required=3.8 tests=BAYES_00 autolearn=ham version=3.0.2 Hello everyone! I've searched the archives and seen this problem crop up a couple of different times. None of the solutions I've found seemed to have worked. Here's the synopsis: I've recently installed FC4 and samba shares for home directories should work right out of the box. Default settings, etc... I get this error: [EMAIL PROTECTED]:~$ smbclient //127.0.0.1/sohmc added interface ip=192.168.1.201 bcast=192.168.1.255 nmask=255.255.255.0 Client started (version 3.0.14a-2). Connecting to 127.0.0.1 at port 445 Password: Doing spnego session setup (blob length=58) got OID=1 3 6 1 4 1 311 2 2 10 got principal=NONE Got challenge flags: Got NTLMSSP neg_flags=0x608a0215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60080215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60080215 Domain=[BART] OS=[Unix] Server=[Samba 3.0.14a-2] tree connect failed: NT_STATUS_BAD_NETWORK_NAME I've checked permissions, and even made everything world readable, still doesn't work. It gets weirder. I've shared my tmp directory using the provided smb.conf: # This one is useful for people to share files [tmp] comment = Temporary file space path = /tmp read only = no public = yes I can access this share just fine. However, I ran some permissions test to see if I could isolate the problem. When I use samba to put a file into temp, the file is copied correctly. BUT when I create a file outside of smbclient (e.g. vim) and save it into tmp, samba cannot see it. It says permission denied. I know what you're thinking...permissions are wrong. After copying the file using samba, I tried copying it again in the shell with another filename. Keeping in mind that I copied with permissions and everything. Still the same problem. I get the feeling that I'm missing something really big here. I've never experienced this problem with FC2 or FC3. I don't think architecturally there is anything different between FC2/3 and FC4. I could be mistaken though. Anyone have any other suggestions I could try? let me know! thanks! -- Mike Soh [EMAIL PROTECTED] http://twentyfifteen.tripod.com Courage is not simply one of the virtues, but the form of every virtue at the testing point. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] permission denied from winxp box to samba share.
On Friday, July 08, 2005 11:58:42 AM Jason [EMAIL PROTECTED] wrote: trying to set up a totaly anonymous share for users on a linux box with samba 3.0.10 point to a dir on my hard drive that looks like drwxr-xr-x 2 root root 4096 Jul 7 22:39 sambashare in my smb.conf, for this dir, I have [globalshare] path = /usr/local/share/sambashare read only = No guest ok = Yes guest only = Yes guest account = nobody writeable = yes windows users can see the share, but cant write to it.. they get permission denied in the log, I see [2005/07/08 11:52:42, 1] smbd/service.c:make_connection_snum(648) xp-01 (192.168.4.49) connect to service globalshare initially as user nobody (uid=65534, gid=65534) (pid 17680) but thats it. Jason ** Reply Separator ** Saturday, July 09, 2005 6:41:42 AM Check the file permissions on that directory. I had a similar problem. I changed the permissions to 0777 and everything worked fine. -- Gerard E. Seibert [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] linux 2.6 closing connections
Hello list! Are there any known issues regarding samba3 - linux 2.6 kernels? I'm getting disconnects every 20 seconds or so, both via cifs and smbfs mounts. This occurs regardless of whether the connection is in use and sometimes leads to I/O errors (even doing 'ls' on a mounted dir). It is not consistent though, and seems to be triggered by high network traffic. When it is triggered, a few minutes of not using the network is sufficient to make it work again (no restarting of services, no remounting). I'm not sure where I should address this, so please redirect me if I chose the wrong list. The server is running samba 3.0.6, and the client is linux 2.6.8 (debian etch). The same does not appear on either the windows machines, or any 2.4-based distro (including debian's 2.4). I tried searching the net and the archives but could not find anything useful, other than smbfs on 2.6 is deprecated, use cifs - but that did not solve my problem. I will try a more recent smbd version on the server, but I kind of suspect that samba is not the problem, since any other client works correctly. I'm just hoping this is a known issue, and someone will tell me there's an easy fix :) I've attached an smbd-log (trying to stream some music. The effect is a two-second pause at every reconnect - very annoying). The client does not log anything, and packet drops (frame errors etc) are minimal. Please cc me as I'm not subscribed (yet) Thanks in advance, Arno [2005/07/09 12:18:28, 2] lib/access.c:check_access(324) Allowed connection from (192.168.32.9) [2005/07/09 12:18:28, 1] smbd/service.c:make_connection_snum(648) 192.168.32.9 (192.168.32.9) connect to service LooS initially as user aschuring (uid=500, gid=101) (pid 27329) [2005/07/09 12:18:28, 2] smbd/open.c:open_file(245) aschuring opened file MP3/Marillion/Afraid Of Sunlight (1995)/Marillion [Afraid Of Sunlight 08] - King.flac read=Yes write=No (numopen=1) [2005/07/09 12:18:50, 2] smbd/server.c:exit_server(571) Closing connections [2005/07/09 12:18:50, 2] smbd/close.c:close_normal_file(262) aschuring closed file MP3/Marillion/Afraid Of Sunlight (1995)/Marillion [Afraid Of Sunlight 08] - King.flac (numopen=0) [2005/07/09 12:18:50, 1] smbd/service.c:close_cnum(837) 192.168.32.9 (192.168.32.9) closed connection to service LooS [2005/07/09 12:18:50, 2] lib/access.c:check_access(324) Allowed connection from (192.168.32.9) [2005/07/09 12:18:50, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all oldresources. [2005/07/09 12:18:50, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [aschuring] - [aschuring] - [aschuring] succeeded [2005/07/09 12:18:50, 2] lib/access.c:check_access(324) Allowed connection from (192.168.32.9) [2005/07/09 12:18:50, 1] smbd/service.c:make_connection_snum(648) 192.168.32.9 (192.168.32.9) connect to service LooS initially as user aschuring (uid=500, gid=101) (pid 27330) [2005/07/09 12:18:50, 2] smbd/open.c:open_file(245) aschuring opened file MP3/Marillion/Afraid Of Sunlight (1995)/Marillion [Afraid Of Sunlight 08] - King.flac read=Yes write=No (numopen=1) ed. - skipped the details, they remain the same [2005/07/09 12:19:11, 2] smbd/server.c:exit_server(571) [2005/07/09 12:19:11, 2] smbd/close.c:close_normal_file(262) [2005/07/09 12:19:11, 1] smbd/service.c:close_cnum(837) [2005/07/09 12:19:11, 2] lib/access.c:check_access(324) [2005/07/09 12:19:11, 2] smbd/sesssetup.c:setup_new_vc_session(608) [2005/07/09 12:19:11, 2] auth/auth.c:check_ntlm_password(305) [2005/07/09 12:19:11, 2] lib/access.c:check_access(324) [2005/07/09 12:19:11, 1] smbd/service.c:make_connection_snum(648) [2005/07/09 12:19:11, 2] smbd/open.c:open_file(245) [2005/07/09 12:19:33, 2] smbd/server.c:exit_server(571) [2005/07/09 12:19:33, 2] smbd/close.c:close_normal_file(262) [2005/07/09 12:19:33, 1] smbd/service.c:close_cnum(837) [2005/07/09 12:19:33, 2] lib/access.c:check_access(324) [2005/07/09 12:19:33, 2] smbd/sesssetup.c:setup_new_vc_session(608) [2005/07/09 12:19:33, 2] auth/auth.c:check_ntlm_password(305) [2005/07/09 12:19:33, 2] lib/access.c:check_access(324) [2005/07/09 12:19:33, 1] smbd/service.c:make_connection_snum(648) [2005/07/09 12:19:33, 2] smbd/open.c:open_file(245) [2005/07/09 12:19:53, 2] smbd/server.c:exit_server(571) [2005/07/09 12:19:53, 2] smbd/close.c:close_normal_file(262) [2005/07/09 12:19:53, 1] smbd/service.c:close_cnum(837) [2005/07/09 12:19:53, 2] lib/access.c:check_access(324) [2005/07/09 12:19:53, 2] smbd/sesssetup.c:setup_new_vc_session(608) [2005/07/09 12:19:53, 2] auth/auth.c:check_ntlm_password(305) [2005/07/09 12:19:53, 2] lib/access.c:check_access(324) [2005/07/09 12:19:53, 1] smbd/service.c:make_connection_snum(648) [2005/07/09 12:19:53, 2] smbd/open.c:open_file(245) [2005/07/09 12:20:15, 2] smbd/server.c:exit_server(571) [2005/07/09 12:20:15, 2] smbd/open.c:open_file(245)
[Samba] Your premier source for all ATI powered gear.
Any Software just in under $15-$99, Xp-adobe etc http://axamtk.ahw7vrslp2szpbs.bushiaaina.com We know what we are, but know not what we may be. Assassins! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Why pay big bucks? Create your OWN website now!
For professional documents use professional software... http://skywe.odsl95ozlg6dl7o.bushiaaina.com Do what you can, with what you have, where you are. Let no one ever come to you without leaving better and happier. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] A shared space between students and their teacher !!!
Hi all, Last week I implemented samba a sa file server and domain controller for more than 150 computers (Win 2000 and XP). Everything is working just fine. However, computer science faculty wanted a share for each course in which students can upload their homework once done and teacher download them for correction. Yet, students can have the right to write on that share but not delete the work of other students. I did a test and works fine but students' work are delete-able by other users given the below share configuration: #A share shared by faculty and students [Computer_Science] comment = Computer Courses path = /home/shares/computer_science public = no writable = yes write list = @cmp251a read only = no create mask = 0660 directory mask = 0770 force group = faculty - I created folders inside the path, for example, cmp340, cmp251, cmp450. I gave right access to folders to the corresponding groups so that students can write on that folders, but once the file is stored on that folder, faculty members can access it and download. However, other users that belong to that group can access it also. What should I do? Please Help!!! regards, -- Alaa Nizar Network and System Administrator Phone : 0021269437087 Web site: http://www.iihem.ac.ma -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] More info on: Solaris 9 + quota = configure script error?
See the mail below, I sent yesterday. When changing the text '*solaris*' in the configure script to 'solaris*', the configure and make is going just fine. In other words: the file include/config.h contains a define for SUNOS5 I don't wanna be a smart-ass, but looking at other packages which use the configure script style configuration, they mostly use 'solaris*' as well. Remy = All, I believe there is a problem with the configure script, regarding using --with-quotas on a Solaris 9 system. When I 'make' Samba 3.0.14a, I get the error: --- Compiling smbd/quotas.c smbd/quotas.c:932:23: sys/quota.h: No such file or directory smbd/quotas.c:933:19: devnm.h: No such file or directory smbd/quotas.c: In function `disk_quotas': smbd/quotas.c:1115: error: storage size of 'D' isn't known smbd/quotas.c:1207: error: `Q_GETQUOTA' undeclared (first use in this function) smbd/quotas.c:1207: error: (Each undeclared identifier is reported only once smbd/quotas.c:1207: error: for each function it appears in.) *** Error code 1 --- When looking at this message and source, you'll see the wrong header file is included. This is 'sys/quota.h' and it should be: sys/fs/ufs_quota.h All this is caused because SUNOS5 is not defined. When defining it manually in include/config.h, the quota.c is compiled OK and I do not get an error message. Samba Team, could you guys please take a look at this? Kind regards, Remy Zandwijk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] A shared space between students and their teacher !!!
On Saturday 09 July 2005 06:56, [EMAIL PROTECTED] wrote: Hi all, Last week I implemented samba a sa file server and domain controller for more than 150 computers (Win 2000 and XP). Everything is working just fine. However, computer science faculty wanted a share for each course in which students can upload their homework once done and teacher download them for correction. Yet, students can have the right to write on that share but not delete the work of other students. What you want is a drop box. A directory that has permisions such that students can write but not read. The instructor will have to move the file somewhere else for the student to get it back. Perhaps into the student's own dropbox. This will get you started, I don't consider it a complete solution as I''m dealing only with the unix permissions of the directory-- you'll want to investigate how it interacts with the samba share directives. In this scenario, Dr. Smith in addition to any faculty-only group he may be a member of, is also a member of the cs201 group. (cs201 is a group containing all students of the cs201 course) -- so he can read and write to the files he receives. You create a directory [cs201dropbox] and give ownership to Dr. Smith, and group ownership to cs201. [EMAIL PROTECTED] home]# mkdir cs201dropbox [EMAIL PROTECTED] home]# chown smith.cs201 cs201dropbox Change permissions on the directory to restrict access, notice that the group can write to and pass through the directory (x) but cannot read it: [EMAIL PROTECTED] home]# chmod u=rwx,g=wx,o-rwx cs201dropbox We can set the sgid bit on the directory. This forces files written to the directory to be owned by the group of the enclosing directory. Because cs201 may not be the primary group of the person writing to the directory. : [EMAIL PROTECTED] home]# chmod g+s cs201 We set the sticky bit so only the owner of the directory can change the files. [EMAIL PROTECTED] home]# chmod +t cs201dropbox So this is what it looks like now. Members of group cs201 can write but not read the directory. Smith can do anything he wants in the directory. If you aren't Dr. Smith or a member of cs201, you can't do anything. (well superuser is still superuser): [EMAIL PROTECTED] home]# ls -ld cs201dropbox drwx-ws--T5 smith cs2014096 Jul 9 11:25 cs201dropbox If you blindly write to the directory and a file of the same name exists, you will be told you can't do it, so change the file name and you can write. I should point out that you can use the suid bit to force ownership instead of, or in addition to, the sgid bit. Now that you have the underlying permissions sorted out, you can address the samba side. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Prevent machine password change
Hi I am using samba 3.0.7-2 on my FC1 box as a PDC with a backend of tdbsam and I would like to set up a BDC for the domain as well. The big samba book tells me it can be done with tdbsam, but is wary about the machine passwords changing, thus breaking the replication done with rsync. I don't have the time right now to get into an ldap backend, so I was wondering if there is a way to stop the clients from changing their passwords regularily. I have googled for it but to no avail so far.I will continue looking, but if someone out there knows where to tell samba to tell its clients that a machine password change is not required I would appreciate it very much indeed, if I were told, many thanks, .peter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] changing domain password from XP Pro
I've set up NT domains from scratch and things work. However, in this case I vampired the old settings over to my new Samba PDC from a W2K server which I then removed from the network. Everything almost works, except ... The main thing is that I can't seem to change the domain passwords from the XP Pro workstations. Normally you do Ctrl-Alt-Del and select change password, then fill in the blanks. However, when I try, I get a long wait - about 5 minutes - then the system cannot change your password now because the domain RAHIM-DALE is unavailable (where RAHIM-DALE is my domain name). This happens on whatever XP Pro workstation I try. I've even tried removing a domain account and recreating it, but the same thing happens. Any ideas anyone? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Roaming Profile
Hi, I have my Samba Server setting as a PDC, but I wouldn't like that Windows XP store and retrieve profile from the server. Does anyone know how I can do it? Thanks, Cleiton -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] (no subject)
I have just setup a Linux box (Suse 9.0) to act as an internet gateway and file server. The installation has gone very well, but I am having a problem with my Samba server. (I have a small network with about 4 client computers, all Windows boxes.) Problem 1: I set Share Homes in the Samba configuration, but none of the user folders or even the Home directory could be seen from the client machines. I could only see the Shares Printer folder. Problem 2: To solve that, I manually added a share for each users' folders. I could then see the folders, but when I try to open the folder from the client machine, it asks for a user name and password. I have tried all known user names and passwords including root, and none will work. I then changed the Allow Guest to true in the Samba configuration for the shared folders. I can now open and read the folders but cannot make any changes to the files. Ultimately, I want each user to have read/write priv. and for their folder to be password protected. Can anyone point me in the right direction? Thanks! drw [EMAIL PROTECTED] Sell on Yahoo! Auctions no fees. Bid on great items. http://auctions.yahoo.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Roaming Profile
On Saturday 09 July 2005 15:56, Cleiton Luiz Siqueira wrote: Hi, I have my Samba Server setting as a PDC, but I wouldn't like that Windows XP store and retrieve profile from the server. Does anyone know how I can do it? Thanks, Cleiton http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/ProfileMgmt.html#id2609003 Scroll down to Disabling Roaming Profiles Support -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Roaming Profile
Hi Matthew, It was exactly it that I needed. Follow the solution. 1 - On the XP workstation, log in with an Administrative account. 2 - Click on Start - Run. 3 - Type mmc. 4 - Click on OK. 5 - A Microsoft Management Console should appear. 6 - Click on File - Add/Remove Snap-in - Add. 7 - Double-click on Group Policy. 8 - Click on Finish - Close. 9 - Click on OK. 10 - In the Console Root window expand Local Computer Policy - Computer Configuration - Administrative Templates - System - User Profiles. 11 - Double-click on Only Allow Local User Profiles 12 - Select Disable. 13 - Click on OK. 14 - Double-click on Prevent Roaming Profile Change from Propagating to the Server 15 - Select Disable. 16 - Click on OK. 17 - Close the whole console. You do not need to save the settings (this refers to the console settings rather than the policies you have changed). 18 - Reboot. Thanks so much! Cleiton - Original Message - From: Matthew Easton [EMAIL PROTECTED] To: Cleiton Luiz Siqueira [EMAIL PROTECTED]; samba@lists.samba.org Sent: Saturday, July 09, 2005 10:32 PM Subject: Re: [Samba] Roaming Profile On Saturday 09 July 2005 15:56, Cleiton Luiz Siqueira wrote: Hi, I have my Samba Server setting as a PDC, but I wouldn't like that Windows XP store and retrieve profile from the server. Does anyone know how I can do it? Thanks, Cleiton http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/ProfileMgmt.html#id2609003 Scroll down to Disabling Roaming Profiles Support -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
ALERT: Email you sent may have contained a virus
An email message you recently sent to mySite.com Customer Care may have been infected with a virus and therefore this potentially harmful message has not been delivered. To contact mySite.com Customer Care, please fill out the online form at http://www.mysite.com/pat. A reply will be sent to the email address you provide. mySite.com is serious about protecting users from harmful computer viruses. You can protect yourself and others from computer viruses by installing anti-virus software on your computer and checking for periodic updates as directed by the software manufacturer. For more information about how mySite.com protects you, why you are receiving this email and how you can protect yourself from viruses, visit http://www.mysite.com/antivirus. Sincerely, mySite.com Customer Care PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
svn commit: samba r8258 - in branches/SAMBA_4_0/source/ntvfs/posix: .
Author: vlendec Date: 2005-07-09 11:06:33 + (Sat, 09 Jul 2005) New Revision: 8258 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8258 Log: Release the opendb lock in pvfs_change_create_options. Volker Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c 2005-07-09 05:31:38 UTC (rev 8257) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c 2005-07-09 11:06:33 UTC (rev 8258) @@ -1258,6 +1258,8 @@ f-handle-create_options = create_options; } + talloc_free(lck); + return status; }
svn commit: samba r8259 - in branches/SAMBA_4_0/source/auth: .
Author: idra Date: 2005-07-09 11:17:33 + (Sat, 09 Jul 2005) New Revision: 8259 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8259 Log: We want to oset the provided flags not zero Modified: branches/SAMBA_4_0/source/auth/auth_util.c Changeset: Modified: branches/SAMBA_4_0/source/auth/auth_util.c === --- branches/SAMBA_4_0/source/auth/auth_util.c 2005-07-09 11:06:33 UTC (rev 8258) +++ branches/SAMBA_4_0/source/auth/auth_util.c 2005-07-09 11:17:33 UTC (rev 8259) @@ -125,7 +125,7 @@ user_info-plaintext_password = blob; user_info-encrypted = encrypted; - user_info-flags = 0; + user_info-flags = flags; DEBUG(10,(made an %sencrypted user_info for %s (%s)\n, encrypted ? :un , account_name, c_account_name));
svn commit: samba r8260 - in branches/SAMBA_4_0/source: build/pidl librpc scripting/ejs
Author: tridge Date: 2005-07-09 11:48:59 + (Sat, 09 Jul 2005) New Revision: 8260 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8260 Log: added an init based registration system for the generated ejs rpc code, so adding a new pipe only involves changes to librpc/config.mk Modified: branches/SAMBA_4_0/source/build/pidl/ejs.pm branches/SAMBA_4_0/source/librpc/config.mk branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/ejs.pm === --- branches/SAMBA_4_0/source/build/pidl/ejs.pm 2005-07-09 11:17:33 UTC (rev 8259) +++ branches/SAMBA_4_0/source/build/pidl/ejs.pm 2005-07-09 11:48:59 UTC (rev 8260) @@ -674,13 +674,16 @@ pidl void setup_ejs_$name(void); pidl {; + indent; foreach (@fns) { pidl ejsDefineCFunction(-1, \dcerpc_$_\, ejs_$_, NULL, MPR_VAR_SCRIPT_HANDLE);; } + deindent; pidl }\n; pidl void setup_ejs_constants_$name(int eid); pidl {; + indent; foreach my $v (keys %constants) { my $value = $constants{$v}; if (substr($value, 0, 1) eq \) { @@ -689,6 +692,14 @@ pidl ejs_set_constant_int(eid, \$v\, $value);; } } + deindent; + pidl }\n; + + pidl NTSTATUS ejs_init_$name(void); + pidl {; + indent; + pidl return smbcalls_register_ejs(\$name\, setup_ejs_$name, setup_ejs_constants_$name);; + deindent; pidl }; } Modified: branches/SAMBA_4_0/source/librpc/config.mk === --- branches/SAMBA_4_0/source/librpc/config.mk 2005-07-09 11:17:33 UTC (rev 8259) +++ branches/SAMBA_4_0/source/librpc/config.mk 2005-07-09 11:48:59 UTC (rev 8260) @@ -552,26 +552,31 @@ [SUBSYSTEM::RPC_EJS_ECHO] +INIT_FUNCTION = ejs_init_rpcecho OBJ_FILES = librpc/gen_ndr/ndr_echo_ejs.o REQUIRED_SUBSYSTEMS = RPC NDR_ECHO NOPROTO = YES [SUBSYSTEM::RPC_EJS_MISC] +INIT_FUNCTION = ejs_init_misc OBJ_FILES = librpc/gen_ndr/ndr_misc_ejs.o REQUIRED_SUBSYSTEMS = RPC NDR_MISC NOPROTO = YES [SUBSYSTEM::RPC_EJS_SAMR] +INIT_FUNCTION = ejs_init_samr OBJ_FILES = librpc/gen_ndr/ndr_samr_ejs.o REQUIRED_SUBSYSTEMS = RPC NDR_SAMR NOPROTO = YES [SUBSYSTEM::RPC_EJS_SECURITY] +INIT_FUNCTION = ejs_init_security OBJ_FILES = librpc/gen_ndr/ndr_security_ejs.o REQUIRED_SUBSYSTEMS = RPC LIB_SECURITY_NDR NOPROTO = YES [SUBSYSTEM::RPC_EJS_LSA] +INIT_FUNCTION = ejs_init_lsarpc OBJ_FILES = librpc/gen_ndr/ndr_lsa_ejs.o REQUIRED_SUBSYSTEMS = RPC NDR_LSA NOPROTO = YES Modified: branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h === --- branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h2005-07-09 11:17:33 UTC (rev 8259) +++ branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h2005-07-09 11:48:59 UTC (rev 8260) @@ -36,6 +36,13 @@ NTSTATUS ejs_panic(struct ejs_rpc *ejs, const char *why); void ejs_set_switch(struct ejs_rpc *ejs, uint32_t switch_var); +typedef void (*ejs_setup_t)(void); +typedef void (*ejs_constants_t)(int); + +NTSTATUS smbcalls_register_ejs(const char *name, + ejs_setup_t setup, + ejs_constants_t constants); + int ejs_rpc_call(int eid, int argc, struct MprVar **argv, const char *callname, ejs_pull_function_t ejs_pull, ejs_push_function_t ejs_push); Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c === --- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c 2005-07-09 11:17:33 UTC (rev 8259) +++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c 2005-07-09 11:48:59 UTC (rev 8260) @@ -25,6 +25,7 @@ #include librpc/gen_ndr/ndr_echo.h #include lib/cmdline/popt_common.h #include scripting/ejs/ejsrpc.h +#include dlinklist.h /* connect to an rpc server @@ -175,22 +176,46 @@ } +/* a list of registered ejs rpc modules */ +static struct ejs_register { + struct ejs_register *next, *prev; + const char *name; + ejs_setup_t setup; + ejs_constants_t constants; +} *ejs_registered; + /* + register a generated ejs module +*/ + NTSTATUS smbcalls_register_ejs(const char *name, + ejs_setup_t setup, + ejs_constants_t constants) +{ + struct ejs_register *r; + void *ctx = ejs_registered; + if (ctx == NULL) { + ctx = talloc_autofree_context(); + } + r = talloc(ctx, struct ejs_register); + NT_STATUS_HAVE_NO_MEMORY(r); + r-name = name; + r-setup = setup; + r-constants = constants; +
svn commit: samba r8261 - in branches/SAMBA_4_0/source: build/pidl librpc/ndr
Author: tridge Date: 2005-07-09 12:51:44 + (Sat, 09 Jul 2005) New Revision: 8261 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8261 Log: charset style strings in pidl should be const, just like old style ndr strings Modified: branches/SAMBA_4_0/source/build/pidl/ndr_header.pm branches/SAMBA_4_0/source/librpc/ndr/ndr_string.c Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/ndr_header.pm === --- branches/SAMBA_4_0/source/build/pidl/ndr_header.pm 2005-07-09 11:48:59 UTC (rev 8260) +++ branches/SAMBA_4_0/source/build/pidl/ndr_header.pm 2005-07-09 12:51:44 UTC (rev 8261) @@ -214,7 +214,7 @@ } if (util::has_property($e, charset)) { - pidl char; + pidl const char; } else { pidl typelist::mapType($e-{TYPE}); } Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_string.c === --- branches/SAMBA_4_0/source/librpc/ndr/ndr_string.c 2005-07-09 11:48:59 UTC (rev 8260) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr_string.c 2005-07-09 12:51:44 UTC (rev 8261) @@ -590,11 +590,11 @@ } /* Return number of elements in a string including the last (zeroed) element */ -uint32_t ndr_string_length(void *_var, uint32_t element_size) +uint32_t ndr_string_length(const void *_var, uint32_t element_size) { uint32_t i; uint8_t zero[4] = {0,0,0,0}; - char *var = _var; + const char *var = _var; for (i = 0; memcmp(var+i*element_size,zero,element_size) != 0; i++); @@ -618,14 +618,14 @@ } -NTSTATUS ndr_pull_charset(struct ndr_pull *ndr, int ndr_flags, char **var, uint32_t length, uint8_t byte_mul, int chset) +NTSTATUS ndr_pull_charset(struct ndr_pull *ndr, int ndr_flags, const char **var, uint32_t length, uint8_t byte_mul, int chset) { int ret; NDR_PULL_NEED_BYTES(ndr, length*byte_mul); ret = convert_string_talloc(ndr, chset, CH_UNIX, ndr-data+ndr-offset, length*byte_mul, - (void **)var); + discard_const_p(void *, var)); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, Bad character conversion);
svn commit: samba r8262 - in branches/SAMBA_4_0/source: librpc scripting/ejs
Author: tridge Date: 2005-07-09 12:53:50 + (Sat, 09 Jul 2005) New Revision: 8262 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8262 Log: - simplify the dependency handling for ejs modules - added config.mk entries for some more pipes - simplify the handling of ejs variables in the pidl code Modified: branches/SAMBA_4_0/source/librpc/config.mk branches/SAMBA_4_0/source/scripting/ejs/config.mk branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.c branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h Changeset: Sorry, the patch is too large (382 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8262
svn commit: samba r8263 - in branches/SAMBA_4_0/source: build/pidl script
Author: jelmer Date: 2005-07-09 12:58:08 + (Sat, 09 Jul 2005) New Revision: 8263 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8263 Log: Some small pidl fixes, start working towards supporting installation of pidl. Added: branches/SAMBA_4_0/source/build/pidl/pidl Removed: branches/SAMBA_4_0/source/build/pidl/pidl.pl Modified: branches/SAMBA_4_0/source/build/pidl/README branches/SAMBA_4_0/source/build/pidl/ejs.pm branches/SAMBA_4_0/source/script/build_idl.sh Changeset: Sorry, the patch is too large (659 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8263
svn commit: samba r8264 - in branches/SAMBA_4_0/source: build/pidl build/pidl/Parse build/pidl/Parse/Pidl build/pidl/Parse/Pidl/Ethereal build/pidl/Parse/Pidl/Ethereal/NDR build/pidl/Parse/Pidl/Samba build/pidl/Parse/Pidl/Samba/COM build/pidl/Parse/Pidl/Samba/NDR build/smb_build script
Author: jelmer Date: 2005-07-09 15:32:08 + (Sat, 09 Jul 2005) New Revision: 8264 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8264 Log: - Use standard perl package structure for pidl. - Only use pidl modules in the main executable when necessary Try 'make install' in build/pidl to install the package (should work stand-alone). Added: branches/SAMBA_4_0/source/build/pidl/Makefile.PL branches/SAMBA_4_0/source/build/pidl/Parse/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Compat.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Dump.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Ethereal/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Ethereal/NDR/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Ethereal/NDR/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Ethereal/NDR/Parser.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/IDL.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/ODL.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/Proxy.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/Stub.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJSHeader.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Client.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Server.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/SWIG.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/Template.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Test.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Validator.pm Removed: branches/SAMBA_4_0/source/build/pidl/Makefile branches/SAMBA_4_0/source/build/pidl/com_header.pm branches/SAMBA_4_0/source/build/pidl/compat.pm branches/SAMBA_4_0/source/build/pidl/dcom_proxy.pm branches/SAMBA_4_0/source/build/pidl/dcom_stub.pm branches/SAMBA_4_0/source/build/pidl/dump.pm branches/SAMBA_4_0/source/build/pidl/ejs.pm branches/SAMBA_4_0/source/build/pidl/ejs_header.pm branches/SAMBA_4_0/source/build/pidl/eth_header.pm branches/SAMBA_4_0/source/build/pidl/eth_parser.pm branches/SAMBA_4_0/source/build/pidl/idl.gram branches/SAMBA_4_0/source/build/pidl/idl.pm branches/SAMBA_4_0/source/build/pidl/ndr.pm branches/SAMBA_4_0/source/build/pidl/ndr_client.pm branches/SAMBA_4_0/source/build/pidl/ndr_header.pm branches/SAMBA_4_0/source/build/pidl/ndr_parser.pm branches/SAMBA_4_0/source/build/pidl/odl.pm branches/SAMBA_4_0/source/build/pidl/server.pm branches/SAMBA_4_0/source/build/pidl/swig.pm branches/SAMBA_4_0/source/build/pidl/template.pm branches/SAMBA_4_0/source/build/pidl/test.pm branches/SAMBA_4_0/source/build/pidl/typelist.pm branches/SAMBA_4_0/source/build/pidl/util.pm branches/SAMBA_4_0/source/build/pidl/validator.pm Modified: branches/SAMBA_4_0/source/build/pidl/ branches/SAMBA_4_0/source/build/pidl/idl.yp branches/SAMBA_4_0/source/build/pidl/pidl branches/SAMBA_4_0/source/build/smb_build/makefile.pm branches/SAMBA_4_0/source/script/build_idl.sh Changeset: Sorry, the patch is too large (22380 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8264
svn commit: samba r8265 - in branches/SAMBA_4_0/source/build/pidl: . Parse/Pidl tests
Author: jelmer Date: 2005-07-09 15:56:17 + (Sat, 09 Jul 2005) New Revision: 8265 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8265 Log: Fixes to the pidl test suite. Modified: branches/SAMBA_4_0/source/build/pidl/Makefile.PL branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Test.pm branches/SAMBA_4_0/source/build/pidl/tests/ndr_align.pl branches/SAMBA_4_0/source/build/pidl/tests/ndr_alloc.pl branches/SAMBA_4_0/source/build/pidl/tests/ndr_array.pl branches/SAMBA_4_0/source/build/pidl/tests/ndr_refptr.pl branches/SAMBA_4_0/source/build/pidl/tests/ndr_simple.pl branches/SAMBA_4_0/source/build/pidl/tests/ndr_string.pl Changeset: Sorry, the patch is too large (459 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8265
svn commit: samba r8266 - in branches/SAMBA_4_0/packaging/debian: .
Author: jelmer Date: 2005-07-09 21:40:15 + (Sat, 09 Jul 2005) New Revision: 8266 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8266 Log: Update debian packages Modified: branches/SAMBA_4_0/packaging/debian/control branches/SAMBA_4_0/packaging/debian/ldb-tools.install branches/SAMBA_4_0/packaging/debian/libparse-pidl-perl.install branches/SAMBA_4_0/packaging/debian/rules branches/SAMBA_4_0/packaging/debian/samba4-gtk-frontends.install branches/SAMBA_4_0/packaging/debian/samba4-testsuite.install branches/SAMBA_4_0/packaging/debian/winregistry-tools.install Changeset: Modified: branches/SAMBA_4_0/packaging/debian/control === --- branches/SAMBA_4_0/packaging/debian/control 2005-07-09 15:56:17 UTC (rev 8265) +++ branches/SAMBA_4_0/packaging/debian/control 2005-07-09 21:40:15 UTC (rev 8266) @@ -38,14 +38,12 @@ Package: samba4-gtk-frontends Architecture: any Depends: ${shlibs:Depends} -Description: Graphical tool for viewing and editing registry files - Supports: +Description: Graphical Samba client utilities + Contains GTK+ programs for maintaining: . - * NT4 Registry files - * Win9x Registry files - * Remote Registries (thru RPC) - * GConf - * Using filesystem as a registry file + * Remote SAM databases + * Local and remote registries + * DCE/RPC endpoints Package: winregistry-tools Architecture: any @@ -61,7 +59,7 @@ Package: samba4-dev Architecture: any -Depends: pidl, libc6-dev, pkg-config (= 0.14.0) +Depends: libparse-pidl-perl, libc6-dev, pkg-config (= 0.14.0) Description: Tools for extending Samba Contains Samba includes and tools Modified: branches/SAMBA_4_0/packaging/debian/ldb-tools.install === --- branches/SAMBA_4_0/packaging/debian/ldb-tools.install 2005-07-09 15:56:17 UTC (rev 8265) +++ branches/SAMBA_4_0/packaging/debian/ldb-tools.install 2005-07-09 21:40:15 UTC (rev 8266) @@ -3,4 +3,8 @@ usr/bin/ldbedit usr/bin/ldbmodify usr/bin/ldbsearch -usr/share/man/man3/ldb.3 +usr/share/man/man1/ldbadd.1 +usr/share/man/man1/ldbdel.1 +usr/share/man/man1/ldbedit.1 +usr/share/man/man1/ldbmodify.1 +usr/share/man/man1/ldbsearch.1 Modified: branches/SAMBA_4_0/packaging/debian/libparse-pidl-perl.install === --- branches/SAMBA_4_0/packaging/debian/libparse-pidl-perl.install 2005-07-09 15:56:17 UTC (rev 8265) +++ branches/SAMBA_4_0/packaging/debian/libparse-pidl-perl.install 2005-07-09 21:40:15 UTC (rev 8266) @@ -1,2 +1,3 @@ usr/bin/pidl -usr/share/perl5/Parse/Pidl +usr/share/perl +usr/lib/perl Modified: branches/SAMBA_4_0/packaging/debian/rules === --- branches/SAMBA_4_0/packaging/debian/rules 2005-07-09 15:56:17 UTC (rev 8265) +++ branches/SAMBA_4_0/packaging/debian/rules 2005-07-09 21:40:15 UTC (rev 8266) @@ -24,6 +24,7 @@ --with-syslog \ --with-readline \ --with-ldap + cd $(SOURCEPATH)/build/pidl perl Makefile.PL PREFIX=/usr touch $@ build: configure @@ -31,12 +32,13 @@ $(MAKE) -C $(SOURCEPATH) proto -$(MAKE) -C $(SOURCEPATH) pch $(MAKE) -C $(SOURCEPATH) all + $(MAKE) -C $(SOURCEPATH)/build/pidl all touch $@ clean: dh_testdir dh_clean - rm -f build + rm -f build configure -$(MAKE) -C $(SOURCEPATH) clean binary-indep: build install @@ -44,7 +46,6 @@ dh_testroot -i dh_install -i --sourcedir=debian/tmp dh_installdocs -i - dh_installman -i dh_installchangelogs -i dh_compress -i dh_fixperms -i @@ -64,9 +65,7 @@ $(MAKE) -C $(SOURCEPATH) manpages installman DESTDIR=$(CURDIR)/debian/tmp mkdir -p $(CURDIR)/debian/tmp/etc/samba4 cp $(CURDIR)/debian/smb.conf $(CURDIR)/debian/tmp/etc/samba4 - cp $(CURDIR)/../source/build/pidl/pidl.pl $(CURDIR)/debian/tmp/usr/bin/pidl - mkdir -p $(CURDIR)/debian/tmp/usr/share/perl5/Parse/Pidl - cp $(CURDIR)/../source/build/pidl/*.pm $(CURDIR)/debian/tmp/usr/share/perl5/Parse/Pidl + $(MAKE) -C $(SOURCEPATH)/build/pidl install DESTDIR=$(CURDIR)/debian/tmp binary-arch: build install dh_testdir -a @@ -74,7 +73,6 @@ dh_install -a --sourcedir=debian/tmp dh_installchangelogs -a dh_installdocs -a - dh_installman -a dh_strip -a dh_python -a dh_compress -a @@ -86,6 +84,6 @@ dh_md5sums -a dh_builddeb -a -binary: binary-indep binary-arch +binary: binary-arch binary-indep .PHONY: binary binary-arch binary-indep clean Modified: branches/SAMBA_4_0/packaging/debian/samba4-gtk-frontends.install === ---
svn commit: samba r8267 - in branches/SAMBA_4_0/source/build/pidl/Parse/Pidl: .
Author: tridge Date: 2005-07-09 23:37:11 + (Sat, 09 Jul 2005) New Revision: 8267 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8267 Log: re-generated the yapp parser with correct paths Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/IDL.pm Changeset: Sorry, the patch is too large (473 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8267
Build status as of Sun Jul 10 00:00:02 2005
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2005-07-09 00:00:10.0 + +++ /home/build/master/cache/broken_results.txt 2005-07-10 00:00:11.0 + @@ -1,16 +1,16 @@ -Build status as of Sat Jul 9 00:00:02 2005 +Build status as of Sun Jul 10 00:00:02 2005 Build counts: Tree Total Broken Panic -ccache 8 4 0 +ccache 9 5 0 distcc 12 2 0 lorikeet-heimdal 33 12 0 -ppp 17 0 0 -rsync34 2 0 +ppp 20 1 0 +rsync34 3 0 samba-docs 0 0 0 -samba4 36 36 2 +samba4 36 35 2 samba_3_035 9 0 -smb-build27 0 0 -talloc 12 6 0 -tdb 33 33 0 +smb-build26 1 0 +talloc 12 7 0 +tdb 32 32 0
svn commit: samba r8268 - in branches/SAMBA_4_0/source: build/pidl/Parse/Pidl/Samba librpc librpc/idl
Author: tridge Date: 2005-07-10 00:08:48 + (Sun, 10 Jul 2005) New Revision: 8268 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8268 Log: added the 'needed' logic to ehs generation, so we don't generate functions we don't need. That is a lot of functions, as ejs is only client side, so it only needs push functions for [out] vars, and pull functions for [in] vars added irpc and srvsvc IDL to list of available pipes. Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm branches/SAMBA_4_0/source/librpc/config.mk branches/SAMBA_4_0/source/librpc/idl/irpc.idl Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm === --- branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm 2005-07-09 23:37:11 UTC (rev 8267) +++ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm 2005-07-10 00:08:48 UTC (rev 8268) @@ -122,11 +122,12 @@ return if (Parse::Pidl::Util::has_property($e, value)); - $var = get_pointer_to($var); - # have to handle strings specially :( - if ($e-{TYPE} eq string) { - $var = get_pointer_to($var); - } +my $pl = Parse::Pidl::NDR::GetPrevLevel($e, $l); +$var = get_pointer_to($var); +# have to handle strings specially :( +if ($e-{TYPE} eq string $pl $pl-{TYPE} eq POINTER) { +$var = get_pointer_to($var); +} pidl NDR_CHECK(ejs_pull_$e-{TYPE}(ejs, v, $name, $var));; } @@ -369,7 +370,11 @@ sub EjsPushScalar($) { my ($e, $l, $var, $name, $env) = @_; - $var = get_pointer_to($var); +# have to handle strings specially :( +my $pl = Parse::Pidl::NDR::GetPrevLevel($e, $l); +if ($e-{TYPE} ne string || ($pl $pl-{TYPE} eq POINTER)) { +$var = get_pointer_to($var); +} pidl NDR_CHECK(ejs_push_$e-{TYPE}(ejs, v, $name, $var));; } @@ -645,17 +650,17 @@ # # parse the interface definitions -sub EjsInterface($) +sub EjsInterface($$) { - my($interface) = shift; + my($interface,$needed) = @_; my @fns = (); my $name = $interface-{NAME}; %constants = (); foreach my $d (@{$interface-{TYPEDEFS}}) { - EjsTypedefPush($d); - EjsTypedefPull($d); + ($needed-{push_$d-{NAME}}) EjsTypedefPush($d); + ($needed-{pull_$d-{NAME}}) EjsTypedefPull($d); } foreach my $d (@{$interface-{FUNCTIONS}}) { @@ -722,13 +727,68 @@ #include \$ejs_hdr\ ; + +my %needed = (); + foreach my $x (@{$ndr}) { - if ($x-{TYPE} eq INTERFACE) { - ($x-{TYPE} eq INTERFACE) EjsInterface($x); - } + ($x-{TYPE} eq INTERFACE) NeededInterface($x, \%needed); } +foreach my $x (@{$ndr}) { + ($x-{TYPE} eq INTERFACE) EjsInterface($x, \%needed); +} + return $res; } + +sub NeededFunction($$) +{ + my ($fn,$needed) = @_; + $needed-{pull_$fn-{NAME}} = 1; + $needed-{push_$fn-{NAME}} = 1; + foreach my $e (@{$fn-{ELEMENTS}}) { + if (grep (/in/, @{$e-{DIRECTION}})) { + $needed-{pull_$e-{TYPE}} = 1; + } + if (grep (/out/, @{$e-{DIRECTION}})) { + $needed-{push_$e-{TYPE}} = 1; + } + } +} + +sub NeededTypedef($$) +{ + my ($t,$needed) = @_; + if (Parse::Pidl::Util::has_property($t, public)) { + $needed-{pull_$t-{NAME}} = not Parse::Pidl::Util::has_property($t, noejs); + $needed-{push_$t-{NAME}} = not Parse::Pidl::Util::has_property($t, noejs); + } + if ($t-{DATA}-{TYPE} ne STRUCT + $t-{DATA}-{TYPE} ne UNION) { + return; + } + for my $e (@{$t-{DATA}-{ELEMENTS}}) { + if ($needed-{pull_$t-{NAME}}) { + $needed-{pull_$e-{TYPE}} = 1; + } + if ($needed-{push_$t-{NAME}}) { + $needed-{push_$e-{TYPE}} = 1; + } + } +} + +# +# work out what parse functions are needed +sub NeededInterface($$) +{ + my ($interface,$needed) = @_; + foreach my $d (@{$interface-{FUNCTIONS}}) { + NeededFunction($d, $needed); + } + foreach my $d (reverse @{$interface-{TYPEDEFS}}) { + NeededTypedef($d, $needed); + } +} + 1; Modified: branches/SAMBA_4_0/source/librpc/config.mk === --- branches/SAMBA_4_0/source/librpc/config.mk 2005-07-09 23:37:11 UTC (rev 8267) +++ branches/SAMBA_4_0/source/librpc/config.mk 2005-07-10 00:08:48 UTC (rev 8268) @@ -629,10 +629,22 @@
svn commit: samba r8269 - in branches/SAMBA_4_0: source/script/tests testprogs/ejs
Author: tridge Date: 2005-07-10 00:19:41 + (Sun, 10 Jul 2005) New Revision: 8269 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8269 Log: added automatic testing of rpc calls from ejs in 'make test' Added: branches/SAMBA_4_0/source/script/tests/test_ejs.sh Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh branches/SAMBA_4_0/testprogs/ejs/echo.js branches/SAMBA_4_0/testprogs/ejs/samr.js Changeset: Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh === --- branches/SAMBA_4_0/source/script/tests/selftest.sh 2005-07-10 00:08:48 UTC (rev 8268) +++ branches/SAMBA_4_0/source/script/tests/selftest.sh 2005-07-10 00:19:41 UTC (rev 8269) @@ -107,6 +107,7 @@ bin/nmblookup -U localhost localhost failed=0 + $SRCDIR/script/tests/test_ejs.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?` $SRCDIR/script/tests/test_ldap.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?` $SRCDIR/script/tests/test_quick.sh //localhost/cifs $USERNAME $PASSWORD || failed=`expr $failed + $?` $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?` Added: branches/SAMBA_4_0/source/script/tests/test_ejs.sh === --- branches/SAMBA_4_0/source/script/tests/test_ejs.sh 2005-07-10 00:08:48 UTC (rev 8268) +++ branches/SAMBA_4_0/source/script/tests/test_ejs.sh 2005-07-10 00:19:41 UTC (rev 8269) @@ -0,0 +1,23 @@ +#!/bin/sh +# test some simple EJS operations + +if [ $# -lt 3 ]; then +cat EOF +Usage: test_ejs.sh SERVER USERNAME PASSWORD +EOF +exit 1; +fi + +SERVER=$1 +USERNAME=$2 +PASSWORD=$3 + +incdir=`dirname $0` +. $incdir/test_functions.sh + +SCRIPTDIR=../testprogs/ejs + +for f in samr.js echo.js; do +testit $f bin/smbscript $SCRIPTDIR/$f ncacn_np:$SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1` +done + Property changes on: branches/SAMBA_4_0/source/script/tests/test_ejs.sh ___ Name: svn:executable + * Modified: branches/SAMBA_4_0/testprogs/ejs/echo.js === --- branches/SAMBA_4_0/testprogs/ejs/echo.js2005-07-10 00:08:48 UTC (rev 8268) +++ branches/SAMBA_4_0/testprogs/ejs/echo.js2005-07-10 00:19:41 UTC (rev 8269) @@ -260,3 +260,4 @@ test_TestDoublePointer(conn); print(All OK\n); +return 0; Modified: branches/SAMBA_4_0/testprogs/ejs/samr.js === --- branches/SAMBA_4_0/testprogs/ejs/samr.js2005-07-10 00:08:48 UTC (rev 8268) +++ branches/SAMBA_4_0/testprogs/ejs/samr.js2005-07-10 00:19:41 UTC (rev 8269) @@ -179,7 +179,7 @@ status = rpc_connect(conn, binding, samr); if (status.is_ok != true) { print(Failed to connect to + binding + - + status.errstr + \n); - return; + return -1; } handle = test_Connect(conn); @@ -187,3 +187,4 @@ test_Close(conn, handle); print(All OK\n); +return 0;
svn commit: samba r8270 - in branches/SAMBA_4_0/source/build/pidl/Parse/Pidl: . Samba Samba/COM Samba/NDR
Author: jelmer Date: 2005-07-10 00:23:51 + (Sun, 10 Jul 2005) New Revision: 8270 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8270 Log: Export some symbols, making the code more readable. Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/ODL.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/Proxy.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/COM/Stub.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJSHeader.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Validator.pm Changeset: Sorry, the patch is too large (846 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8270
svn commit: samba r8271 - in branches/SAMBA_4_0: source/script/tests testprogs/ejs
Author: tridge Date: 2005-07-10 00:26:54 + (Sun, 10 Jul 2005) New Revision: 8271 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8271 Log: make the ejs test scripts directly executable scripts using: #!/usr/bin/env smbscript I'll be interested to see how portable this is in the build farm. Modified: branches/SAMBA_4_0/source/script/tests/test_ejs.sh branches/SAMBA_4_0/testprogs/ejs/echo.js branches/SAMBA_4_0/testprogs/ejs/samr.js Changeset: Modified: branches/SAMBA_4_0/source/script/tests/test_ejs.sh === --- branches/SAMBA_4_0/source/script/tests/test_ejs.sh 2005-07-10 00:23:51 UTC (rev 8270) +++ branches/SAMBA_4_0/source/script/tests/test_ejs.sh 2005-07-10 00:26:54 UTC (rev 8271) @@ -17,7 +17,10 @@ SCRIPTDIR=../testprogs/ejs +PATH=bin:$PATH +export PATH + for f in samr.js echo.js; do -testit $f bin/smbscript $SCRIPTDIR/$f ncacn_np:$SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1` +testit $f $SCRIPTDIR/$f ncacn_np:$SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1` done Modified: branches/SAMBA_4_0/testprogs/ejs/echo.js === --- branches/SAMBA_4_0/testprogs/ejs/echo.js2005-07-10 00:23:51 UTC (rev 8270) +++ branches/SAMBA_4_0/testprogs/ejs/echo.js2005-07-10 00:26:54 UTC (rev 8271) @@ -1,3 +1,4 @@ +#!/usr/bin/env smbscript /* test echo pipe calls from ejs */ Property changes on: branches/SAMBA_4_0/testprogs/ejs/echo.js ___ Name: svn:executable + * Modified: branches/SAMBA_4_0/testprogs/ejs/samr.js === --- branches/SAMBA_4_0/testprogs/ejs/samr.js2005-07-10 00:23:51 UTC (rev 8270) +++ branches/SAMBA_4_0/testprogs/ejs/samr.js2005-07-10 00:26:54 UTC (rev 8271) @@ -1,3 +1,4 @@ +#!/usr/bin/env smbscript /* test samr calls from ejs */ Property changes on: branches/SAMBA_4_0/testprogs/ejs/samr.js ___ Name: svn:executable + *
svn commit: samba r8272 - in branches/SAMBA_4_0/source: cldap_server ldap_server lib/messaging nbt_server smb_server
Author: tridge Date: 2005-07-10 01:08:10 + (Sun, 10 Jul 2005) New Revision: 8272 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8272 Log: added the hooks for adding a name to a messaging context, so we will be able to send a message to the ldap_server task without having to know its task ID. Modified: branches/SAMBA_4_0/source/cldap_server/cldap_server.c branches/SAMBA_4_0/source/ldap_server/ldap_server.c branches/SAMBA_4_0/source/lib/messaging/irpc.h branches/SAMBA_4_0/source/lib/messaging/messaging.c branches/SAMBA_4_0/source/nbt_server/nbt_server.c branches/SAMBA_4_0/source/smb_server/smb_server.c Changeset: Modified: branches/SAMBA_4_0/source/cldap_server/cldap_server.c === --- branches/SAMBA_4_0/source/cldap_server/cldap_server.c 2005-07-10 00:26:54 UTC (rev 8271) +++ branches/SAMBA_4_0/source/cldap_server/cldap_server.c 2005-07-10 01:08:10 UTC (rev 8272) @@ -24,6 +24,7 @@ #include libcli/ldap/ldap.h #include lib/events/events.h #include lib/socket/socket.h +#include lib/messaging/irpc.h #include smbd/service_task.h #include cldap_server/cldap_server.h @@ -139,6 +140,8 @@ task_server_terminate(task, cldapd failed to setup interfaces); return; } + + irpc_add_name(task-msg_ctx, cldap_server); } Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c === --- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2005-07-10 00:26:54 UTC (rev 8271) +++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2005-07-10 01:08:10 UTC (rev 8272) @@ -32,6 +32,7 @@ #include smbd/service_stream.h #include lib/socket/socket.h #include lib/tls/tls.h +#include lib/messaging/irpc.h /* close the socket and shutdown a server_context @@ -358,6 +359,8 @@ c-event.fde, NULL, port != 389); if (conn-tls == NULL) goto failed; + irpc_add_name(c-msg_ctx, ldap_server); + return; failed: Modified: branches/SAMBA_4_0/source/lib/messaging/irpc.h === --- branches/SAMBA_4_0/source/lib/messaging/irpc.h 2005-07-10 00:26:54 UTC (rev 8271) +++ branches/SAMBA_4_0/source/lib/messaging/irpc.h 2005-07-10 01:08:10 UTC (rev 8272) @@ -86,6 +86,7 @@ NTSTATUS irpc_register(struct messaging_context *msg_ctx, const struct dcerpc_interface_table *table, int call, irpc_function_t fn, void *private); +NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name); struct irpc_request *irpc_call_send(struct messaging_context *msg_ctx, uint32_t server_id, const struct dcerpc_interface_table *table, Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c === --- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2005-07-10 00:26:54 UTC (rev 8271) +++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2005-07-10 01:08:10 UTC (rev 8272) @@ -690,3 +690,13 @@ table, callnum, r); return irpc_call_recv(irpc); } + +/* + add a string name that this irpc server can be called on +*/ +NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name) +{ + return NT_STATUS_OK; +} + + Modified: branches/SAMBA_4_0/source/nbt_server/nbt_server.c === --- branches/SAMBA_4_0/source/nbt_server/nbt_server.c 2005-07-10 00:26:54 UTC (rev 8271) +++ branches/SAMBA_4_0/source/nbt_server/nbt_server.c 2005-07-10 01:08:10 UTC (rev 8272) @@ -93,6 +93,8 @@ /* start the process of registering our names on all interfaces */ nbtd_register_names(nbtsrv); + + irpc_add_name(task-msg_ctx, nbt_server); } Modified: branches/SAMBA_4_0/source/smb_server/smb_server.c === --- branches/SAMBA_4_0/source/smb_server/smb_server.c 2005-07-10 00:26:54 UTC (rev 8271) +++ branches/SAMBA_4_0/source/smb_server/smb_server.c 2005-07-10 01:08:10 UTC (rev 8272) @@ -26,6 +26,7 @@ #include dlinklist.h #include smbd/service_stream.h #include smb_server/smb_server.h +#include lib/messaging/irpc.h /* @@ -771,6 +772,8 @@ smb_conn-processing = False; conn-private = smb_conn; + + irpc_add_name(conn-msg_ctx, smb_server); }
svn commit: samba r8273 - in branches/SAMBA_4_0/source: intl lib param scripting/ejs torture utils
Author: tridge Date: 2005-07-10 01:10:09 + (Sun, 10 Jul 2005) New Revision: 8273 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8273 Log: fixed some memory leaks in smbscript. This required converting file_load() to use talloc, which impacted quite a few bits of code, including our smb.conf processing. took the opportunity to remove the gloabls in params.c while doing this Modified: branches/SAMBA_4_0/source/intl/lang_tdb.c branches/SAMBA_4_0/source/lib/util_file.c branches/SAMBA_4_0/source/param/params.c branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.c branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c branches/SAMBA_4_0/source/scripting/ejs/smbscript.c branches/SAMBA_4_0/source/torture/gentest.c branches/SAMBA_4_0/source/torture/torture.c branches/SAMBA_4_0/source/utils/ndrdump.c Changeset: Sorry, the patch is too large (644 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8273
svn commit: samba r8274 - in branches/SAMBA_4_0/source/build/pidl: . Parse/Pidl Parse/Pidl/Ethereal/NDR Parse/Pidl/Samba/NDR
Author: jelmer Date: 2005-07-10 01:16:02 + (Sun, 10 Jul 2005) New Revision: 8274 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8274 Log: Export some more symbols. Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Ethereal/NDR/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Ethereal/NDR/Parser.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/IDL.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/ODL.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Header.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Validator.pm branches/SAMBA_4_0/source/build/pidl/idl.yp Changeset: Sorry, the patch is too large (1136 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8274
svn commit: samba r8275 - in branches/SAMBA_4_0/source/build/pidl/Parse/Pidl: .
Author: tridge Date: 2005-07-10 01:43:10 + (Sun, 10 Jul 2005) New Revision: 8275 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8275 Log: possibly a more portable way to export symbols in perl? Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm === --- branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm 2005-07-10 01:16:02 UTC (rev 8274) +++ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/NDR.pm 2005-07-10 01:43:10 UTC (rev 8275) @@ -7,8 +7,9 @@ package Parse::Pidl::NDR; -use Exporter 'import'; [EMAIL PROTECTED] = qw(GetPrevLevel GetNextLevel); +require Exporter; [EMAIL PROTECTED] = qw(Exporter); [EMAIL PROTECTED] = qw(GetPrevLevel GetNextLevel); use strict; use Parse::Pidl::Typelist qw(hasType getType); Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm === --- branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm 2005-07-10 01:16:02 UTC (rev 8274) +++ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Typelist.pm 2005-07-10 01:43:10 UTC (rev 8275) @@ -5,8 +5,9 @@ package Parse::Pidl::Typelist; -use Exporter 'import'; [EMAIL PROTECTED] = qw(hasType getType); +require Exporter; [EMAIL PROTECTED] = qw(Exporter); [EMAIL PROTECTED] = qw(hasType getType); use Parse::Pidl::Util qw(has_property); use strict; Modified: branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm === --- branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm 2005-07-10 01:16:02 UTC (rev 8274) +++ branches/SAMBA_4_0/source/build/pidl/Parse/Pidl/Util.pm 2005-07-10 01:43:10 UTC (rev 8275) @@ -4,8 +4,9 @@ # released under the GNU GPL package Parse::Pidl::Util; -use Exporter 'import'; [EMAIL PROTECTED] = qw(has_property property_matches ParseExpr); +require Exporter; [EMAIL PROTECTED] = qw(Exporter); [EMAIL PROTECTED] = qw(has_property property_matches ParseExpr); use strict;
svn commit: samba r8276 - in branches/SAMBA_4_0/source/scripting/ejs: .
Author: tridge Date: 2005-07-10 02:37:50 + (Sun, 10 Jul 2005) New Revision: 8276 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8276 Log: fixed the remaining memory leaks in smbscript. We can now loop doing lots of rpc calls without memory usage increasing. Modified: branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.c branches/SAMBA_4_0/source/scripting/ejs/mprutil.c branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c branches/SAMBA_4_0/source/scripting/ejs/smbcalls.h branches/SAMBA_4_0/source/scripting/ejs/smbcalls_cli.c branches/SAMBA_4_0/source/scripting/ejs/smbcalls_config.c branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c branches/SAMBA_4_0/source/scripting/ejs/smbcalls_nbt.c branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c branches/SAMBA_4_0/source/scripting/ejs/smbscript.c Changeset: Sorry, the patch is too large (628 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8276
svn commit: samba r8277 - in branches/SAMBA_4_0/source/lib/messaging: .
Author: tridge Date: 2005-07-10 04:54:21 + (Sun, 10 Jul 2005) New Revision: 8277 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8277 Log: filled in the code for finding irpc server ids by name, storing the names in a tdb Modified: branches/SAMBA_4_0/source/lib/messaging/irpc.h branches/SAMBA_4_0/source/lib/messaging/messaging.c Changeset: Modified: branches/SAMBA_4_0/source/lib/messaging/irpc.h === --- branches/SAMBA_4_0/source/lib/messaging/irpc.h 2005-07-10 02:37:50 UTC (rev 8276) +++ branches/SAMBA_4_0/source/lib/messaging/irpc.h 2005-07-10 04:54:21 UTC (rev 8277) @@ -86,7 +86,6 @@ NTSTATUS irpc_register(struct messaging_context *msg_ctx, const struct dcerpc_interface_table *table, int call, irpc_function_t fn, void *private); -NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name); struct irpc_request *irpc_call_send(struct messaging_context *msg_ctx, uint32_t server_id, const struct dcerpc_interface_table *table, @@ -97,3 +96,7 @@ const struct dcerpc_interface_table *table, int callnum, void *r); +NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name); +uint32_t *irpc_servers_byname(struct messaging_context *msg_ctx, const char *name); +void irpc_remove_name(struct messaging_context *msg_ctx, const char *name); + Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c === --- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2005-07-10 02:37:50 UTC (rev 8276) +++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2005-07-10 04:54:21 UTC (rev 8277) @@ -30,6 +30,9 @@ #include lib/socket/socket.h #include librpc/gen_ndr/ndr_irpc.h #include lib/messaging/irpc.h +#include db_wrap.h +#include lib/tdb/include/tdb.h +#include lib/tdb/include/tdbutil.h /* change the message version with any incompatible changes in the protocol */ #define MESSAGING_VERSION 1 @@ -43,6 +46,7 @@ struct messaging_rec *pending; struct irpc_list *irpc; struct idr_context *idr; + const char **names; struct { struct event_context *ev; @@ -350,6 +354,9 @@ { struct messaging_context *msg = ptr; unlink(msg-path); + while (msg-names msg-names[0]) { + irpc_remove_name(msg, msg-names[0]); + } return 0; } @@ -380,6 +387,7 @@ msg-pending = NULL; msg-idr = idr_init(msg); msg-irpc = NULL; + msg-names = NULL; status = socket_create(unix, SOCKET_TYPE_DGRAM, msg-sock, 0); if (!NT_STATUS_IS_OK(status)) { @@ -692,11 +700,124 @@ } /* + open the naming database +*/ +static struct tdb_wrap *irpc_namedb_open(struct messaging_context *msg_ctx) +{ + struct tdb_wrap *t; + char *path = talloc_asprintf(msg_ctx, %s/names.tdb, msg_ctx-base_path); + if (path == NULL) { + return NULL; + } + t = tdb_wrap_open(msg_ctx, path, 0, 0, O_RDWR|O_CREAT, 0660); + talloc_free(path); + return t; +} + + +/* add a string name that this irpc server can be called on */ NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name) { - return NT_STATUS_OK; + struct tdb_wrap *t; + TDB_DATA rec; + int count; + NTSTATUS status = NT_STATUS_OK; + + t = irpc_namedb_open(msg_ctx); + NT_STATUS_HAVE_NO_MEMORY(t); + + rec = tdb_fetch_bystring(t-tdb, name); + count = rec.dsize / sizeof(uint32_t); + rec.dptr = (char *)realloc_p(rec.dptr, uint32_t, count+1); + rec.dsize += sizeof(uint32_t); + if (rec.dptr == NULL) { + talloc_free(t); + return NT_STATUS_NO_MEMORY; + } + ((uint32_t *)rec.dptr)[count] = msg_ctx-server_id; + if (tdb_store_bystring(t-tdb, name, rec, 0) != 0) { + status = NT_STATUS_INTERNAL_ERROR; + } + free(rec.dptr); + talloc_free(t); + + msg_ctx-names = str_list_add(msg_ctx-names, name); + talloc_steal(msg_ctx, msg_ctx-names); + + return status; } +/* + return a list of server ids for a server name +*/ +uint32_t *irpc_servers_byname(struct messaging_context *msg_ctx, const char *name) +{ + struct tdb_wrap *t; + TDB_DATA rec; + int count, i; + uint32_t *ret; + t = irpc_namedb_open(msg_ctx); + if (t == NULL) { + return NULL; + } + + rec = tdb_fetch_bystring(t-tdb, name); + if (rec.dptr == NULL) { + talloc_free(t); + return NULL; + } + count = rec.dsize / sizeof(uint32_t); + ret = talloc_array(msg_ctx, uint32_t, count); + if (ret
svn commit: samba r8278 - in branches/SAMBA_4_0/source/heimdal_build: .
Author: tridge Date: 2005-07-10 05:15:08 + (Sun, 10 Jul 2005) New Revision: 8278 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8278 Log: this should fix the heimdal h_errno warnings Modified: branches/SAMBA_4_0/source/heimdal_build/config.h branches/SAMBA_4_0/source/heimdal_build/config.m4 Changeset: Modified: branches/SAMBA_4_0/source/heimdal_build/config.h === --- branches/SAMBA_4_0/source/heimdal_build/config.h2005-07-10 04:54:21 UTC (rev 8277) +++ branches/SAMBA_4_0/source/heimdal_build/config.h2005-07-10 05:15:08 UTC (rev 8278) @@ -40,7 +40,6 @@ /* these should be done with configure tests */ #define KRB5 -#define HAVE_H_ERRNO #define HAVE_INET_ATON #define HAVE_LONG_LONG #define HAVE_GETHOSTNAME Modified: branches/SAMBA_4_0/source/heimdal_build/config.m4 === --- branches/SAMBA_4_0/source/heimdal_build/config.m4 2005-07-10 04:54:21 UTC (rev 8277) +++ branches/SAMBA_4_0/source/heimdal_build/config.m4 2005-07-10 05:15:08 UTC (rev 8278) @@ -1,10 +1,19 @@ AC_CHECK_HEADERS(sys/file.h signal.h errno.h crypt.h curses.h sys/bittypes.h) AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h) -AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h) +AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h netdb.h) AC_CHECK_FUNCS(setitimer uname umask unsetenv socket sendmsg putenv atexit strsep) AC_CHECK_FUNCS(strlwr strncasecmp strptime strsep_copy strtok_r strupr swab) +AC_CHECK_DECL(h_errno, + [AC_DEFINE(HAVE_DECL_H_ERRNO,1,whether h_errno is declared)], [], [ +#ifdef HAVE_SYS_TYPES_H +#include sys/types.h +#endif +#ifdef HAVE_NETDB_H +#include netdb.h +#endif]) + # these are disabled unless heimdal is found below SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT) SMB_BINARY_ENABLE(asn1_compile, NO)
svn commit: lorikeet r379 - in trunk/heimdal/lib/asn1: .
Author: lha Date: 2005-07-10 05:20:53 + (Sun, 10 Jul 2005) New Revision: 379 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=379 Log: make scope variables unique to avoid shadow warnings Modified: trunk/heimdal/lib/asn1/gen.c trunk/heimdal/lib/asn1/gen_decode.c trunk/heimdal/lib/asn1/gen_encode.c trunk/heimdal/lib/asn1/gen_length.c trunk/heimdal/lib/asn1/gen_locl.h Changeset: Sorry, the patch is too large (306 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=379