[Samba] sloowww data transfers
Greetings, Ive been scratching my head at the slow network performance im having with samba 3.0.9 (running debian unstable) set up as a domain for a couple of winders 2k pc's , used for gaming when the nieces and nephews are over it holds the master image of the games. Unfortunately data transfers vary from 1MB to 2MBs from samba to winders whereas winders to winders does several times as fast It does not apear to be the hub or the network cards as the following indicates A 110MB file xferred from samba linux - linux takes about 77s doing the same over NFS takes 11s. I also did this with a 740MB iso 88s over nfs ~ 440 over smbfs ?? I get similar transfer rates when using the samba server on my pc. I have tested this also with a base smb.conf consisting only of - server name - workgroup name - share name - share path no noticeable difference the running kernel is a 2.6.9 cko2 network cards initially a 8139 based and also tried a 3com i build my own kernel - are there some options there that could cripple samba ?? Im using one of the winders pc's to maintain the games image as it takes so much longer moving around the Gigs using samba Any ideas please also cc replies to service at orcon dot net dot nz __ Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://celebrity.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] Re: Shares With Spaces
Jim C. wrote: | I'm having a bit of troble to mount shares with space | something like: | //server/share space | i tryied using the sharename in and '' | and no luck | I have no problems using - mount -t smbfs //share/with spaces | /path/to/mount -o username. | and in fstab how to I use it? | Uou, a great question... i didn't find how to... :( sorry You've probably tried this but what about: //share/with\ spaces Jim C. Yes, I've tried it too but it didn't recognize the line where i put the share # mount /mount/point/ [mntent] The Line 16 of /etc/fstab is incorrect mount: don't find /mount/point in /etc/fstab or /etc/mtab but if i try it directly with the mount command it works! ... duh? x files from mounting throught mtab?? Thanks -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba + OpenLDAP + Automount question
Here is what I did on my setup: 1) Mounted a base share for all samba data (i.e. home dirs and profiles) in /home/samba so that I ended up with /home/samba/home/$USER and /home/samba/profiles/$USER (where $USER is the login name of the user) 2) Pointed all LDAP users home dirs to /home/samba/home/$USER and their profiles to /home/samba/profiles/$USER 3) All I needed to do then is setup shares (and the logon path and logon home entries) a. [homes] path=/home/samba/home/%u b. [Profiles] path=/home/samba/profiles The home dirs get automounted at user logon as the logon home drive. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] File name display error (NLS?)
Hello, I have installed samba on ARM Linux. Basically when I mount, the file names are not displayed properly. Here is some more information:- [EMAIL PROTECTED]:/home# smbmount //192.168.100.101/riz /mnt/smb -o username=trit%son,rw session request to 192.168.100.101 failed [EMAIL PROTECTED]:/home# lsmod Module Size Used by nls_cp437 5376 2 smbfs 63104 2 nls_base7076 0 pxa2xx_core11940 0 pcmcia_core54956 1 pxa2xx_core [EMAIL PROTECTED]:/home# ls /mnt/smb/ S:x00C:x00s:x00m:x00b:x00C:x00l:x00i:x00e:x00n:x00t:x00 r:x00i:x00z:x00.:x00t:x00x:x00t:x00 riz.txt:x00:x00D s:x00m:x00b:x00.:x00c:x00o:x00n:x00f:x00 t:x00e:x00m:x00p:x00 t:x00e:x00s:x00t:x00 t:x00e:x00s:x00t:x00.:x00j:x00p:x00g:x00 [EMAIL PROTECTED]:/home# DISCLAIMER: The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure,copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed. Views expressed in this document are not necessarily those of the company. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Getting user info
Hi all I am looking for a way to get samba to display all avalibel information for a given user (like email, name, ou). I am aware that this is not information directly accesible though active directory unless you use ldap. But I was thinking that someone in here must know a way to retirve such info given a specific domain username. Regards. Lars Roland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Unix password synch
I have a related question (if this is the right place to ask...). I'm using pam_krb5 to authenticate users against an ADS domain, which works well. They can also change their AD account password with the passwd command. What I would like to happen is both the AD account and local (Unix) account passwords get changed at the same time (that way users could still log in with their usual password, even if there was some loss of connectivity to the AD server). Here's my current setup for password: password sufficient pam_krb5.so password requiredpam_unix.so try_first_pass nullok obscure \ min=4 max=8 md5 What happens here is, the AD password gets changed, but the Unix password is untouched (I've tried making the pam_krb5 line optional as well, but that doesn't work either). What's worse, I can't change passwords for local-only accounts (like root) at all. I have to comment out the pam_krb5 line to do that. I'm running Debian 3.1 (Sarge), libpam-krb5 1.0-10. Can anyone help? Thanks, James ^^ James Bradley Eagan, McAllister Associates [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ow Mun Heng Sent: Tuesday, December 21, 2004 1:10 AM To: Samba-list Subject: Re: [Samba] Unix password synch On Tue, 2004-12-21 at 13:45, Anish Mathew wrote: Hi all, Is there any way to automatically update the samba password when a user changes his unix account password using the passwd command. Short Answer - Yes. I want samba to look in passwd file for authentication. I dont want to create two accounts one for local unix and then for the samba. How to get passwd to sync both Linux and smbpasswd Update : Ow Mun Heng Date: Long Time Ago The pam_smbpass PAM module can be used to sync users' Samba passwords with their system passwords when the passwd command is used. If a user invokes the passwd command, the password he uses to log in to the Red Hat Linux system as well as the password he must provide to connect to a Samba share are changed. To enable this feature, add the following line to /etc/pam.d/system-auth below the pam_cracklib.so invocation: password required /lib/security/pam_smbpass.so nullok use_authtok try_first_pass This module is incorporated into the samba source/rpm package #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. authrequired /lib/security/pam_env.so authsufficient/lib/security/pam_unix.so likeauth nullok authrequired /lib/security/pam_deny.so account required /lib/security/pam_unix.so passwordrequired /lib/security/pam_cracklib.so retry=3 type= passwordrequired /lib/security/pam_smbpass.so nullok use_authtok try_first_pass passwordsufficient/lib/security/pam_unix.so nullok use_authtok md5 shadow passwordrequired /lib/security/pam_deny.so session required /lib/security/pam_limits.so session required /lib/security/pam_unix.so # less /usr/share/doc/samba-2.2.7/docs/pam_smbpass/README -- Ow Mun Heng Gentoo/Linux on D600 1.4Ghz 98% Microsoft(tm) Free!! Neuromancer 14:06:56 up 4:56, 6 users, 0.47, 0.55, 0.25 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smb_trans2: invalid data
Hello everyone, I have tried to solve out the 'smb_trans2: invalid data' by 'unix extensions = no' as it was written in one of the previous mails. Still I have a bad problem: when I mount like this: mount.smbfs //server/service /local_dir -o username=my_remote_login,uid=my_local_login,gid=users,rw and then I try to copy a file to /local_dir as the user my_local_login, the file is copied ok but then it takes a looong time to go on (perhaps when changing the file's uid or attributes, or whatever...). Actually before I set 'unix extensions = no', it took a long time even before any copying (after copying too). So now it became little better, but still quite unusable ;-) Do I do something wrong, or is there a way how to solve this problem? Thank you very much. J.R. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] removing unused machine account
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Beast wrote: | | Is there anyway to find out which machine account is | currently not being used anymore? half of my clients | are already migrate to linux and some | machine are already join using different name. Assuming that the clients change their machine account password regularly, you can query the LCT for the machine accounts. Anything over 60 days is probably not in use. Maybe just disable it and delete after another 30 days if no one complains. cheer,s jerry - - Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc If we're adding to the noise, turn off this song--Switchfoot (2003) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFByC/sIR7qMdg1EfYRAhoTAJkBLNqY425B+cveleiaS8Q1HVtYYwCgpc0h PjihEvDuo9H24nztR679VoU= =lsdj -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] Re: sloowww data transfers
me a écrit : Greetings, Ive been scratching my head at the slow network performance im having with samba 3.0.9 (running debian unstable) set up as a domain for a couple of winders 2k pc's , used for gaming when the nieces and nephews are over it holds the master image of the games. Unfortunately data transfers vary from 1MB to 2MBs from samba to winders whereas winders to winders does several times as fast It does not apear to be the hub or the network cards as the following indicates A 110MB file xferred from samba linux - linux takes about 77s doing the same over NFS takes 11s. I also did this with a 740MB iso 88s over nfs ~ 440 over smbfs ?? I get similar transfer rates when using the samba server on my pc. I have tested this also with a base smb.conf consisting only of - server name - workgroup name - share name - share path no noticeable difference the running kernel is a 2.6.9 cko2 network cards initially a 8139 based and also tried a 3com i build my own kernel - are there some options there that could cripple samba ?? Im using one of the winders pc's to maintain the games image as it takes so much longer moving around the Gigs using samba Any ideas please also cc replies to service at orcon dot net dot nz __ Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://celebrity.mail.yahoo.com Generaly - use sendfile = yes - is the answer to perf pb on samba 3. Did you try it ? Pierre -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Using ACL on Solaris 8 with Samba 3.0.9
Hi folks, I installed Samba 3.0.9 on one of my Solaris 8 Boxes. The installation (configure with: --with-pam --with-acl-support --with-winbind) and the configuration (creating a share, ...) went fine so far. I configured my Samba- Server to fetch all user- and group-information from my DC. Using wbinfo (-u|- g) to check wheter winbindd is running, or not works fine. I get a complete list of all user (groups). But if I try to change the permission of a file or directory from within my Windows client, i get the following error in my log.smbd: [2004/12/21 13:27:30, 3] smbd/posix_acls.c:convert_canon_ace_to_posix_perms (2498) convert_canon_ace_to_posix_perms: Too many ACE entries for file DV/file.txt to convert to posix perms. Any hints on how to fix this problem? Cheers Sven BTW: here is my smb.conf and the output from smbd -b and uname -a ---[smb.conf]-- [global] workgroup = MYWINDOWSDOMAIN netbios name = MYSAMBASERVER server string = My Samba Server security = DOMAIN auth methods = winbind password server = ip.of.my.PDC username level = 2 log level = 3 name resolve order = wins bcast hosts preferred master = No local master = No domain master = No wins server = ip.of.my.WINS idmap uid = 1-2 idmap gid = 1-2 winbind separator = \ create mask = 0764 directory mask = 0775 ---[smbd -b]-- Build environment: Built by:[EMAIL PROTECTED] Built on:Wed Dec 15 09:58:38 MET 2004 Built using: gcc Build host: SunOS frodo 5.8 Generic_112953-02 sun4u sparc SUNW,Sun-Fire-280R SRCDIR: /admin/src/samba-3.0.9/source BUILDDIR:/admin/src/samba-3.0.9/source [...] System Headers: HAVE_SYS_ACL_H [...] HAVE__ACL [...] HAVE__FACL [...] --with Options: WITH_PAM WITH_SENDFILE WITH_UTMP WITH_WINBIND ---[uname -a]-- SunOS frodo 5.8 Generic_112953-02 sun4u sparc SUNW,Sun-Fire-280R -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Help with permissions when moving data between Windows and Samba.
Hello list Samba-3.0.8 on Fedora-Core3. I am currently testing Samba as a member server of an AD domain and using winbind for user resolution. Samba is joined to the AD domain and can I can write files as the domain\user on a test share. This server is to be used as an archive storage area so I need to move data from existing Windows 2000 server's to the Samba share while keeping the correct user permissions. I have given the windows admin account privileges on the samba share by using the admin users field and acl's seem to be copying correctly with user owned files when copying with scopy. The windows admin account is a member of the local Administrator's group and a lot of files stored on the windows servers are owned by this account/local group but I am unable to copy files with these permissions and receive an access denied message, which I think is down to the fact that the owner is a member of the local Administrator's group. I did read in the Samba By Example book... 8. Q: When I run net groupmap list, it reports a group called Administrators as well as Domain Admins. What is the difference between them? A: The group called Administrators is representative of the same account that would be present as the Local Group account on a Domain Member server or workstation. Samba uses only Domain Groups at this time. A Workstation or Server Local Group has no meaning in a Samba context. This may change at some later date. These accounts are provided only so that security objects are correctly shown. which I think is something to do with my problem, but I am unsure what I need to do to correct/workaround the problem. Thanks in advance. Dean Plant -- Visit our website at www.roke.co.uk Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK. The information contained in this e-mail and any attachments is proprietary to Roke Manor Research Ltd and must not be passed to any third party without permission. This communication is for information only and shall not create or change any contractual relationship. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Using ACL on Solaris 8 with Samba 3.0.9
Sven Pfeifer a écrit : Hi folks, I installed Samba 3.0.9 on one of my Solaris 8 Boxes. The installation (configure with: --with-pam --with-acl-support --with-winbind) and the configuration (creating a share, ...) went fine so far. I configured my Samba- Server to fetch all user- and group-information from my DC. Using wbinfo (-u|- g) to check wheter winbindd is running, or not works fine. I get a complete list of all user (groups). But if I try to change the permission of a file or directory from within my Windows client, i get the following error in my log.smbd: [2004/12/21 13:27:30, 3] smbd/posix_acls.c:convert_canon_ace_to_posix_perms (2498) convert_canon_ace_to_posix_perms: Too many ACE entries for file DV/file.txt to convert to posix perms. Any hints on how to fix this problem? Cheers Sven BTW: here is my smb.conf and the output from smbd -b and uname -a ---[smb.conf]-- [global] workgroup = MYWINDOWSDOMAIN netbios name = MYSAMBASERVER server string = My Samba Server security = DOMAIN auth methods = winbind password server = ip.of.my.PDC username level = 2 log level = 3 name resolve order = wins bcast hosts preferred master = No local master = No domain master = No wins server = ip.of.my.WINS idmap uid = 1-2 idmap gid = 1-2 winbind separator = \ create mask = 0764 directory mask = 0775 ---[smbd -b]-- Build environment: Built by:[EMAIL PROTECTED] Built on:Wed Dec 15 09:58:38 MET 2004 Built using: gcc Build host: SunOS frodo 5.8 Generic_112953-02 sun4u sparc SUNW,Sun-Fire-280R SRCDIR: /admin/src/samba-3.0.9/source BUILDDIR:/admin/src/samba-3.0.9/source [...] System Headers: HAVE_SYS_ACL_H [...] HAVE__ACL [...] HAVE__FACL [...] --with Options: WITH_PAM WITH_SENDFILE WITH_UTMP WITH_WINBIND ---[uname -a]-- SunOS frodo 5.8 Generic_112953-02 sun4u sparc SUNW,Sun-Fire-280R I use the sunfreeware.com 3.0.9 build for 2.5.1 and have the following headers: HAVE_SYS_ACL_H HAVE_SOLARIS_ACLS HAVE__ACL HAVE__FACL I hope this can help you. Pierre -- 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.9 doesn't remove printjobs ?
We just upgraded to Samba 3.0.9 (RedHat Enterprise 3 packages) this weekend and are now seeing similar issues on our workstations. I do not see any printing related errors in our logs however. I do however see these backed up print queues on every workstation. We run a mix of Windows 2000 (SP4) and XP Pro (SP2) machines. So it appears, at least in my case, that it's /not/ an XP-SP2 only issue. One other thing to note: We're in the midst of testing/deploying Debian Sarge servers to replace the RedHat boxes. On a whim this morning, I created a print server using one of my already-in-place Debian machines. To my amazement, the printer that I have hanging off of the Debian box does /not/ have this issue. What's odd about this...both of the print servers are running version 3.0.9. I've used the supplied distro's packages and not built from source in either case. So it appears from my simple tests, that something is different in the Debian build of Samba that cures this issue. A couple things that need to be said about this...I've only hung one printer off of the Debian box. In addition, I've only had two workstations printing to it - one XP-SP2 and one W2k-SP4. So it may very well have something to do with load or other such factor. But the problem has not yet appeared with the Debian package. I hope that this gives someone on the development team some clue as to the exact nature of the problem. I'll be available to answer any questions or fill any need for information that I can. Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: [Samba] Samba 3.0.9 doesn't remove printjobs ? Hello! I'm using samba with CUPS printing (with raw passthru) for a long time now and it worked very well. But after upgrading my samba installation from 3.0.2 to 3.0.9, the printjobs (sent from XP Workstations) aren't removed from the joblist anymore. Means: the job is printed correctly, but opening the printqueue on the XP machine still contains the job (not only mine, but jobs from every user who sent one). When I now delete them manually, they're gone. Since I can't find any remaining SMB or CUPS spool-files, (thought about missing access rights for deletion) I don't know what to look for. The only error message I found is: tdb(/var/lib/samba/printing/Kyocera7000.tdb): rec_read bad magic 0xd9fee666 at offset=26084 in /var/log/samba/smbd (but I got this message sometimes before the upgrade too ...) Thanks for some hints on that (2) problem(s) Thomas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.0.9 doesn't remove printjobs ?
Collins, Kevin wrote: We just upgraded to Samba 3.0.9 (RedHat Enterprise 3 packages) this weekend and are now seeing similar issues on our workstations. I do not see any printing related errors in our logs however. I do however see these backed up print queues on every workstation. We run a mix of Windows 2000 (SP4) and XP Pro (SP2) machines. So it appears, at least in my case, that it's /not/ an XP-SP2 only issue. One other thing to note: We're in the midst of testing/deploying Debian Sarge servers to replace the RedHat boxes. On a whim this morning, I created a print server using one of my already-in-place Debian machines. To my amazement, the printer that I have hanging off of the Debian box does /not/ have this issue. What's odd about this...both of the print servers are running version 3.0.9. I've used the supplied distro's packages and not built from source in either case. So it appears from my simple tests, that something is different in the Debian build of Samba that cures this issue. A couple things that need to be said about this...I've only hung one printer off of the Debian box. In addition, I've only had two workstations printing to it - one XP-SP2 and one W2k-SP4. So it may very well have something to do with load or other such factor. But the problem has not yet appeared with the Debian package. I hope that this gives someone on the development team some clue as to the exact nature of the problem. I'll be available to answer any questions or fill any need for information that I can. Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: [Samba] Samba 3.0.9 doesn't remove printjobs ? Hello! I'm using samba with CUPS printing (with raw passthru) for a long time now and it worked very well. But after upgrading my samba installation from 3.0.2 to 3.0.9, the printjobs (sent from XP Workstations) aren't removed from the joblist anymore. Means: the job is printed correctly, but opening the printqueue on the XP machine still contains the job (not only mine, but jobs from every user who sent one). When I now delete them manually, they're gone. Since I can't find any remaining SMB or CUPS spool-files, (thought about missing access rights for deletion) I don't know what to look for. The only error message I found is: tdb(/var/lib/samba/printing/Kyocera7000.tdb): rec_read bad magic 0xd9fee666 at offset=26084 in /var/log/samba/smbd (but I got this message sometimes before the upgrade too ...) Thanks for some hints on that (2) problem(s) Thomas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Are you seeing a problem where windows clients are able to print but the print queues never clear? Or are they not even printing? If you are experiencing the former then this is a RH samba problem that should have been fixed by now -- please let me know. It also warrants mentioning (per an earlier thread) that our 3.0.9 packages are likely going to be revised in a very short period of time to fix a kerberos related problem. Christian -- 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.9 doesn't remove printjobs ?
Christian: The print jobs are working just fine, they simply seem to be hanging around in the client's queues. Any idea when the updated packages will be out? Kevin -Original Message- From: Christian Merrill [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 10:36 AM To: Collins, Kevin Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: Re: [Samba] Samba 3.0.9 doesn't remove printjobs ? Collins, Kevin wrote: We just upgraded to Samba 3.0.9 (RedHat Enterprise 3 packages) this weekend and are now seeing similar issues on our workstations. I do not see any printing related errors in our logs however. I do however see these backed up print queues on every workstation. We run a mix of Windows 2000 (SP4) and XP Pro (SP2) machines. So it appears, at least in my case, that it's /not/ an XP-SP2 only issue. One other thing to note: We're in the midst of testing/deploying Debian Sarge servers to replace the RedHat boxes. On a whim this morning, I created a print server using one of my already-in-place Debian machines. To my amazement, the printer that I have hanging off of the Debian box does /not/ have this issue. What's odd about this...both of the print servers are running version 3.0.9. I've used the supplied distro's packages and not built from source in either case. So it appears from my simple tests, that something is different in the Debian build of Samba that cures this issue. A couple things that need to be said about this...I've only hung one printer off of the Debian box. In addition, I've only had two workstations printing to it - one XP-SP2 and one W2k-SP4. So it may very well have something to do with load or other such factor. But the problem has not yet appeared with the Debian package. I hope that this gives someone on the development team some clue as to the exact nature of the problem. I'll be available to answer any questions or fill any need for information that I can. Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: [Samba] Samba 3.0.9 doesn't remove printjobs ? Hello! I'm using samba with CUPS printing (with raw passthru) for a long time now and it worked very well. But after upgrading my samba installation from 3.0.2 to 3.0.9, the printjobs (sent from XP Workstations) aren't removed from the joblist anymore. Means: the job is printed correctly, but opening the printqueue on the XP machine still contains the job (not only mine, but jobs from every user who sent one). When I now delete them manually, they're gone. Since I can't find any remaining SMB or CUPS spool-files, (thought about missing access rights for deletion) I don't know what to look for. The only error message I found is: tdb(/var/lib/samba/printing/Kyocera7000.tdb): rec_read bad magic 0xd9fee666 at offset=26084 in /var/log/samba/smbd (but I got this message sometimes before the upgrade too ...) Thanks for some hints on that (2) problem(s) Thomas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Are you seeing a problem where windows clients are able to print but the print queues never clear? Or are they not even printing? If you are experiencing the former then this is a RH samba problem that should have been fixed by now -- please let me know. It also warrants mentioning (per an earlier thread) that our 3.0.9 packages are likely going to be revised in a very short period of time to fix a kerberos related problem. Christian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Laptops offline logons and roaming profiles
I experience pb with roaming profiles when laptops are used offline. When connected to the network everything works fine. Here under is the problem description. All the users of my company use laptops. They often work offline. Desktop components (My Documents files, Desktop files or folders, ...) are sometimes deleted by the user while working in offline mode that means, not connected to any network. The problem is that when the user comes back to the office and logs on to the domain, all deleted objects in offline mode are retrieved from the roaming profile saved on the samba server. In other words, when the user logs on to the office network, the workstation XP (or 2K) is not able to check if the server roaming profile is older than the local profile. Are XP and 2000 not able to tell Local profile is newer than roaming profile, wich one do you want to load ? In an other life I'm sure that NT4 did this check :-) What I want is when the user comes back to the office, if the local profile is newer than the server profile, then the local profile must be used. I google newsgroups, the web and MS docs for a long time with no success. Is there near by one body who could help me ? Many thanks for your help. Pierre --- Config: I get the same pb on samba 2.2 and 3.0 samba 2.2.8a or 3.0.9 on solaris 2.5.1 and solaris 8 Profile share conf: Browseable = yes csc policy = disable nt acl support = yes in XP: Enable - Do not check for user ownership of Roaming profile folders - --- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba panics on disk size and connection is lost while copting files.
I have moved a Samba installation from an old samba 2.2.8a (on a 2.4.21 kernel) to a new server running Samba 3.0.10 on a SuSE 9.2 (kernel 2.6.8) and I now have a problem using the (same) shares from client W2K machines. When I open My Computer window on a client, the drives are marked by a red cross, as if they were disconnected, and the disksize is zero. I can decend into the folders on the drives, and here all the files are there as expected. After opening the My Computer window, a panic error message is logged in log.smbd. The error message is added below. As long as I'm in a Samba share, the error message is reapeated over and over again. If I copy files to the Samba shares, the operation is interupted after maybe 600 - 1000MB of files, with a message that the connection to the drive has been lost. The connection is actually not lost, as I still has full access to the drive !?. When the copy stops, there is no new error message added to log.smbd (or log.nmbd). The problem is exactly the same in both Samba 3.07 and 3.0.10. The client tested is W2K with SP4 and all the latest fixes installed. Norton Internet Security 2003. Disabling the antivirus has no effect. From time to time the W2K machines displayes an error message that the connection to a Samba share is lost and reestablished. Any suggestions. Bo ## # log.smbd printout: ## [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(36) === [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 5733 (3.0.10-0.1-SUSE) Please read the appendix Bugs of the Samba HOWTO collection [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(39) === [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1482) PANIC: internal error [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1490) BACKTRACE: 18 stack frames: #0 /usr/sbin/smbd(smb_panic2+0x120) [0x8202000] #1 /usr/sbin/smbd(smb_panic+0x26) [0x82021d6] #2 /usr/sbin/smbd [0x81ed0b0] #3 [0xe420] #4 /lib/tls/libc.so.6(getmntent+0x54) [0x4035ad84] #5 /usr/sbin/smbd [0x80e1058] #6 /usr/sbin/smbd(sys_get_quota+0xed) [0x80e1a7d] #7 /usr/sbin/smbd(disk_quotas+0x4d) [0x80e5aed] #8 /usr/sbin/smbd(sys_disk_free+0xcb) [0x8088bcb] #9 /usr/sbin/smbd(vfswrap_disk_free+0x39) [0x80d2329] #10 /usr/sbin/smbd [0x80ba8fb] #11 /usr/sbin/smbd(reply_trans2+0x13cb) [0x80c09cb] #12 /usr/sbin/smbd [0x80dccf0] #13 /usr/sbin/smbd(process_smb+0x19a) [0x80dd27a] #14 /usr/sbin/smbd(smbd_process+0x16f) [0x80dd6df] #15 /usr/sbin/smbd(main+0x530) [0x8283310] #16 /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x402bdb14] #17 /usr/sbin/smbd [0x8079701] [2004/12/21 15:54:59, 1] smbd/service.c:make_connection_snum(647) bopc2 (192.168.7.43) connect to service diverse initially as user bo (uid=1000, gid=100) (pid 5751) [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(36) === [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 5751 (3.0.10-0.1-SUSE) Please read the appendix Bugs of the Samba HOWTO collection [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(39) === [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1482) PANIC: internal error [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1490) BACKTRACE: 18 stack frames: #0 /usr/sbin/smbd(smb_panic2+0x120) [0x8202000] #1 /usr/sbin/smbd(smb_panic+0x26) [0x82021d6] #2 /usr/sbin/smbd [0x81ed0b0] #3 [0xe420] #4 /lib/tls/libc.so.6(getmntent+0x54) [0x4035ad84] #5 /usr/sbin/smbd [0x80e1058] #6 /usr/sbin/smbd(sys_get_quota+0xed) [0x80e1a7d] #7 /usr/sbin/smbd(disk_quotas+0x4d) [0x80e5aed] #8 /usr/sbin/smbd(sys_disk_free+0xcb) [0x8088bcb] #9 /usr/sbin/smbd(vfswrap_disk_free+0x39) [0x80d2329] #10 /usr/sbin/smbd [0x80b9d15] #11 /usr/sbin/smbd(reply_trans2+0x13cb) [0x80c09cb] #12 /usr/sbin/smbd [0x80dccf0] #13 /usr/sbin/smbd(process_smb+0x19a) [0x80dd27a] #14 /usr/sbin/smbd(smbd_process+0x16f) [0x80dd6df] #15 /usr/sbin/smbd(main+0x530) [0x8283310] #16 /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x402bdb14] #17 /usr/sbin/smbd [0x8079701] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba panics on disk size and connection is lost while copting files.
Bo Jacobsen wrote: I have moved a Samba installation from an old samba 2.2.8a (on a 2.4.21 kernel) to a new server running Samba 3.0.10 on a SuSE 9.2 (kernel 2.6.8) and I now have a problem using the (same) shares from client W2K machines. When I open My Computer window on a client, the drives are marked by a red cross, as if they were disconnected, and the disksize is zero. I can decend into the folders on the drives, and here all the files are there as expected. After opening the My Computer window, a panic error message is logged in log.smbd. The error message is added below. As long as I'm in a Samba share, the error message is reapeated over and over again. Have you done this? [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 5751 (3.0.10-0.1-SUSE) Please read the appendix Bugs of the Samba HOWTO collection If I copy files to the Samba shares, the operation is interupted after maybe 600 - 1000MB of files, with a message that the connection to the drive has been lost. The connection is actually not lost, as I still has full access to the drive !?. When the copy stops, there is no new error message added to log.smbd (or log.nmbd). The problem is exactly the same in both Samba 3.07 and 3.0.10. The client tested is W2K with SP4 and all the latest fixes installed. Norton Internet Security 2003. Disabling the antivirus has no effect. From time to time the W2K machines displayes an error message that the connection to a Samba share is lost and reestablished. Any suggestions. Bo ## # log.smbd printout: ## [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(36) === [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 5733 (3.0.10-0.1-SUSE) Please read the appendix Bugs of the Samba HOWTO collection [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(39) === [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1482) PANIC: internal error [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1490) BACKTRACE: 18 stack frames: #0 /usr/sbin/smbd(smb_panic2+0x120) [0x8202000] #1 /usr/sbin/smbd(smb_panic+0x26) [0x82021d6] #2 /usr/sbin/smbd [0x81ed0b0] #3 [0xe420] #4 /lib/tls/libc.so.6(getmntent+0x54) [0x4035ad84] #5 /usr/sbin/smbd [0x80e1058] #6 /usr/sbin/smbd(sys_get_quota+0xed) [0x80e1a7d] #7 /usr/sbin/smbd(disk_quotas+0x4d) [0x80e5aed] #8 /usr/sbin/smbd(sys_disk_free+0xcb) [0x8088bcb] #9 /usr/sbin/smbd(vfswrap_disk_free+0x39) [0x80d2329] #10 /usr/sbin/smbd [0x80ba8fb] #11 /usr/sbin/smbd(reply_trans2+0x13cb) [0x80c09cb] #12 /usr/sbin/smbd [0x80dccf0] #13 /usr/sbin/smbd(process_smb+0x19a) [0x80dd27a] #14 /usr/sbin/smbd(smbd_process+0x16f) [0x80dd6df] #15 /usr/sbin/smbd(main+0x530) [0x8283310] #16 /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x402bdb14] #17 /usr/sbin/smbd [0x8079701] [2004/12/21 15:54:59, 1] smbd/service.c:make_connection_snum(647) bopc2 (192.168.7.43) connect to service diverse initially as user bo (uid=1000, gid=100) (pid 5751) [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(36) === [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 5751 (3.0.10-0.1-SUSE) Please read the appendix Bugs of the Samba HOWTO collection [2004/12/21 15:54:59, 0] lib/fault.c:fault_report(39) === [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1482) PANIC: internal error [2004/12/21 15:54:59, 0] lib/util.c:smb_panic2(1490) BACKTRACE: 18 stack frames: #0 /usr/sbin/smbd(smb_panic2+0x120) [0x8202000] #1 /usr/sbin/smbd(smb_panic+0x26) [0x82021d6] #2 /usr/sbin/smbd [0x81ed0b0] #3 [0xe420] #4 /lib/tls/libc.so.6(getmntent+0x54) [0x4035ad84] #5 /usr/sbin/smbd [0x80e1058] #6 /usr/sbin/smbd(sys_get_quota+0xed) [0x80e1a7d] #7 /usr/sbin/smbd(disk_quotas+0x4d) [0x80e5aed] #8 /usr/sbin/smbd(sys_disk_free+0xcb) [0x8088bcb] #9 /usr/sbin/smbd(vfswrap_disk_free+0x39) [0x80d2329] #10 /usr/sbin/smbd [0x80b9d15] #11 /usr/sbin/smbd(reply_trans2+0x13cb) [0x80c09cb] #12 /usr/sbin/smbd [0x80dccf0] #13 /usr/sbin/smbd(process_smb+0x19a) [0x80dd27a] #14 /usr/sbin/smbd(smbd_process+0x16f) [0x80dd6df] #15 /usr/sbin/smbd(main+0x530) [0x8283310] #16 /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x402bdb14] #17 /usr/sbin/smbd [0x8079701] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + OpenLDAP + Automount question
Thanks Peter. That is an option. I was wondering if there is a way to make Samba interact with the autofs code to start autofs during a user login process. Any suggestions from Samba developers on this one? Thanks, Prakash On Dec 21, 2004, at 4:15 AM, Peter Olivia wrote: Here is what I did on my setup: 1) Mounted a base share for all samba data (i.e. home dirs and profiles) in /home/samba so that I ended up with /home/samba/home/$USER and /home/samba/profiles/$USER (where $USER is the login name of the user) 2) Pointed all LDAP users home dirs to /home/samba/home/$USER and their profiles to /home/samba/profiles/$USER 3) All I needed to do then is setup shares (and the logon path and logon home entries) a. [homes] path=/home/samba/home/%u b. [Profiles] path=/home/samba/profiles The home dirs get automounted at user logon as the logon home drive. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + OpenLDAP + Automount question
Thanks Peter. That is an option. I was wondering if there is a way to make Samba interact with the autofs code to start autofs during a user login process. Any suggestions from Samba developers on this one? Thanks, Prakash On Dec 21, 2004, at 4:15 AM, Peter Olivia wrote: Here is what I did on my setup: 1) Mounted a base share for all samba data (i.e. home dirs and profiles) in /home/samba so that I ended up with /home/samba/home/$USER and /home/samba/profiles/$USER (where $USER is the login name of the user) 2) Pointed all LDAP users home dirs to /home/samba/home/$USER and their profiles to /home/samba/profiles/$USER 3) All I needed to do then is setup shares (and the logon path and logon home entries) a. [homes] path=/home/samba/home/%u b. [Profiles] path=/home/samba/profiles The home dirs get automounted at user logon as the logon home drive. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Domain password server not available
We continue to see the password server not available messages on our servers. I'm including a portion of one of the Samba client logs below. Has anyone else seen anything like this? -John lifelaw2.log:[2004/12/20 14:22:55, 0] smbd/password.c:connect_to_domain_password_server(1290) lifelaw2.log: connect_to_password_server: machine GALA rejected the NetBIOS session request. Error was : Call timed out: server did not respond after 2 milliseconds. lifelaw2.log:[2004/12/20 14:23:16, 0] smbd/password.c:connect_to_domain_password_server(1300) lifelaw2.log: connect_to_domain_password_server: machine OZONE rejected the negotiate protocol. Error was : Call timed out: server did not respond after 2 milliseconds. lifelaw2.log:[2004/12/20 14:23:36, 0] smbd/password.c:connect_to_domain_password_server(1300) lifelaw2.log: connect_to_domain_password_server: machine DYNAMO rejected the negotiate protocol. Error was : Call timed out: server did not respond after 2 milliseconds. lifelaw2.log:[2004/12/20 14:24:17, 0] smbd/password.c:connect_to_domain_password_server(1290) lifelaw2.log: connect_to_password_server: machine GALA rejected the NetBIOS session request. Error was : Call timed out: server did not respond after 2 milliseconds. lifelaw2.log:[2004/12/20 14:24:59, 0] smbd/password.c:connect_to_domain_password_server(1290) lifelaw2.log: connect_to_password_server: machine GALA rejected the NetBIOS session request. Error was : Call timed out: server did not respond after 2 milliseconds. John DeBella 12/20/2004 09:28 AM To: [EMAIL PROTECTED] cc: Subject:Domain password server not available We are running samba 3.0.7-1.3E.1in an AD domain which is running a PDC emulator. The samba servers are configured with security = domain and on some servers the password server is specified while on others we are using *. We very frequently see the following messages in the log files of the servers. domain_client_validate: Domain password server not available Typically we can count on an smbd process to panic at the same time. We've spoken to the admins of the PDC emulators and they claim that the servers are ok. Has anyone else seen this? Any ideas what would cause this? -John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Shares With Spaces
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 | You've probably tried this but what about: | //share/with\ spaces | | Jim C. | | Yes, I've tried it too but it didn't recognize the line where i put the | share What about //share/with%20spaces ? - -- - - | I can be reached on the following Instant Messenger services: | |---| | MSN: j_c_llings @ hotmail.com AIM: WyteLi0n ICQ: 123291844 | |---| | Y!: j_c_llingsJabber: jcllings @ njs.netlab.cz| - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFByFw857L0B7uXm9oRAidSAJ0R6T9HYZ+BL6K2QmRTXWv/cftn9wCff95U cgniQxi6zfIF+0QB1sEMNu8= =0Gzy -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] Trying to join AD but no luck.
Hello all I have Solaris 9 Samba 3.0.10 I compiled with ads. Now I try to join to the ADS and I get: bash-2.05# ./net ads join -U username username's password: [2004/12/21 18:39:23, 0] libads/ldap.c:ads_add_machine_acct(1475) Warning: ads_set_machine_sd: Unexpected information received And it just freezes for ever! Since I have access to the ADS I can see that after 30 seconds the account has been created with a role of Domain Controller If I press CTRL-C and do the whole thing again I get the account exists... modifying and again freezes for ever. Am I doing something wrong? Thank you all for your time. Theophanis Kontogiannis University of the Aegean - NOC Greece -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] File growth behavior of Mac OS X and WinXP
Hello List, I've searched the internet and I haven't been able to figure this out. I hope someone here can point me in the right direction. I have a MacOSX 10.3 machine and a WinXP machine that are being used to produce large video clips (@1gig). After they are rendered and ready for playback, they are copied to the playout machines using a system that uses watch folders shared out over samba. The watch folder works based on file size. For example, 40 seconds after a file's filesize stops growing, the system assumes the file is complete and starts moving the file onto the playout device. The problem I've found is that windows xp and mac osx (10.3 at least) both cause samba to allocate the entire file size at the start of the transfer. For large files this causes a problem since the file is not finished writing to the smb share when the playout transfer system takes the file and tries to move it and then delete it. Any help on how to change OSX and WinXP's behavior or how to keep samba from allocating disk space at the start of a write would be very appreciated. Thanks, Victor. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File growth behavior of Mac OS X and WinXP
On Tue, Dec 21, 2004 at 01:09:59PM -0500, Victor Moran wrote: Hello List, I've searched the internet and I haven't been able to figure this out. I hope someone here can point me in the right direction. I have a MacOSX 10.3 machine and a WinXP machine that are being used to produce large video clips (@1gig). After they are rendered and ready for playback, they are copied to the playout machines using a system that uses watch folders shared out over samba. The watch folder works based on file size. For example, 40 seconds after a file's filesize stops growing, the system assumes the file is complete and starts moving the file onto the playout device. The problem I've found is that windows xp and mac osx (10.3 at least) both cause samba to allocate the entire file size at the start of the transfer. For large files this causes a problem since the file is not finished writing to the smb share when the playout transfer system takes the file and tries to move it and then delete it. Any help on how to change OSX and WinXP's behavior or how to keep samba from allocating disk space at the start of a write would be very appreciated. If the client writes at the end of the file, and then fills in the gaps then there is nothing we can do to fix this in Samba. Who wrote the watch system ? Pre-allocating a known filesize by writing at the end then filling in the blank is a common idiom in file transfers, I would expect a watch system to deal with this. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow login using Samba 3.09 but Samba 2.27 works ok.
Hello! We have Mandrake Linux 9.0 system with Samba v2.27 serving as a PDC for ~400 users. (Hardware: P1800, 256Mb). The performance is acceptable- user can log in in approx. 5 sec. (Includes copying ~700Kb roaming profile). Now we've got new server (P3000HT,512Mb,SATA) with Mandrake Linux 10.1 community and Samba 3.09 (compiled from sources). And guess what? Now user on the *same* computer can log in only in 20(!) sec. Here's what log says using log level=1: [2004/12/21 15:38:34, 1] smbd/service.c:make_connection_snum(648) kl2-02 (192.168.0.32) connect to service profiles initially as user test123 (uid=943, gid=503) (pid 9329) [2004/12/21 15:38:45, 1] smbd/service.c:make_connection_snum(648) kl2-02 (192.168.0.32) connect to service profiles initially as user test123 (uid=943, gid=503) (pid 9329) [2004/12/21 15:39:03, 1] smbd/service.c:make_connection_snum(648) kl2-02 (192.168.0.32) connect to service netlogon initially as user test123 (uid=943, gid=503) (pid 9329) Note the time difference and the fact that samba connects to profiles *twice*. And now here's a log using log level=10: [2004/12/21 15:49:22, 4] smbd/trans2.c:call_trans2findfirst(1523) SMBtrans2 mask=test123 directory=./ dirtype=22 numentries=1 [2004/12/21 15:49:38, 10] lib/util_sock.c:read_smb_length_return_keepalive(505) got smb length of 102 Note again the time difference. Here's Samba 3.09 config file: [global] log file = /var/log/samba/log.%m load printers = yes smb passwd file = /etc/samba/smbpasswd passwd chat = *new*password* %n\n *new*password %n\n *successfully* socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon drive = N: domain master = Yes map to guest = bad user encrypt passwords = yes passwd program = /usr/bin/passwd %u printer admin = @adm dns proxy = no netbios name = serv3 server string = Samba Server %v printing = cups unix password sync = Yes workgroup = MDKGROUP logon path = \\%N\profiles\%U debug level = 1 os level = 20 printcap name = lpstat security = user add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine account' -s /bin/false -M %u max log size = 5 domain logons = Yes log level = 1 [homes] comment = Home Directories browseable = no writable = yes create mask = 0700 directory mask = 0700 valid users = %S [profiles] path = /home/samba/profiles browseable = no guest ok = yes writable = yes create mask = 0700 directory mask = 0700 profile acls = yes csc policy = disable and here's Samba 2.27 config: [global] workgroup = COMPANY netbios name = SERV2 server string = Samba Server %v encrypt passwords = Yes pam password change = Yes unix password sync = Yes log file = /var/log/samba/log.%m max log size = 500 socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 printcap name = lpstat add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine account' -s /bin/false -M %u logon path = \\%N\profiles\%U logon drive = N: domain logons = Yes os level = 64 domain master = Yes dns proxy = No hosts allow = 192.168.0.,127. printing = cups [homes] comment = Home Directories valid users = %S read only = No create mask = 0700 directory mask = 0700 browseable = No [profiles] path = /home/samba/profiles read only = No create mask = 0700 directory mask = 0700 browseable = No On the whole new config is based on the old one, so I don't think it's a config issue. I just added few lines ( like: profile acls = yes, csc policy = disable) after googling on this issue but with no luck. Any ideas would be appreciated. Janis. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File growth behavior of Mac OS X and WinXP
Jeremy, Thanks for your response. Your right, the watch system is missing the ability to deal with files that are written from the end and then filled. It was developed in-house. I was hoping to find a way to deal with this missing feature, without asking for new code since the development group is overworked. I'll stop looking now, I think your response counts as hearing it from the horses' mouth. :) Thanks again for your response and for all your work on Samba. Victor. On Tue, 21 Dec 2004 10:23:42 -0800, Jeremy Allison [EMAIL PROTECTED] wrote: On Tue, Dec 21, 2004 at 01:09:59PM -0500, Victor Moran wrote: Hello List, I've searched the internet and I haven't been able to figure this out. I hope someone here can point me in the right direction. I have a MacOSX 10.3 machine and a WinXP machine that are being used to produce large video clips (@1gig). After they are rendered and ready for playback, they are copied to the playout machines using a system that uses watch folders shared out over samba. The watch folder works based on file size. For example, 40 seconds after a file's filesize stops growing, the system assumes the file is complete and starts moving the file onto the playout device. The problem I've found is that windows xp and mac osx (10.3 at least) both cause samba to allocate the entire file size at the start of the transfer. For large files this causes a problem since the file is not finished writing to the smb share when the playout transfer system takes the file and tries to move it and then delete it. Any help on how to change OSX and WinXP's behavior or how to keep samba from allocating disk space at the start of a write would be very appreciated. If the client writes at the end of the file, and then fills in the gaps then there is nothing we can do to fix this in Samba. Who wrote the watch system ? Pre-allocating a known filesize by writing at the end then filling in the blank is a common idiom in file transfers, I would expect a watch system to deal with this. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem with network share
Hi I have the following problem. I had just added a windows XP Pro machine to a domain. This process was just fine, but when a user logs on the system creates the needed shares they are: H: for homes (default, i think) Other 2 shares for apps needed and Z: share also mapped to the home folder. My problem is Z. Beyond being re-shared this Z drive is used by a network application of vital importance. The use of startup system on the machine itself is not a solution. I just want this Z drive to be gone...so can map it to the correct place. This drive IS NOT being mapped by any logon scripts on the samba server neither on the WIN XP machine. Thanks in advance for any help. Cheers. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind problem revisited
Okay, I started over from scratch with my samba server rebuild, but I am still getting some weird issues. Here are my config files of importance: --/etc/samba/smb.conf # Samba Configuration File [global] workgroup = WAYNE realm = WAYNE.LOCAL server string = Samba Server security = ADS password server = police.wayne.local encrypt passwords = yes idmap uid = 1-2 idmap gid = 1-2 template shell = /bin/bash winbind separator = + client signing = no client use spnego = no [users] comment = Users on Linux path = /home/WAYNE read only = No browseable = Yes ---/etc/nsswitch.conf- passwd: compat winbind group: files dns compat winbind shadow: files winbind hosts: dns winbind files lwres networks: files dns services: files protocols: files rpc:files ethers: files netmasks: files netgroup: files publickey: files bootparams: files automount: files winbind nis aliases:files winbind /etc/pam.d/login-- #%PAM-1.0 auth requisite pam_unix2.sonullok #set_secrpc auth required pam_securetty.so auth required pam_nologin.so auth sufficient pam_winbind.so use_first_pass use_authtok #authrequired pam_homecheck.so auth required pam_env.so auth required pam_mail.so account required pam_unix2.so account sufficient pam_winbind.so use_first_pass use_authtok password required pam_pwcheck.so nullok password required pam_unix2.sonullok use_first_pass use_authtok password sufficient pam_winbind.so use_first_pass use_authtok session required pam_unix2.sonone # debug or trace session sufficient pam_winbind.so use_first_pass use_authtok session required pam_limits.so session required pam_resmgr.so /etc/krb5.conf--- [libdefaults] default_realm = WAYNE.LOCAL clockskew = 300 dns_lookup_realm = false dns_lookup_kdc = false default_etypes = des-cbc-crc des-cbc-md5 default_etypes_des = des-cbc-crc des-cbc-md5 [realms] WAYNE.LOCAL = { kdc = 192.168.1.11 default_domain = WAYNE.LOCAL admin_server = police.wayne.local kpasswd_server = police.wayne.local } [domain_realm] .WAYNE.LOCAL = WAYNE.LOCAL WAYNE.LOCAL = WAYNE.LOCAL .wayne.local = WAYNE.LOCAL wayne.local = WAYNE.LOCAL [logging] default = SYSLOG:NOTICE:DAEMON kdc = FILE:/var/log/kdc.log kadmind = FILE:/var/log/kadmind.log [appdefaults] pam = { ticket_lifetime = 1d renew_lifetime = 1d forwardable = true proxiable = false retain_after_close = false minimum_uid = 0 debug = false I have joined the AD successfully and have gained a Kerberos ticket. I can resolve windows user names and groups with the following conditions: If I leave the default_etypes lines in krb5.conf, then I get this in my /var/log/samba/log.smbd file and I am unable to access the samba shares: [2004/12/21 13:32:13, 1] smbd/sesssetup.c:reply_spnego_kerberos(173) Failed to verify incoming ticket! [2004/12/21 13:32:23, 1] smbd/sesssetup.c:reply_spnego_kerberos(173) Failed to verify incoming ticket! [2004/12/21 13:32:33, 1] smbd/sesssetup.c:reply_spnego_kerberos(173) Failed to verify incoming ticket! If I comment the etype lines out, the smb log file looks good and I can access samba shares, but the /var/log/samba/log.winbind looks like this: [2004/12/21 12:59:01, 1] nsswitch/winbindd_group.c:winbindd_getgroups(1059) user 'root' does not exist [2004/12/21 13:00:01, 1] nsswitch/winbindd_group.c:winbindd_getgroups(1059) user 'root' does not exist [2004/12/21 13:32:04, 1] libsmb/clikrb5.c:ads_krb5_mk_req(313) krb5_cc_get_principal failed (No such file or directory) I also had this show up in /var/log/samba/log.winbind: [2004/12/21 13:26:26, 1] libads/ldap_utils.c:ads_do_search_retry(77) ads_search_retry: failed to reconnect (Invalid credentials) Any interpretations? Thanks. Brian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] WIN 98 to Linux Drive Mapping problem
I'm attempting to set up a WIN 98 client with a Linux RedHat 9 server, but can't get the Win PC to map a drive. It refuses to accept the server name/path. Have read all I can find on the subject tried DNS, WINS, various naming schemes etc but no luck. System pings OK both directions using the specified addresses. Working the PWD encryption angle at present. Any suggestions would be appreciated. Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] upgrade from 2.2.8 to 3.0.10
I just upgraded from samba 2.2.8 to 3.0.10 on RedHat 9. I am using the exact same smb.conf file as before and now I can connect to the server from linux clients and most windows clients, but _not_ from Win2003 Server Clients. I get alternating messages of: --- \\hostname is not accessible. You might not have permission to use this network resource. Contanct the administrator of this server to find out if you have access permissions. The request is not supported --- Windows cannot find \\hostname\sharename. Check the spelling and try again... -- depending on whether I try to use just \\hostname or \\hostname \sharename. Does anyone know something special about W2k3 that would make it not be able to access samba 3 shares, while older windows and samba on linux can? Thanks for the help. John My smb.conf is attached for reference. Thanks. # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command testparm # to check that you have not made any basic syntactic errors. # #=== Global Settings = [global] # workgroup = NT-Domain-Name or Workgroup-Name #workgroup = CISCO_ENG workgroup = CISCO_ENG # server string is the equivalent of the NT Description field server string = berlioz #kernel oplocks = no # 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 = 127. 161.44. 10.86. # if you want to automatically load your printer list rather # than setting them up individually then you'll need this # printcap name = /etc/printcap # load printers = yes # It should not be necessary to spell out the print system type unless # yours is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = bsd # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user nobody is used ; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Put a capping on the size of the log files (in Kb). max log size = 50 # Security mode. Most people will want user level security. See # security_level.txt for details. security = server # Use password server option only with security = server password server = bxb-filer02a # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case. ; password level = 8 ; username level = 8 # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents # encrypt passwords = yes # smb passwd file = /etc/samba/smbpasswd # The following are needed to allow password changing from Windows to # update the Linux sytsem password also. # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. # NOTE2: You do NOT need these to allow workstations to change only #the encrypted SMB passwords. They allow the Unix password #to be kept in sync with the SMB password. ; unix password sync = Yes ; passwd program = /usr/bin/passwd %u ; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* # Unix users can map to different SMB User names ; username map = /etc/samba/smbusers # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /etc/samba/smb.conf.%m # 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 # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. ; interfaces = 192.168.12.2/24 192.168.13.2/24 # Configure remote browse list synchronisation here # request announcement to, or browse list sync from: # a specific host or from / to a whole subnet (see below) ; remote browse sync = 192.168.3.25 192.168.5.255 # Cause this host to
Re: [Samba] NTLM_AUTH require-membership-of local groups?
On Wed, 2004-12-15 at 10:52 -0500, Sorisio, Chris wrote: I'm running Samba 3.0.9 on Fedora Core. I can authenticate against global groups via ntlm_auth, but authentication against local groups fails. Our network consists of multiple NT 4.0 domains. 1. Can ntlm_auth authenticate against local groups, or is it limited to global groups? Currently global groups. I never got my head around the implementation of local groups in winbindd to hook them in properly. It should not be hard, but it just needs to be done. (We just need to expand the group list before we start the required-membership check). 2. Can multiple global groups be designated as arguments to 'require-membership-of' in an 'OR' fashion? (If the user is a member of any of the listed groups, the check succeeds. No, it's a one-group wonder. Perhaps you really want a squid ACL? (I presume this is for squid). Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbmount of XP share results in Permission Denied
Mark Hessling posted about this problem earlier but I (and he) have not seen any reply to his original post. I was running Samba 3.0.0 on a Redhat 7.3 server for quite a while and then recently upgraded to RHEL 3.0 and Samba 3.0.9 (3.0.10 most recently). Before the upgrade, I was able to, from the Samba server, mount shares from an XP box. After the upgrade, the mount succeeds (it shows up the list of mounts, and the log file shows successful authentication and no errors that I can see), but the mount point becomes completely invisible and if I attempt to ls the mounted directory, I get permission denied. I can, however, do an umount command and it completes successfully. I'm mounting the share as root. The Samba server is acting as a PDC for a domain and uses LDAP as the backend. The XP machine operates in the domain flawlessly. I can log in, mount Samba shares, etc. Further, from the Samba server, I can use smbclient to log in to the XP machine and browse shares, download files, etc. Whatever change is causing this was introduced in the move from 3.0.2a to 3.0.3. I compiled the source from each Samba version from 3.0.0 to 3.0.3 and then copied the smbmount binary from each in turn into /usr/sbin and then tried a mount. If the smbmount binary came from any Samba version prior to 3.0.3 the mount worked correctly and I could access it normally. If I use the binary from 3.0.3 (or 3.0.9 or 3.0.10 which is the version of samba that all my other binaries hail from) then I get the permission errors. So the questions now are: 1.) What changed in the behavior of smbmount between 3.0.2a and 3.0.3 to cause this issue? 2.) What can be done to fix it other than using an old smbmount binary? -- - The pain of war could not exceed, the woe of aftermath. The drums will shake the castle walls The ringwraiths ride in black -Led Zeppelin The Battle of Evermoore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] how do I export nt2k policy to a file?
We migrated our entire domain over to a samba3 domain, now I would like to apply a few policies to the network. I've been reading a few migration papers, most mention about a .POL file which is created upon exporting policy keys on a wintel machine. Using gpedit I don't see an export option. What tool should I use for this? greg -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] how do I export nt2k policy to a file?
http://www.mamiyami.com/document/samba/man/PolicyMgmt.html On Ter, 2004-12-21 at 16:53 -0500, Greg wrote: We migrated our entire domain over to a samba3 domain, now I would like to apply a few policies to the network. I've been reading a few migration papers, most mention about a .POL file which is created upon exporting policy keys on a wintel machine. Using gpedit I don't see an export option. What tool should I use for this? greg -- Netiquette - http://www.ietf.org/rfc/rfc1855.txt signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Write performance of Win XP Pro sp2 Samba
I have a file testing program that creates, writes and indexes a file on the server from the Windows client. On xpp sp1 the program takes 7 sec to write file and 8 sec to read the indexed file. After telling the Firewall to go away I can get the following numbers from xpp sp2; 29..30..45 (tested multiple times) sec to write the file and 7..8 sec to read the file. Any ideas on why the 'best' performance of sp2 is 4+ times worse than Windows XP Pro SP1? I really don't want to ship a system with this type of performance degradation. As a side note; initally the file write performance was in the 120 sec range, 17 times longer!! Why hasn't this been reported and/or what is strange about my systems? ps. the Client hardware AMD1800+ is identical on the SP1 and SP2 machines. Any help on this would be very appreciated. John. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] 2.2.8a/2.2.12, security = domain and W2K3 PDC
When there was a W2K DC in our network we were able to join the domain, but now that all DCs have been converted to W2K3 we're getting the following message when we try to use smbpasswd to join a new machine to the domain: Error connecting to x - NT_STATUS_ACCESS_DENIED Unable to join domain x I just noticed in the Samba-HOWTO-Collection, chapter 6, Common Errors section, these sentences under the I Can't Join a Windows 2003 PDC explanation: Windows 2003 requires SMB signing. Client side SMB signing has been implemented in Samba-3.0. Is there any way for a 2.2.8a/2.2.12 client to join a domain whose domain controllers are all W2K3? -- Bruce Hobbs, CCP, CDP Engineered Software Office: 626-570-8028 Partner856 N Monterey StCell:626-278-0273 Alhambra, CA 91801-1574 FAX: 208-474-0732 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] write performance of Win xpp sp2
On Tue, Dec 21, 2004 at 12:19:38AM -0500, John Ward wrote: Gentlemen, I have noticed (!) an unbelievable drop in performance with Windows xp pro sp2 systems, compared to sp1. The performance I have noticed is 122 seconds to write 65,000 indexed records to a dBase type file under sp2 and the same job in sp1 is 7 seconds!! I can't believe that this is a 'normal' feature of Windows sp2 software when working with Samba. Is it possible that Microsoft has made changes that make Samba under Linux totaly uncompetitive. ps. the performance drop is still there using the 'copy' command from the command prompt. The file in question is 8.1 Meg, large but not unreasonable. ANY help would be appreciated. Can you get an ethereal trace of an XP-SP1 copy and the same copy done to the same Samba server under XP-SP2. We can then look at the difference. What Samba server version (and what platform please). Jeremy. -- 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.10 ADS setup issue
I am attempting to setup Samba 3.0.10 on a Windows 2000 Active Directory domain. The problem I'm having is getting Samba to configure correctly to get the Kerberos library. I've gone through previous posts and have tried doing what others suggested but I still keep getting the error of: configure: error: libkrb5 is needed for Active Directory support The current configure params I'm using are: ./configure --with-ads=yes --with-krb5=/usr/lib I've tried many different path entries, left out the path info with just the first option, nothing works I keep getting the exact error. It just never can find the Kerberos files. I've tried installing Kerberos 5 via Pkg_add, I've also downloaded and compiled it, this latest attempt is with Heimdal 0.6.3 being complied from source. Here is dump of a find for libkrb5* on the system: ./usr/local/lib/libkrb5.so.20 ./usr/local/lib/libkrb5.so ./usr/local/lib/libkrb5.a ./usr/lib/libkrb5.a ./usr/lib/libkrb5_p.a ./usr/lib/libkrb5.so.3 ./usr/lib/libkrb5.so ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.lai ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.a ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.la ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/libkrb5.la ./usr/src/krb5/krb5-1.3.6/src/lib/krb5/libkrb5.a ./usr/src/krb5/krb5-1.3.6/src/lib/libkrb5.a ./usr/heimdal/lib/libkrb5.la ./usr/heimdal/lib/libkrb5.a I have pointed the configure param to all of the above, including the source ones (I'm getting desperate!). So please someone help! Let me know if you need more info. Many thanks in advance. Jon -- 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.10 ADS setup issue
Follow up: Sorry to have bothered all, after signing up to the list I was able to look at other archives but didn't do so until after I sent the email I found a post with the following link in it which had a helpful little piece in it. http://www.kurai.org/~gdunn/samba3-ad/fbsd_samba.html Hope all have a good holiday. Thanks, Jon Jon Starbird wrote: I am attempting to setup Samba 3.0.10 on a Windows 2000 Active Directory domain. The problem I'm having is getting Samba to configure correctly to get the Kerberos library. I've gone through previous posts and have tried doing what others suggested but I still keep getting the error of: configure: error: libkrb5 is needed for Active Directory support The current configure params I'm using are: ./configure --with-ads=yes --with-krb5=/usr/lib I've tried many different path entries, left out the path info with just the first option, nothing works I keep getting the exact error. It just never can find the Kerberos files. I've tried installing Kerberos 5 via Pkg_add, I've also downloaded and compiled it, this latest attempt is with Heimdal 0.6.3 being complied from source. Here is dump of a find for libkrb5* on the system: ./usr/local/lib/libkrb5.so.20 ./usr/local/lib/libkrb5.so ./usr/local/lib/libkrb5.a ./usr/lib/libkrb5.a ./usr/lib/libkrb5_p.a ./usr/lib/libkrb5.so.3 ./usr/lib/libkrb5.so ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.lai ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.a ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.la ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/libkrb5.la ./usr/src/krb5/krb5-1.3.6/src/lib/krb5/libkrb5.a ./usr/src/krb5/krb5-1.3.6/src/lib/libkrb5.a ./usr/heimdal/lib/libkrb5.la ./usr/heimdal/lib/libkrb5.a I have pointed the configure param to all of the above, including the source ones (I'm getting desperate!). So please someone help! Let me know if you need more info. Many thanks in advance. Jon -- - Jon Starbird Streamologist Stream Theory 3350 Scott Blvd. Bldg. 24 Santa Clara, CA 95054 Phone: 408-790-2913 Ext. 1069 Fax:408-790-2918 http://www.streamtheory.com Software, suddenly simple. - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Can the logon script know username?
Jim C. wrote: Type 'set' in any dos window to see the list of environment variables for a windows user. Pay particular attention to %USERNAME%. It is critical to run the 'set' to view available vars in the login script as variables present in any dos window might not be present at the time or in the context the login script runs in... -- Michael Lueck Lueck Data Systems Remove the upper case letters NOSPAM to contact me directly. -- 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.10 ADS setup issue
Jon Starbird wrote: Follow up: Sorry to have bothered all, after signing up to the list I was able to look at other archives but didn't do so until after I sent the email I found a post with the following link in it which had a helpful little piece in it. I wouldn't use that. It's gopt usefull stuff, but is wrong on several points, IMHO. Try mine http://www.fsklaw.com/fbsdconfig.html http://www.kurai.org/~gdunn/samba3-ad/fbsd_samba.html Hope all have a good holiday. Thanks, Jon Jon Starbird wrote: I am attempting to setup Samba 3.0.10 on a Windows 2000 Active Directory domain. The problem I'm having is getting Samba to configure correctly to get the Kerberos library. I've gone through previous posts and have tried doing what others suggested but I still keep getting the error of: configure: error: libkrb5 is needed for Active Directory support The current configure params I'm using are: ./configure --with-ads=yes --with-krb5=/usr/lib I've tried many different path entries, left out the path info with just the first option, nothing works I keep getting the exact error. It just never can find the Kerberos files. I've tried installing Kerberos 5 via Pkg_add, I've also downloaded and compiled it, this latest attempt is with Heimdal 0.6.3 being complied from source. Here is dump of a find for libkrb5* on the system: ./usr/local/lib/libkrb5.so.20 ./usr/local/lib/libkrb5.so ./usr/local/lib/libkrb5.a ./usr/lib/libkrb5.a ./usr/lib/libkrb5_p.a ./usr/lib/libkrb5.so.3 ./usr/lib/libkrb5.so ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.lai ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.a ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/.libs/libkrb5.la ./usr/src/heimdal/heimdal-0.6.3/lib/krb5/libkrb5.la ./usr/src/krb5/krb5-1.3.6/src/lib/krb5/libkrb5.a ./usr/src/krb5/krb5-1.3.6/src/lib/libkrb5.a ./usr/heimdal/lib/libkrb5.la ./usr/heimdal/lib/libkrb5.a I have pointed the configure param to all of the above, including the source ones (I'm getting desperate!). So please someone help! Let me know if you need more info. Many thanks in advance. Jon -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re-2: [Samba] Samba 3.0.9 doesn't remove printjobs ?
Original Message Subject: RE: [Samba] Samba 3.0.9 doesn't remove printjobs ? (21-Dez-2004 16:50) From:[EMAIL PROTECTED] To: [EMAIL PROTECTED] Christian: I use SuSe 9.0 and the related Samba builds, so it seems not to be a RH only problem. Now the funny thing: since about 2 days the problem doesn't arise any more! The only related thing I did on the server was to modify access rights and restart the CUPS server because of authorization problems of some users using the CUPS web frontend (but I don't understand the relationship of these things). So, for me it works by now, but I don't know a general solution! Greetings and Merry Christmas Thomas The print jobs are working just fine, they simply seem to be hanging around in the client's queues. Any idea when the updated packages will be out? Kevin -Original Message- From: Christian Merrill [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 10:36 AM To: Collins, Kevin Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: Re: [Samba] Samba 3.0.9 doesn't remove printjobs ? Collins, Kevin wrote: We just upgraded to Samba 3.0.9 (RedHat Enterprise 3 packages) this weekend and are now seeing similar issues on our workstations. I do not see any printing related errors in our logs however. I do however see these backed up print queues on every workstation. We run a mix of Windows 2000 (SP4) and XP Pro (SP2) machines. So it appears, at least in my case, that it's /not/ an XP-SP2 only issue. One other thing to note: We're in the midst of testing/deploying Debian Sarge servers to replace the RedHat boxes. On a whim this morning, I created a print server using one of my already-in-place Debian machines. To my amazement, the printer that I have hanging off of the Debian box does /not/ have this issue. What's odd about this...both of the print servers are running version 3.0.9. I've used the supplied distro's packages and not built from source in either case. So it appears from my simple tests, that something is different in the Debian build of Samba that cures this issue. A couple things that need to be said about this...I've only hung one printer off of the Debian box. In addition, I've only had two workstations printing to it - one XP-SP2 and one W2k-SP4. So it may very well have something to do with load or other such factor. But the problem has not yet appeared with the Debian package. I hope that this gives someone on the development team some clue as to the exact nature of the problem. I'll be available to answer any questions or fill any need for information that I can. Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: [Samba] Samba 3.0.9 doesn't remove printjobs ? Hello! I'm using samba with CUPS printing (with raw passthru) for a long time now and it worked very well. But after upgrading my samba installation from 3.0.2 to 3.0.9, the printjobs (sent from XP Workstations) aren't removed from the joblist anymore. Means: the job is printed correctly, but opening the printqueue on the XP machine still contains the job (not only mine, but jobs from every user who sent one). When I now delete them manually, they're gone. Since I can't find any remaining SMB or CUPS spool-files, (thought about missing access rights for deletion) I don't know what to look for. The only error message I found is: tdb(/var/lib/samba/printing/Kyocera7000.tdb): rec_read bad magic 0xd9fee666 at offset=26084 in /var/log/samba/smbd (but I got this message sometimes before the upgrade too ...) Thanks for some hints on that (2) problem(s) Thomas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Are you seeing a problem where windows clients are able to print but the print queues never clear? Or are they not even printing? If you are experiencing the former then this is a RH samba problem that should have been fixed by now -- please let me know. It also warrants mentioning (per an earlier thread) that our 3.0.9 packages are likely going to be revised in a very short period of time to fix a kerberos related problem. Christian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r4308 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: metze Date: 2004-12-21 09:33:12 + (Tue, 21 Dec 2004) New Revision: 4308 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4308 Log: [out,ref] pointer needs to set (don't corrupt the stack and segfault) metze PS: tridge silly tridge forgot a out [ref] var :-) Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 07:08:16 UTC (rev 4307) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 09:33:12 UTC (rev 4308) @@ -324,9 +324,11 @@ { NTSTATUS status; struct lsa_LookupPrivValue r; + struct lsa_LUID luid; r.in.handle = handle; r.in.name = name; + r.out.luid = luid; status = dcerpc_lsa_LookupPrivValue(p, mem_ctx, r); if (!NT_STATUS_IS_OK(status)) {
svn commit: samba r4309 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc
Author: metze Date: 2004-12-21 09:41:21 + (Tue, 21 Dec 2004) New Revision: 4309 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4309 Log: idl and torture test for lsa_GetUserName() why does samba3 return domain_name as in the unknown_name field in the code and on the wire it returns DCERPC_FAULT_OP_RNG_ERROR? all of my test machines NT4,W2K,W2K3,XP returned NULL and if I file the string in the .in.* the server echos the strings back and returns NT_STATUS_INVALID_PARAMETER metze Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl === --- branches/SAMBA_4_0/source/librpc/idl/lsa.idl2004-12-21 09:33:12 UTC (rev 4308) +++ branches/SAMBA_4_0/source/librpc/idl/lsa.idl2004-12-21 09:41:21 UTC (rev 4309) @@ -649,9 +649,17 @@ [out,ref] policy_handle *handle ); + /**/ + /* Function: 0x2d */ + typedef struct { + lsa_String *string; + } lsa_StringPointer; - /* Function:0x2d */ - NTSTATUS lsa_GetUserName(); + NTSTATUS lsa_GetUserName( + [in] unistr *system_name, + [in,out] lsa_String *account_name, + [in,out] lsa_StringPointer *unknown_name + ); /**/ /* Function: 0x2e */ Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 09:33:12 UTC (rev 4308) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 09:41:21 UTC (rev 4309) @@ -1138,6 +1138,29 @@ return ret; } +static BOOL test_GetUserName(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, + struct policy_handle *handle) +{ + struct lsa_GetUserName r; + NTSTATUS status; + BOOL ret = True; + printf(\nTesting GetUserName\n); + + r.in.system_name = \\; + r.in.account_name = NULL; + r.in.unknown_name = NULL; + + status = dcerpc_lsa_GetUserName(p, mem_ctx, r); + + if (!NT_STATUS_IS_OK(status)) { + printf(GetUserName failed - %s\n, nt_errstr(status)); + ret = False; + } + + return ret; +} + static BOOL test_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle) @@ -1230,7 +1253,11 @@ if (!test_QueryInfoPolicy2(p, mem_ctx, handle)) { ret = False; } - + + if (!test_GetUserName(p, mem_ctx, handle)) { + ret = False; + } + #if 0 if (!test_Delete(p, mem_ctx, handle)) { ret = False;
svn commit: samba r4310 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc
Author: tridge Date: 2004-12-21 10:05:02 + (Tue, 21 Dec 2004) New Revision: 4310 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4310 Log: fixed the authority_name field in lsa_GetUserName() Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl === --- branches/SAMBA_4_0/source/librpc/idl/lsa.idl2004-12-21 09:41:21 UTC (rev 4309) +++ branches/SAMBA_4_0/source/librpc/idl/lsa.idl2004-12-21 10:05:02 UTC (rev 4310) @@ -658,7 +658,7 @@ NTSTATUS lsa_GetUserName( [in] unistr *system_name, [in,out] lsa_String *account_name, - [in,out] lsa_StringPointer *unknown_name + [in,out] lsa_StringPointer *authority_name ); /**/ Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 09:41:21 UTC (rev 4309) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 10:05:02 UTC (rev 4310) @@ -1145,11 +1145,14 @@ struct lsa_GetUserName r; NTSTATUS status; BOOL ret = True; + struct lsa_StringPointer lsap; + printf(\nTesting GetUserName\n); r.in.system_name = \\; r.in.account_name = NULL; - r.in.unknown_name = NULL; + r.in.authority_name = lsap; + lsap.string = NULL; status = dcerpc_lsa_GetUserName(p, mem_ctx, r);
svn commit: samba r4311 - branches/SAMBA_3_0/source/utils trunk/source/utils
Author: gd Date: 2004-12-21 10:26:59 + (Tue, 21 Dec 2004) New Revision: 4311 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4311 Log: 'Document' the -L switch when adding groups with net rpc group. Guenther Modified: branches/SAMBA_3_0/source/utils/net_help.c trunk/source/utils/net_help.c Changeset: Modified: branches/SAMBA_3_0/source/utils/net_help.c === --- branches/SAMBA_3_0/source/utils/net_help.c 2004-12-21 10:05:02 UTC (rev 4310) +++ branches/SAMBA_3_0/source/utils/net_help.c 2004-12-21 10:26:59 UTC (rev 4311) @@ -100,6 +100,7 @@ net_common_flags_usage(argc, argv); d_printf(\t-C or --comment=comment\tdescriptive comment (for add only)\n); d_printf(\t-c or --container=container\tLDAP container, defaults to cn=Users (for add in ADS only)\n); + d_printf(\t-L or --localgroup\t\tWhen adding groups, create a local group (alias)\n); return -1; } Modified: trunk/source/utils/net_help.c === --- trunk/source/utils/net_help.c 2004-12-21 10:05:02 UTC (rev 4310) +++ trunk/source/utils/net_help.c 2004-12-21 10:26:59 UTC (rev 4311) @@ -100,6 +100,7 @@ net_common_flags_usage(argc, argv); d_printf(\t-C or --comment=comment\tdescriptive comment (for add only)\n); d_printf(\t-c or --container=container\tLDAP container, defaults to cn=Users (for add in ADS only)\n); + d_printf(\t-L or --localgroup\t\tWhen adding groups, create a local group (alias)\n); return -1; }
svn commit: samba r4312 - branches/SAMBA_3_0/source/param trunk/source/param
Author: gd Date: 2004-12-21 11:10:28 + (Tue, 21 Dec 2004) New Revision: 4312 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4312 Log: Marking min password length as depreciated (to be removed in one of the next releases). The corresponding functionality is better handled with the account policy. See https://bugzilla.samba.org/show_bug.cgi?id=1705 for details. Guenther 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 2004-12-21 10:26:59 UTC (rev 4311) +++ branches/SAMBA_3_0/source/param/loadparm.c 2004-12-21 11:10:28 UTC (rev 4312) @@ -795,8 +795,8 @@ {server schannel, P_ENUM, P_GLOBAL, Globals.serverSchannel, NULL, enum_bool_auto, FLAG_BASIC | FLAG_ADVANCED}, {allow trusted domains, P_BOOL, P_GLOBAL, Globals.bAllowTrustedDomains, NULL, NULL, FLAG_ADVANCED}, {hosts equiv, P_STRING, P_GLOBAL, Globals.szHostsEquiv, NULL, NULL, FLAG_ADVANCED}, - {min password length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_ADVANCED}, - {min passwd length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_ADVANCED}, + {min password length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_DEPRECATED}, + {min passwd length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_DEPRECATED}, {map to guest, P_ENUM, P_GLOBAL, Globals.map_to_guest, NULL, enum_map_to_guest, FLAG_ADVANCED}, {null passwords, P_BOOL, P_GLOBAL, Globals.bNullPasswords, NULL, NULL, FLAG_ADVANCED}, {obey pam restrictions, P_BOOL, P_GLOBAL, Globals.bObeyPamRestrictions, NULL, NULL, FLAG_ADVANCED}, Modified: trunk/source/param/loadparm.c === --- trunk/source/param/loadparm.c 2004-12-21 10:26:59 UTC (rev 4311) +++ trunk/source/param/loadparm.c 2004-12-21 11:10:28 UTC (rev 4312) @@ -799,8 +799,8 @@ {server schannel, P_ENUM, P_GLOBAL, Globals.serverSchannel, NULL, enum_bool_auto, FLAG_BASIC | FLAG_ADVANCED}, {allow trusted domains, P_BOOL, P_GLOBAL, Globals.bAllowTrustedDomains, NULL, NULL, FLAG_ADVANCED}, {hosts equiv, P_STRING, P_GLOBAL, Globals.szHostsEquiv, NULL, NULL, FLAG_ADVANCED}, - {min passwd length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_ADVANCED}, - {min password length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_ADVANCED}, + {min passwd length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_DEPRECATED}, + {min password length, P_INTEGER, P_GLOBAL, Globals.min_passwd_length, NULL, NULL, FLAG_DEPRECATED}, {map to guest, P_ENUM, P_GLOBAL, Globals.map_to_guest, NULL, enum_map_to_guest, FLAG_ADVANCED}, {null passwords, P_BOOL, P_GLOBAL, Globals.bNullPasswords, NULL, NULL, FLAG_ADVANCED}, {obey pam restrictions, P_BOOL, P_GLOBAL, Globals.bObeyPamRestrictions, NULL, NULL, FLAG_ADVANCED},
svn commit: samba r4313 - in branches/SAMBA_4_0/source/ntvfs/posix: .
Author: tridge Date: 2004-12-21 11:43:46 + (Tue, 21 Dec 2004) New Revision: 4313 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4313 Log: fixed a bug in handling new xattrs in the tdb xattr backend Modified: branches/SAMBA_4_0/source/ntvfs/posix/xattr_tdb.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/xattr_tdb.c === --- branches/SAMBA_4_0/source/ntvfs/posix/xattr_tdb.c 2004-12-21 11:10:28 UTC (rev 4312) +++ branches/SAMBA_4_0/source/ntvfs/posix/xattr_tdb.c 2004-12-21 11:43:46 UTC (rev 4313) @@ -47,8 +47,7 @@ status = pull_xattr_blob_tdb(pvfs, mem_ctx, XATTR_LIST_ATTR, fname, fd, 100, blob); if (!NT_STATUS_IS_OK(status)) { - talloc_free(mem_ctx); - return NT_STATUS_OK; + blob = data_blob(NULL, 0); } for (s=blob.data; s (char *)(blob.data+blob.length); s += strlen(s) + 1) {
svn commit: samba r4314 - in branches/SAMBA_4_0/source/ntvfs/posix: .
Author: tridge Date: 2004-12-21 11:44:32 + (Tue, 21 Dec 2004) New Revision: 4314 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4314 Log: added ACL checking on unlink Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c branches/SAMBA_4_0/source/ntvfs/posix/pvfs_rename.c branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c2004-12-21 11:43:46 UTC (rev 4313) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c2004-12-21 11:44:32 UTC (rev 4314) @@ -390,3 +390,16 @@ return status; } + + +/* + a simplified interface to access check, designed for calls that + do not take or return an access check mask +*/ +NTSTATUS pvfs_access_check_simple(struct pvfs_state *pvfs, + struct smbsrv_request *req, + struct pvfs_filename *name, + uint32_t access_needed) +{ + return pvfs_access_check(pvfs, req, name, access_needed); +} Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c 2004-12-21 11:43:46 UTC (rev 4313) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c 2004-12-21 11:44:32 UTC (rev 4314) @@ -1211,7 +1211,9 @@ determine if a file can be deleted, or if it is prevented by an already open file */ -NTSTATUS pvfs_can_delete(struct pvfs_state *pvfs, struct pvfs_filename *name) +NTSTATUS pvfs_can_delete(struct pvfs_state *pvfs, +struct smbsrv_request *req, +struct pvfs_filename *name) { NTSTATUS status; DATA_BLOB key; @@ -1228,6 +1230,10 @@ NTCREATEX_OPTIONS_DELETE_ON_CLOSE, SEC_STD_DELETE); + if (NT_STATUS_IS_OK(status)) { + status = pvfs_access_check_simple(pvfs, req, name, SEC_STD_DELETE); + } + return status; } Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_rename.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_rename.c 2004-12-21 11:43:46 UTC (rev 4313) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_rename.c 2004-12-21 11:44:32 UTC (rev 4314) @@ -162,7 +162,7 @@ status = pvfs_resolve_partial(pvfs, mem_ctx, dir_path, fname2, name2); if (NT_STATUS_IS_OK(status)) { - status = pvfs_can_delete(pvfs, name2); + status = pvfs_can_delete(pvfs, req, name2); if (!NT_STATUS_IS_OK(status)) { talloc_free(mem_ctx); return status; Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2004-12-21 11:43:46 UTC (rev 4313) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2004-12-21 11:44:32 UTC (rev 4314) @@ -91,7 +91,7 @@ return NT_STATUS_OBJECT_NAME_COLLISION; } - status = pvfs_can_delete(pvfs, name2); + status = pvfs_can_delete(pvfs, req, name2); if (NT_STATUS_EQUAL(status, NT_STATUS_SHARING_VIOLATION)) { return NT_STATUS_ACCESS_DENIED; } Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c 2004-12-21 11:43:46 UTC (rev 4313) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c 2004-12-21 11:44:32 UTC (rev 4314) @@ -27,7 +27,9 @@ /* unlink a stream */ -static NTSTATUS pvfs_unlink_stream(struct pvfs_state *pvfs, struct pvfs_filename *name, +static NTSTATUS pvfs_unlink_stream(struct pvfs_state *pvfs, + struct smbsrv_request *req, + struct pvfs_filename *name, uint16_t attrib) { NTSTATUS status; @@ -42,7 +44,7 @@ return status; } - status = pvfs_can_delete(pvfs, name); + status = pvfs_can_delete(pvfs, req, name); if (!NT_STATUS_IS_OK(status)) { return status; } @@ -54,7 +56,8 @@ /* unlink one file */ -static NTSTATUS pvfs_unlink_one(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx, +static NTSTATUS pvfs_unlink_one(struct pvfs_state *pvfs, + struct smbsrv_request *req,
svn commit: samba r4315 - in branches/SAMBA_4_0/source/libcli/raw: .
Author: tridge Date: 2004-12-21 11:45:37 + (Tue, 21 Dec 2004) New Revision: 4315 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4315 Log: use the remote hosts max_xmit, not the local hosts, in calculating max trans2 data sizes Modified: branches/SAMBA_4_0/source/libcli/raw/rawtrans.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/raw/rawtrans.c === --- branches/SAMBA_4_0/source/libcli/raw/rawtrans.c 2004-12-21 11:44:32 UTC (rev 4314) +++ branches/SAMBA_4_0/source/libcli/raw/rawtrans.c 2004-12-21 11:45:37 UTC (rev 4315) @@ -626,5 +626,5 @@ */ size_t smb_raw_max_trans_data(struct smbcli_tree *tree, size_t param_size) { - return tree-session-transport-options.max_xmit - (70 + param_size); + return tree-session-transport-negotiate.max_xmit - (70 + param_size); }
svn commit: samba r4316 - in branches/SAMBA_4_0/source/libcli/raw: .
Author: tridge Date: 2004-12-21 11:47:08 + (Tue, 21 Dec 2004) New Revision: 4316 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4316 Log: - now that the trans2 code properly supports multi-part requests, we can set a maximum sized max_data in libcli trans2 code - fixed string termination in the EA_LIST trans2 findfirst level Modified: branches/SAMBA_4_0/source/libcli/raw/rawacl.c branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c branches/SAMBA_4_0/source/libcli/raw/rawfsinfo.c branches/SAMBA_4_0/source/libcli/raw/rawsearch.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/raw/rawacl.c === --- branches/SAMBA_4_0/source/libcli/raw/rawacl.c 2004-12-21 11:45:37 UTC (rev 4315) +++ branches/SAMBA_4_0/source/libcli/raw/rawacl.c 2004-12-21 11:47:08 UTC (rev 4316) @@ -34,7 +34,7 @@ nt.in.max_setup = 0; nt.in.max_param = 4; - nt.in.max_data = smb_raw_max_trans_data(tree, 4); + nt.in.max_data = 0x; nt.in.setup_count = 0; nt.in.function = NT_TRANSACT_QUERY_SECURITY_DESC; nt.in.setup = NULL; Modified: branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c === --- branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c 2004-12-21 11:45:37 UTC (rev 4315) +++ branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c 2004-12-21 11:47:08 UTC (rev 4316) @@ -301,7 +301,7 @@ tp.in.setup_count = 1; tp.in.data = data; tp.in.max_param = 2; - tp.in.max_data = smb_raw_max_trans_data(tree, 2); + tp.in.max_data = 0x; tp.in.setup = setup; tp.in.params = data_blob_talloc(mem_ctx, NULL, 4); @@ -355,7 +355,7 @@ tp.in.setup_count = 1; tp.in.data = data; tp.in.max_param = 2; - tp.in.max_data = smb_raw_max_trans_data(tree, 2); + tp.in.max_data = 0x; tp.in.setup = setup; tp.in.params = data_blob_talloc(mem_ctx, NULL, 6); Modified: branches/SAMBA_4_0/source/libcli/raw/rawfsinfo.c === --- branches/SAMBA_4_0/source/libcli/raw/rawfsinfo.c2004-12-21 11:45:37 UTC (rev 4315) +++ branches/SAMBA_4_0/source/libcli/raw/rawfsinfo.c2004-12-21 11:47:08 UTC (rev 4316) @@ -78,7 +78,7 @@ tp.in.timeout = 0; tp.in.setup_count = 1; tp.in.max_param = 0; - tp.in.max_data = smb_raw_max_trans_data(tree, 0); + tp.in.max_data = 0x; tp.in.setup = setup; tp.in.data = data_blob(NULL, 0); tp.in.timeout = 0; Modified: branches/SAMBA_4_0/source/libcli/raw/rawsearch.c === --- branches/SAMBA_4_0/source/libcli/raw/rawsearch.c2004-12-21 11:45:37 UTC (rev 4315) +++ branches/SAMBA_4_0/source/libcli/raw/rawsearch.c2004-12-21 11:47:08 UTC (rev 4316) @@ -208,7 +208,7 @@ tp.in.setup_count = 1; tp.in.data = data_blob(NULL, 0); tp.in.max_param = 10; - tp.in.max_data = smb_raw_max_trans_data(tree, 10); + tp.in.max_data = 0x; tp.in.setup = setup; if (info_level == RAW_SEARCH_EA_LIST) { @@ -269,7 +269,7 @@ tp.in.setup_count = 1; tp.in.data = data_blob(NULL, 0); tp.in.max_param = 10; - tp.in.max_data = smb_raw_max_trans_data(tree, 10); + tp.in.max_data = 0x; tp.in.setup = setup; if (info_level == RAW_SEARCH_EA_LIST) { @@ -416,7 +416,7 @@ len = smbcli_blob_pull_string(tree-session, mem_ctx, blob, data-ea_list.name, 22+ea_size, 23+ea_size, - STR_LEN8BIT | STR_TERMINATE | STR_NOALIGN); + STR_LEN8BIT | STR_NOALIGN); return len + ea_size + 23 + 1; case RAW_SEARCH_DIRECTORY_INFO:
svn commit: samba r4317 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2004-12-21 11:48:13 + (Tue, 21 Dec 2004) New Revision: 4317 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4317 Log: check the count of replies in the os2 ea_list torture 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 2004-12-21 11:47:08 UTC (rev 4316) +++ branches/SAMBA_4_0/source/torture/raw/search.c 2004-12-21 11:48:13 UTC (rev 4317) @@ -1241,6 +1241,7 @@ status = smb_raw_search_first(cli-tree, mem_ctx, io, result, multiple_search_callback); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_VALUE(result.count, 2); nxt.t2fnext.level = RAW_SEARCH_EA_LIST; nxt.t2fnext.in.handle = io.t2ffirst.out.handle;
svn commit: samba r4320 - in branches/SAMBA_4_0/source/rpc_server/samr: .
Author: metze Date: 2004-12-21 11:49:36 + (Tue, 21 Dec 2004) New Revision: 4320 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4320 Log: fix locations of new trusting domains and domsin controller computer accounts metze Modified: branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c Changeset: Modified: branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c === --- branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c 2004-12-21 11:49:01 UTC (rev 4319) +++ branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c 2004-12-21 11:49:36 UTC (rev 4320) @@ -619,7 +619,7 @@ return NT_STATUS_INTERNAL_DB_CORRUPTION; } - container = DomainControllers; + container = Domain Controllers; additional_class = computer; } else if (r-in.acct_flags == ACB_DOMTRUST) { @@ -631,7 +631,7 @@ return NT_STATUS_INTERNAL_DB_CORRUPTION; } - container = ForeignDomains; /* FIXME: Is this correct?*/ + container = Users; additional_class = computer; } else {
svn commit: samba r4322 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: metze Date: 2004-12-21 12:00:30 + (Tue, 21 Dec 2004) New Revision: 4322 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4322 Log: use a nicer name metze Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c === --- branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 11:52:53 UTC (rev 4321) +++ branches/SAMBA_4_0/source/torture/rpc/lsa.c 2004-12-21 12:00:30 UTC (rev 4322) @@ -1145,14 +1145,14 @@ struct lsa_GetUserName r; NTSTATUS status; BOOL ret = True; - struct lsa_StringPointer lsap; + struct lsa_StringPointer authority_name_p; printf(\nTesting GetUserName\n); r.in.system_name = \\; r.in.account_name = NULL; - r.in.authority_name = lsap; - lsap.string = NULL; + r.in.authority_name = authority_name_p; + authority_name_p.string = NULL; status = dcerpc_lsa_GetUserName(p, mem_ctx, r);
svn commit: samba r4323 - in branches/SAMBA_4_0/source/rpc_server/lsa: .
Author: metze Date: 2004-12-21 12:22:57 + (Tue, 21 Dec 2004) New Revision: 4323 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4323 Log: - implement the lsa_GetUserName() server call - give lsa_lookup_sid() a chance with foreign SIDS returning NT_STATUS_NO_MEMORY makes no sense here as the ldb_msg_find_string() doesn't allocate the string metze Modified: branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c Changeset: Modified: branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c === --- branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c 2004-12-21 12:00:30 UTC (rev 4322) +++ branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c 2004-12-21 12:22:57 UTC (rev 4323) @@ -26,6 +26,7 @@ #include rpc_server/dcerpc_server.h #include rpc_server/common/common.h #include lib/ldb/include/ldb.h +#include auth/auth.h /* this type allows us to distinguish handle types @@ -187,20 +188,13 @@ DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); } - -/* - lsa_OpenPolicy2 -*/ -static NTSTATUS lsa_OpenPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, - struct lsa_OpenPolicy2 *r) +static NTSTATUS lsa_get_policy_state(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, +struct lsa_policy_state **_state) { struct lsa_policy_state *state; - struct dcesrv_handle *handle; const char *sid_str; - ZERO_STRUCTP(r-out.handle); - - state = talloc_p(dce_call-conn, struct lsa_policy_state); + state = talloc_p(mem_ctx, struct lsa_policy_state); if (!state) { return NT_STATUS_NO_MEMORY; } @@ -261,15 +255,35 @@ talloc_free(state); return NT_STATUS_NO_SUCH_DOMAIN; } - + *_state = state; + + return NT_STATUS_OK; +} + +/* + lsa_OpenPolicy2 +*/ +static NTSTATUS lsa_OpenPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, + struct lsa_OpenPolicy2 *r) +{ + NTSTATUS status; + struct lsa_policy_state *state; + struct dcesrv_handle *handle; + + ZERO_STRUCTP(r-out.handle); + + status = lsa_get_policy_state(dce_call, mem_ctx, state); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + handle = dcesrv_handle_new(dce_call-conn, LSA_HANDLE_POLICY); if (!handle) { - talloc_free(state); return NT_STATUS_NO_MEMORY; } - handle-data = state; + handle-data = talloc_reference(handle, state); handle-destroy = lsa_Policy_destroy; state-access_mask = r-in.access_mask; @@ -599,17 +613,21 @@ { int ret; struct ldb_message **res; - const char * const attrs[] = { sAMAccountName, sAMAccountType, NULL}; + const char * const attrs[] = { sAMAccountName, sAMAccountType, name, NULL}; NTSTATUS status; ret = samdb_search(state-sam_ctx, mem_ctx, NULL, res, attrs, objectSid=%s, sid_str); if (ret == 1) { *name = ldb_msg_find_string(res[0], sAMAccountName, NULL); - if (*name == NULL) { - return NT_STATUS_NO_MEMORY; + if (!*name) { + *name = ldb_msg_find_string(res[0], name, NULL); + if (!*name) { + *name = talloc_strdup(mem_ctx, sid_str); + NTSTATUS_TALLOC_CHECK(*name); + } } - + *atype = samdb_result_uint(res[0], sAMAccountType, 0); return NT_STATUS_OK; @@ -1482,7 +1500,77 @@ static NTSTATUS lsa_GetUserName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct lsa_GetUserName *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + NTSTATUS status = NT_STATUS_OK; + struct lsa_policy_state *state; + uint32_t atype; + struct dom_sid *account_sid; + struct dom_sid *authority_sid; + const char *account_sid_str; + const char *account_name; + const char *authority_name; + struct lsa_String *_account_name; + struct lsa_StringPointer *_authority_name = NULL; + + /* this is what w2k3 does */ + r-out.account_name = r-in.account_name; + r-out.authority_name = r-in.authority_name; + + if (r-in.account_name r-in.account_name-string) { + return NT_STATUS_INVALID_PARAMETER; + } + + if (r-in.authority_name + r-in.authority_name-string + r-in.authority_name-string-string) { + return NT_STATUS_INVALID_PARAMETER; + } + + /* TODO: this check should go and we should rely on the calling code that this is valid */ + if
svn commit: samba r4324 - in branches/SAMBA_4_0/source/include: .
Author: metze Date: 2004-12-21 12:26:12 + (Tue, 21 Dec 2004) New Revision: 4324 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4324 Log: add some more ads constants before I forget them metze Modified: branches/SAMBA_4_0/source/include/ads.h Changeset: Modified: branches/SAMBA_4_0/source/include/ads.h === --- branches/SAMBA_4_0/source/include/ads.h 2004-12-21 12:22:57 UTC (rev 4323) +++ branches/SAMBA_4_0/source/include/ads.h 2004-12-21 12:26:12 UTC (rev 4324) @@ -96,11 +96,33 @@ #define ADS_NO_REFERRALS_OID 1.2.840.113556.1.4.1339 #define ADS_SERVER_SORT_OID 1.2.840.113556.1.4.473 #define ADS_PERMIT_MODIFY_OID 1.2.840.113556.1.4.1413 - +/* +1.2.840.113556.1.4.319; +1.2.840.113556.1.4.801; +1.2.840.113556.1.4.473; +1.2.840.113556.1.4.528; +1.2.840.113556.1.4.417; +1.2.840.113556.1.4.619; +1.2.840.113556.1.4.841; +1.2.840.113556.1.4.529; +1.2.840.113556.1.4.805; +1.2.840.113556.1.4.521; +1.2.840.113556.1.4.970; +1.2.840.113556.1.4.1338; +1.2.840.113556.1.4.474; +1.2.840.113556.1.4.1339; +1.2.840.113556.1.4.1340; +1.2.840.113556.1.4.1413; +2.16.840.1.113730.3.4.9; +2.16.840.1.113730.3.4.10; +1.2.840.113556.1.4.1504; +1.2.840.113556.1.4.1852; +1.2.840.113556.1.4.802; +*/ /* UserFlags for userAccountControl */ #define UF_SCRIPT 0x0001 #define UF_ACCOUNTDISABLE 0x0002 -#define UF_UNUSED_10x0004 +#define UF_00040x0004 #define UF_HOMEDIR_REQUIRED0x0008 #define UF_LOCKOUT 0x0010 @@ -110,13 +132,13 @@ #define UF_TEMP_DUPLICATE_ACCOUNT 0x0100 #define UF_NORMAL_ACCOUNT 0x0200 -#define UF_UNUSED_20x0400 +#define UF_04000x0400 #define UF_INTERDOMAIN_TRUST_ACCOUNT 0x0800 #define UF_WORKSTATION_TRUST_ACCOUNT 0x1000 #define UF_SERVER_TRUST_ACCOUNT0x2000 -#define UF_UNUSED_30x4000 -#define UF_UNUSED_40x8000 +#define UF_40000x4000 +#define UF_80000x8000 #define UF_DONT_EXPIRE_PASSWD 0x0001 #define UF_MNS_LOGON_ACCOUNT 0x0002 @@ -185,9 +207,30 @@ #define ATYPE_LOCAL_GROUP ATYPE_SECURITY_LOCAL_GROUP /* 0x2000 536870912 */ /* groupType */ -#define GTYPE_SECURITY_BUILTIN_LOCAL_GROUP 0x8005 /* -2147483643 */ -#define GTYPE_SECURITY_DOMAIN_LOCAL_GROUP 0x8004 /* -2147483644 */ -#define GTYPE_SECURITY_GLOBAL_GROUP0x8002 /* -2147483646 */ +#define GROUP_TYPE_BUILTIN_LOCAL_GROUP 0x0001 +#define GROUP_TYPE_ACCOUNT_GROUP 0x0002 +#define GROUP_TYPE_RESOURCE_GROUP 0x0004 +#define GROUP_TYPE_UNIVERSAL_GROUP 0x0008 +#define GROUP_TYPE_APP_BASIC_GROUP 0x0010 +#define GROUP_TYPE_APP_QUERY_GROUP 0x0020 +#define GROUP_TYPE_SECURITY_ENABLED0x8000 + +#define GTYPE_SECURITY_BUILTIN_LOCAL_GROUP ( \ + /* 0x8005 -2147483643 */ \ + GROUP_TYPE_BUILTIN_LOCAL_GROUP| \ + GROUP_TYPE_RESOURCE_GROUP| \ + GROUP_TYPE_SECURITY_ENABLED \ + ) +#define GTYPE_SECURITY_DOMAIN_LOCAL_GROUP ( \ + /* 0x8004 -2147483644 */ \ + GROUP_TYPE_RESOURCE_GROUP| \ + GROUP_TYPE_SECURITY_ENABLED \ + ) +#define GTYPE_SECURITY_GLOBAL_GROUP ( \ + /* 0x8002 -2147483646 */ \ + GROUP_TYPE_ACCOUNT_GROUP| \ + GROUP_TYPE_SECURITY_ENABLED \ + ) #define GTYPE_DISTRIBUTION_GLOBAL_GROUP0x0002 /* 2 */ #define GTYPE_DISTRIBUTION_DOMAIN_LOCAL_GROUP 0x0004 /* 4 */ #define GTYPE_DISTRIBUTION_UNIVERSAL_GROUP 0x0008 /* 8 */ @@ -236,3 +279,26 @@ #ifndef HAVE_AP_OPTS_USE_SUBKEY #define AP_OPTS_USE_SUBKEY 0 #endif + + +#define INSTANCE_TYPE_IS_NC_HEAD 0x0001 +#define INSTANCE_TYPE_UNINSTANT0x0002 +#define INSTANCE_TYPE_WRITE0x0004 +#define INSTANCE_TYPE_NC_ABOVE 0x0008 +#define INSTANCE_TYPE_NC_COMING0x0010 +#define INSTANCE_TYPE_NC_GOING 0x0020 + +#define SYSTEM_FLAG_CR_NTDS_NC 0x0001 +#define SYSTEM_FLAG_CR_NTDS_DOMAIN 0x0002 +#define SYSTEM_FLAG_CR_NTDS_NOT_GC_REPLICATED 0x0004 +#define SYSTEM_FLAG_SCHEMA_BASE_OBJECT 0x0010 +#define SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE0x0200 +#define SYSTEM_FLAG_DOMAIN_DISALLOW_MOVE 0x0400 +#define SYSTEM_FLAG_DOMAIN_DISALLOW_RENAME
svn commit: samba r4325 - in branches/SAMBA_4_0/source/libcli/auth: .
Author: metze Date: 2004-12-21 12:39:39 + (Tue, 21 Dec 2004) New Revision: 4325 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4325 Log: add the GENSEC_FEATURE_DCE_STYLE flag this will be used by krb5 dcerpc auth metze Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c branches/SAMBA_4_0/source/libcli/auth/gensec.h Changeset: Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c === --- branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-12-21 12:26:12 UTC (rev 4324) +++ branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-12-21 12:39:39 UTC (rev 4325) @@ -232,6 +232,7 @@ DEBUG(3, (Could not find GENSEC backend for auth_type=%d\n, (int)auth_type)); return NT_STATUS_INVALID_PARAMETER; } + gensec_want_feature(gensec_security, GENSEC_FEATURE_DCE_STYLE); if (auth_level == DCERPC_AUTH_LEVEL_INTEGRITY) { gensec_want_feature(gensec_security, GENSEC_FEATURE_SIGN); } Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.h === --- branches/SAMBA_4_0/source/libcli/auth/gensec.h 2004-12-21 12:26:12 UTC (rev 4324) +++ branches/SAMBA_4_0/source/libcli/auth/gensec.h 2004-12-21 12:39:39 UTC (rev 4325) @@ -44,6 +44,7 @@ #define GENSEC_FEATURE_SESSION_KEY 0x0001 #define GENSEC_FEATURE_SIGN0x0002 #define GENSEC_FEATURE_SEAL0x0004 +#define GENSEC_FEATURE_DCE_STYLE 0x0008 /* GENSEC mode */ enum gensec_role
svn commit: samba r4326 - in branches/SAMBA_4_0/source/libcli/auth: .
Author: metze Date: 2004-12-21 15:01:53 + (Tue, 21 Dec 2004) New Revision: 4326 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4326 Log: fix memory leak metze Modified: branches/SAMBA_4_0/source/libcli/auth/spnego.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/auth/spnego.c === --- branches/SAMBA_4_0/source/libcli/auth/spnego.c 2004-12-21 12:39:39 UTC (rev 4325) +++ branches/SAMBA_4_0/source/libcli/auth/spnego.c 2004-12-21 15:01:53 UTC (rev 4326) @@ -479,7 +479,7 @@ spnego_out.type = SPNEGO_NEG_TOKEN_INIT; spnego_out.negTokenInit.mechTypes = mechlist; spnego_out.negTokenInit.reqFlags = 0; - spnego_out.negTokenInit.mechListMIC = data_blob(mechListMIC, strlen(mechListMIC)); + spnego_out.negTokenInit.mechListMIC = data_blob_string_const(mechListMIC); spnego_out.negTokenInit.mechToken = unwrapped_out; if (spnego_write_data(out_mem_ctx, out, spnego_out) == -1) {
svn commit: samba r4327 - in branches/SAMBA_4_0/source/lib: .
Author: metze Date: 2004-12-21 15:15:49 + (Tue, 21 Dec 2004) New Revision: 4327 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4327 Log: add usefull function if you don't want that the data will talloc_memdup()'ed metze Modified: branches/SAMBA_4_0/source/lib/data_blob.c Changeset: Modified: branches/SAMBA_4_0/source/lib/data_blob.c === --- branches/SAMBA_4_0/source/lib/data_blob.c 2004-12-21 15:01:53 UTC (rev 4326) +++ branches/SAMBA_4_0/source/lib/data_blob.c 2004-12-21 15:15:49 UTC (rev 4327) @@ -173,3 +173,10 @@ return blob; } +DATA_BLOB data_blob_const(const void *p, size_t length) +{ + DATA_BLOB blob; + blob.data = discard_const(p); + blob.length = length; + return blob; +}
svn commit: samba r4328 - in branches/SAMBA_4_0/source/include: .
Author: metze Date: 2004-12-21 15:23:33 + (Tue, 21 Dec 2004) New Revision: 4328 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4328 Log: mark the talloc data as DATA_BLOB metze Modified: branches/SAMBA_4_0/source/include/talloc.h Changeset: Modified: branches/SAMBA_4_0/source/include/talloc.h === --- branches/SAMBA_4_0/source/include/talloc.h 2004-12-21 15:15:49 UTC (rev 4327) +++ branches/SAMBA_4_0/source/include/talloc.h 2004-12-21 15:23:33 UTC (rev 4328) @@ -49,8 +49,8 @@ #define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count) #define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count) -#define data_blob(ptr, size) data_blob_named(ptr, size, __location__) -#define data_blob_talloc(ctx, ptr, size) data_blob_talloc_named(ctx, ptr, size, __location__) +#define data_blob(ptr, size) data_blob_named(ptr, size, DATA_BLOB: __location__) +#define data_blob_talloc(ctx, ptr, size) data_blob_talloc_named(ctx, ptr, size, DATA_BLOB: __location__) #ifndef PRINTF_ATTRIBUTE #define PRINTF_ATTRIBUTE(a1, a2)
svn commit: samba-web r481 - in trunk/news: .
Author: deryck Date: 2004-12-21 20:47:32 + (Tue, 21 Dec 2004) New Revision: 481 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=481 Log: Adding the submissions policy for news.samba.org. --deryck Added: trunk/news/submission_policy.html Modified: trunk/news/about.html trunk/news/submit.html trunk/news/success.html Changeset: Modified: trunk/news/about.html === --- trunk/news/about.html 2004-12-20 19:38:22 UTC (rev 480) +++ trunk/news/about.html 2004-12-21 20:47:32 UTC (rev 481) @@ -67,7 +67,7 @@ h2About news.samba.org/h2 - pspan class=punchnews.samba.org/span is your news and information portal for all things Samba. This sub-site of a href=/samba/samba.org/a will be, like Samba itself, a community driven project. Whether or not the site grows and proves to be useful is completely up to you, the dedicated users and developers of Samba. But what can *I* do?, you say. Share your stories, that's what!/p + pspan class=punchnews.samba.org/span is your news and information portal for all things Samba. This sub-site of a href=http://samba.org/;samba.org/a will be, like Samba itself, a community driven project. Whether or not the site grows and proves to be useful is completely up to you, the dedicated users and developers of Samba. But what can *I* do?, you say. Share your stories, that's what!/p h3Stories on news.samba.org/h3 Added: trunk/news/submission_policy.html === --- trunk/news/submission_policy.html 2004-12-20 19:38:22 UTC (rev 480) +++ trunk/news/submission_policy.html 2004-12-21 20:47:32 UTC (rev 481) @@ -0,0 +1,95 @@ +!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; +html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en + +head + +link rel=stylesheet href=/samba/style/common.css type=text/css +media=all / +link rel=stylesheet href=/samba/news/style/news.css type=text/css media=all +/ +link rel=shortcut icon href=/samba/news/images/favicon.ico / + +!--[if gte IE 5.5] +style type=text/css +.news_logo_hack { + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/samba/news/images/news_logo.png',sizingMethod='scale'); +} +/style +![endif]-- + +!--[if lte IE 5] +style type=text/css +.news_logo_hack { +background-image:url(/samba/news/images/news_logo.gif); +background-position:center; +background-repeat:no-repeat; +} +/style +![endif]-- + +style type=text/css +body { + background-color:#FFF; + +} +/style + +titlenews.samba.org Submission Policy/title + +meta http-equiv=Content-Type content=text/html; charset=utf-8 / +meta http-equiv=Content-Language content=en-us / +meta name=keywords content=Samba SMB CIFS / +meta name=description content=Home of Samba, the SMB file server / + +/head + +body + +div class=newsbar/div + +div id=news_logo + div class=news_logo_hack +a href=/samba/news/img src=/samba/news/images/linkpad.gif alt=news.samba.org//a + /div +/div + +div id=links +div class=about +ul +lia href=/samba/news/about.htmlAbout news.samba.org/a/li +lia href=http://news.samba.org/submit.html;Submit A Story/a/li +lia href=http://samba.org/;Samba-Web Home/a/li +/ul +/div +/div + + +div id=page_wide +div class=news_wide + + div class=success + h3news.samba.org Submission Policy/h3 + + pStories accepted for publication on news.samba.org will be credited to +their respective authors. The author will retain all rights to the piece, +including copyright and control over use of the material. news.samba.org +editors reserve the right to make editorial decisions and changes regarding +the material (i.e., grammar and spelling corrections, shortening passages +for the sake of length or clarity, etc.) without confirmation from the author +prior to publication. If after the story is posted, the author requires +corrections, news.samba.org will be glad to accommodate. If the requested +changes alter the tone, intent, or focus of the original piece, +the corrected item will be considered a new story, and a new decision +will be made regarding its publication on news.samba.org. news.samba.org +reserves the right to remove a story at anytime and without notice if factual +inaccuracies are discovered./p + + pReturn to the a href=http://news.samba.org/submit.html;story submission form/a/p + /div + +/div !-- Closes the 'news_wide' div -- +/div !-- Closes the 'page_wide'
svn commit: samba-web r482 - in trunk/news: .
Author: deryck Date: 2004-12-21 22:10:35 + (Tue, 21 Dec 2004) New Revision: 482 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=482 Log: Link fix. --deryck Modified: trunk/news/submit.html Changeset: Modified: trunk/news/submit.html === --- trunk/news/submit.html 2004-12-21 20:47:32 UTC (rev 481) +++ trunk/news/submit.html 2004-12-21 22:10:35 UTC (rev 482) @@ -66,7 +66,7 @@ div id=news_logo div class=news_logo_hack -a href=http://samba.org/samba/news/;img src=/samba/news/images/linkpad.gif alt=news.samba.org//a +a href=http://news.samba.org/;img src=/samba/news/images/linkpad.gif alt=news.samba.org//a /div /div
svn commit: samba-docs r310 - in trunk/Samba-HOWTO-Collection: .
Author: jht Date: 2004-12-21 22:25:23 + (Tue, 21 Dec 2004) New Revision: 310 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=310 Log: Addd instruction to run autogen.sh. Modified: trunk/Samba-HOWTO-Collection/Compiling.xml Changeset: Modified: trunk/Samba-HOWTO-Collection/Compiling.xml === --- trunk/Samba-HOWTO-Collection/Compiling.xml 2004-12-20 22:03:51 UTC (rev 309) +++ trunk/Samba-HOWTO-Collection/Compiling.xml 2004-12-21 22:25:23 UTC (rev 310) @@ -227,10 +227,22 @@ sect1 titleBuilding the Binaries/title + para + indextermprimaryautogen.sh/primary/indexterm + After the source tarball has been unpacked, the next step ivolves + configuration to match Samba to your operating system platform. + First it is necessary to build the commandconfigure/command script. + This can be done by executing the following: +scree +rootprompt; cd samba-3.0.0 +rootprompt; ./autogen.sh +/screen + /para + para -indextermprimaryconfigure/primary/indexterm - To build the binaries, first run the program userinput./configure + indextermprimaryconfigure/primary/indexterm + To build the binaries, run the program userinput./configure /userinput in the source directory. This should automatically configure Samba for your operating system. If you have unusual needs, then you may wish to run/para
svn commit: samba-docs r311 - in trunk/Samba-HOWTO-Collection: .
Author: jht Date: 2004-12-21 22:50:13 + (Tue, 21 Dec 2004) New Revision: 311 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=311 Log: Update information to point out that configure only needs to be built if it does not already exist in the tarball. Modified: trunk/Samba-HOWTO-Collection/Compiling.xml Changeset: Modified: trunk/Samba-HOWTO-Collection/Compiling.xml === --- trunk/Samba-HOWTO-Collection/Compiling.xml 2004-12-21 22:25:23 UTC (rev 310) +++ trunk/Samba-HOWTO-Collection/Compiling.xml 2004-12-21 22:50:13 UTC (rev 311) @@ -229,10 +229,13 @@ para indextermprimaryautogen.sh/primary/indexterm - After the source tarball has been unpacked, the next step ivolves + After the source tarball has been unpacked, the next step involves configuration to match Samba to your operating system platform. - First it is necessary to build the commandconfigure/command script. - This can be done by executing the following: + If your source directory does not contain the commandconfigure/command script + it is necessary to build it before you can continue. Building of + the configure script requires the correct version of the autoconf + tool kit. Where the necessary version of autoconf is present, + the configure script can be generated by executing the following: scree rootprompt; cd samba-3.0.0 rootprompt; ./autogen.sh
svn commit: samba r4329 - in trunk/source/smbd: .
Author: jra Date: 2004-12-21 23:14:17 + (Tue, 21 Dec 2004) New Revision: 4329 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4329 Log: Fix for bug found by Rob Foehl [EMAIL PROTECTED]. Remember to add in the bcc length for readX on named pipes. Jeremy. Modified: trunk/source/smbd/pipes.c Changeset: Modified: trunk/source/smbd/pipes.c === --- trunk/source/smbd/pipes.c 2004-12-21 15:23:33 UTC (rev 4328) +++ trunk/source/smbd/pipes.c 2004-12-21 23:14:17 UTC (rev 4329) @@ -241,6 +241,8 @@ DEBUG(3,(readX-IPC pnum=%04x min=%d max=%d nread=%d\n, p-pnum, smb_mincnt, smb_maxcnt, nread)); + /* Ensure we set up the message length to include the data length read. */ + set_message_bcc(outbuf,nread); return chain_reply(inbuf,outbuf,length,bufsize); }
svn commit: samba r4330 - in branches/SAMBA_3_0/source/smbd: .
Author: jra Date: 2004-12-21 23:14:20 + (Tue, 21 Dec 2004) New Revision: 4330 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4330 Log: Fix for bug found by Rob Foehl [EMAIL PROTECTED]. Remember to add in the bcc length for readX on named pipes. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/pipes.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/pipes.c === --- branches/SAMBA_3_0/source/smbd/pipes.c 2004-12-21 23:14:17 UTC (rev 4329) +++ branches/SAMBA_3_0/source/smbd/pipes.c 2004-12-21 23:14:20 UTC (rev 4330) @@ -241,6 +241,8 @@ DEBUG(3,(readX-IPC pnum=%04x min=%d max=%d nread=%d\n, p-pnum, smb_mincnt, smb_maxcnt, nread)); + /* Ensure we set up the message length to include the data length read. */ + set_message_bcc(outbuf,nread); return chain_reply(inbuf,outbuf,length,bufsize); }