RE: [Samba] Sending popup message via smbclient to w2k and winxp machines
By replacing the redirect with a logfile I got the following message: ld.so.1: /usr/local/samba/bin/smbclient: fatal: libreadline.so.4: open failed: No such file or directory Looks like I need to include a LIBRARY variable. Peter -Original Message- From: Adam Nielsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 June 2006 1:44 PM To: Peter Oram Cc: samba@lists.samba.org Subject: Re: [Samba] Sending popup message via smbclient to w2k and winxp machines Copy and paste each line of the script it works. If I run the script using bogus data from the command line it works. It is only when I get it to run live that it doesn't. Think I may have missed one point. The script is run from within another, but is passed all the correct variables for it to work. What happens if you take off the redirect to /dev/null and point that to the logfile - then if smbclient complains about anything when run inside the script you'll see it in the logfile. Also what happens if you change the message to hello with no variables? Just in case something odd is being substituted and causing a problem. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3 and groups
Hi, we are running a samba 3 server as a file server (just domain member; the domain is still an old NT4 domain and will be soon replaced ...). However using samba 2 as a file server all unix groups could be used. Now with samba 3 NO unix groups are seen. Is this behavior correct ? We did not change the smb.conf. -- Bye, Peer _ Max-Planck-Institut fuer Biogeochemie Dr. Peer-Joachim Koch Hans-Knöll Str.10Telefon: ++49 3641 57-6705 D-07745 Jena Telefax: ++49 3641 57-7705 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba 3.0.22 on solaris9 does not start as daemon
Neil Muller wrote: I'm trying to start smbd (samba 3.0.22) as daemon (smbd -D --configfile=/etc/smb.conf) on solaris 9 sparc with current recommended patches but the smbd process never returns from trying to become a daemon. Samba was built with ldap, (heimdal) kerberos and active directory support using gcc 3.3.2 from sunfreeware. Solaris 9 is a new install on a development machine with production patches. The build was based on notes in http://lists.samba.org/archive/samba/2006-May/120930.html except that the heimdal version is 0.7.2 and no configure patch was applied (to heimdal configure). Other software versions: openldap is 2.3.20 bison-1.34-sol7-sparc-local m4-1.4.2-sol9-sparc-local make-3.80-sol9-sparc-local db-4.2.52.NC-sol9-sparc-local binutils-2.11.2-sol8-sparc-local flex-2.5.31-sol9-sparc-local Also disabled solaris 9 ld and gssapi samba 3.0.22 (from samba.org) nmbd starts and runs as a daemon without error. The log output from smbd -D --configfile=/etc/smb.conf and smbd -F --configfile=/etc/smb.conf is identical. The daemon version of the logout is below. Can anyone suggest where to look next to resolve this? The eventual objective is to run samba as a member server in an AD mixed mode domain. Thanks, Neil I think you need to install libiconv (and gettext) and rebuild samba. The libiconv that comes with Solaris does not work with samba. Håkan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AutoCAD 2007 high CPU after printing
hello jeremy and jordan. autodesk announcing explicit, that samba is *not* supportet. http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112id=2872551linkID=2475323 our costumers are using using AutoCAD from 2002-2007 on samba 2 + 3. IMHO, samba 2 may be a good choice for AutoCAD. for example, AutoCAD with samba3 has a problem with special chars in filenames. (ä,ö, will make no problems, ü causes AutoCAD to throw a file-not-found message.) printer: i can't remember, if there's already the parameter disable spoolss in samba 2. - but this may help. additional you can play with the ACAD-built spooler (preferences). sorry, if i interfere this thread, but that are my experiences. -- -- greetings, kurt, austria. (http://www.kwnet.at) === this is a posting from a samba *user* - not a samba developer. the posting is created on the base of experiences an may be faulty. so, if contains any mistakes, please feel free to correct it === Jeremy Allison schrieb: On Wed, Jun 07, 2006 at 10:19:56AM +0800, Jordan Tomkinson wrote: Hi List, I'm having some problems with Samba 2.0.10 and AutoCAD drawings, specifically when a user prints a CAD file, an smbd process is spawned as smbuser (my guest account) which uses 99% CPU and never gives up, even after the job is fully printed and cups has moved on. This only happens when printing CAD files. Samba 2.x is very old and unsupported right now Can you try upgrading to Samba3 and testing again. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba AutoCAD 2007 high CPU after printing
Eeep, Typo there, it is Samba 3.0.10, Sorry! Jordan. -Original Message- From: Jeremy Allison [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 June 2006 1:03 PM To: Jordan Tomkinson Cc: samba@lists.samba.org Subject: Re: [Samba] Samba AutoCAD 2007 high CPU after printing On Wed, Jun 07, 2006 at 10:19:56AM +0800, Jordan Tomkinson wrote: Hi List, I'm having some problems with Samba 2.0.10 and AutoCAD drawings, specifically when a user prints a CAD file, an smbd process is spawned as smbuser (my guest account) which uses 99% CPU and never gives up, even after the job is fully printed and cups has moved on. This only happens when printing CAD files. Samba 2.x is very old and unsupported right now Can you try upgrading to Samba3 and testing again. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] policies
Guess this is a server tool (2000/2003) dunno, can this be obtained without having a windows server ? like is it part of a service pack, or resource kit ? we also uses the old style poledit.exe (nt4) and would love to migrate to the MMC version... Cheers. C. Rodney Richison wrote: Rodney Richison wrote: Am going thru the learning curve on using samba as a primary controller. Samba is up and running just fine. However, I'm a bit confused on the ntlogin.pol thing. I'm gathering, if all the workstations are winxp, I need to do this?? Go to the Windows 200x/XP menu Start-Programs-Administrative Tools and select the MMC snap-in called Active Directory Users and Computers Select the domain or organizational unit I don't see the mmc snap-in. Or should I still be using poledit on samba 3.1? If so, if someone has a source for the 3 common adm files, I'd appreciate it. common.adm etc.. Any other comments would be welcome. Maybe if I ask a differant way. Here, http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/PolicyMgmt.html#id2625181 It suggest using a differant tool for winxp clients. qoute ** Instead of using the tool called the System Policy Editor, commonly called Poledit (from the executable name *poledit.exe*), GPOs are created and managed using a Microsoft Management Console (MMC) snap-in as follows: 1. Go to the Windows 200x/XP menu Start-Programs-Administrative Tools and select the MMC snap-in called Active Directory Users and Computers ** I cannot find this tool??? Is it on win2k server? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AutoCAD 2007 high CPU after printing
On Wed, Jun 07, 2006 at 02:21:28PM +0800, Jordan Tomkinson wrote: Eeep, Typo there, it is Samba 3.0.10, Sorry! Ok, in that case try 3.0.22 :-). (Or if you're feeling adventurous, 3.0.23RC1). If it still happens attach to the process with gdb and get a backtrace please - or attach using strace and let us know what system calls are being used. Jeremy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AutoCAD 2007 high CPU after printing
On Wed, Jun 07, 2006 at 08:22:40AM +0200, Kurt Weiss wrote: hello jeremy and jordan. autodesk announcing explicit, that samba is *not* supportet. http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112id=2872551linkID=2475323 our costumers are using using AutoCAD from 2002-2007 on samba 2 + 3. IMHO, samba 2 may be a good choice for AutoCAD. for example, AutoCAD with samba3 has a problem with special chars in filenames. (ä,ö, will make no problems, ü causes AutoCAD to throw a file-not-found message.) Samba3 certainly *doesn't* have problems with I18N characters, the support in that matter is significantly better than that in Samba2.x. In Samba2.x the I18N support was hand coded, in Samba3 it uses the system iconv libraries. Of course if your system iconv libraries are not working right you might see issues. Jeremy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AutoCAD 2007 high CPU after printing
On Wed, Jun 07, 2006 at 08:22:40AM +0200, Kurt Weiss wrote: autodesk announcing explicit, that samba is *not* supportet. http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112id=2872551linkID=2475323 That's not what this link says. This link says that Autocad expects Windows network semantics, and if it doesn't work then it's a server problem. I agree :-). That's why we provide Windows network semantics. Far from saying they don't support Samba, they actually have a tech note explaining how to configure part of Samba to enable things for them ! Please don't spread FUD on the Samba lists - google will index your reply and hostile forces :-) will use it to claim Samba isn't supported and doesn't work. No one will ever read this rebuttal (of course :-). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Can not see Linux samba (server) from WinXP system
I put the following line in my (Suse) Linux smb.conf: [global] workgroup = MYWORKGROUP ... and started Samaba by entering smb start After a while I tried to view this Linux machine from a WinXP machine in the same LAN but can not see the Linux Samba server. Why? I can ping the Linux machine. So a general connection can be established. The WORKGROUP name is the same. Do I have to enter the WORKGROUP name somewhere additionally ? -- ___ Play 100s of games for FREE! http://games.mail.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cifs mount and quotas
I configured a samba 3.0.14a PDC on FreeBSD 6.0-RELEASE with a [homes] share on which I activated user quotas. From an Ubuntu 5.10 client with smbmount 3.0.14 when I do smbmount //carioca/user1 /mnt -o username=user1 and copy a large file to /mnt I have a No space left on device error which is what I expect. But with mount.cifs version 1.6 when I do mount.cifs //carioca/user1 /mnt -o username=user1 and copy the same file there is no message and the command must be interrupted with Ctrl+C What are my options? Regards, Thierry. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ntlm auth and AD uptime
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 wpc wrote: i get a big problem with authentication popups (with squid) when the connection to my AD dies. what options do i have to ensure less downtime when my AD backend dies ? i would like something that for example caches the users credentials , while testing for AD availability before coming back online. We don't do this. Sorry. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFEhsGiIR7qMdg1EfYRAhQTAKDPLzfliSHxY97ihesbrgHQ0+ocaACeLwWe qaTzZW+EyjlvcTiMBtDiy7Y= =7Aig -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ntlm auth and AD uptime
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald (Jerry) Carter wrote: wpc wrote: i get a big problem with authentication popups (with squid) when the connection to my AD dies. what options do i have to ensure less downtime when my AD backend dies ? i would like something that for example caches the users credentials , while testing for AD availability before coming back online. We don't do this. Sorry. Although you might want to test out winbindd's offline mode in 3.0.23.rc1 (rc2 will be coming up shortly). cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFEhsHWIR7qMdg1EfYRAu8DAKDT5DnjwAKzl9YlsXfh7fGv+X6UMgCeNyDn nJG2XPzZqX8zOJ6On5ltjP4= =KSIC -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbclient failing due to switch MAC addr table timeout
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Giulio Orsero wrote: So, is there a way to have smbclient wait a bit longer before giving up? I'd like to avoid having to do pings before calling smbclient or calling smbclient multiple times. You could add a retry loop in smbclient. But you first need to get a trace and figure out exactly which part is failing. Name resolution of the target server, the TCP SYN in the session establishment, etc... cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFEhsJPIR7qMdg1EfYRAkEsAKC4m777uUgvYNiRQb80QRPlx5K1VgCgskNy biW1Ycl+R8NU4El6OA61E5U= =iF3D -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file download crashes samba
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christopher Johnson wrote: All - While trying to copy a directory containing a large number of files (~600 1-5 mb files ) from my samba server to a client machine ( either mac or windows ) my samba server crashes paralyzing my server machine and forcing me to reboot it. Once the behavior occurs I can no longer ssh into the server or if I happen to be in it already I can't even stop and restart samba. ERRNotEnoughInformation. If you a reporting a Samba crash, you have to at least include OS version, kernel, Samba version, and hopefully a backtrace (or at least the information from the log file). cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFEhsL0IR7qMdg1EfYRAnGiAJ9/Th7MoG04h9+V9jg+88MXsAydQgCgpo0l AdKcoCuc9kWp/XXm+I+pY0I= =cgH4 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: Fwd: [Samba] Re: Getting NTLM group info about user
How do you map these unix group ids to the active directory group names? Like the group's DN, or CN, or ? Thanks! - Jeremiah (still working on getting samba-3.0.22 to compile for me...) On 6/6/06, Volker Lendecke [EMAIL PROTECTED] wrote: On Tue, Jun 06, 2006 at 02:47:30PM -0400, Jeremiah Martell wrote: Just out of curiousity, what should the output look like when I do a wbinfo -r user? Do I get the LDAP DN's of the groups? Just the CN attribute of the group? You should get a list of unix group ids. Volker -- - Jeremiah [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Treatment of UNIX soft link
Hello all, We are using Samba in our office to mirror a UNIX server. Inside the UNIX we have some soft links that I would like to see when using windows browsers via Samba as well. Right now it seems that we have two options. One is to have read-write permissions on such soft links. But then when deleting a soft link from windows it is deleting the target itself as well and not only the link (as it should be and as it does if you use rm -rf inside the UNIX). The second option is to limit the permissions. But then I can't even access/view the target. Is there an option to configure Samba to allow me to access the target (for both read and write) using the link but when I'll delete it, it will delete only the link and not the target itself? Many thanks for your help, Yuval. __ 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: https://lists.samba.org/mailman/listinfo/samba
[Samba] user not in group
I recently replaced a samba server with a new machine. Version 3.0.14 was used on the old server and is used on the new server as well. I copied all of the configuration files using rsync from the old server to the new server. Now I have one user that cannot access a share on the new server, but that could be accessed on the old server. After much troubleshooting I have isolated the problem to the fact that samba on the new server treats the user as if it is part of a group in the invalid users for the share. /etc/group does put the user in the group that is an invalid users. Can anyone help? -- Billie H. Cleek Project Manager 3259 E. Sunshine Ave Suite AA Springfield, Missouri 65804 Tel: (417) 886-2528 Fax: (417) 886-2541 [EMAIL PROTECTED] http://www.essystemsinc.com PGP: 0xE9734285 Fingerprint = 1CF8 1903 8574 EFAD 0322 1A2E CC02 52B8 E973 4285 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] changing file permissions
If I want to make it to where a user cannot change his/her permissions on a file or directory, are 'nt acl support' and 'security mask' what I need to be using to do this? For example, I have it set so that when a student saves his file or creates a directory, both he and the teachers can access it, but no one else can. I want it to stay that way. I don't want the student to be able to go to a Windows XP machine and right click the file/directory and change the permissions so that they can share information with other students. From what I have read so far, the above two commands look like what I need to be working with. Just wanted to check before I go do too much playing around. Thanks. -- Scott Mayo Technology Coordinator Bloomfield Schools PH: 573-568-5669 FA: 573-568-4565 Pager: 800-264-2535 X2549 Duct tape is like the force, it has a light side and a dark side and it holds the universe together. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbclient times out to 445 after upgrade to XP SP2
I think this is probably an XP SP2 issue but perhaps you've seen it before? We use smbclient 3.0.13 to download files from a machine Testmachine that used to run Windows 2000 and use the zonealarm firewall. A couple of days ago it was upgraded to XP SP2 (fully patched) using the built in Microsoft firewall. One folder Example was shared and the firewall was configured to allow a connection for file and printer sharing only for our download machine. Now when we do: smbclient '\\Testmachine\Example' -U 'Administrator%xxx' -d 3 it logs ... Connecting to 131.215.XXX.YYY at port 445 timeout connecting to 131.215.XXX.YYY:445 Connecting to 131.215.XXX.YYY at port 139 Doing spnego session setup (blob length=16) ... There's a longish delay between the first and second lines. (Of course xxx is a real password and XXX.YYY were real numbers in the original.) Now here's where it gets strange, from the download machine (linux) nmap 131.215.XXX.YYY shows ports 135 and 139, but not 445. Seems like a firewall issue, right? So on the XP box I tried to add port 445 as a firewall exception, but it wouldn't let me, saying that port was already used in the firewall. Presumably under file and printer sharing with 135 and 139, which has an exception for the machine running nmap, and does show those two ports. But 445 was apparently still being blocked. ??? Finally, I tried to skip the 445 step by appending -p 139 to the smbclient line, but it went to 445 first anyway. Seen this? Suggestions? We can still use smbclient now for this but these timeouts are needlessly slowing down the transactions. Thanks, David Mathog [EMAIL PROTECTED] Manager, Sequence Analysis Facility, Biology Division, Caltech -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] DPAPI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Cameron wrote: Using Samba 3.0.22 as a domain controller, Windows XP Pro as the client. When a user changes their password, all their certificates stop working. Found: http://support.microsoft.com/default.aspx?scid=kb;en-us;331333 Before I do their workaround, is there anyway to have this work with Samba without that workaround? Not currently. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFEhvkOIR7qMdg1EfYRAlIoAJ9Cpi0p7GxTtMU9FPsNm/ALRfEGugCgzNCT HNJrECw73Yq9i2M5Y0+nriw= =ZAuQ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] CentOS 4.2 + idmap_rid
Do you know if it is possible to use the idmap_rid feature in Centos and Winbind/Samba (v. 3.0.10)? When I try to start it with idmap_rid enabled, I get this in my log... May 30 15:01:22 Cent01 winbindd[2861]: [2006/05/30 15:01:22, 0] sam/idmap.c:idmap_init(142) May 30 15:01:22 Cent01 winbindd[2861]: idmap_init: could not load remote backend 'idmap_rid' May 30 15:01:22 Cent01 winbind: winbindd startup succeeded It seems that the library is not there. What do I need to do to get this to work? Sam Adams General Dynamics - Network Systems Phone: 210.536.5945 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3: Changing printer settings cause reinstallation of printer driver
Dear folks, I lately updated our PDF-Server (printer provided by Samba which converts the postscript to a PDF and sends it back via email) from 2.2.8 to 3.0.20. I installed the printer driver on the samba server as described in the samba how-to and the server delivered the printer driver with the default settings just fine. Now I have the problem that I want to change the default printer settings on the server so that he can hand it through to the clients. But every time I do a change for example from portrait to landscape the printserver (samba) doesn't deliver the printer driver anymore. I always receive the error message that you get, when no driver is installed on the printer server at all. Here again, I followed the samba how-to for changing the default print options as described in samba how-to: 19.7.2 Setting Device Modes on New Printers. Does anybody have the same problem or an idea to solve it? cheers Lynn -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] See if authenticated user is in group XYZ
I have winbindd running. I run wbinfo -a userXYZ%pass and it succeeds Now I want to know if userXYZ is in group monkeys, but I dont want to have to have to map anything. Is this possible? Is there a way to just say give me the windows group names that userXYZ is in? or is userXYZ in windows group name 'monkeys'? Thanks! - Jeremiah -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] autopoweruser.sh
Hello, autopoweruser.sh This script is from samba official how-to (CHAPTER 11) and should add users to the Power Users local machine group. I can't use the command net rpc group addmem ... in a bash script loaded by root preexec = . Does someone could help me ? Thank you. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba server is listed as Unknown by Windows XP.
Hi, I installed a Samba server on my Linux box (IP address: 192.168.0.2), I try to access this Samba server from Windows XP in my laptop (it belongs to AAA domain). My laptop has two NICs and the IP address of one NIC is 192.168.0.8. I did find this Samba server machine when I searched 192.168.0.2 from Windows XP on my laptop. However, this Samba server is listed as Unknown under the computer description tab instead of Samba Server (defined by the Samba server string in my smb.conf). When I try to open this Samba server by clicking 192.168.0.2, I was asked to input the user name. I did create a user bbb with the password bbb on the Samba server. However, it keeps change the user name to AAA\bbb and asks me to input the password again. I tried to do network drive map directly using the user name bbb and still could not make it work. I don't know why this happen. Here is my simple smb.conf under /usr/local/samba/lib. Smbpasswd file is empty under /usr/local/samba/private. Thanks a lot, Liang #=== Global Settings = [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = MYGROUP # server string is the equivalent of the NT Description field server string = Samba Server [share1] path=/tmp browseable = yes guest ok = yes writeable = yes public = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] See if authenticated user is in group XYZ
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] On Behalf Of Jeremiah Martell Sent: Wednesday, June 07, 2006 9:05 AM To: samba@lists.samba.org Subject: [Samba] See if authenticated user is in group XYZ I have winbindd running. I run wbinfo -a userXYZ%pass and it succeeds Now I want to know if userXYZ is in group monkeys, but I dont want to have to have to map anything. Is this possible? Is there a way to just say give me the windows group names that userXYZ is in? or is userXYZ in windows group name 'monkeys'? Thanks! - Jeremiah -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba This works for me, listing the groups a user is in. You could modify it to do the reverse. Be careful, Outlook tends to trash scripts I mail with extra newlines, etc. -CUT HERE--- #!/bin/bash # # domain_groups # enumerate the domain groups a Domain user is in. # wbinfo -r returns numeric gids, and groups (user) will # usually just return Domain Users # This script chains together several wbinfo commands to # return the human readable group names a domain user is in. # Depends of course on Samba Winbind installed and working. # James Zuelow // City and Borough of Juneau # 02 May 2006 ### if [[ -z $1 ]] then dsep=`wbinfo --separator` echo useage: domain_groups (user_name) echo You may need to supply the domain if winbind does not use default domain. echo i.e. domain_groups NT_DOMAIN${dsep}user_name exit 1 fi dgroupgids=`wbinfo -r $1` #echo ${dgroupgids} for gid in $dgroupgids do dgroupsid=`wbinfo -G ${gid}` dgroupnam=`wbinfo -s ${dgroupsid} |rev | cut -c 3- | rev` echo ${dgroupnam} done --CUT HERE James ZuelowCBJ MIS (907)586-0236 Network Specialist...Registered Linux User No. 186591 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.0 build with ADS support on Solaris 9
Hey Guys, I have trying to build Samba 3.0 with ADS support on Solaris 9. This is how I am trying to configure samba: ./configure --prefix=/usr/local/samba \ --with-ldap \ --enable-static \ --with-ads \ --with-krb5 \ --with-libiconv \ --with-automount I have set the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/opt/sfw/lib:/usr/local/lib:/usr/lib ls /opt/sfw/lib liblber.a liblber.so.2 libldap.la libldap_r.so libldap.so liblber.laliblber.so.2.0.122libldap_r.a libldap_r.so.2libldap.so.2 liblber.solibldap.a libldap_r.la libldap_r.so.2.0.122 libldap.so.2.0.122 The error I am receiving when I run the configure is: ..snip checking for lber.h... yes checking for ber_scanf in -llber... no checking for ldap_init in -lldap... no checking for ldap_set_rebind_proc... no checking whether ldap_set_rebind_proc takes 3 arguments... 3 configure: error: libldap is needed for LDAP support Any ideas what I am missing? Libldap seems to be there so how come configure is not seeing it? Any suggestions or comments would be grately appreciated. Thanks, -Jagga -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] gdm-binary[2950]: Couldn't open session
hi I need help trouble shooting using samba to authenticate login via active directory. Here is part of system log Jun 7 15:05:41 scenty64 pam_winbind[2950]: user 'HIDDEN\zuser' granted access Jun 7 15:05:41 scenty64 gdm(pam_unix)[2950]: session opened for user HIDDEN\zuser by (uid=0) Jun 7 15:05:41 scenty64 gdm-binary[2950]: Couldn't open session for HIDDEN\zuser I can not find information as to what gdm-binary[2950] means or how to fix it. Should I send smb.conf, nsswitch.conf system-auth?? Paul Karrel 705 2771082 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] See if authenticated user is in group XYZ
On Wed, Jun 07, 2006 at 01:05:26PM -0400, Jeremiah Martell wrote: I have winbindd running. I run wbinfo -a userXYZ%pass and it succeeds Now I want to know if userXYZ is in group monkeys, but I dont want to have to have to map anything. Is this possible? Is there a way to just say give me the windows group names that userXYZ is in? or is userXYZ in windows group name 'monkeys'? wbinfo --user-sids might help here. Volker pgpc7ElYSjZLJ.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: Fwd: [Samba] Re: Getting NTLM group info about user
On Wed, Jun 07, 2006 at 09:08:30AM -0400, Jeremiah Martell wrote: How do you map these unix group ids to the active directory group names? Like the group's DN, or CN, or ? This is normal winbind operation. You certainly have to set the 'idmap uid' and 'idmap gid' parameters. Volker pgpzOe5LwYeuF.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Issue joining samba to W2K domain
Hello All, I am having an issue joining my samba server to an Windows 2000 Active Directory domain. When I run the net ads join -U Administrator command and enter the password, it simply hangs there until terminated. The machine account gets created on the domain controller, but the join does not complete sucessfully. I have verified that kerberos is working with kinit [EMAIL PROTECTED] and klist. The odd part is that I can join the that same samba server to a Windows 2003 Domain with no issue whatsoever. Has anyone seen an issue similar to this while joining a 2000 domain? Thanks, Justin -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.0 build with ADS support on Solaris 9
On 6/7/06, Jagga Soorma [EMAIL PROTECTED] wrote: Hey Guys, I have trying to build Samba 3.0 with ADS support on Solaris 9. This is how I am trying to configure samba: ./configure --prefix=/usr/local/samba \ --with-ldap \ --enable-static \ --with-ads \ --with-krb5 \ --with-libiconv \ --with-automount Any suggestions or comments would be grately appreciated. Here is what I did and worked on Solaris 9 and 10: export LDFLAGS=-L/usr/local/openldap/lib -Wl,\ -R/usr/local/openldap/lib export CPPFLAGS=-I/usr/local/openldap/include ./configure prefix=/usr/local/samba --with-winbind \ --with-ads --with-ldap --with-krb5=/usr/local/kerberos5 make make install Assuming you have openldap and kerberos installed in the above directories. Vahid -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem with Windows 2003 AD and Samba 3.0.21
Hi, We have had Samba version 3.0.21b and c working in Windows 2000 Active Directory environment for a long time until one of the AD servers was upgraded to Windows 2003. If a user is bounded to that Win 2003 AD, the net view \\sambaserver file://sambaserver/ will fail with System error 64 has occurred. but strangely, if user uses the IP address of sambaserver, everything is ok. At this point the workaround is to have the user his PC several times to bind to a Win 2000 AD. Is this something that can be fixed or have to wait until next Samba release? Is it Samba problem at all or AD configuration? This is all on Solaris 10, Samba 3.0.21b,c MIT krb 1.4.3, openldap 2.3.20 Thanks for any help. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Sending popup message via smbclient to w2k and winxpmachines
I added the following line to the script: LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib but still received the same message as below in the logfile. Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Oram Sent: Wednesday, 7 June 2006 4:09 PM To: samba@lists.samba.org Subject: RE: [Samba] Sending popup message via smbclient to w2k and winxpmachines By replacing the redirect with a logfile I got the following message: ld.so.1: /usr/local/samba/bin/smbclient: fatal: libreadline.so.4: open failed: No such file or directory Looks like I need to include a LIBRARY variable. Peter -Original Message- From: Adam Nielsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 June 2006 1:44 PM To: Peter Oram Cc: samba@lists.samba.org Subject: Re: [Samba] Sending popup message via smbclient to w2k and winxp machines Copy and paste each line of the script it works. If I run the script using bogus data from the command line it works. It is only when I get it to run live that it doesn't. Think I may have missed one point. The script is run from within another, but is passed all the correct variables for it to work. What happens if you take off the redirect to /dev/null and point that to the logfile - then if smbclient complains about anything when run inside the script you'll see it in the logfile. Also what happens if you change the message to hello with no variables? Just in case something odd is being substituted and causing a problem. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file download crashes samba
Jerry - Sorry for the lack of information let me give you a little background. OS: CentOS Linux Kernel: 2.6.9-22.EL Samba Version: 3.0.22 After spending a great deal of time looking over the log files and crashing my samba server and my server in general the only common thread every time is that the output just stops any where in the lib/util.c:dump_data() call. At times output seems to stop halfway into dump_data and other it's in the beginning or end. The problem does not seem to be on any particular file an can vary anywhere from at the beginning of the transfer or 1.2 G's into it. Any help would be greatly appreciated. ..Chris - MY CONFIG [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = CSJ # server string is the equivalent of the NT Description field server string = Samba Server # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the loopback interface. For more examples of the syntax see # the smb.conf man page hosts allow = 192.168.1. 127. # this tells Samba to use a separate log file for each machine # that connects log level = 10 log file = /var/log/samba/%m.log # Put a capping on the size of the log files (in Kb). # max log size = 5 # Security mode. Most people will want user level security. See # security_level.txt for details. security = share # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details # socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 socket options = TCP_NODELAY IPTOS_LOWDELAY # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. The built-in default for versions 1.9.17 is yes, # this has been changed in version 1.9.18 to no. dns proxy = no # Share Definitions == idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = no [homes] comment = Home Directories browseable = no writable = yes # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes [share] comment = Chris Jen's Stuff path = /home/samba only guest = yes public = yes writable = yes printable = no create mask = 0765 On 6/7/06, Gerald (Jerry) Carter [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christopher Johnson wrote: All - While trying to copy a directory containing a large number of files (~600 1-5 mb files ) from my samba server to a client machine ( either mac or windows ) my samba server crashes paralyzing my server machine and forcing me to reboot it. Once the behavior occurs I can no longer ssh into the server or if I happen to be in it already I can't even stop and restart samba. ERRNotEnoughInformation. If you a reporting a Samba crash, you have to at least include OS version, kernel, Samba version, and hopefully a backtrace (or at least the information from the log file). cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFEhsL0IR7qMdg1EfYRAnGiAJ9/Th7MoG04h9+V9jg+88MXsAydQgCgpo0l AdKcoCuc9kWp/XXm+I+pY0I= =cgH4 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file download crashes samba
While trying to copy a directory containing a large number of files ( ~600 1-5 mb files ) from my samba server to a client machine ( either mac or windows ) my samba server crashes paralyzing my server machine and forcing me to reboot it. Once the behavior occurs I can no longer ssh into the server or if I happen to be in it already I can't even stop and restart samba. I don't believe this is client issue as I can duplicate with both mac and windows clients easily. Any ideas resolving this issue would be great. Given that you can no longer SSH into the server it looks like the machine is crashing, not Samba. I've had this problem before with an early 2.6 kernel (it could've even been 2.6.9) where a bug in my network card driver (r8169) caused the whole machine to lock up. This meant that I could trigger the issue with any large network transfer, it wasn't restricted to Samba. I'd look down this path first, as it's pretty uncommon for Samba to be capable of locking up the entire machine. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba server is listed as Unknown by Windows XP.
When I try to open this Samba server by clicking 192.168.0.2, I was asked to input the user name. I did create a user bbb with the password bbb on the Samba server. Did you use 'smbpasswd' to set bbb's password first? However, it keeps change the user name to AAA\bbb and asks me to input the password again. That's because you're on a domain and it expects 'bbb' to be an account on your domain. Try setting the username to 'SAMBA\bbb' where 'SAMBA' is the name of your Samba machine. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] gdm-binary[2950]: Couldn't open session
Jun 7 15:05:41 scenty64 gdm(pam_unix)[2950]: session opened for user HIDDEN\zuser by (uid=0) Jun 7 15:05:41 scenty64 gdm-binary[2950]: Couldn't open session for HIDDEN\zuser I can not find information as to what gdm-binary[2950] means or how to fix it. At a rough guess, run getent passwd HIDDEN\\zuser and see where this user's home directory is. Does that directory exist? Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Sending popup message via smbclient to w2k and winxpmachines
I added the following line to the script: LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib but still received the same message as below in the logfile. Try running set env-cmd.txt from the command line and then run set env-script.txt from within the script and then compare the list of environment variables, as it may not be LD_LIBRARY_PATH at fault. grep them for 'lib' perhaps. Oh - the script isn't running in a chroot jail or anything is it? It could be that smbclient can find the library, but it doesn't have permission to access it. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] user not in group
I recently replaced a samba server with a new machine. Version 3.0.14 was used on the old server and is used on the new server as well. I copied all of the configuration files using rsync from the old server to the new server. Now I have one user that cannot access a share on the new server, but that could be accessed on the old server. After much troubleshooting I have isolated the problem to the fact that samba on the new server treats the user as if it is part of a group in the invalid users for the share. /etc/group does put the user in the group that is an invalid users. Can anyone help? ...remove the user from the invalid group? Remove the group from Samba's list of invalid groups? You could try specifying valid users = username for just that share, but I don't know whether that will bypass Samba's invalid groups option. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] gdm-binary[2950]: Couldn't open session
-Original Message- gdm-binary[2950]: Couldn't open session for HIDDEN\zuser I can not find information as to what gdm-binary[2950] means or how to fix it. Should I send smb.conf, nsswitch.conf system-auth?? Gnome Display Manager. gdm-binary was running with process ID 2950. It looks like your Samba server is also running Gnome, and Hidden\zuser tried to authenticate against gdm instead of winbind. James -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] changing file permissions
If I want to make it to where a user cannot change his/her permissions on a file or directory, are 'nt acl support' and 'security mask' what I need to be using to do this? 'security mask' will restrict the options that can be changed, but I'd probably use the 'force security mode' option instead, which will allow the student to change permissions, but will always force certain permissions on regardless of what the student sets. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] policies
Guess this is a server tool (2000/2003) dunno, can this be obtained without having a windows server ? like is it part of a service pack, or resource kit ? It's part of the Windows Server 2003 Administration Tools Pack which you can install under XP Professional, but it looks like you need the Windows Server CDs to get the installer: http://technet2.microsoft.com/WindowsServer/en/Library/57adeda2-3e00-4d5e-9b01-cf2bf256912d1033.mspx?mfr=true Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.0 build with ADS support on Solaris 9
Hi Jagga, I have been having a similar problem building samba 3.0.22 with ADS for solaris 9. I have tried following instructions from http://lists.samba.org/archive/samba/2006-May/120930.html but still get errors when smbd is converting from foreground to daemon mode - it just hangs. My current workaround is to build without ADS support and treat samba server as an NT4 server (the ADS domain is a mixed mode domain) so join with net rpc join ... etc and then use a usermap to map domain users onto local users as needed. Domain PDCs and BDCs are password server. However this is only a stop gap until samba + ADS build is sorted out so if anyone has any ideas on what is happening or what to do I would really appreciate the help. Cheers, Neil Jagga Soorma wrote: Hey Guys, I have trying to build Samba 3.0 with ADS support on Solaris 9. This is how I am trying to configure samba: ./configure --prefix=/usr/local/samba \ --with-ldap \ --enable-static \ --with-ads \ --with-krb5 \ --with-libiconv \ --with-automount I have set the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/opt/sfw/lib:/usr/local/lib:/usr/lib ls /opt/sfw/lib liblber.a liblber.so.2 libldap.la libldap_r.so libldap.so liblber.laliblber.so.2.0.122libldap_r.a libldap_r.so.2libldap.so.2 liblber.solibldap.a libldap_r.la libldap_r.so.2.0.122 libldap.so.2.0.122 The error I am receiving when I run the configure is: ..snip checking for lber.h... yes checking for ber_scanf in -llber... no checking for ldap_init in -lldap... no checking for ldap_set_rebind_proc... no checking whether ldap_set_rebind_proc takes 3 arguments... 3 configure: error: libldap is needed for LDAP support Any ideas what I am missing? Libldap seems to be there so how come configure is not seeing it? Any suggestions or comments would be grately appreciated. Thanks, -Jagga \ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r16077 - in branches/tmp/jpeach-xmetrics/source: . profile profile/pmda
Author: jpeach Date: 2006-06-07 06:44:32 + (Wed, 07 Jun 2006) New Revision: 16077 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16077 Log: Refactor the PCP autoconf macro. This removes some ancient cruft and provides a correct fallback when PCP is not installed, or when it is not a suitable version. Separate the xmetrics build into its own #define. This means that you can have profiling without xmetrics, and you can have xmetrics without PCP. Require PCP 2.5. This lets us depend on the pmdaCache API and means we don't need to worry about IRIX optional symbols. Integrate PMDA more tightly. Use wrapped system calls even though this means we have to drag in gobs of unused library code. Remove done items from the TODO list. Modified: branches/tmp/jpeach-xmetrics/source/Makefile.in branches/tmp/jpeach-xmetrics/source/aclocal.m4 branches/tmp/jpeach-xmetrics/source/configure.in branches/tmp/jpeach-xmetrics/source/profile/TODO branches/tmp/jpeach-xmetrics/source/profile/pmda/samba.c branches/tmp/jpeach-xmetrics/source/profile/xmetrics_allocator.c branches/tmp/jpeach-xmetrics/source/profile/xmetrics_utils.c Changeset: Sorry, the patch is too large (942 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16077
svn commit: samba r16078 - branches/SAMBA_3_0/source/param trunk/source/param
Author: jerry Date: 2006-06-07 12:01:54 + (Wed, 07 Jun 2006) New Revision: 16078 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16078 Log: Patch from Aleksey Fedoseev [EMAIL PROTECTED] to correctly set the type of 'acl compatibility from string to integer after the changes in r14207. Modified: branches/SAMBA_3_0/source/param/loadparm.c trunk/source/param/loadparm.c Changeset: Modified: branches/SAMBA_3_0/source/param/loadparm.c === --- branches/SAMBA_3_0/source/param/loadparm.c 2006-06-07 06:44:32 UTC (rev 16077) +++ branches/SAMBA_3_0/source/param/loadparm.c 2006-06-07 12:01:54 UTC (rev 16078) @@ -234,7 +234,7 @@ int ldap_ssl; char *szLdapSuffix; char *szLdapAdminDn; - char *szAclCompat; + int iAclCompat; char *szCupsServer; char *szIPrintServer; int ldap_passwd_sync; @@ -967,7 +967,7 @@ {disable netbios, P_BOOL, P_GLOBAL, Globals.bDisableNetbios, NULL, NULL, FLAG_ADVANCED}, {reset on zero vc, P_BOOL, P_GLOBAL, Globals.bResetOnZeroVC, NULL, NULL, FLAG_ADVANCED}, - {acl compatibility, P_STRING, P_GLOBAL, Globals.szAclCompat, NULL, enum_acl_compat_vals, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, + {acl compatibility, P_ENUM, P_GLOBAL, Globals.iAclCompat, NULL, enum_acl_compat_vals, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, {defer sharing violations, P_BOOL, P_GLOBAL, Globals.bDeferSharingViolations, NULL, NULL, FLAG_ADVANCED | FLAG_GLOBAL}, {ea support, P_BOOL, P_LOCAL, sDefault.bEASupport, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, {nt acl support, P_BOOL, P_LOCAL, sDefault.bNTAclSupport, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, @@ -1822,7 +1822,7 @@ FN_GLOBAL_CONST_STRING(lp_template_homedir, Globals.szTemplateHomedir) FN_GLOBAL_CONST_STRING(lp_template_shell, Globals.szTemplateShell) FN_GLOBAL_CONST_STRING(lp_winbind_separator, Globals.szWinbindSeparator) -FN_GLOBAL_INTEGER(lp_acl_compatibility, Globals.szAclCompat) +FN_GLOBAL_INTEGER(lp_acl_compatibility, Globals.iAclCompat) FN_GLOBAL_BOOL(lp_winbind_enum_users, Globals.bWinbindEnumUsers) FN_GLOBAL_BOOL(lp_winbind_enum_groups, Globals.bWinbindEnumGroups) FN_GLOBAL_BOOL(lp_winbind_use_default_domain, Globals.bWinbindUseDefaultDomain) Modified: trunk/source/param/loadparm.c === --- trunk/source/param/loadparm.c 2006-06-07 06:44:32 UTC (rev 16077) +++ trunk/source/param/loadparm.c 2006-06-07 12:01:54 UTC (rev 16078) @@ -234,7 +234,7 @@ int ldap_ssl; char *szLdapSuffix; char *szLdapAdminDn; - char *szAclCompat; + int iAclCompat; char *szCupsServer; char *szIPrintServer; int ldap_passwd_sync; @@ -967,7 +967,7 @@ {disable netbios, P_BOOL, P_GLOBAL, Globals.bDisableNetbios, NULL, NULL, FLAG_ADVANCED}, {reset on zero vc, P_BOOL, P_GLOBAL, Globals.bResetOnZeroVC, NULL, NULL, FLAG_ADVANCED}, - {acl compatibility, P_STRING, P_GLOBAL, Globals.szAclCompat, NULL, enum_acl_compat_vals, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, + {acl compatibility, P_ENUM, P_GLOBAL, Globals.iAclCompat, NULL, enum_acl_compat_vals, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, {defer sharing violations, P_BOOL, P_GLOBAL, Globals.bDeferSharingViolations, NULL, NULL, FLAG_ADVANCED | FLAG_GLOBAL}, {ea support, P_BOOL, P_LOCAL, sDefault.bEASupport, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, {nt acl support, P_BOOL, P_LOCAL, sDefault.bNTAclSupport, NULL, NULL, FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL}, @@ -1822,7 +1822,7 @@ FN_GLOBAL_CONST_STRING(lp_template_homedir, Globals.szTemplateHomedir) FN_GLOBAL_CONST_STRING(lp_template_shell, Globals.szTemplateShell) FN_GLOBAL_CONST_STRING(lp_winbind_separator, Globals.szWinbindSeparator) -FN_GLOBAL_INTEGER(lp_acl_compatibility, Globals.szAclCompat) +FN_GLOBAL_INTEGER(lp_acl_compatibility, Globals.iAclCompat) FN_GLOBAL_BOOL(lp_winbind_enum_users, Globals.bWinbindEnumUsers) FN_GLOBAL_BOOL(lp_winbind_enum_groups, Globals.bWinbindEnumGroups) FN_GLOBAL_BOOL(lp_winbind_use_default_domain, Globals.bWinbindUseDefaultDomain)
svn commit: samba r16079 - branches/SAMBA_3_0/source/param trunk/source/param
Author: jerry Date: 2006-06-07 12:35:16 + (Wed, 07 Jun 2006) New Revision: 16079 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16079 Log: How embarassing. :-( Broke the build. I will *always* compile before checking in... I will *always* compile before checking in... I will *always* compile before checking in... I will *always* compile before checking in... I will *always* compile before checking in... Modified: branches/SAMBA_3_0/source/param/loadparm.c trunk/source/param/loadparm.c Changeset: Modified: branches/SAMBA_3_0/source/param/loadparm.c === --- branches/SAMBA_3_0/source/param/loadparm.c 2006-06-07 12:01:54 UTC (rev 16078) +++ branches/SAMBA_3_0/source/param/loadparm.c 2006-06-07 12:35:16 UTC (rev 16079) @@ -1611,7 +1611,6 @@ string_set(Globals.szTemplateShell, /bin/false); string_set(Globals.szTemplateHomedir, /home/%D/%U); string_set(Globals.szWinbindSeparator, \\); - string_set(Globals.szAclCompat, ); string_set(Globals.szCupsServer, ); string_set(Globals.szIPrintServer, ); Modified: trunk/source/param/loadparm.c === --- trunk/source/param/loadparm.c 2006-06-07 12:01:54 UTC (rev 16078) +++ trunk/source/param/loadparm.c 2006-06-07 12:35:16 UTC (rev 16079) @@ -1611,7 +1611,6 @@ string_set(Globals.szTemplateShell, /bin/false); string_set(Globals.szTemplateHomedir, /home/%D/%U); string_set(Globals.szWinbindSeparator, \\); - string_set(Globals.szAclCompat, ); string_set(Globals.szCupsServer, ); string_set(Globals.szIPrintServer, );
svn commit: samba r16080 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch
Author: gd Date: 2006-06-07 13:06:49 + (Wed, 07 Jun 2006) New Revision: 16080 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16080 Log: Re-add accidentially excluded in-forest domain trusts (fixes bug #3823). Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c trunk/source/nsswitch/winbindd_ads.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c === --- branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c 2006-06-07 12:35:16 UTC (rev 16079) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c 2006-06-07 13:06:49 UTC (rev 16080) @@ -1042,7 +1042,7 @@ struct ds_domain_trust *domains = NULL; int count = 0; int i; - uint32 flags = DS_DOMAIN_DIRECT_OUTBOUND; + uint32 flags = DS_DOMAIN_IN_FOREST | DS_DOMAIN_DIRECT_OUTBOUND; struct rpc_pipe_client *cli; DEBUG(3,(ads: trusted_domains\n)); Modified: trunk/source/nsswitch/winbindd_ads.c === --- trunk/source/nsswitch/winbindd_ads.c2006-06-07 12:35:16 UTC (rev 16079) +++ trunk/source/nsswitch/winbindd_ads.c2006-06-07 13:06:49 UTC (rev 16080) @@ -1042,7 +1042,7 @@ struct ds_domain_trust *domains = NULL; int count = 0; int i; - uint32 flags = DS_DOMAIN_DIRECT_OUTBOUND; + uint32 flags = DS_DOMAIN_IN_FOREST | DS_DOMAIN_DIRECT_OUTBOUND; struct rpc_pipe_client *cli; DEBUG(3,(ads: trusted_domains\n));
svn commit: samba r16081 - in branches/tmp/vl-messaging/source: . include lib nmbd nsswitch param printing
Author: jmcd Date: 2006-06-07 14:45:07 + (Wed, 07 Jun 2006) New Revision: 16081 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16081 Log: Work from Aleksey Fedoseev to add separate messaging types Added: branches/tmp/vl-messaging/source/lib/messages_dgram.c branches/tmp/vl-messaging/source/lib/messages_socket.c branches/tmp/vl-messaging/source/lib/messages_stream.c branches/tmp/vl-messaging/source/lib/messages_tdb.c Modified: branches/tmp/vl-messaging/source/Makefile.in branches/tmp/vl-messaging/source/configure.in branches/tmp/vl-messaging/source/include/messages.h branches/tmp/vl-messaging/source/include/smb.h branches/tmp/vl-messaging/source/lib/messages.c branches/tmp/vl-messaging/source/lib/util.c branches/tmp/vl-messaging/source/lib/util_sock.c branches/tmp/vl-messaging/source/nmbd/nmbd.c branches/tmp/vl-messaging/source/nmbd/nmbd_packets.c branches/tmp/vl-messaging/source/nsswitch/winbindd.c branches/tmp/vl-messaging/source/nsswitch/winbindd_dual.c branches/tmp/vl-messaging/source/param/loadparm.c branches/tmp/vl-messaging/source/printing/printing.c Changeset: Sorry, the patch is too large (2529 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16081
svn commit: samba r16082 - in branches/SAMBA_4_0/source/setup: .
Author: abartlet Date: 2006-06-07 20:43:50 + (Wed, 07 Jun 2006) New Revision: 16082 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16082 Log: Index objectCategory like objectClass, as it is searched on a lot. Andrew Bartlett Modified: branches/SAMBA_4_0/source/setup/provision_init.ldif Changeset: Modified: branches/SAMBA_4_0/source/setup/provision_init.ldif === --- branches/SAMBA_4_0/source/setup/provision_init.ldif 2006-06-07 14:45:07 UTC (rev 16081) +++ branches/SAMBA_4_0/source/setup/provision_init.ldif 2006-06-07 20:43:50 UTC (rev 16082) @@ -3,6 +3,7 @@ @IDXATTR: sAMAccountName @IDXATTR: objectSid @IDXATTR: objectClass [EMAIL PROTECTED]: objectCategory @IDXATTR: member @IDXATTR: unixID @IDXATTR: unixName
svn commit: samba r16083 - in branches/SAMBA_4_0/source: dsdb/samdb/ldb_modules lib/ldb/common lib/ldb/include lib/ldb/ldb_ildap lib/ldb/ldb_ldap lib/ldb/ldb_sqlite3 lib/ldb/ldb_tdb
Author: abartlet Date: 2006-06-07 21:03:38 + (Wed, 07 Jun 2006) New Revision: 16083 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16083 Log: Make it possible to initialise a backend module, without it setting up the whole ldb structure. Because the sequence number was a fn pointer on the main ldb context, turn it into a full request (currently sync). Andrew Bartlett Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c branches/SAMBA_4_0/source/lib/ldb/common/ldb.c branches/SAMBA_4_0/source/lib/ldb/common/ldb_modules.c branches/SAMBA_4_0/source/lib/ldb/include/ldb.h branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c === --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c 2006-06-07 20:43:50 UTC (rev 16082) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c 2006-06-07 21:03:38 UTC (rev 16083) @@ -102,10 +102,13 @@ } if (do_attribute(attrs, highestCommittedUSN)) { - if (module-ldb-sequence_number != NULL - ldb_msg_add_fmt(msg, highestCommittedUSN, - %llu, module-ldb-sequence_number(module-ldb)) != 0) { - goto failed; + uint64_t seq_num; + int ret = ldb_sequence_number(module-ldb, seq_num); + if (ret == LDB_SUCCESS) { + if (ldb_msg_add_fmt(msg, highestCommittedUSN, + %llu, seq_num) != 0) { + goto failed; + } } } Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c === --- branches/SAMBA_4_0/source/lib/ldb/common/ldb.c 2006-06-07 20:43:50 UTC (rev 16082) +++ branches/SAMBA_4_0/source/lib/ldb/common/ldb.c 2006-06-07 21:03:38 UTC (rev 16083) @@ -91,16 +91,20 @@ } /* - connect to a database. The URL can either be one of the following forms + Return the ldb module form of a database. The URL can either be one of the following forms ldb://path ldapi://path flags is made up of LDB_FLG_* the options are passed uninterpreted to the backend, and are - backend specific + backend specific. + + This allows modules to get at only the backend module, for example where a module + may wish to direct certain requests at a particular backend. */ -int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]) +int ldb_connect_backend(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[], + struct ldb_module **backend_module) { int ret; char *backend; @@ -128,13 +132,35 @@ return LDB_ERR_OTHER; } - ret = fn(ldb, url, flags, options); + ret = fn(ldb, url, flags, options, backend_module); if (ret != LDB_SUCCESS) { ldb_debug(ldb, LDB_DEBUG_ERROR, Failed to connect to '%s'\n, url); return ret; } + return ret; +} + +/* + connect to a database. The URL can either be one of the following forms + ldb://path + ldapi://path + + flags is made up of LDB_FLG_* + + the options are passed uninterpreted to the backend, and are + backend specific +*/ +int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]) +{ + int ret; + + ret = ldb_connect_backend(ldb, url, flags, options, ldb-modules); + if (ret != LDB_SUCCESS) { + return ret; + } + if (ldb_load_modules(ldb, options) != LDB_SUCCESS) { ldb_debug(ldb, LDB_DEBUG_FATAL, Unable to load modules for '%s'\n, url); return LDB_ERR_OTHER; @@ -395,6 +421,10 @@ FIRST_OP(ldb, rename); ret = module-ops-rename(module, req); break; + case LDB_SEQUENCE_NUMBER: + FIRST_OP(ldb, sequence_number); + ret = module-ops-sequence_number(module, req); + break; default: FIRST_OP(ldb, request); ret = module-ops-request(module, req); @@ -655,7 +685,39 @@ } +/* + rename a record in the database +*/ +int ldb_sequence_number(struct ldb_context *ldb, uint64_t *seq_num) +{ + struct ldb_request *req; + int ret; + req = talloc(ldb, struct ldb_request); + if (req == NULL) { + ldb_set_errstring(ldb, talloc_strdup(ldb, Out of
svn commit: samba r16084 - in branches/SAMBA_4_0/source/lib/ldb/include: .
Author: abartlet Date: 2006-06-07 22:03:06 + (Wed, 07 Jun 2006) New Revision: 16084 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16084 Log: Add private prototype for new ldb_connect_backend() function. Andrew Bartlett Modified: branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h === --- branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h 2006-06-07 21:03:38 UTC (rev 16083) +++ branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h 2006-06-07 22:03:06 UTC (rev 16084) @@ -130,6 +130,11 @@ */ #define ldb_oom(ldb) ldb_debug_set(ldb, LDB_DEBUG_FATAL, ldb out of memory at %s:%d\n, __FILE__, __LINE__) +/* The following definitions come from lib/ldb/common/ldb.c */ + +int ldb_connect_backend(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[], + struct ldb_module **backend_module); + /* The following definitions come from lib/ldb/common/ldb_modules.c */ int ldb_load_modules(struct ldb_context *ldb, const char *options[]);
Build status as of Thu Jun 8 00:00:02 2006
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2006-06-07 00:00:42.0 + +++ /home/build/master/cache/broken_results.txt 2006-06-08 00:00:23.0 + @@ -1,18 +1,18 @@ -Build status as of Wed Jun 7 00:00:02 2006 +Build status as of Thu Jun 8 00:00:02 2006 Build counts: Tree Total Broken Panic SOC 0 0 0 -ccache 36 5 0 +ccache 35 5 0 distcc 37 5 0 -lorikeet-heimdal 2 2 0 +lorikeet-heimdal 1 1 0 ppp 19 0 0 rsync40 1 0 samba5 1 0 samba-docs 0 0 0 -samba4 45 29 4 -samba_3_043 16 0 +samba4 45 31 5 +samba_3_042 15 0 smb-build31 0 0 -talloc 25 13 0 +talloc 22 11 0 tdb 37 4 0
svn commit: samba r16085 - in branches/SAMBA_4_0/source/lib/ldb/common: .
Author: abartlet Date: 2006-06-08 00:58:57 + (Thu, 08 Jun 2006) New Revision: 16085 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16085 Log: Set the error string if we fail to find a valid op to execute. Helps in chasing down bugs :-) Andrew Bartlett Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c === --- branches/SAMBA_4_0/source/lib/ldb/common/ldb.c 2006-06-07 22:03:06 UTC (rev 16084) +++ branches/SAMBA_4_0/source/lib/ldb/common/ldb.c 2006-06-08 00:58:57 UTC (rev 16085) @@ -189,9 +189,13 @@ } #define FIRST_OP(ldb, op) do { \ - module = ldb-modules; \ + module = ldb-modules; \ while (module module-ops-op == NULL) module = module-next; \ - if (module == NULL) return LDB_ERR_OPERATIONS_ERROR; \ + if (module == NULL) { \ + ldb_set_errstring(ldb, \ + talloc_asprintf(ldb, unable to find module or backend to handle operation: #op)); \ + return LDB_ERR_OPERATIONS_ERROR;\ + } \ } while (0) /*
svn commit: samba r16086 - in branches/SAMBA_4_0/source/lib/ldb/common: .
Author: abartlet Date: 2006-06-08 01:00:46 + (Thu, 08 Jun 2006) New Revision: 16086 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16086 Log: Ensure we can never dereference NULL pointers, and that describe what these two DN comparison functions do. Andrew Bartlett Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c === --- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c 2006-06-08 00:58:57 UTC (rev 16085) +++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c 2006-06-08 01:00:46 UTC (rev 16086) @@ -478,23 +478,25 @@ return NULL; } -/* compare DNs using casefolding compare functions */ +/* Determine if dn is below base, in the ldap tree. Used for + * evaluating a subtree search. + * 0 if they match, otherwise non-zero + */ int ldb_dn_compare_base(struct ldb_context *ldb, - const struct ldb_dn *base, - const struct ldb_dn *dn) + const struct ldb_dn *base, + const struct ldb_dn *dn) { int ret; int n0, n1; + if (base == NULL || base-comp_num == 0) return 0; + if (dn == NULL || dn-comp_num == 0) return -1; + if (base-comp_num dn-comp_num) { return (dn-comp_num - base-comp_num); } - if (base == NULL || base-comp_num == 0) return 0; - if (dn == NULL || dn-comp_num == 0) return -1; - if (base-comp_num dn-comp_num) return -1; - /* if the number of components doesn't match they differ */ n0 = base-comp_num - 1; n1 = dn-comp_num - 1; @@ -522,6 +524,11 @@ return 0; } +/* compare DNs using casefolding compare functions. + + If they match, then return 0 + */ + int ldb_dn_compare(struct ldb_context *ldb, const struct ldb_dn *edn0, const struct ldb_dn *edn1)
svn commit: samba r16087 - in branches/SAMBA_4_0/source/lib/ldb: ldb_ildap ldb_ldap ldb_sqlite3 ldb_tdb
Author: abartlet Date: 2006-06-08 01:02:14 + (Thu, 08 Jun 2006) New Revision: 16087 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16087 Log: Fix silly cut-and-paste typo that cost me much of my afternoon... This only affects my new partitions module, which I will post soon, but should be fixed anyway. Andrew Bartlett Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c 2006-06-08 01:00:46 UTC (rev 16086) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c 2006-06-08 01:02:14 UTC (rev 16087) @@ -833,7 +833,7 @@ return -1; } (*module)-ldb = ldb; - (*module)-prev = ldb-modules-next = NULL; + (*module)-prev = (*module)-next = NULL; (*module)-private_data = ildb; (*module)-ops = ildb_ops; @@ -869,9 +869,6 @@ return 0; failed: - if (ldb-modules) { - ldb-modules-private_data = NULL; - } talloc_free(ildb); return -1; } Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c 2006-06-08 01:00:46 UTC (rev 16086) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c 2006-06-08 01:02:14 UTC (rev 16087) @@ -811,7 +811,7 @@ return -1; } (*module)-ldb = ldb; - (*module)-prev = ldb-modules-next = NULL; + (*module)-prev = (*module)-next = NULL; (*module)-private_data = lldb; (*module)-ops = lldb_ops; Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2006-06-08 01:00:46 UTC (rev 16086) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2006-06-08 01:02:14 UTC (rev 16087) @@ -2106,7 +2106,7 @@ goto failed; } (*module)-ldb = ldb; - (*module)-prev = ldb-modules-next = NULL; + (*module)-prev = (*module)-next = NULL; (*module)-private_data = lsqlite3; (*module)-ops = lsqlite3_ops; Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c 2006-06-08 01:00:46 UTC (rev 16086) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c 2006-06-08 01:02:14 UTC (rev 16087) @@ -1028,7 +1028,7 @@ return -1; } (*module)-ldb = ldb; - (*module)-prev = ldb-modules-next = NULL; + (*module)-prev = (*module)-next = NULL; (*module)-private_data = ltdb; (*module)-ops = ltdb_ops;
svn commit: samba r16088 - in trunk/examples/VFS: .
Author: jpeach Date: 2006-06-08 02:09:31 + (Thu, 08 Jun 2006) New Revision: 16088 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16088 Log: Update skel_transparent to VFS interface version 17. Modified: trunk/examples/VFS/skel_transparent.c Changeset: Modified: trunk/examples/VFS/skel_transparent.c === --- trunk/examples/VFS/skel_transparent.c 2006-06-08 01:02:14 UTC (rev 16087) +++ trunk/examples/VFS/skel_transparent.c 2006-06-08 02:09:31 UTC (rev 16088) @@ -37,32 +37,32 @@ * --metze */ -static int skel_connect(vfs_handle_struct *handle, connection_struct *conn, const char *service, const char *user) +static int skel_connect(vfs_handle_struct *handle, const char *service, const char *user) { - return SMB_VFS_NEXT_CONNECT(handle, conn, service, user); + return SMB_VFS_NEXT_CONNECT(handle, service, user); } -static void skel_disconnect(vfs_handle_struct *handle, connection_struct *conn) +static void skel_disconnect(vfs_handle_struct *handle) { - SMB_VFS_NEXT_DISCONNECT(handle, conn); + SMB_VFS_NEXT_DISCONNECT(handle); } -static SMB_BIG_UINT skel_disk_free(vfs_handle_struct *handle, connection_struct *conn, const char *path, +static SMB_BIG_UINT skel_disk_free(vfs_handle_struct *handle, const char *path, BOOL small_query, SMB_BIG_UINT *bsize, SMB_BIG_UINT *dfree, SMB_BIG_UINT *dsize) { - return SMB_VFS_NEXT_DISK_FREE(handle, conn, path, small_query, bsize, + return SMB_VFS_NEXT_DISK_FREE(handle, path, small_query, bsize, dfree, dsize); } -static int skel_get_quota(vfs_handle_struct *handle, connection_struct *conn, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dq) +static int skel_get_quota(vfs_handle_struct *handle, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dq) { - return SMB_VFS_NEXT_GET_QUOTA(handle, conn, qtype, id, dq); + return SMB_VFS_NEXT_GET_QUOTA(handle, qtype, id, dq); } -static int skel_set_quota(vfs_handle_struct *handle, connection_struct *conn, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dq) +static int skel_set_quota(vfs_handle_struct *handle, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dq) { - return SMB_VFS_NEXT_SET_QUOTA(handle, conn, qtype, id, dq); + return SMB_VFS_NEXT_SET_QUOTA(handle, qtype, id, dq); } static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, BOOL labels) @@ -70,54 +70,54 @@ return SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data, labels); } -static int skel_statvfs(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *path, struct vfs_statvfs_struct *statbuf) +static int skel_statvfs(struct vfs_handle_struct *handle, const char *path, struct vfs_statvfs_struct *statbuf) { - return SMB_VFS_NEXT_STATVFS(handle, conn, path, statbuf); + return SMB_VFS_NEXT_STATVFS(handle, path, statbuf); } -static SMB_STRUCT_DIR *skel_opendir(vfs_handle_struct *handle, connection_struct *conn, const char *fname, const char *mask, uint32 attr) +static SMB_STRUCT_DIR *skel_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr) { - return SMB_VFS_NEXT_OPENDIR(handle, conn, fname, mask, attr); + return SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr); } -static SMB_STRUCT_DIRENT *skel_readdir(vfs_handle_struct *handle, connection_struct *conn, SMB_STRUCT_DIR *dirp) +static SMB_STRUCT_DIRENT *skel_readdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) { - return SMB_VFS_NEXT_READDIR(handle, conn, dirp); + return SMB_VFS_NEXT_READDIR(handle, dirp); } -static void skel_seekdir(vfs_handle_struct *handle, connection_struct *conn, SMB_STRUCT_DIR *dirp, long offset) +static void skel_seekdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, long offset) { - return SMB_VFS_NEXT_SEEKDIR(handle, conn, dirp, offset); + return SMB_VFS_NEXT_SEEKDIR(handle, dirp, offset); } -static long skel_telldir(vfs_handle_struct *handle, connection_struct *conn, SMB_STRUCT_DIR *dirp) +static long skel_telldir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) { - return SMB_VFS_NEXT_TELLDIR(handle, conn, dirp); + return SMB_VFS_NEXT_TELLDIR(handle, dirp); } -static void skel_rewinddir(vfs_handle_struct *handle, connection_struct *conn, SMB_STRUCT_DIR *dirp) +static void skel_rewinddir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) { - return SMB_VFS_NEXT_REWINDDIR(handle, conn, dirp); + return SMB_VFS_NEXT_REWINDDIR(handle, dirp); } -static int skel_mkdir(vfs_handle_struct *handle, connection_struct *conn, const char *path, mode_t mode) +static int skel_mkdir(vfs_handle_struct *handle, const char *path, mode_t mode) { - return
svn commit: samba r16090 - in branches/SAMBA_4_0/source/lib/ldb: ldb_sqlite3 modules
Author: tpot Date: 2006-06-08 03:57:57 + (Thu, 08 Jun 2006) New Revision: 16090 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16090 Log: Fix standalone build after the rename of enum ldb_request_type in r15944. Hey idra I think a better rename would be to keep the LDB_REQ suffix here to remain consistent with the other enums (e.g ldb_reply_type, ldb_async_wait_type and ldb_async_state). Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.c branches/SAMBA_4_0/source/lib/ldb/modules/schema.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2006-06-08 03:35:39 UTC (rev 16089) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2006-06-08 03:57:57 UTC (rev 16090) @@ -1990,7 +1990,7 @@ switch (req-operation) { - case LDB_REQ_SEARCH: + case LDB_SEARCH: return lsql_search_bytree(module, req-op.search.base, req-op.search.scope, @@ -1998,21 +1998,21 @@ req-op.search.attrs, req-op.search.res); - case LDB_REQ_ADD: + case LDB_ADD: return lsql_add(module, req-op.add.message); - case LDB_REQ_MODIFY: + case LDB_MODIFY: return lsql_modify(module, req-op.mod.message); - case LDB_REQ_DELETE: + case LDB_DELETE: return lsql_delete(module, req-op.del.dn); - case LDB_REQ_RENAME: + case LDB_RENAME: return lsql_rename(module, req-op.rename.olddn, req-op.rename.newdn); - case LDB_ASYNC_SEARCH: + case LDB_SEARCH: return lsql_search_async(module, req-op.search.base, req-op.search.scope, @@ -2022,28 +2022,28 @@ req-async.callback, req-async.handle); /* - case LDB_ASYNC_ADD: + case LDB_ADD: return lsql_add_async(module, req-op.add.message, req-async.context, req-async.callback, req-async.handle); - case LDB_ASYNC_MODIFY: + case LDB_MODIFY: return lsql_modify_async(module, req-op.mod.message, req-async.context, req-async.callback, req-async.handle); */ - case LDB_ASYNC_DELETE: + case LDB_DELETE: return lsql_delete_async(module, req-op.del.dn, req-async.context, req-async.callback, req-async.handle); - case LDB_ASYNC_RENAME: + case LDB_RENAME: return lsql_rename_async(module, req-op.rename.olddn, req-op.rename.newdn, Modified: branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.c === --- branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.c 2006-06-08 03:35:39 UTC (rev 16089) +++ branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.c 2006-06-08 03:57:57 UTC (rev 16090) @@ -812,7 +812,7 @@ new_base = map_local_dn(module, module, base); memset((char *)(new_req), 0, sizeof(new_req)); - new_req.operation = LDB_REQ_SEARCH; + new_req.operation = LDB_SEARCH; new_req.op.search.base = new_base; new_req.op.search.scope = scope; new_req.op.search.tree = new_tree; @@ -857,7 +857,7 @@ /* Merge with additional data from fallback database */ memset((char *)(mergereq), 0, sizeof(mergereq)); /* zero off the request structure */ - mergereq.operation = LDB_REQ_SEARCH; + mergereq.operation = LDB_SEARCH; mergereq.op.search.base = merged-dn; mergereq.op.search.scope = LDB_SCOPE_BASE; mergereq.op.search.tree = ldb_parse_tree(module, ); @@ -1266,10 +1266,10 @@ fb_ret = ldb_next_request(module, req); if (fb_ret == -1) { ldb_msg_add_string(fb, isMapped, TRUE); - req-operation = LDB_REQ_ADD; +