Re: [Samba] Error compiling samba 3.0.21c, AIX 52 ML7 gcc 3.3.2
On Tue, Mar 28, 2006 at 11:37:08AM +0100, [EMAIL PROTECTED] wrote: Hi Guenther, Thanks for the code. Even I managed to understand that ;-0 It has got the make past the point it failed last time, should this be flagged as a bug? Not required, I commit that patch. Thanks, Guenther -- Günther DeschnerGPG-ID: 8EE11688 Novell / SUSE LINUX [EMAIL PROTECTED] Samba Team [EMAIL PROTECTED] pgpGNvjpgWS1a.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] authentication performance problem
Hi guys, I'm running a NT Domain hosted on two Debian GNU/Linux Sarge servers running Samba (respectively as PDC and as member server), with lots of horsepower (dual-cpu with 1GB RAM or more each). Samba itself is behaving blazingly fast, from both servers. I use winbind on the member server, of course. Still, on this machine I see each week a huge performance drop related authentication, to the point where it has to be rebooted to allow authentication before clients time out. Any ideas of where to start looking for? I can provide all the configuration, and all the information needed to track down this problem. I already tweaked the configuration a lot to improve performance, but this issue exceeds my capacity now. Can you help me? -- Jérôme Warnier FLOSS Consultant http://beeznest.net -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Where can I find explanation for smbstatus locking table values?
Hi all, In table: Locked files: PidDenyMode Access R/WOplock Name -- 28938 DENY_NONE 0x2019f RDWR EXCLUSIVE+BATCH /posao/backup/evident/2006//PODUZECA/PODATCI/P013/Kalkulac/Zaglav.dbf Fri Mar 24 14:09:37 2006 Where can I find what different values of Access (0x2019f) od R/W (RDWR) or Oplock (EXCLUSIVE+BATCH) means? Zoran -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] get_md4pw: Workstation PC-WINSIC$: no account in domain
hello to all i use a samba server (3.0.14a) PDC which makes the users and computers authentication on a LDAP server (openldap on debian sarge) (people branch and computers branch).. does somebody had this problem? when a user connects from a PC which is in a windows domain, the authentication doesn't succeed for the following reason the error message is (translated from french message by me, sorry): windows can't connect to the domain because the domain controler doesn't work or your computer account has not been found (original french message) windows ne peut pas se connecter au domaine car le controleur de domaine ne fonctionne pas est indisponible ou votre compte d'ordinateur n'a pas été trouvé but: 1. my ldap server seems to be functionnal, it answers to queries 2. my samba server is also operationnal it seems that at logon time, samba doens't find the computer name in the computer branch of the ldap server... But it's in! example of log: [2006/03/29 17:54:26, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1334) ldapsam_getsampwnam: Unable to locate user [PC-WINSIC$] count=0 2006/03/29 17:54:26, 0] rpc_server/srv_netlog_nt.c:get_md4pw(244) get_md4pw: Workstation PC-WINSIC$: no account in domain whereas this pc-winsic$ computer is well in the computer branch, and i can query my ldap server for this entry! I rebuild my ldap database, i started again ldap and samba server, without more success i can't find the origin of the problem.. the only solution i found is to remove the computer from the domain, reboot, re enter the computer in the domain.. and it works! but i can't make this operation for my several tens of computer! do you know this problem? is there a central solution which can solve the problem without acting on each client computer? many thanks for help ML -- Maurice Libes Tel : +33 (04) 91 82 93 25Centre d'Oceanologie de Marseille Fax : +33 (04) 91 82 65 48UMS2196 CNRS- Campus de Luminy, Case 901 mailto:[EMAIL PROTECTED] F-13288 Marseille cedex 9 Annuaire : http://annuaire.univmed.fr/showuser.php?uid=libes -- Maurice Libes Tel : +33 (04) 91 82 93 25Centre d'Oceanologie de Marseille Fax : +33 (04) 91 82 65 48UMS2196 CNRS- Campus de Luminy, Case 901 mailto:[EMAIL PROTECTED] F-13288 Marseille cedex 9 Annuaire : http://annuaire.univmed.fr/showuser.php?uid=libes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Where can I find explanation for smbstatus locking table values?
Zoran Ljubisic wrote: Hi all, In table: Locked files: PidDenyMode Access R/WOplock Name -- 28938 DENY_NONE 0x2019f RDWR EXCLUSIVE+BATCH /posao/backup/evident/2006//PODUZECA/PODATCI/P013/Kalkulac/Zaglav.dbf Fri Mar 24 14:09:37 2006 Where can I find what different values of Access (0x2019f) od R/W (RDWR) or Oplock (EXCLUSIVE+BATCH) means? Zoran Hi Zoran, It's a Microsoft thing. Here's a link to a general overview of CIFS that explains oplocks, exclusive oplocks, batch oplocks, and other related stuff. http://www.microsoft.com/mind/1196/cifs.asp Regards, Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Linux - Windows Server2003 Leaves Open Files...
I was hoping the Samba experts on this list can help me with an irritating issue... I have an issue with Windows file servers (Server2003) thinking that files are open with they are not. The problem occurs when one or more linux servers using smbfs mounts under FedoraCore4 opens the same file(s) at the same time. This test script can exhibit the issue: # CAREFUL to kill this after a few seconds while true; do head -1 /mnt/windows-server/TestMount/euro_prod/a*/*/*.xml /dev/null done Once these processes complete an 'lsof' shows that the linux machines have no open files but an 'net file' on the windows server shows these files are open. The only way to fix this is to 'umount /mnt/windows-server' . After that a 'net file' shows all the files closed. I have repeated the above issue on 2 different windows file servers. This is an important issue, as we have an app we want to migrate to linux but we must (in the short term) continue to use a windows file server. This app forks a few processes that access the same files on the windows file share. After running a big job the windows server thinks files are open. These open files prevent other windows programs from opening the file and are generally a nuisance. I am not sure if this is a windows or linux issue. Any help would be appreciated. Thx in advance. Russ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Winbind and email server
OK, here's the samba module: #%PAM-1.0 auth required pam_nologin.so auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth session required pam_mkhomedir.so skel=/etc/skel umask=0022 session required pam_stack.so service=system-auth password required pam_stack.so service=system-auth and here's system-auth: #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required /lib/security/$ISA/pam_env.so auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok auth required /lib/security/$ISA/pam_deny.so account required /lib/security/$ISA/pam_unix.so password required /lib/security/$ISA/pam_cracklib.so retry=3 type= password required /usr/lib/security/pam_sso.so.1 password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow #password required /lib/security/$ISA/pam_deny.so session required /lib/security/$ISA/pam_limits.so session required /lib/security/$ISA/pam_unix.so If you need more, please let me know. Dimitri On Thursday March 30 2006 5:45 pm, Paul Matthews wrote: how about you post your pam module here, you might have it configured to require both local and winbind users instead of either or Paul Matthews I.T Trainee | The Cathedral School Ph (07) 47222 194 | Fax (07) 47222 111 PO Box 944 Aitkenvale Q 4814 E: [EMAIL PROTECTED] W: www.cathedral.qld.edu.au Anglican coeducation | Day and Boarding | Early Childhood to Year 12 Educating for life-long success *** * *** * *** IMPORTANT NOTICE REGARDING CONFIDENTIALITY This electronic email message is intended only for the addressee and may contain confidential information. If you are not the addressee, you are notified that any transmission, distribution or photocopying of this email is strictly prohibited. The confidentiality attached to this email is not waived, lost or destroyed by reasons of a mistaken delivery to you. -Original Message- From: Dimitri Yioulos [mailto:[EMAIL PROTECTED] Sent: Friday, 31 March 2006 8:33 AM To: Paul Matthews Subject: Re: [Samba] Winbind and email server top-posting by necessity ... Hi, Paul. Alas, my nsswitch.conf is properly configured. Any other ideas? Dimitri On Thursday March 30 2006 5:12 pm, you wrote: well the problem i think your having is that you have not edited the /etc/nsswitch.conf file. change from passwd: files shadow: files group: files to: passwd: winbind files shadow: winbind files group: winbind files or something along those lines, play with the /etc/nsswitch.conf to find the right configuration for you. check out the post i've made on my website about how we use have setup my mail system, i think i've done it fairly well http://www.yourhowto.org/content/view/25/9/ Paul Matthews I.T Trainee | The Cathedral School Ph (07) 47222 194 | Fax (07) 47222 111 PO Box 944 Aitkenvale Q 4814 E: [EMAIL PROTECTED] W: www.cathedral.qld.edu.au Anglican coeducation | Day and Boarding | Early Childhood to Year 12 Educating for life-long success *** * *** * *** IMPORTANT NOTICE REGARDING CONFIDENTIALITY This electronic email message is intended only for the addressee and may contain confidential information. If you are not the addressee, you are notified that any transmission, distribution or photocopying of this email is strictly prohibited. The confidentiality attached to this email is not waived, lost or destroyed by reasons of a mistaken delivery to you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ]On Behalf Of Dimitri Yioulos Sent: Friday, 31 March 2006 1:53 AM To: samba@lists.samba.org Subject: [Samba] Winbind and email server Folks, Sincere apologies for asking this again, but I'm just not getting this to work, and must be missing something here: My company's network is based around a Windows 2003 server AD, with several RHEL AS 3 boxes connected to it via samba (3.0.21c-1). This scheme works very well. I've set up, and have successfully been using a sendmail-based email system, too. My issue is this: When I create a user account in AD, I have to also create it in the mail server. This is inconvenient and inefficient. I have samba installed on the mail server. I also have the mkhomedir module installed, and the appropriate line to invoke it is in
[Samba] Local Profiles only
Hello, I have set smb.conf to turn off roaming profiles by putting logon path and logon home as blank entries. However, I find that if I attempt to login as an user in a Windows machine that does not already have a local profile for that user, I get Unable to logon as DOMAINNAME is not available or something like that... It does not create an automatic profile. I am looking at the HOWTO book and the by example book but have not yet found where it might show a fix for this situation. How do I fix it so a default profile will be created and I can continue using local profiles only at the same time? When I had smb.conf with roaming profiles support, it was creating default profiles for new users. I am using SUSE Linux 10 and Samba3 3.0.20b. Thanks, Guru -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Local Profiles only
Greeting Gururajan Ramachandran, On your Windows Workstation execute gpedit.msc, and browse the tree (for XP in this example): Local Computer Policy, Computer Configuration, Administrative Templates, System, User Profil. Find a option to autorise local profile only. Sorry I just have it in french (N'autoriser que les profils d'utilisateurs locaux). The option is not located in the same place for Windows 2000 or Windows XP. However Windows 2000 need the service pack 3 and more to have this option. Robert ** Hello, I have set smb.conf to turn off roaming profiles by putting logon path and logon home as blank entries. However, I find that if I attempt to login as an user in a Windows machine that does not already have a local profile for that user, I get Unable to logon as DOMAINNAME is not available or something like that... It does not create an automatic profile. I am looking at the HOWTO book and the by example book but have not yet found where it might show a fix for this situation. How do I fix it so a default profile will be created and I can continue using local profiles only at the same time? When I had smb.conf with roaming profiles support, it was creating default profiles for new users. I am using SUSE Linux 10 and Samba3 3.0.20b. Thanks, Guru -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] performance regression between 30.14a and 3.0.20
Yes, it is the win32 version, but its an old one (1998), not sure how the config file will carry to a more recent version. IOmeter Access specifications: Transfer req. size = 64Kb 8Kb Percent of Access Specification = 100% Type of Operation: 100% read; 100% write; 50% read Percent Random/Sequential Distribution: 100% sequential Queue Depth = 8 Reply Size: No Reply Burst Length = 25 I/Os Align I/Os on: 64Kb 8Kb Ramp up Time = 30sec Run Time = 3 min # of clients used: 1 to 9 clients (Linear Stepping) Note that the problem is visible with only one client. The clients are GbE as is the server, not sure if you will see a difference on 100BT. Thank you very much for looking at this, please let me know if there is anything I can do to help. Regards, Greg On Thu, 2006-03-30 at 17:20 -0800, Jeremy Allison wrote: On Thu, Mar 30, 2006 at 08:04:21PM -0500, Greg Dickie wrote: Hey Jeremy, This happens when testing under iometer. I can give you the exact paramaters if you want. That's the Win32 version ? If so, yes please the exact parameters would be extremely useful as I can reproduce this here. Thanks, Jeremy. -- Greg Dickie just a guy Maximum Throughput 'Version 1998.10.08 'Access specifications 'Access specification name,default assignment Read 100% 64k,1 'size,% of size,% reads,% random,delay,burst,align,reply 65536,100,100,0,0,25,65536,0 'Access specification name,default assignment Write 100% 64k,1 'size,% of size,% reads,% random,delay,burst,align,reply 65536,100,0,0,0,25,65536,0 'Access specification name,default assignment Read 50% 64k,1 'size,% of size,% reads,% random,delay,burst,align,reply 65536,100,50,0,0,25,65536,0 'Access specification name,default assignment Read 100% 8k,1 'size,% of size,% reads,% random,delay,burst,align,reply 8192,100,100,0,0,25,8192,0 'Access specification name,default assignment Write 100% 8k,1 'size,% of size,% reads,% random,delay,burst,align,reply 8192,100,0,0,0,25,8192,0 'Access specification name,default assignment Read 50% 8k,1 'size,% of size,% reads,% random,delay,burst,align,reply 8192,100,50,0,0,25,8192,0 'End access specifications 'Test Setup 'Test Description 'Run Time ' hoursminutesseconds 0 3 0 'Ramp Up Time (ms) 30 'Default Disk Workers to Spawn -1 'Default Network Workers to Spawn 0 'Record Results 0 'Worker Cycling ' start step step type 1 1 0 'Disk Cycling ' start step step type 1 1 0 'Queue Depth Cycling ' startend step step type 1 32 2 1 'Test Type 4 'Version 1998.10.08 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] performance regression between 30.14a and 3.0.20
On Fri, Mar 31, 2006 at 09:49:02AM -0500, Greg Dickie wrote: Yes, it is the win32 version, but its an old one (1998), not sure how the config file will carry to a more recent version. IOmeter Access specifications: Transfer req. size = 64Kb 8Kb Percent of Access Specification = 100% Type of Operation: 100% read; 100% write; 50% read Percent Random/Sequential Distribution: 100% sequential Queue Depth = 8 Reply Size: No Reply Burst Length = 25 I/Os Align I/Os on: 64Kb 8Kb Ramp up Time = 30sec Run Time = 3 min # of clients used: 1 to 9 clients (Linear Stepping) Note that the problem is visible with only one client. The clients are GbE as is the server, not sure if you will see a difference on 100BT. Thank you very much for looking at this, please let me know if there is anything I can do to help. No problem. What I'll do is run the version against a smbd running with cachegrind. That will point out any extra CPU usage we're accumulating between the two versions. If we've regressed because of a code path this will tell us. Might take a while though as I have to be at LinuxWorld Boston next week. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Migrating from NT4 print server to Samba print server
Hello, I was hoping someone could help me with migrating printers from a WinNT4 print server to a Samba server. I have searched the web for days and haven't found a solution. I am running Slackware 10.1; kernel 2.4.29. I upgraded Samba to 3.0.21c recently and I am using LPR v3.8.28 as my print spooler. Here is the response from the 'rpc migrate printers' command: [EMAIL PROTECTED]:/etcnet rpc printer MIGRATE PRINTERS HPDeskJet600 \ -S Larry -U administrator Password: xxx migrating printer queue for: [\\LARRY\HP DeskJet 600] / [HPDeskJet600] cannot open printer \\127.0.0.1\HPDeskJet600 on server \\127.0.0.1: WERR_INVALIE cannot get printer-info: DOS code 0x001a could not get printer, creating printer. creating printer: \\LARRY\HP DeskJet 600 could not create printer [\\LARRY\HP DeskJet 600] [EMAIL PROTECTED]:/etc Thanks Kirk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Migrating from NT4 print server to Samba print server
Hi Kirk, try this: - use smbclient to copy all files from \\file_server\print$\WIN40\0 to /var/lib/samba/printers/WIN40 - use chmod to change de default permission on the /var/lib/samba/printers/WIN40 to 777 - use rpcclient to add the device drivers and register this driver to the printer - use chown to change the owner of the files on /var/lib/samba/printers/WIN40/0 to root.root - use chmod to change the permissions to the default. []s Marcos --- Kirk B. Dice [EMAIL PROTECTED] escreveu: Hello, I was hoping someone could help me with migrating printers from a WinNT4 print server to a Samba server. I have searched the web for days and haven't found a solution. I am running Slackware 10.1; kernel 2.4.29. I upgraded Samba to 3.0.21c recently and I am using LPR v3.8.28 as my print spooler. Here is the response from the 'rpc migrate printers' command: [EMAIL PROTECTED]:/etcnet rpc printer MIGRATE PRINTERS HPDeskJet600 \ -S Larry -U administrator Password: xxx migrating printer queue for: [\\LARRY\HP DeskJet 600] / [HPDeskJet600] cannot open printer \\127.0.0.1\HPDeskJet600 on server \\127.0.0.1: WERR_INVALIE cannot get printer-info: DOS code 0x001a could not get printer, creating printer. creating printer: \\LARRY\HP DeskJet 600 could not create printer [\\LARRY\HP DeskJet 600] [EMAIL PROTECTED]:/etc Thanks Kirk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba ___ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html -- 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.21c PDC with Sun Directory server 5.2
Hi, I'm installing samba on solaris 10 with sun directory server 5.2 i was able to have a bind between the ldap and samba, but i can't search any users and i cant join the domain. ANY ideas, or tips Thanks a lot Imad _ It's the future, it's here, and it's free: Windows Live Mail beta http://www2.imagine-msn.com/minisites/mail/Default.aspx?locale=en-us-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smb-ldap or not to smb-ldap
Hi all, We are deploying a Linux server and desktops for a customer. We will have the users and groups in LDAP on the server, and files shared via NFS. However, one never knows if Windows desktops will be needed in the future. Is it a good idea to add users with smb-ldap even if samba is not initially used, as adding the samba attributes to an existing LDAP database is painful, and the smb-ldap created users will have the relevant POSIX credentials to be able to login anyway? Antony -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smb-ldap or not to smb-ldap
On Fri, 2006-03-31 at 16:30 +0100, Antony Gelberg wrote: Hi all, We are deploying a Linux server and desktops for a customer. We will have the users and groups in LDAP on the server, and files shared via NFS. However, one never knows if Windows desktops will be needed in the future. Is it a good idea to add users with smb-ldap even if samba is not initially used, as adding the samba attributes to an existing LDAP database is painful, and the smb-ldap created users will have the relevant POSIX credentials to be able to login anyway? It would seem to me that a successful LDAP implementation is going to have an administrator who can script changes to the users attributes when necessary, otherwise, it's not just a down the road implementation of samba that will make things difficult. My thinking is that time spent now to acquire skill sets is better than spending time to configure an imagined samba implementation which may happen down the road. That being said, it probably won't hurt anything to implement smbldap-tools but consider that the real issue is the tool sets you use to create/modify existing users outside of the samba realm must all anticipate the samba schema because the smbldap-tools are for samba based tools. Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] 3.0.22 update
Hello, I have a newbie question, which you will all find very easy, but I haven't found a solution yet... I upgraded from 3.0.20 to 3.0.21 (a,b and c) and now we have 3.0.22 Everyt time I download my SuSE files and install them, isn't there an easy update function with just downloading one package which updates my 3.0.21c to 3.0.22 (or via an automatic download with Yast or Webmin ) As I would like to make it a bit easier for me to update. When there is no easier way, then I'll just keepon going like I'm doing now. Thanks for your help. Raymond -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] \\server\share is not accessible. The network path was not found.
I am running Samba 3.0.21b-2 on Fedora Core 5. I created a new Unix user called sa using useradd -G users -m sa, and added the smbuser using smbpasswd -a sa (and set the same password just in case). The password is also the same as my Windows password. When I try to access the shares on Samba from my XP-SP2 machine, I get the following error: \\server\share is not accessible. You might nor have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The network path was not found. Either Yes/No to the encrypted passwords = option, and also specifying the location of the Samba password file with the smb passwd file = option, makes no difference. The same configuration works on a seperate XP/Gentoo box. Can anyone help please? Thanks, Steve :) --- Here is my smb.conf: [global] workgroup = WORKGROUP [homes] comment = Home Directory for %S read only = No browseable = No [public] comment = Public access path = /export/public read only = No -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smb-ldap or not to smb-ldap
On Fri, 31 Mar 2006, Antony Gelberg wrote: We are deploying a Linux server and desktops for a customer. We will have the users and groups in LDAP on the server, and files shared via NFS. However, one never knows if Windows desktops will be needed in the future. Is it a good idea to add users with smb-ldap even if samba is not initially used, as adding the samba attributes to an existing LDAP database is painful, and the smb-ldap created users will have the relevant POSIX credentials to be able to login anyway? we have this configuration. We had some windows boxes, which used samba. Our database was an ldap backend. We now use the ldap backend for everything including global address book, proxy authentication, email, intranet application etc.. Having an ldap backend is very useful -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] performance regression between 30.14a and 3.0.20
I am unfamiliar with cachegrind but I assume this is just a profiler. Do you have to compile instrumentation into smbd? Have fun in Boston, great city. Greg On Fri, 2006-03-31 at 09:17 -0800, Jeremy Allison wrote: On Fri, Mar 31, 2006 at 09:49:02AM -0500, Greg Dickie wrote: Yes, it is the win32 version, but its an old one (1998), not sure how the config file will carry to a more recent version. IOmeter Access specifications: Transfer req. size = 64Kb 8Kb Percent of Access Specification = 100% Type of Operation: 100% read; 100% write; 50% read Percent Random/Sequential Distribution: 100% sequential Queue Depth = 8 Reply Size: No Reply Burst Length = 25 I/Os Align I/Os on: 64Kb 8Kb Ramp up Time = 30sec Run Time = 3 min # of clients used: 1 to 9 clients (Linear Stepping) Note that the problem is visible with only one client. The clients are GbE as is the server, not sure if you will see a difference on 100BT. Thank you very much for looking at this, please let me know if there is anything I can do to help. No problem. What I'll do is run the version against a smbd running with cachegrind. That will point out any extra CPU usage we're accumulating between the two versions. If we've regressed because of a code path this will tell us. Might take a while though as I have to be at LinuxWorld Boston next week. Jeremy. -- Greg Dickie just a guy Maximum Throughput -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] performance regression between 30.14a and 3.0.20
On Fri, Mar 31, 2006 at 02:32:44PM -0500, Greg Dickie wrote: I am unfamiliar with cachegrind but I assume this is just a profiler. Do you have to compile instrumentation into smbd? No, that's why it's so powerful. It's part of the valgrind suite, which emulates a complete x86 cpu as an LD_PRELOAD. You get *complete* information about all CPU activity, even though it runs 10x slower than usual (but I only care about relative changes so that's not an issue here). Have fun in Boston, great city. Thanks, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] \\server\share is not accessible. The network path was not found.
On Fri, 2006-03-31 at 19:45 +0100, Steve A wrote: I am running Samba 3.0.21b-2 on Fedora Core 5. I created a new Unix user called sa using useradd -G users -m sa, and added the smbuser using smbpasswd -a sa (and set the same password just in case). The password is also the same as my Windows password. When I try to access the shares on Samba from my XP-SP2 machine, I get the following error: \\server\share is not accessible. You might nor have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The network path was not found. Either Yes/No to the encrypted passwords = option, and also specifying the location of the Samba password file with the smb passwd file = option, makes no difference. The same configuration works on a seperate XP/Gentoo box. Can anyone help please? - http://fedoraproject.org/wiki/SELinux Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: \\server\share is not accessible. The network pathwas not found.
Craig White [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://fedoraproject.org/wiki/SELinux Thank you so much Craig... I have disabled SELinux for now, it is too much to learn SELinux and Linux at the same time! Cheers, Steve :) -- 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.21c) rpcclient getform 'segmentation fault'
Hello, I have an RHEL 4 Update 3 machine connected to a Active Directory. I'm running samba 3.0.21c, compiled from an SRPM: # rpm -q samba samba-3.0.21c-1 Does any one knows why I'm getting a 'segmentation fault' when I try to get the forms from a printer? # rpcclient -U user -W domain -c setform printer form localhost I runned the program through gdb: # gdb --args rpcclient -U user -W domain -c setform printer form localhost Starting program: /usr/bin/rpcclient -U user -W domain -c setform\ printer\ form localhost (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) WARNING: The write cache size option is deprecated Password: Program received signal SIGSEGV, Segmentation fault. 0x0026db29 in make_spoolss_q_open_printer_ex () from /usr/bin/rpcclient (gdb) bt #0 0x0026db29 in make_spoolss_q_open_printer_ex () from /usr/bin/rpcclient #1 0x002cc47a in rpccli_spoolss_open_printer_ex () from /usr/bin/rpcclient #2 0x09348948 in ?? () #3 0x00334f0f in se_priv_none () from /usr/bin/rpcclient #4 0x0200 in ?? () #5 0x09372620 in ?? () #6 0x in ?? () I can't figure out what that means. Could someone translate this to me? Could it be any kind of permissions of some file? Regards, Marcos - Yahoo! Search Imposto de Renda 2006: o prazo está acabando. Faça já a sua declaração no site da Receita Federal. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: \\server\share is not accessible. The network pathwas not found.
On Fri, 2006-03-31 at 22:09 +0100, Steve A wrote: Craig White [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://fedoraproject.org/wiki/SELinux Thank you so much Craig... I have disabled SELinux for now, it is too much to learn SELinux and Linux at the same time! I suggest that you change it from enforcing mode to permissive mode rather than turning it off altogether. That way, software that you install, policy and contexts continue to be retained so if you actually do intend to turn selinux on, you won't have to do massive relabeling. I would also recommend that you keep selinux on and learn how to fix the issues but it is your system. The purpose of selinux is security and by turning it off, you are depriving yourself of a layer of security. Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: \\server\share is not accessible. The network pathwas not found.
On Fri, 2006-03-31 at 22:09 +0100, Steve A wrote: Craig White [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://fedoraproject.org/wiki/SELinux Thank you so much Craig... I have disabled SELinux for now, it is too much to learn SELinux and Linux at the same time! and it just occurred to me that I should add something to the wiki about this. In the troubleshooting section, I added a few links... http://wiki.samba.org/index.php/Samba_Troubleshooting This should allow most everyone to function with samba and keep using SELinux. My guess is that you only needed to run either (or both - you weren't specific about the shares) of these commands... setsebool -P samba_enable_home_dirs 1 chcon -t samba_share_t /path/to/share/non/homes/share or you could have done these steps... setsebool -P smbd_disable_trans 1 service smb restart and that would have allowed you to keep running selinux without enforcement of restrictions on samba daemons at all (in the thought that selinux on but not minding samba is better than off altogether) I think one of the things we like is to consider the notion that a Linux system is more secure than a Windows system but it won't remain that way if we turn off the security layers because we don't understand them. Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] mount.cifs - packet signing problem
Hello, I am trying to mount a windows 2003 share using mount.cifs v1.10. I can successfully connect to and completely browse/download/etc the share using smbclient. I cannot with mount.cifs. Here is my command: mount.cifs //foonas01.foobar.com/foofiles /mnt/foofiles --verbose -o credentials=/etc/foo,domain=domain Specifically, here is what I see when I mount the drive. 1) Mount the drive using command above without errors. 2) cd /mnt/foofiles 3) ls 4) Notice output of files/directories. 5) cd deeper into protected area where my ID has access 6) The shell takes notice of the cd and changes to that directory BUT I do not actually cd into that directory. ls contains the same list of files/directories as /mnt/foofiles. (this part is hard to explain) I have tried different sec options including the packet signing ones without success. Also /proc/fs/cifs/PacketSigningEnabled contains a 1. Again, smbclient works just fine so I don't think it is something I am doing specifically that is breaking this. However, I am open to suggestions. Thanks! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 3.0.21c and big wmv or mpg files
At 10:40 PM 3/29/2006 +0200, you wrote: Hi @all, are there any problems known with 3.0.21c and bigger video files (mpg and wmv greater than 700 MB)? Received the information that these files cannot copied from XP to Samba (W2K is okay). Error message is the well known: [2006/03/28 18:03:36, 0] lib/util_sock.c:get_peer_addr(1225)getpeername failed. Error was Transport endpoint is not connected I chased this elusive problem for a year. I'm still running 3.09-2.3 but I see it on other versions. Tell me, do you get this problem when you drag/n/drop a file into a folder on the samba share? And can you prevent this problem from occurring by the following procedure? Click in the target window on the samba machine (this is on the XP desktop). Press F5 to refresh the view. Wait about a second. Immediately start your copy. When I do this, the errors, previously reported to the desktop and to my server log, don't occur. I've been told that it's a WinXP only issue, that it attempts to connect on ports 445 and 139 nearly simultaneously, and then proceeds to talk over whichever one answers first. I'm told that Win2k clients won't have this problem, and Win98 clients don't use port 445 so it doesn't arise there. Anyone have evidence to the contrary (so far)? My thinking is that WinXP improperly responds to an attempt to open a conversation on a different port than the one Samba expects. Maybe the TCP stack on SuSE is more rigorous and respects the sequence numbers and considers a connection... ...a connection. Dunno. Need to get busy with Ethereal maybe. First thing I tried: In smb.com, add a line reading smb ports = 139 which I hoped would tell it just don't reply on port 445 at all. This did not help. Next thing I tried, rather a kludge, iptables -I INPUT 1 -p tcp --dport 445 -j DROP Hey guess what? I haven't had a single incidence of the error since. My explanation, as near as I can figure out, of what the rule does: iptables; firewall / packet filter -I INPUT 1 ; Insert into chain INPUT as rule #1 -p tcp --dport 445 ; a rule for packets whose protocol is tcp AND destination port is 445 -j DROP; if matches rule, Jump to target DROP The predefined target DROP is not another chain but actually means throw the packet away. I'm allowing port 139 through (by default) instead of 445 because I still have the odd Win98 machine laying about. That's my story, and I'm sticking to it. -Tom [Commentary] Despite of the cost of living, it remains popular. --... ...-- -.. . -. . --.- --.- -... [EMAIL PROTECTED] (remove nospam) N9QQB (amateur radio) HEY YOU (loud shouting) WEB ADDRESS http//www.mixweb.com/tpeters 43° 7' 17.2 N by 88° 6' 28.9 W, Elevation 815', Grid Square EN53wc WAN/LAN/Telcom Analyst, Tech Writer, MCP, CCNA, Registered Linux User 385531 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Winbind and email server]
okay, im far from a pam expert, but i don't see any mention of winbind there? It's my weekend at the moment so i can't get to my test box at work to show you my pam module using winbind, but maybe you should check out this page on my website, it's using ldap try and use this and replace any mention of ldap with winbind http://www.yourhowto.org/content/view/35/9/ or i have a how-to for authenticating against Active directories using LDAP http://www.yourhowto.org/content/view/34/9/ check it out, i'm sure that that wont need a local users as well, i'll be back at work on monday and can probably help you more, but give those two a go, see if anything comes from them OK, here's the samba module: #%PAM-1.0 auth required pam_nologin.so auth required pam_stack.so service=system-auth accountrequired pam_stack.so service=system-auth sessionrequired pam_mkhomedir.so skel=/etc/skel umask=0022 sessionrequired pam_stack.so service=system-auth password required pam_stack.so service=system-auth and here's system-auth: #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required /lib/security/$ISA/pam_env.so authsufficient/lib/security/$ISA/pam_unix.so likeauth nullok authrequired /lib/security/$ISA/pam_deny.so account required /lib/security/$ISA/pam_unix.so passwordrequired /lib/security/$ISA/pam_cracklib.so retry=3 typepasswordrequired /usr/lib/security/pam_sso.so.1 passwordsufficient/lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow #passwordrequired /lib/security/$ISA/pam_deny.so session required /lib/security/$ISA/pam_limits.so session required /lib/security/$ISA/pam_unix.so If you need more, please let me know. Dimitri On Thursday March 30 2006 5:45 pm, Paul Matthews wrote: how about you post your pam module here, you might have it configured to require both local and winbind users instead of either or Paul Matthews I.T Trainee | The Cathedral School Ph (07) 47222 194 | Fax (07) 47222 111 PO Box 944 Aitkenvale Q 4814 E: [EMAIL PROTECTED] W: www.cathedral.qld.edu.au Anglican coeducation | Day and Boarding | Early Childhood to Year 12 Educating for life-long success *** * *** * *** IMPORTANT NOTICE REGARDING CONFIDENTIALITY This electronic email message is intended only for the addressee and may contain confidential information. If you are not the addressee, you are notified that any transmission, distribution or photocopying of this email is strictly prohibited. The confidentiality attached to this email is not waived, lost or destroyed by reasons of a mistaken delivery to you. -Original Message- From: Dimitri Yioulos [mailto:[EMAIL PROTECTED] Sent: Friday, 31 March 2006 8:33 AM To: Paul Matthews Subject: Re: [Samba] Winbind and email server top-posting by necessity ... Hi, Paul. Alas, my nsswitch.conf is properly configured. Any other ideas? Dimitri On Thursday March 30 2006 5:12 pm, you wrote: well the problem i think your having is that you have not edited the /etc/nsswitch.conf file. change from passwd: files shadow: files group: files to: passwd: winbind files shadow: winbind files group: winbind files or something along those lines, play with the /etc/nsswitch.conf to find the right configuration for you. check out the post i've made on my website about how we use have setup my mail system, i think i've done it fairly well http://www.yourhowto.org/content/view/25/9/ Paul Matthews I.T Trainee | The Cathedral School Ph (07) 47222 194 | Fax (07) 47222 111 PO Box 944 Aitkenvale Q 4814 E: [EMAIL PROTECTED] W: www.cathedral.qld.edu.au Anglican coeducation | Day and Boarding | Early Childhood to Year 12 Educating for life-long success *** * *** * *** IMPORTANT NOTICE REGARDING CONFIDENTIALITY This electronic email message is intended only for the addressee and may contain confidential information. If you are not the addressee, you are notified that any transmission, distribution or photocopying of this email is strictly prohibited. The confidentiality attached to this email is not waived, lost or destroyed by reasons of a mistaken delivery to you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ]On Behalf Of Dimitri Yioulos Sent: Friday, 31 March 2006 1:53 AM To: samba@lists.samba.org Subject: [Samba] Winbind and
Re: [Samba] 3.0.21c and big wmv or mpg files
Tom Peters wrote: At 10:40 PM 3/29/2006 +0200, you wrote: Hi @all, are there any problems known with 3.0.21c and bigger video files (mpg and wmv greater than 700 MB)? Received the information that these files cannot copied from XP to Samba (W2K is okay). Error message is the well known: [2006/03/28 18:03:36, 0] lib/util_sock.c:get_peer_addr(1225)getpeername failed. Error was Transport endpoint is not connected I chased this elusive problem for a year. I'm still running 3.09-2.3 but I see it on other versions. Tell me, do you get this problem when you drag/n/drop a file into a folder on the samba share? And can you prevent this problem from occurring by the following procedure? Click in the target window on the samba machine (this is on the XP desktop). Press F5 to refresh the view. Wait about a second. Immediately start your copy. When I do this, the errors, preterviously reported to the desktop and to my server log, don't occur. I've been told that it's a WinXP only issue, that it attempts to connect on ports 445 and 139 nearly simultaneously, and then proceeds to talk over whichever one answers first. I'm told that Win2k clients won't have this problem, and Win98 clients don't use port 445 so it doesn't arise there.ou can take my word for it, Anyone have evidence to the contrary (so far)? Hi Tom, If you can take my word for it, I just drag dropped a 2 Gig file from XP SP2 to Samba version 3.0.22pre1-SVN-build-12802 on FC3 2.6.12-1.1381_FC3smp without issue. I do this pretty frequently moving vmware machines around and organizing ghost images. I run a 2003 AD domain, but the XP machine is just a workgroup member of the domain. although samba is a domain member. But I recall doing this on an XP full domain member last year. During the transfer: PID Username Group Machine --- 9040 doug doug pine (192.168.200.14) Service pid machine Connected at --- public 9040 pine Fri Mar 31 19:55:00 2006 Locked files: PidDenyMode Access R/WOplock SharePath Name -- 9040 DENY_ALL 0x30196 WRONLY EXCLUSIVE+BATCH /home/public doug/sda-s003.vmdk Fri Mar 31 20:09:26 2006 9040 DENY_NONE 0x20089 RDONLY NONE /home/public doug Fri Mar 31 19:55:05 2006 9040 DENY_NONE 0x11RDONLY NONE /home/public doug Fri Mar 31 19:55:05 2006 And when done: -rw-rw-rw- 1 doug doug 2125135872 Mar 15 11:56 /home/public/doug/sda-s003.vmdk I did it once, deleted it, waited about 20 min and did it again. Ports in use with the XP machine: tcp0 0 192.168.200.25:445 192.168.200.14:1736 ESTABLISHED where samba is running on 192.168.200.25. Perhaps relevant config option: socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536 I did notice that when I first migrated from samba 2 to samba 3 back around 3.0.9 at first the client machines continued to connect on port 139, but gradually over a period of time that changed until the connections are now nearly all port 445 and all the domain members list as IP numbers instead of netbios names. I've seen this behavior in windows clients where they remember connection details and continue to use them until some event or loss of connectivity causes the client to start over in the list. Usually it learns the new connection details at that time. Regards, Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Smbd hanging
Hi all The following is the backtrace when the samba hanged . samba version 3.0.21c there were about 168 process and samba was unable to take any new connection ### (gdb) attach 2955 Attaching to process 2955 Reading symbols from /usr/local/samba3c3/sbin/smbd...done. Using host libthread_db library /lib/tls/libthread_db.so.1. Loaded symbols for /usr/local/samba3c3/sbin/smbd Reading symbols from /usr/lib/libldap-2.2.so.7...done. Loaded symbols for /usr/lib/libldap-2.2.so.7 Reading symbols from /usr/lib/liblber-2.2.so.7...done. Loaded symbols for /usr/lib/liblber-2.2.so.7 Reading symbols from /usr/lib/libgssapi_krb5.so.2...done. Loaded symbols for /usr/lib/libgssapi_krb5.so.2 Reading symbols from /usr/lib/libkrb5.so.3...done. Loaded symbols for /usr/lib/libkrb5.so.3 Reading symbols from /usr/lib/libk5crypto.so.3...done. Loaded symbols for /usr/lib/libk5crypto.so.3 Reading symbols from /lib/libcom_err.so.2...done. Loaded symbols for /lib/libcom_err.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /usr/lib/libcups.so.2...done. Loaded symbols for /usr/lib/libcups.so.2 Reading symbols from /lib/libssl.so.4...done. Loaded symbols for /lib/libssl.so.4 Reading symbols from /lib/libcrypto.so.4...done. Loaded symbols for /lib/libcrypto.so.4 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libpam.so.0...done. Loaded symbols for /lib/libpam.so.0 Reading symbols from /lib/libattr.so.1...done. Loaded symbols for /lib/libattr.so.1 Reading symbols from /lib/libacl.so.1...done. Loaded symbols for /lib/libacl.so.1 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/tls/librt.so.1...done. Loaded symbols for /lib/tls/librt.so.1 Reading symbols from /usr/lib/libpopt.so.0...done. Loaded symbols for /usr/lib/libpopt.so.0 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/tls/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread -1208101184 (LWP 2955)] Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/gconv/UTF-16.so...done. Loaded symbols for /usr/lib/gconv/UTF-16.so Reading symbols from /usr/lib/gconv/IBM850.so...done. Loaded symbols for /usr/lib/gconv/IBM850.so Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_ldap.so.2...done. Loaded symbols for /lib/libnss_ldap.so.2 0x001117a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) bt #0 0x001117a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x0025950d in ___newselect_nocancel () from /lib/tls/libc.so.6 #2 0x00d91b0d in sys_select (maxfd=23, readfds=0xbfec4040, writefds=0x0, errorfds=0x0, tval=0x0) at lib/select.c:93 #3 0x00e3184c in open_sockets_smbd (is_daemon=1, interactive=0, smb_ports=0x0) at smbd/server.c:350 #4 0x00e32bdd in main (argc=2, argv=0xbfec5414) at smbd/server.c:916 (gdb) quit some times if the processes get killed, but it does not release any memory, occupying all the memory that i have our server hardware information IBM X226 series Xeon Processor 3Ghz with 1 Gb RAM and 2 GB swap we have 72 gb hard-disk with software RAID 1 on it 2q) when the physical RAM is occupied, then why it doesn't take any swap space when the swap space is free, On 3/29/06, Matt Lung [EMAIL PROTECTED] wrote: Martin Zielinski wrote: Bruno Gomes Pessanha wrote: I'm having the same problem... but with a 520 print queues samba server and 20.000 AD users. I'm getting desperate! I did a lot of tuning changes. but nothing helps! Bruno [...] If i remember correctly, the original description of the problem has been, that the number of smbd proccess is growing until this breaks the whole system (correct me, if I'm wrong). Actually it does not break the whole system. Only Samba is broken. All other services continue running on the server and work fine, but samba just hangs and connections that were already made stop working, and all new connections are denied. Please review bug #3636 that I submitted yesterday. If more information is needed I'll provide it, but for now I'm waiting for it to crash again to get an strace on one of the processes and more debug at level 10. Thanks Matt Lung In your case the reason might be that clients leave *one* spoolss-pipe open, after they have
svn commit: samba r14838 - in branches/SAMBA_4_0/source: ntvfs/common ntvfs/posix ntvfs/unixuid rpc_server/lsa rpc_server/unixinfo
Author: tridge Date: 2006-03-31 09:47:57 + (Fri, 31 Mar 2006) New Revision: 14838 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14838 Log: fix the build. Looks like I still haven't quite got the hang of the new dependency/proto system :-) Modified: branches/SAMBA_4_0/source/ntvfs/common/config.mk branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.h branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/common/config.mk === --- branches/SAMBA_4_0/source/ntvfs/common/config.mk2006-03-31 05:33:35 UTC (rev 14837) +++ branches/SAMBA_4_0/source/ntvfs/common/config.mk2006-03-31 09:47:57 UTC (rev 14838) @@ -2,7 +2,7 @@ # Start MODULE ntvfs_common [MODULE::ntvfs_common] SUBSYSTEM = ntvfs -PRIVATE_PROTO_HEADER = vfs_common_proto.h +PRIVATE_PROTO_HEADER = proto.h OBJ_FILES = \ brlock.o \ opendb.o \ Modified: branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.h === --- branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.h 2006-03-31 05:33:35 UTC (rev 14837) +++ branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.h 2006-03-31 09:47:57 UTC (rev 14838) @@ -26,6 +26,7 @@ #include librpc/gen_ndr/xattr.h #include system/filesys.h #include ntvfs/ntvfs.h +#include ntvfs/common/proto.h /* this is the private structure for the posix vfs backend. It is used to hold per-connection (per tree connect) state information */ Modified: branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c === --- branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c 2006-03-31 05:33:35 UTC (rev 14837) +++ branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c 2006-03-31 09:47:57 UTC (rev 14838) @@ -26,6 +26,7 @@ #include system/passwd.h #include auth/auth.h #include ntvfs/ntvfs.h +#include ntvfs/common/proto.h struct unixuid_private { struct sidmap_context *sidmap; Modified: branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c === --- branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c 2006-03-31 05:33:35 UTC (rev 14837) +++ branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c 2006-03-31 09:47:57 UTC (rev 14838) @@ -33,6 +33,7 @@ #include ntvfs/ntvfs.h #include passdb/secrets.h #include db_wrap.h +#include ntvfs/common/proto.h /* this type allows us to distinguish handle types Modified: branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c === --- branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c 2006-03-31 05:33:35 UTC (rev 14837) +++ branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c 2006-03-31 09:47:57 UTC (rev 14838) @@ -26,6 +26,7 @@ #include librpc/gen_ndr/ndr_unixinfo.h #include lib/events/events.h #include ntvfs/ntvfs.h +#include ntvfs/common/proto.h #include sys/types.h #include pwd.h
svn commit: samba r14839 - in branches/SAMBA_4_0/source/ntvfs/common: .
Author: metze Date: 2006-03-31 10:37:49 + (Fri, 31 Mar 2006) New Revision: 14839 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14839 Log: ignore proto header metze Modified: branches/SAMBA_4_0/source/ntvfs/common/ Changeset: Property changes on: branches/SAMBA_4_0/source/ntvfs/common ___ Name: svn:ignore - .sconsign *.d + proto.h *.d
svn commit: samba r14840 - in branches/SAMBA_4_0/source: dsdb/samdb dsdb/samdb/ldb_modules libcli/security
Author: metze Date: 2006-03-31 11:05:33 + (Fri, 31 Mar 2006) New Revision: 14840 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14840 Log: - rename some functions - stack specific functions on top of generic ones metze Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c branches/SAMBA_4_0/source/libcli/security/security_token.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c === --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c 2006-03-31 10:37:49 UTC (rev 14839) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c 2006-03-31 11:05:33 UTC (rev 14840) @@ -65,19 +65,22 @@ return ANONYMOUS; } - if (is_system_token(session_info-security_token)) { + if (security_token_is_system(session_info-security_token)) { return SYSTEM; } - if (is_administrator_token(session_info-security_token)) { + if (security_token_is_anonymous(session_info-security_token)) { + return ANONYMOUS; + } + + if (security_token_has_builtin_administrators(session_info-security_token)) { return ADMINISTRATOR; } - if (is_authenticated_token(session_info-security_token)) { + + if (security_token_has_nt_authenticated_users(session_info-security_token)) { return USER; } - if (is_anonymous_token(session_info-security_token)) { - return ANONYMOUS; - } + return ANONYMOUS; } Modified: branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c === --- branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c 2006-03-31 10:37:49 UTC (rev 14839) +++ branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c 2006-03-31 11:05:33 UTC (rev 14840) @@ -83,12 +83,12 @@ NTSTATUS status; /* Shortcuts to prevent recursion and avoid lookups */ - if (is_system_token(token)) { + if (security_token_is_system(token)) { token-privilege_mask = ~0; return NT_STATUS_OK; } - if (is_anonymous_token(token)) { + if (security_token_is_anonymous(token)) { token-privilege_mask = 0; return NT_STATUS_OK; } Modified: branches/SAMBA_4_0/source/libcli/security/security_token.c === --- branches/SAMBA_4_0/source/libcli/security/security_token.c 2006-03-31 10:37:49 UTC (rev 14839) +++ branches/SAMBA_4_0/source/libcli/security/security_token.c 2006-03-31 11:05:33 UTC (rev 14840) @@ -170,55 +170,65 @@ /* These really should be cheaper... */ -BOOL is_system_token(struct security_token *token) +BOOL security_token_is_sid(struct security_token *token, const struct dom_sid *sid) { - TALLOC_CTX *mem_ctx = talloc_new(token); - if (dom_sid_equal(token-user_sid, dom_sid_parse_talloc(mem_ctx, SID_NT_SYSTEM))) { - talloc_free(mem_ctx); + if (dom_sid_equal(token-user_sid, sid)) { return True; } - talloc_free(mem_ctx); return False; } -BOOL is_anonymous_token(struct security_token *token) +BOOL security_token_is_sid_string(struct security_token *token, const char *sid_string) { - TALLOC_CTX *mem_ctx = talloc_new(token); - if (dom_sid_equal(token-user_sid, dom_sid_parse_talloc(mem_ctx, SID_NT_ANONYMOUS))) { - talloc_free(mem_ctx); - return True; - } - talloc_free(mem_ctx); - return False; + BOOL ret; + struct dom_sid *sid = dom_sid_parse_talloc(token, sid_string); + if (!sid) return False; + + ret = security_token_is_sid(token, sid); + + talloc_free(sid); + return ret; } -BOOL is_authenticated_token(struct security_token *token) +BOOL security_token_is_system(struct security_token *token) { - TALLOC_CTX *mem_ctx = talloc_new(token); - int i; - struct dom_sid *authenticated = dom_sid_parse_talloc(mem_ctx, SID_NT_AUTHENTICATED_USERS); - for (i = 0; i token-num_sids; i++) { - if (dom_sid_equal(token-sids[i], authenticated)) { - talloc_free(mem_ctx); - return True; - } - } - talloc_free(mem_ctx); - return False; + return security_token_is_sid_string(token, SID_NT_SYSTEM); } -BOOL is_administrator_token(struct security_token *token) +BOOL security_token_is_anonymous(struct security_token *token) { - TALLOC_CTX *mem_ctx = talloc_new(token); + return security_token_is_sid_string(token, SID_NT_ANONYMOUS); +} + +BOOL security_token_has_sid(struct security_token *token, struct
svn commit: samba r14841 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch
Author: gd Date: 2006-03-31 11:48:01 + (Fri, 31 Mar 2006) New Revision: 14841 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14841 Log: Fix IRIX build --with-pam. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/pam_winbind.h trunk/source/nsswitch/pam_winbind.h Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/pam_winbind.h === --- branches/SAMBA_3_0/source/nsswitch/pam_winbind.h2006-03-31 11:05:33 UTC (rev 14840) +++ branches/SAMBA_3_0/source/nsswitch/pam_winbind.h2006-03-31 11:48:01 UTC (rev 14841) @@ -26,7 +26,7 @@ #define PAM_SM_ACCOUNT #define PAM_SM_PASSWORD -#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || defined(FREEBSD) +#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || defined(FREEBSD) || defined(AIX) /* Solaris always uses dynamic pam modules */ #define PAM_EXTERN extern Modified: trunk/source/nsswitch/pam_winbind.h === --- trunk/source/nsswitch/pam_winbind.h 2006-03-31 11:05:33 UTC (rev 14840) +++ trunk/source/nsswitch/pam_winbind.h 2006-03-31 11:48:01 UTC (rev 14841) @@ -26,7 +26,7 @@ #define PAM_SM_ACCOUNT #define PAM_SM_PASSWORD -#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || defined(FREEBSD) +#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || defined(FREEBSD) || defined(AIX) /* Solaris always uses dynamic pam modules */ #define PAM_EXTERN extern
svn commit: samba r14842 - in branches/SAMBA_4_0/source/librpc/idl: .
Author: metze Date: 2006-03-31 13:39:28 + (Fri, 31 Mar 2006) New Revision: 14842 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14842 Log: fix parsing of NetDiskEnum replies metze Modified: branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl === --- branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl 2006-03-31 11:48:01 UTC (rev 14841) +++ branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl 2006-03-31 13:39:28 UTC (rev 14842) @@ -1123,7 +1123,7 @@ /* srvsvc_NetDisk */ /**/ typedef struct { - [string,charset(UTF16)] uint16 *disc; + [flag(STR_LEN4)] string disc; } srvsvc_NetDiskInfo0; typedef struct {
svn commit: samba r14843 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: metze Date: 2006-03-31 13:41:49 + (Fri, 31 Mar 2006) New Revision: 14843 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14843 Log: the results of the srvsrv_* calls depends on the user, try some tests anonymous... metze Modified: branches/SAMBA_4_0/source/torture/rpc/srvsvc.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/srvsvc.c === --- branches/SAMBA_4_0/source/torture/rpc/srvsvc.c 2006-03-31 13:39:28 UTC (rev 14842) +++ branches/SAMBA_4_0/source/torture/rpc/srvsvc.c 2006-03-31 13:41:49 UTC (rev 14843) @@ -415,12 +415,49 @@ /**/ /* srvsvc_NetShare*/ /**/ +static BOOL test_NetShareCheck(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, + const char *device_name) +{ + NTSTATUS status; + struct srvsvc_NetShareCheck r; + BOOL ret = True; + + r.in.server_unc = talloc_asprintf(mem_ctx, %s, dcerpc_server_name(p)); + r.in.device_name = device_name; + + printf(testing NetShareCheck on device '%s'\n, r.in.device_name); + + status = dcerpc_srvsvc_NetShareCheck(p, mem_ctx, r); + if (!NT_STATUS_IS_OK(status)) { + printf(dcerpc_srvsvc_NetShareCheck on device '%s' failed - %s\n, + r.in.device_name, nt_errstr(status)); + ret = False; + } else if (!W_ERROR_IS_OK(r.out.result)) { + printf(NetShareCheck on device '%s' failed - %s\n, + r.in.device_name, win_errstr(r.out.result)); + ret = False; + } + + return ret; +} + static BOOL test_NetShareGetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, -const char *sharename) +const char *sharename, BOOL admin) { NTSTATUS status; struct srvsvc_NetShareGetInfo r; - uint32_t levels[] = {0, 1, 2, 501, 502, 1005}; + struct { + uint32_t level; + WERROR anon_status; + WERROR admin_status; + } levels[] = { +{ 0, WERR_OK,WERR_OK }, +{ 1, WERR_OK,WERR_OK }, +{ 2, WERR_ACCESS_DENIED, WERR_OK }, +{ 501, WERR_OK,WERR_OK }, +{ 502, WERR_ACCESS_DENIED, WERR_OK }, +{ 1005,WERR_OK,WERR_OK }, + }; int i; BOOL ret = True; @@ -428,8 +465,12 @@ r.in.share_name = sharename; for (i=0;iARRAY_SIZE(levels);i++) { + WERROR expected; + + r.in.level = levels[i].level; + expected = levels[i].anon_status; + if (admin) expected = levels[i].admin_status; ZERO_STRUCT(r.out); - r.in.level = levels[i]; printf(testing NetShareGetInfo level %u on share '%s'\n, r.in.level, r.in.share_name); @@ -441,37 +482,19 @@ ret = False; continue; } - if (!W_ERROR_IS_OK(r.out.result)) { - printf(NetShareGetInfo level %u on share '%s' failed - %s\n, - r.in.level, r.in.share_name, win_errstr(r.out.result)); + if (!W_ERROR_EQUAL(r.out.result, expected)) { + printf(NetShareGetInfo level %u on share '%s' failed - %s (expected %s)\n, + r.in.level, r.in.share_name, win_errstr(r.out.result), + win_errstr(expected)); + ret = False; continue; } - } - return ret; -} - -static BOOL test_NetShareCheck(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, - const char *device_name) -{ - NTSTATUS status; - struct srvsvc_NetShareCheck r; - BOOL ret = True; - - r.in.server_unc = talloc_asprintf(mem_ctx, %s, dcerpc_server_name(p)); - r.in.device_name = device_name; - - printf(testing NetShareCheck on device '%s'\n, r.in.device_name); - - status = dcerpc_srvsvc_NetShareCheck(p, mem_ctx, r); - if (!NT_STATUS_IS_OK(status)) { - printf(dcerpc_srvsvc_NetShareCheck on device '%s' failed - %s\n, - r.in.device_name, nt_errstr(status)); - ret = False; - } else if (!W_ERROR_IS_OK(r.out.result)) { - printf(NetShareCheck on device '%s' failed - %s\n, - r.in.device_name, win_errstr(r.out.result)); - ret = False; + if (r.in.level != 2) continue; + if (!r.out.info.info2 || !r.out.info.info2-path) continue; + if (!test_NetShareCheck(p,
svn commit: samba r14844 - in branches/SAMBA_4_0/source: build/m4 client include lib/appweb/mpr lib/replace param
Author: jelmer Date: 2006-03-31 23:28:18 + (Fri, 31 Mar 2006) New Revision: 14844 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14844 Log: Support a stdbool.h replacement in lib/replace/ Modified: branches/SAMBA_4_0/source/build/m4/check_types.m4 branches/SAMBA_4_0/source/build/m4/rewrite.m4 branches/SAMBA_4_0/source/client/cifsdd.c branches/SAMBA_4_0/source/include/core.h branches/SAMBA_4_0/source/include/includes.h branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h branches/SAMBA_4_0/source/lib/replace/README branches/SAMBA_4_0/source/lib/replace/config.m4 branches/SAMBA_4_0/source/lib/replace/replace.h branches/SAMBA_4_0/source/param/param.h Changeset: Modified: branches/SAMBA_4_0/source/build/m4/check_types.m4 === --- branches/SAMBA_4_0/source/build/m4/check_types.m4 2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/build/m4/check_types.m4 2006-03-31 23:28:18 UTC (rev 14844) @@ -15,8 +15,6 @@ AC_HEADER_STDC -AC_CHECK_HEADERS(stdbool.h) - AC_CHECK_SIZEOF(short,cross) AC_CHECK_SIZEOF(int,cross) AC_CHECK_SIZEOF(long,cross) @@ -27,5 +25,3 @@ if test $ac_cv_sizeof_long_long -lt 8;then AC_MSG_ERROR([Sorry we need sizeof(long long) = 8]) fi -AC_CHECK_TYPE(_Bool) - Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4 === --- branches/SAMBA_4_0/source/build/m4/rewrite.m4 2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/build/m4/rewrite.m4 2006-03-31 23:28:18 UTC (rev 14844) @@ -58,7 +58,7 @@ AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h) AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h) AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h sys/statfs.h sys/statvfs.h stdarg.h) -AC_CHECK_HEADERS(stdint.h inttypes.h locale.h shadow.h) +AC_CHECK_HEADERS(locale.h shadow.h) AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h) AC_CHECK_HEADERS(sys/capability.h sys/acl.h) Modified: branches/SAMBA_4_0/source/client/cifsdd.c === --- branches/SAMBA_4_0/source/client/cifsdd.c 2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/client/cifsdd.c 2006-03-31 23:28:18 UTC (rev 14844) @@ -195,7 +195,7 @@ arg-arg_val.nval = va_arg(ap, uint64_t); break; case ARG_BOOL: - arg-arg_val.bval = va_arg(ap, BOOL); + arg-arg_val.bval = va_arg(ap, int); break; case ARG_PATHNAME: arg-arg_val.pval = va_arg(ap, char *); Modified: branches/SAMBA_4_0/source/include/core.h === --- branches/SAMBA_4_0/source/include/core.h2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/include/core.h2006-03-31 23:28:18 UTC (rev 14844) @@ -26,12 +26,11 @@ #include libcli/util/nt_status.h +typedef int BOOL; + #define False (0) #define True (1) -#define Auto (2) -typedef int BOOL; - /* used to hold an arbitrary blob of data */ typedef struct datablob { uint8_t *data; Modified: branches/SAMBA_4_0/source/include/includes.h === --- branches/SAMBA_4_0/source/include/includes.h2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/include/includes.h2006-03-31 23:28:18 UTC (rev 14844) @@ -74,14 +74,6 @@ #include stddef.h #include sys/time.h -#ifdef HAVE_STDINT_H -#include stdint.h -#endif - -#ifdef HAVE_INTTYPES_H -#include inttypes.h -#endif - #ifdef HAVE_STRING_H #include string.h #endif Modified: branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h === --- branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h 2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h 2006-03-31 23:28:18 UTC (rev 14844) @@ -185,8 +185,10 @@ #ifndef __cplusplus typedef unsigned char uchar; +#ifndef __bool_true_false_are_defined typedef intbool; #endif +#endif /* * Porters: put other operating system type defines here Modified: branches/SAMBA_4_0/source/lib/replace/README === --- branches/SAMBA_4_0/source/lib/replace/README2006-03-31 13:41:49 UTC (rev 14843) +++ branches/SAMBA_4_0/source/lib/replace/README2006-03-31 23:28:18 UTC (rev 14844) @@ -52,6 +52,7 @@ readline (the library) Types: +bool socklen_t u_int{8,16,32}_t uint_t Modified: branches/SAMBA_4_0/source/lib/replace/config.m4 === ---
Build status as of Sat Apr 1 00:00:02 2006
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2006-03-31 00:00:03.0 + +++ /home/build/master/cache/broken_results.txt 2006-04-01 00:00:09.0 + @@ -1,17 +1,17 @@ -Build status as of Fri Mar 31 00:00:02 2006 +Build status as of Sat Apr 1 00:00:02 2006 Build counts: Tree Total Broken Panic ccache 9 1 0 distcc 11 2 0 lorikeet-heimdal 15 15 0 -ppp 16 0 0 -rsync32 2 0 -samba2 0 0 +ppp 17 0 0 +rsync33 2 0 +samba3 0 0 samba-docs 0 0 0 samba4 34 27 0 -samba_3_034 7 0 -smb-build24 0 0 -talloc 8 7 0 -tdb 28 3 0 +samba_3_033 8 0 +smb-build22 0 0 +talloc 9 7 0 +tdb 29 3 0
svn commit: samba r14845 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2006-04-01 03:46:46 + (Sat, 01 Apr 2006) New Revision: 14845 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14845 Log: expanded the number of info levels tested for continue in the RAW-SEARCH test Modified: branches/SAMBA_4_0/source/torture/raw/search.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/search.c === --- branches/SAMBA_4_0/source/torture/raw/search.c 2006-03-31 23:28:18 UTC (rev 14844) +++ branches/SAMBA_4_0/source/torture/raw/search.c 2006-04-01 03:46:46 UTC (rev 14845) @@ -87,24 +87,105 @@ static struct { const char *name; enum smb_search_level level; + int name_offset; + int resume_key_offset; uint32_t capability_mask; NTSTATUS status; union smb_search_data data; } levels[] = { - {FFIRST, RAW_SEARCH_FFIRST, }, - {FUNIQUE,RAW_SEARCH_FUNIQUE, }, - {SEARCH, RAW_SEARCH_SEARCH, }, - {STANDARD, RAW_SEARCH_STANDARD, }, - {EA_SIZE,RAW_SEARCH_EA_SIZE, }, - {DIRECTORY_INFO, RAW_SEARCH_DIRECTORY_INFO, }, - {FULL_DIRECTORY_INFO,RAW_SEARCH_FULL_DIRECTORY_INFO, }, - {NAME_INFO, RAW_SEARCH_NAME_INFO, }, - {BOTH_DIRECTORY_INFO,RAW_SEARCH_BOTH_DIRECTORY_INFO, }, - {ID_FULL_DIRECTORY_INFO, RAW_SEARCH_ID_FULL_DIRECTORY_INFO, }, - {ID_BOTH_DIRECTORY_INFO, RAW_SEARCH_ID_BOTH_DIRECTORY_INFO, }, - {UNIX_INFO, RAW_SEARCH_UNIX_INFO, CAP_UNIX} + {FFIRST, RAW_SEARCH_FFIRST, +offsetof(union smb_search_data, search.name), +-1, + }, + {FUNIQUE,RAW_SEARCH_FUNIQUE, +offsetof(union smb_search_data, search.name), +-1, + }, + {SEARCH, RAW_SEARCH_SEARCH, +offsetof(union smb_search_data, search.name), +-1, + }, + {STANDARD, RAW_SEARCH_STANDARD, +offsetof(union smb_search_data, standard.name.s), +offsetof(union smb_search_data, standard.resume_key), + }, + {EA_SIZE,RAW_SEARCH_EA_SIZE, +offsetof(union smb_search_data, ea_size.name.s), +offsetof(union smb_search_data, ea_size.resume_key), + }, + {DIRECTORY_INFO, RAW_SEARCH_DIRECTORY_INFO, +offsetof(union smb_search_data, directory_info.name.s), +offsetof(union smb_search_data, directory_info.file_index), + }, + {FULL_DIRECTORY_INFO,RAW_SEARCH_FULL_DIRECTORY_INFO, +offsetof(union smb_search_data, full_directory_info.name.s), +offsetof(union smb_search_data, full_directory_info.file_index), + }, + {NAME_INFO, RAW_SEARCH_NAME_INFO, +offsetof(union smb_search_data, name_info.name.s), +offsetof(union smb_search_data, name_info.file_index), + }, + {BOTH_DIRECTORY_INFO,RAW_SEARCH_BOTH_DIRECTORY_INFO, +offsetof(union smb_search_data, both_directory_info.name.s), +offsetof(union smb_search_data, both_directory_info.file_index), + }, + {ID_FULL_DIRECTORY_INFO, RAW_SEARCH_ID_FULL_DIRECTORY_INFO, +offsetof(union smb_search_data, id_full_directory_info.name.s), +offsetof(union smb_search_data, id_full_directory_info.file_index), + }, + {ID_BOTH_DIRECTORY_INFO, RAW_SEARCH_ID_BOTH_DIRECTORY_INFO, +offsetof(union smb_search_data, id_both_directory_info.name.s), +offsetof(union smb_search_data, id_both_directory_info.file_index), + }, + {UNIX_INFO, RAW_SEARCH_UNIX_INFO, +offsetof(union smb_search_data, unix_info.name), +offsetof(union smb_search_data, unix_info.file_index), +CAP_UNIX} }; + +/* + return level name +*/ +static const char *level_name(enum smb_search_level level) +{ + int i; + for (i=0;iARRAY_SIZE(levels);i++) { + if (level == levels[i].level) { + return levels[i].name; + } + } + return NULL; +} + +/* + extract the name from a smb_data structure and level +*/ +static const char *extract_name(void *data, enum smb_search_level level) +{ + int i; + for (i=0;iARRAY_SIZE(levels);i++) { + if (level == levels[i].level) { + return *(const char **)(levels[i].name_offset + (char *)data); + } + } + return NULL; +} + +/* + extract the name from a smb_data structure and level +*/ +static int extract_resume_key(void *data, enum smb_search_level level) +{ + int i; + for (i=0;iARRAY_SIZE(levels);i++) { + if (level == levels[i].level) { + return (int)*(uint32_t *)(levels[i].resume_key_offset + (char *)data); + } + } + return
svn commit: samba r14846 - in trunk/source: include smbd
Author: jra Date: 2006-04-01 05:41:02 + (Sat, 01 Apr 2006) New Revision: 14846 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14846 Log: Tell static checkers that exit_server() doesn't return. Jeremy. Modified: trunk/source/include/includes.h trunk/source/smbd/server.c Changeset: Modified: trunk/source/include/includes.h === --- trunk/source/include/includes.h 2006-04-01 03:46:46 UTC (rev 14845) +++ trunk/source/include/includes.h 2006-04-01 05:41:02 UTC (rev 14846) @@ -1563,4 +1563,5 @@ #endif void smb_panic( const char *why ) NORETURN_ATTRIBUTE ; +void exit_server(const char *reason) NORETURN_ATTRIBUTE ; #endif /* _INCLUDES_H */ Modified: trunk/source/smbd/server.c === --- trunk/source/smbd/server.c 2006-04-01 03:46:46 UTC (rev 14845) +++ trunk/source/smbd/server.c 2006-04-01 05:41:02 UTC (rev 14846) @@ -570,10 +570,14 @@ #if DUMP_CORE + +static void dump_core(void) NORETURN_ATTRIBUTE ; + /*** prepare to dump a core file - carefully! / -static BOOL dump_core(void) + +static void dump_core(void) { char *p; pstring dname; @@ -584,7 +588,9 @@ mkdir(dname,0700); sys_chown(dname,getuid(),getgid()); chmod(dname,0700); - if (chdir(dname)) return(False); + if (chdir(dname)) { + abort(); + } umask(~(0700)); #ifdef HAVE_GETRLIMIT @@ -608,7 +614,6 @@ CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL); #endif abort(); - return(True); } #endif @@ -616,7 +621,7 @@ Exit the server. / -void exit_server(const char *reason) + void exit_server(const char *reason) { static int firsttime=1; @@ -659,7 +664,7 @@ DEBUGLEVEL = oldlevel; DEBUG(0,(===\n)); #if DUMP_CORE - if (dump_core()) return; + dump_core(); #endif }
svn commit: samba r14847 - in branches/SAMBA_3_0/source: include smbd
Author: jra Date: 2006-04-01 05:41:34 + (Sat, 01 Apr 2006) New Revision: 14847 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=14847 Log: Tell static checkers that exit_server() doesn't return. Jeremy. Modified: branches/SAMBA_3_0/source/include/includes.h branches/SAMBA_3_0/source/smbd/server.c Changeset: Modified: branches/SAMBA_3_0/source/include/includes.h === --- branches/SAMBA_3_0/source/include/includes.h2006-04-01 05:41:02 UTC (rev 14846) +++ branches/SAMBA_3_0/source/include/includes.h2006-04-01 05:41:34 UTC (rev 14847) @@ -1562,4 +1562,5 @@ #endif void smb_panic( const char *why ) NORETURN_ATTRIBUTE ; +void exit_server(const char *reason) NORETURN_ATTRIBUTE ; #endif /* _INCLUDES_H */ Modified: branches/SAMBA_3_0/source/smbd/server.c === --- branches/SAMBA_3_0/source/smbd/server.c 2006-04-01 05:41:02 UTC (rev 14846) +++ branches/SAMBA_3_0/source/smbd/server.c 2006-04-01 05:41:34 UTC (rev 14847) @@ -570,10 +570,14 @@ #if DUMP_CORE + +static void dump_core(void) NORETURN_ATTRIBUTE ; + /*** prepare to dump a core file - carefully! / -static BOOL dump_core(void) + +static void dump_core(void) { char *p; pstring dname; @@ -584,7 +588,9 @@ mkdir(dname,0700); sys_chown(dname,getuid(),getgid()); chmod(dname,0700); - if (chdir(dname)) return(False); + if (chdir(dname)) { + abort(); + } umask(~(0700)); #ifdef HAVE_GETRLIMIT @@ -608,7 +614,6 @@ CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL); #endif abort(); - return(True); } #endif @@ -616,7 +621,7 @@ Exit the server. / -void exit_server(const char *reason) + void exit_server(const char *reason) { static int firsttime=1; @@ -659,7 +664,7 @@ DEBUGLEVEL = oldlevel; DEBUG(0,(===\n)); #if DUMP_CORE - if (dump_core()) return; + dump_core(); #endif }