[Samba] smbd write failure, kernel
Hello! I have samba 3.0.23c-2 installed on Fedora Core 7. Smbd and nmbd daemons start automotically with computer via commands in rc.local: smbd -D nmbd -D But there is one problem. When smbd starts via rc.local, it can't write files to the disk. And when I start it myself, everything is fine. smbd.log: [2007/05/21 09:49:06, 0] lib/util_sock.c:write_data(562) write_data: write failure in writing to client 192.168.0.56. Error Connection reset by peer syslog(kern.debug): May 22 16:57:37 server kernel: audit(1179827857.498:149): avc: denied { write } for pid=10734 comm=smbd name=log dev=tmpfs ino=24665 scontext=system_u:system_r:smbd_t:s0 tcontext=root:object_r:device_t:s0 tclass=sock_file Please, help. Philipp. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I can't get mod_auth_ntlm_winbind to work
Andrew Bartlett wrote: Got 'This is intended to read lines from modules imported -- hence if a filPãÃ]ÿ^?' from squid (length: 127). Any suggestions? Something is sending very weird things down the pipe to ntlm_auth. It's been a long while since I worked on this, but chase down that cross-talk and you should be able to make this work. Yes, that weird stuff disappeared when I switched from a x86_64 centos to i386 centos. But it still didn't work, so, as I wrote, I switched to the Apache2::AuthenNTLM perl module in apache. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: [EMAIL PROTECTED] Homepage: http://www.crc.dk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Successful migration NT4-SAMBA3 domain, anyone?
Hello, I have simple question. Has anyone succeeded to migrate NT4 domain with windows XP accounts to SAMBA3+LDAP domain? Our organization is very interested in doing this. We performed a test migration, users' accounts migrated without problems, but windows xp workstations can't login. I tried to find more information on this topic. What I found made me to think that such clean migration (when there are windows xp domain members) is not possible, after migration all windows xp members will have to be rejoined manually. Is it true? I'll be very grateful if anybody could help me with this. Thanks, -- Saulius -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Successful migration NT4-SAMBA3 domain, anyone?
Saulius G wrote: I tried to find more information on this topic. What I found made me to think that such clean migration (when there are windows xp domain members) is not possible, after migration all windows xp members will have to be rejoined manually. Is it true? I migrate an NT4 domain a few week ago without problems. But it was a small domain and the passdb backend was tdb, not ldap. However, following the samba howto, I found one step missing in chapter 36, procedure 36.1: maybe your domain SID doesn't match the NT4's one. Before net rpc vampire, try to fetch the domain SID with net rpc getsid, and then vampire users. Just my 2 cents... :-) DaC -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Successful migration NT4-SAMBA3 domain, anyone?
Thanks Davide :) just one more question, did you have windows xp in your NT domain? -- Saulius On 5/25/07, Davide Cervella [EMAIL PROTECTED] wrote: Saulius G wrote: I tried to find more information on this topic. What I found made me to think that such clean migration (when there are windows xp domain members) is not possible, after migration all windows xp members will have to be rejoined manually. Is it true? I migrate an NT4 domain a few week ago without problems. But it was a small domain and the passdb backend was tdb, not ldap. However, following the samba howto, I found one step missing in chapter 36, procedure 36.1: maybe your domain SID doesn't match the NT4's one. Before net rpc vampire, try to fetch the domain SID with net rpc getsid, and then vampire users. Just my 2 cents... :-) DaC -- 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] Successful migration NT4-SAMBA3 domain, anyone?
Saulius G wrote: Thanks Davide :) just one more question, did you have windows xp in your NT domain? Yes, all workstations were Win XP pro. DaC -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] 2 Servers different gid?
Hi All, I have 2 servers both running a compiled version of samba and winbind. They use my Windows Active Directory for user authentication via kerberoes. All that works fine and I can see and authenticate as any user. Every user on both machines have the same uid, the problem is the groups from the windows domain have different gid¹s on each of the servers. I am using nfs to export the file-system from one machine to another so I need the gid¹s to match up. I do not know what I am doing wrong. Here is some info on each of the servers. Server 1 mos-it:~# uname -a Linux mos-it 2.6.8sm #1 SMP Tue Mar 20 12:00:13 EDT 2007 x86_64 GNU/Linux mos-it:~# smbd --version Version 3.0.24 mos-it:~# winbindd --version Version 3.0.24 mos-it:~# getent passwd mgirolamo mgirolamo:*:10044:1:Mark Girolamo:/home/mgirolamo:/bin/bash mos-it:~# id mgirolamo uid=10044(mgirolamo) gid=1(domain users) groups=1(domain users),10011(all),10013(accounting),10018(execs),10021(mas200),10024(admacct ) mos-it:~# getent group accounting accounting:x:10013:mgirolamo,jmccarty,rdemore Server2 mos-fs:~# uname -a Linux mos-fs 2.6.8sm4 #1 SMP Wed Mar 14 20:13:33 EDT 2007 x86_64 GNU/Linux mos-fs:~# smbd --version Version 3.0.24 mos-fs:~# winbindd --version Version 3.0.24 mos-fs:~# getent passwd mgirolamo mgirolamo:*:10044:1:Mark Girolamo:/home/mgirolamo:/bin/bash mos-fs:~# id mgirolamo uid=10044(mgirolamo) gid=1(domain users) groups=1(domain users),10004(all),10017(accounting),10022(execs),10023(mas200),10024(admacct ) mos-fs:~# getent group accounting accounting:x:10017:mgirolamo,jmccarty,rdemore AS YOU CAN SEE FROM THE DIFFERENT id COMMANDS ON THE SEPARATE SERVERS THAT THE GID DON¹T MATCH, THE SAMBA CONFIGS FOR EACH SERVER ARE BELOW. THANKS IN ADVANCE FOR ANY HELP YOU MIGHT BE ABLE TO GIVE ME. Server 1 Samba Config mos-it:~# more /usr/local/samba/lib/smb.conf #=== Global Settings === [global] workgroup = MYVU security = ads password server = mos-pdc server string = mos-it ;%h server (Samba %v) ; wins support = no winbind use default domain = yes realm = myvu.lc winbind uid = 1-2 winbind gid = 1-2 preferred master = no os level = 20 wins server = mos-pdc dns proxy = no ; name resolve order = lmhosts host wins bcast winbind separator = + idmap uid = 1-2 idmap gid = 1-2 winbind enum users = yes winbind enum groups = yes encrypt passwords = true template homedir = /home/%U template shell = /bin/bash printcap name = cups printing = cups Debugging/Accounting log file = /var/log/samba/log.%m max log size = 1000 ; syslog only = no syslog = 0 panic action = /usr/share/samba/panic-action %d ### Authentication ### ; security = user ; encrypt passwords = true passdb backend = tdbsam ; obey pam restrictions = yes ; guest account = nobody ; invalid users = root ; unix password sync = no ; passwd program = /usr/bin/passwd %u ; passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spasswor d:* %n\n . ; pam password change = no File sharing # Name mangling options ; preserve case = yes ; short preserve case = yes Misc # 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 = /home/samba/etc/smb.conf.%m # Most people will find that this option gives better performance. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html # for details # You may want to add the following on a Linux system: # SO_RCVBUF=8192 SO_SNDBUF=8192 socket options = TCP_NODELAY # The following parameter is useful only if you have the linpopup package # installed. The samba maintainer and the linpopup maintainer are # working to ease installation and configuration of linpopup and samba. ; message command = /bin/sh -c '/usr/bin/linpopup %f %m %s; rm %s' # Domain Master specifies Samba to be the Domain Master Browser. If this # machine will be configured as a BDC (a secondary logon server), you # must set this to 'no'; otherwise, the default behavior is recommended. ; domain master = auto # Some defaults for winbind (make sure you're not using the ranges # for something else.) ; idmap uid = 1-2 ; idmap gid = 1-2 ; template shell = /bin/bash #=== Share Definitions === # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. # Directory
[Samba] weird valid users trouble in 3.0.24
Dear Samba List, I just updated my samba setup from an older Version (3.0.22) to 3.0.24 (Debian Version). Now unfortunately valid users does not work anymore. I have a Samba Server with security=ADS (win 2003 SP2 Domain Controller) in an all local Unix Users Setup! Thus all my usernames are available either way, by Unix getent and winbind -u. Probably this may cause the trouble here, just a suspicion though. idmap uid and idmap gid are mapped to a range where they can not interface with my real userids, as they are not used in my Unix centric setup at all. Now any share with a valid users entry does not work anymore! No matter if the share does contain a username or +someunixgroup I End up with the following messages: [2007/05/25 12:34:28, 2, effective(0, 0), real(0, 0)] smbd/service.c:make_connection_snum(580) user 'foo' (from session setup) not permitted to access this share (foo-valid-users) [2007/05/25 12:34:28, 3, effective(0, 0), real(0, 0)] smbd/error.c:error_packet(146) error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED Any hint? Regards Sven -- The American news-media is no longer a news source; it is a cheerleading squad. (unknown source) /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] weird valid users trouble in 3.0.24
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sven Geggus wrote: Dear Samba List, I just updated my samba setup from an older Version (3.0.22) to 3.0.24 (Debian Version). Now unfortunately valid users does not work anymore. I have a Samba Server with security=ADS (win 2003 SP2 Domain Controller) in an all local Unix Users Setup! Thus all my usernames are available either way, by Unix getent and winbind -u. Probably this may cause the trouble here, just a suspicion though. idmap uid and idmap gid are mapped to a range where they can not interface with my real userids, as they are not used in my Unix centric setup at all. Now any share with a valid users entry does not work anymore! No matter if the share does contain a username or +someunixgroup Please read all the relevant release notes in WHATSNEW.txt regarding token handling changes in 3.0.23 and review the numerous threads about this on this ml. Thanks. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVvUjIR7qMdg1EfYRAoEmAJ0Uc7VV4uRbPrPztQaEuA6aD3l0WwCdH9uu Slyl3HjKRWZGgKoeA4iZdm4= =ik2q -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] How to reset password for: http://localhost:901/
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I had to install new, but used my old home.. Somehow i can not get into swat again: 401 Bad Authorization username or password incorrect Or how to get an original smbconf, mine is accidentaly screwed, and no shares to be found..(workgroup does not exist) - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.8-03-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.4 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGVFr8X5/X5X6LpDgRAgj1AJ4jmnLtzsFc8B5uNp48DFA7U8s4zACfQzy8 ngCC3HjFWZUZDCKav+6pjhY= =D286 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: How to reset password for: http://localhost:901/
Can you provide some details as to how your network is set up? It's hard to tell what you mean in either of your messages. M9. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 M9. schreef: Hi, I had to install new, but used my old home.. Somehow i can not get into swat again: 401 Bad Authorization username or password incorrect Nevermind, i remembered it and was able to get in to overwrite the smbconf. It did not improve.. Or how to get an original smbconf, mine is accidentaly screwed, and no shares to be found..(workgroup does not exist) The workgroup is back, but now my pc does not exist... - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.8-03-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.4 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGVGHVX5/X5X6LpDgRAnSIAKDAZvNyKto5FSt8XxYxCq7uTL+5oACg4Cal dGY2e0wZ3FVMFOi4BrWnnrE= =DNOi -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] Problem with printer drivers downloading
Hello everyone. I am having a problem with my printer drivers getting loaded by users. I setup as domain admin user and am the only one who can add a printer and have it auto load the drivers. i have everything setup the way multiple website say to set it up. I have a user of the Domain Users group who has *SePrintOperatorPrivilege* for their user name. When they double click the printer to connect/ install it, I get a message that the drivers cannot be found. looking in the logs I see a permissions error but I cannot for the life of me see why I get that. I am setup as a PDC. [printers] comment = SMB Print Spool path = /var/spool/samba guest ok = Yes printable = Yes use client driver = no default devmode = Yes browseable = no public = yes writable = no [print$] comment = Printer Drivers path = /share/scripts/cups/drivers browseable = yes #Valid users = @Domain Users, @Domain Admins guest ok = yes read only = yes write list = karl, @Domain Admins Any ideas on what to do? Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind configuration
Hi list, Lets say there exists a Windows domain environment I would like to log on to from a Linux workstation using plain Windows domain accounts (no local account on any Linux workstation). Do I need a Samba server configured as a domain member _and_ do I have to configure all the workstations for winbind? Pete -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Offline logon from Winxp/2000 Client doesn't work
Neil Jolly schrieb: Run the command pdbedit -Lv username for each of the users in question, and verify the the domain listerd for the username is correct. I've seen this occur when the users are created under one domain name, and then the domain name (in the smb.conf) is changed afterward. If that's the case change the users domain using pdbedit --domain=newdomainnamehere username I've seen that I had not checked/corrected that, 30 minutes after my post and now it works as expected. A misconfigured item was still there from my first attempt a few days ago. The domainname for my User was the server NETBIOS name. A testuser, pdbedit and open eyes solved the problem. Anyway, thanks for the quick answer. Neil Jolly Christoph Lutz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbmount
Am Montag, 7. Mai 2007 21:42 schrieb Chris Smith: On Monday 07 May 2007, John G Walker wrote: The files are on a W98 system for historical reasons and they are being slowly migrated off. However, the reason I can't just move them is because I'm using Windows programs on the legacy systems. Some I wrote myself, in Visual Basic, so I can't blame anybody else for the situation. Another program I use is Photoshop, which they won't port to Linux (despite the fact it is the program most wanted to be ported to Linux). Etc. I need to keep running Windows as long as I have the need for such stuff. The data files don't need to reside on that system. Virtually every app I know of, including Photoshop, can access, open, edit, and save files on remote shares. Some real legacy apps may require mapped drives instead of UNC paths but they should, in most cases, work just fine. Chris Hi all, just some additions and clarifications from my side. Samba3 / Samba4 === For some years now I'm trying hard to support the samba3 / samba4 team regarding missing features or bugs related to legacy clients - mainly OS/2, but also windows9x/me. Nice and interesting times and the experience, that the samba developers _always_ have had and _still_ have an open ear, when troubles or wishes are reported to them! The main problem is, that those missing stuff must be _reported_ to them! These days, most of the samba developers do not have any physical access to legacy client installations anymore. So it's getting more and more important to send them as much background information as possible, like detailed - debug 10 logs - network sniffs - used samba version and smb.conf settings - used operating systems (fixpak level) - used file systems (e.g. xattr support) - proposed patches - ... In addition, it's very important to help with testing suggested patches before they go mainstream. Cause some of those legacy questions can also easily be discussed on irc, some years ago I've opened 2 separate channels on irc.freenode.net: #samba-os2 #samba-os2-technical The names are a bit misleading - but all legacy smb users are welcome there. :-) To my knowledge, most of the outstanding (OS/2) glitches are solved now. CIFS kernel module: === When the first discussions about dropping the kernel module smbfs and its samba userland helpers - smbmount - smbmnt - smbumount were starting on @samba-technical about a year ago, Jeremy Allison (jra) told me on irc, that Steve French (sfrench) had already added some code to support legacy smb servers within cifs. That days I started to build my own cifs.ko from the samba hosted cifs-client svn repository, to be able to add and test code for possibly missing features regarding legacy smb servers. Cause I was not aware of the separately existing mailing list [EMAIL PROTECTED], private email exchange with Steve was starting to discuss and solve missing stuff - sending patches back and forth... for many weeks ... Steve also managed to get access to an OS/2 box, to test stuff himself. Afaik, he's testing against win9x, too. I must admit, that we had one big problem that days: Steve was doing his work on the kernel git-tree - and I was using the samba cifs-client svn repository... Both repos got more or less so worse out of sync, that the simple exchange of patches was no longer feasible. I'm working as a freelancer and got distracted from cifs due to other customer needs - which is a bit reflected in https://bugzilla.samba.org/show_bug.cgi?id=4090 Sorry for my probably upset comments... To solve the 2 repository problem, at the end of last year i did setup a completely separate linux box entirely for cifs stuff. Installed git, cogito and sparse - and joined LKML. I'm able to test here against 3 OS/2 and 1 win98 legacy box. One major issue was (and partly is) the reading and writing of file/directory time stamps - with ugly side-effects on the OS/2 side: due to the parameter lastwritetime = 0 used on SMBClose, all time stamps on the OS/2 side were reset to NULL during file- browsing. BTW - when browsing directories with konqueror, it usually tries to display some popup-contents of the file the mouse is over. - open file - read (part) of the file - close the file == SMBClose()!! = filetime = zero Another problem is the fact, that *nix and newer windows are using UTC as the base for time stamps, but some legacy servers always use localtime and send them on the wire. Today, afaik all of reading time stamps is fixed. But there are still issues when writing a file/dir. cp -p linux_src_file os2_dst_file does not preserve any time stamp (the legacy versions of setfileinfo() / setpathinfo() are not implemented atm). I mailed Steve, that this is even true, when copying to a win2k or winxp server. Setpathinfo() does not work, when the file is still open. _Only_ on winNT, a separate open, setfileinfo, close
[Samba] Sometimes PC can not find network path
Dear all, I have a linux server that uses redhat AS4.I want to make a samba file server.Because we have a windows 2003 domain,I must use security = ADS.The samba version is samba-3.0.10-1.4E.9. The samba server joined windows 2003 domain successful.I can find samba server in the network neighborhood.Client PC access samba server must confirms with PDC.The domain member can access directly. There is a problem that sometimes client PC can not access the samba server.The hint is can not find network path.I check samba server logs and find following error : [2007/04/28 13:53:58, 0] lib/util_sock.c:read_socket_data(384) read_socket_data: recv failure for 4. Error = Connection reset by peer Under is some config files.They also in attachment.Hope you can help me.Thank you! ***smb.conf*** [global] workgroup = AVISION realm = AVISION.COM.CN server string = Samba sfislinux security = ADS password server = szad02.avision.com.cn guest account = sambaguest log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=81 92 load printers = No printcap name = /etc/printcap dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/bash winbind enable local accounts = Yes winbind use default domain = Yes cups options = raw [IT] path = /Samba/IT read only = No guest ok = Yes ***hosts** # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 10.2.20.191 sfislinux.avision.com.cn sfislinux 10.2.90.102 szad02.avision.com.cnavision.com.cn ***krb5.conf** [logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] default_realm = AVISION.COM.CN dns_lookup_realm = true dns_lookup_kdc = true [realms] AVISION.COM.CN = { kdc = szad02.avision.com.cn:88 admin_server = szad02.avision.com.cn:749 default_domain = avision.com.cn } [domain_realm] .avision.com.cn = AVISION.COM.CN avision.com.cn = AVISION.COM.CN [kdc] profile = /var/kerberos/krb5kdc/kdc.conf [appdefaults] pam = { debug = false ticket_lifetime = 36000 renew_lifetime = 36000 forwardable = true krb4_convert = false } *nsswitch.conf* # # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # ldap Use LDAP (only if nss_ldap is installed) # nisplus or nis+ Use NIS+ (NIS version 3), unsupported # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the db in front of files for entries you want to be # looked up first in the databases # # Example: #passwd:db files ldap nis #shadow:db files ldap nis #group: db files ldap nis passwd: files winbind szlig shadow: files group: files winbind szlig #hosts: db files ldap nis dns hosts: files dns # Example - obey only what ldap tells us... #services: ldap [NOTFOUND=return] files #networks: ldap [NOTFOUND=return] files #protocols: ldap [NOTFOUND=return] files #rpc: ldap [NOTFOUND=return] files #ethers:ldap [NOTFOUND=return] files bootparams: files ethers: files netmasks: files networks: files protocols: files winbind rpc:files services: files winbind netgroup: files winbind publickey: files automount: files winbind aliases:files **system-auth* #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. authrequired /lib/security/$ISA/pam_env.so authsufficient/lib/security/$ISA/pam_unix.so likeauth nullok authsufficient/lib/security/$ISA/pam_krb5.so use_first_pass authsufficient/lib/security/$ISA/pam_winbind.so use_first_pass authrequired /lib/security/$ISA/pam_deny.so account required /lib/security/$ISA/pam_unix.so broken_shadow account sufficient/lib/security/$ISA/pam_succeed_if.so uid 100 quiet account [default=bad success=ok user_unknow=ignore] /lib/security/$ISA/pam_krb5.so account [default=bad success=ok user_unknow=ignore] /lib/security/$ISA/pam_winbind.so
Re: [Samba] Problem with printer drivers downloading
Marc Muehlfeld wrote: Hi, Karl Banasky schrieb: ... I get a message that the drivers cannot be found. looking in the logs I see a permissions error but I cannot for the life of me see why I get that. [print$] comment = Printer Drivers path = /share/scripts/cups/drivers browseable = yes #Valid users = @Domain Users, @Domain Admins guest ok = yes read only = yes write list = karl, @Domain Admins What are the permissions on /share/scripts/cups/drivers? The user must have the change to read this files. Maybe there are some permission problems with higher levels directories in your case, too. These are the permissions on my Printer Driver share: # ls -lad /shares/Printer/ drwxrwsr-x 4 root Print Operators 4096 2006-10-02 13:33 /shares/Printer/ I have it wide open, an 0777 on the chmod, all the way to the root directory. Also what is the s for in that drwx... was that just a miss type? Or do I not know what that signifies? Thanks. Karl- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Simple Question
Here is my problem I want to map a drive on my XP to my directory file system on a Solaris box. Is this something that Samba will help me do? Here is the real business problem I have an application that looks for files in a folder ... Instead of moving them from Unix to PC to that folder via ftp I want the application to look in a folder on the Unix server. Thank you Ari Silverman Office 781-302-5636 Cell 617-592-8178 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] programming libsmbclient
hi all, I have a strange problem using the libsmbclient.. retrieving or stating files named with percents in is for some of them impossible. Example: a file located at smb://test/test/%7C2.txt cannot be retrieved with my code, smbc_open fails with the code NT_STATUS_OBJECT_NAME_INVALID. I have not found on the web exemples of url encoding/decoding that would escape strings with percent in.. At the same time under the same constraints, a file named 'whatever-you-want-except-with-percent' is correctly stated, opened, read. I tested the code on several distributions (debian, gentoo..) with the same results. I tried with several CIFS servers too (Win Xp, linux...). Attached: the source and the trace given by smbc_init with debug = 9. Has anyone any idea ? the code: -- #include sys/types.h #include stdio.h #include unistd.h #include string.h #include time.h #include errno.h #include libsmbclient.h static void get_auth_data_fn(const char * pServer, const char * pShare, char * pWorkgroup, int maxLenWorkgroup, char * pUsername, int maxLenUsername, char * pPassword, int maxLenPassword) { sprintf( pWorkgroup, %s, WG ); sprintf( pUsername, %s, test ); sprintf( pPassword, %s, test ); } int main(int argc, char * argv[]) { int fd; int ret; int debug = 9; int savedErrno; charbuffer[2048]; char * pSmbPath = NULL; if (argc == 2) { pSmbPath = argv[1]; } else { printf(usage: %s [ smb://path/to/file ]\n, argv[0]); return 1; } smbc_init(get_auth_data_fn, debug); printf(Open file %s\n, pSmbPath); if ((fd = smbc_open(pSmbPath, O_RDONLY, 0)) 0) { perror(smbc_open); return 1; } do { ret = smbc_read(fd, buffer, sizeof(buffer)); savedErrno = errno; if (ret 0) fwrite(buffer, 1, ret, stdout); } while (ret 0); smbc_close(fd); if (ret 0) { errno = savedErrno; perror(read); return 1; } return 0; } -- the tail of the trace: Server connect ok: //regis/dossier: 0x8050508 write_socket(4,88) write_socket(4,88) wrote 88 size=35 smb_com=0x2d smb_rcls=51 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51201 smb_tid=2048 smb_pid=13079 smb_uid=2048 smb_mid=5 smt_wct=0 smb_bcc=0 smbc errno NT_STATUS_OBJECT_NAME_INVALID - 22 smbc_open: Argument invalide Open file smb://regis/dossier/a%7C2.txt -- Mattieu PUEL Recherche développement -- Intradot Labs SAS +33 4 78 80 87 90 | www.intradot.com -- Intradot a déménagé ! Notez bien notre nouvelle adresse : 97 rue Racine - 69100 Villeurbanne lp_load: refreshing parameters Initialising global parameters params.c:OpenConfFile() - Unable to open configuration file /home/vodmat/.smb/smb.conf: No such file or directory pm_process() returned No lp_servicenumber: couldn't find homes Attempting to register new charset UCS-2LE Registered charset UCS-2LE Attempting to register new charset UTF-16LE Registered charset UTF-16LE Attempting to register new charset UCS-2BE Registered charset UCS-2BE Attempting to register new charset UTF-16BE Registered charset UTF-16BE Attempting to register new charset UTF8 Registered charset UTF8 Attempting to register new charset UTF-8 Registered charset UTF-8 Attempting to register new charset ASCII Registered charset ASCII Attempting to register new charset 646 Registered charset 646 Attempting to register new charset ISO-8859-1 Registered charset ISO-8859-1 Attempting to register new charset UCS2-HEX Registered charset UCS2-HEX Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Substituting charset 'ISO-8859-15' for LOCALE Could not load config file: /home/vodmat/.smb/smb.conf lp_load: refreshing parameters params.c:pm_process() - Processing
[Samba] Cyclic authentications from user already logged on.
This problem is being experienced on a RedHat Enterprise 4 server, with Samba version 3.0.11. The user seems to be repeatedly authenticating every few seconds, even though they have been authenticated once, are logged onto the domain, and using various shares. Only one of the 30 users on the network has this issue. Any ideas would be appreciated. --Log Snippet- May 11 07:43:18 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:43:44 mt14 smbd[8838]: [2007/05/11 07:43:44, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:43:44 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:43:49 mt14 smbd[8838]: [2007/05/11 07:43:49, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:43:49 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:43:54 mt14 smbd[8838]: [2007/05/11 07:43:54, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:43:54 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:43:59 mt14 smbd[8838]: [2007/05/11 07:43:59, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:43:59 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:04 mt14 smbd[8838]: [2007/05/11 07:44:04, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:04 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:09 mt14 smbd[8838]: [2007/05/11 07:44:09, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:09 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:14 mt14 smbd[8838]: [2007/05/11 07:44:14, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:14 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:19 mt14 smbd[8838]: [2007/05/11 07:44:19, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:19 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:24 mt14 smbd[8838]: [2007/05/11 07:44:24, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:24 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:30 mt14 smbd[8838]: [2007/05/11 07:44:30, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:30 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:35 mt14 smbd[8838]: [2007/05/11 07:44:35, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:35 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:44:40 mt14 smbd[8838]: [2007/05/11 07:44:40, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:44:40 mt14 smbd[8838]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:01 mt14 crond(pam_unix)[8871]: session opened for user root by (uid=0) May 11 07:45:01 mt14 crond(pam_unix)[8871]: session closed for user root May 11 07:45:06 mt14 smbd[8873]: [2007/05/11 07:45:06, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:06 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:11 mt14 smbd[8873]: [2007/05/11 07:45:11, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:11 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:16 mt14 smbd[8873]: [2007/05/11 07:45:16, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:16 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:21 mt14 smbd[8873]: [2007/05/11 07:45:21, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:21 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:26 mt14 smbd[8873]: [2007/05/11 07:45:26, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:26 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:31 mt14 smbd[8873]: [2007/05/11 07:45:31, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:31 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:36 mt14 smbd[8873]: [2007/05/11 07:45:36, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:36 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:41 mt14 smbd[8873]: [2007/05/11 07:45:41, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:41 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld May 11 07:45:46 mt14 smbd[8873]: [2007/05/11 07:45:46, 0] passdb/pdb_ldap.c:init_sam_from_ldap(764) May 11 07:45:46 mt14 smbd[8873]: init_sam_from_ldap: Failed to get password history for user choffeld
[Samba] WinXP Can't Browse Samba Shares
Warning: Linux Novice Ahead Almost a year ago, I tried setting up a Fedora based file server at home but when it didn't work and life took over, I gave up. I'm taking another stab at it and running into the same problems I had before. I just installed Ubuntu yesterday and I'm trying to set up my Samba shares. Here's what works and what doesn't: *Works:* Linux sees, reads, writes all WinXP shares from both computers on my network. Linux sees, reads, writes it's own shares through the smbclient. WinXP sees Ubuntu in the workgroup. *Does NOT work:* WinXP cannot access or even view a list of Linux shares. Login via WinXP Connect to Linux dialog rejected for all permutations of upper and lower case characters for the users and passwords that I just created on the linux box. I've just got a small home network. Two(ish) windows computers, a wireless access point, and my linux box. I'm trying to use the linux machine for extra storage as all the windows hard drives are full and this thing is otherwise just sitting around. I also like to play on it. Since there are three of us, I want each to have their own private space, as well as commonly accessible folders for media files. The windows usernames are set up as full names in the form First Last, where as the linux usernames are just first. I can change the linux names in anyway that's convenient, but not the windows names at this point. I don't want to use the samba server as a domain controller or a wins controller or anything fancy. This machine isn't on 24/7. I just want it to host some directories and restrict access to them. This seems to me like a fairly straightforward application of a wide-spread application. What's the deal? I'm sure what I'm missing is obvious. Someone please point it out to me. My (mostly generated) smb.conf file is attached, for what it's worth. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Status 58 trying to connect WinCE 4.1 to Samba 3.0.23c-2.el5.2
Hello everyone. I've recently replaced a file server running Samba 2.2.8a on Solaris 8 with one running 3.0.23c-2.el5.2 on CentOS 5. I'm trying to set up a WinCE 4.1 device (A V56 Makino milling center with a Pro 5 controller) to work with the new configuration and I can't get it figured out. When I try to do a 'net use share1 \\server\share', it responds with 'Command failed: status 58'. 'net helpmsg 58' says 'The specified server cannot perform the requested operation.' Here's my smb.conf: [global] workgroup = DOMAIN realm = DOMAIN.COM server string = Mirror security = ADS password server = OVERLORD log file = /var/log/samba/%m.log max log size = 50 dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /sbin/nologin winbind use default domain = Yes [jobs] path = /jobs valid users = @DOMAIN.COM\\Jobs Users read only = No create mask = 0770 directory mask = 0770 inherit acls = Yes Here's a debug level 10 snippet from smbd: change_notify_timeout: -1 read_data: read of 4 returned 0. Error = Success receive_smb_raw: length 0! timeout_processing: End of file from client (client has disconnected). Closing cache file namecache_shutdown: netbios namecache closed successfully. setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 NT user token: (NULL) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups change_to_root_user: now uid=(0,0) gid=(0,0) Yielding connection to Server exit (normal exit) Overlord is a W2K Server DC. The WinCE device can successfully connect to other samba servers, such as one running 3.0.22 using 'security = user'. The old 2.2.8a server was using 'server=domain'. As for the new server, other clients connect fine and it's been happily serving files for a couple weeks. Any ideas? Thanks for any help! Warm Regards, Ryan Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] winbindd tdb cache
On Tuesday 15 May 2007 19:29:35 you wrote: In 3.0.25 we have reworked the idmap subsystem and we made available both positive and negative cache timeouts for the cache (which is separate from idmap_tdb itself now). If you can;t change version you can probably borrow the code from there somehow. I think I also posted some code for 3.0.24 a few months ago that implemented a negative caching system with timeout, before we decided for the major rework. Search the archives. Thanks a lot for your help, I found your patches (http://samba.org/~idra/patches/). Hmm, they are not what I would call small and nothing what I would like to test on a running system... For now we will increase the connection timeout to winbindd, hopefully this will already help. Thanks again, Bernd -- Bernd Schubert Q-Leap Networks GmbH -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem samba+slapd+tcp6
ciao a tutti non se se riguarda samba ma sto realizzando un pdc+samba+openldap. Ho installato nell'ordine: samba smbclient slapd ldap-utils samba-doc e fatto le configurazioni di routine, ma appena faccio partire slapd (slapd -d 256) ho un problema sui log daemon: bind(6) failed errno=98 (Address already in use). Ho provato un netstat e mi viene segnalato che entrambi i servizi tcp6 e slapd utilizzano la stessa porta (389). Posso cambiare porta a slapd o posso escludere tcp6? Please help me! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Intermittent Internal Error Signal 11 with 3.0.24
Hi Samba list, We're experiencing some issues with our Samba 3.0.24 environments. Hopefully somebody can offer suggestions or guidance. A bit of background. We have 3 application environments, which consist of a Samba host providing file sharing services to 7 Windows application servers. These Samba hosts intermittently experiencing problem providing file sharing. So far we haven't established a pattern with the failures, so for now the best we can establish is that every couple of days a Samba host will experience a Internal Error (signal 11) in an smbd process. From that point onwards the smbd process will operate unreliability such that Windows clients will generally not be able to connect to the share, file copies that were underway will abort with errors, etc. All this will require a restart of the Linux host to clear, and once restarted things are fine. All three environments are the same for hardware/OS and software. They operate independently of each other. All experience the same issue. Other than this issue we do not experience any other Samba problems, the file shares run without problems, until a signal 11 occurs. - SuSE Enterprise Linux 9 (2.6.5-7.97-bigsmp) - Samba 3.0.24 - /data (total 1TB, .5TB in use) - /dev/sdc1 type ext3 (rw,acl,user_xattr) The signal 11 crashes appear to have started following our upgrading to Samba 3.0.24 in March 2007. Example message attached in signal_11.txt. I've attached these instead of placing inline as my webmail has fixed width formatting which messes up the syslog line - hope this is okay. Things we've tested: - fsck - testparm - Samba config changes: kernel oplocks = no oplocks = False level2 oplocks = False I though I'd preemptively post this to the mailing list to see if anyone has experienced similar issues. I will post some 'gdb smb PID' output once I'm able to catch it. Our suspicion is that this occurs under load, though we've not yet been able to reproduce the problem under testing. Upgrading to 3.0.25 is an option, although we'd like to do this once we more clearly identified the cause and fix. Finally, an example of the volume of errors we're experiencing (from a single host) is attached in volume.txt. Happy to post other info. Kind regards Joe Murphy Info Systems Technical Team [EMAIL PROTECTED] May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] smbd/oplock.c:oplock_timeout_handler(351) May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/fault.c:fault_report(41) May 23 13:47:54 host smbd[5799]: === May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/fault.c:fault_report(42) May 23 13:47:54 host smbd[5799]: INTERNAL ERROR: Signal 11 in pid 5799 (3.0.24-SerNet-SuSE) May 23 13:47:54 host smbd[5799]: Please read the Trouble-Shooting section of the Samba3-HOWTO May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/fault.c:fault_report(44) May 23 13:47:54 host smbd[5799]: May 23 13:47:54 host smbd[5799]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/fault.c:fault_report(45) May 23 13:47:54 host smbd[5799]: === May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/util.c:smb_panic(1599) May 23 13:47:54 host smbd[5799]: PANIC (pid 5799): internal error May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/util.c:log_stack_trace(1706) May 23 13:47:54 host smbd[5799]: BACKTRACE: 14 stack frames: May 23 13:47:54 host smbd[5799]:#0 /usr/sbin/smbd(log_stack_trace+0x22) [0x822b6fb] May 23 13:47:54 host smbd[5799]:#1 /usr/sbin/smbd(smb_panic+0x6f) [0x822b59a] May 23 13:47:54 host smbd[5799]:#2 /usr/sbin/smbd[0x8219b3f] May 23 13:47:54 host smbd[5799]:#3 /usr/sbin/smbd[0x8219b50] May 23 13:47:54 host smbd[5799]:#4 [0xe420] May 23 13:47:54 host smbd[5799]:#5 /lib/tls/libc.so.6(vsnprintf+0xb6) [0x40284656] May 23 13:47:54 host smbd[5799]:#6 /usr/sbin/smbd(dbgtext+0x2e) [0x8219956] May 23 13:47:54 host smbd[5799]:#7 /usr/sbin/smbd [0x825b360] May 23 13:47:54 host smbd[5799]:#8 /usr/sbin/smbd(run_events+0x15f) [0x8242d7d] May 23 13:47:54 host smbd[5799]:#9 /usr/sbin/smbd [0x80f2801] May 23 13:47:54 host smbd[5799]:#10 /usr/sbin/smbd(smbd_process+0x10e) [0x80f4122] May 23 13:47:54 host smbd[5799]:#11 /usr/sbin/smbd(main+0x946) [0x82beea9] May 23 13:47:54 host smbd[5799]:#12 /lib/tls/libc.so.6(__libc_start_main+0xe0) [0x4023f250] May 23 13:47:54 host smbd[5799]:#13 /usr/sbin/smbd [0x808ceb1] May 23 13:47:54 host smbd[5799]: [2007/05/23 13:47:54, 0] lib/fault.c:dump_core(173) May 23 13:47:54 host smbd[5799]: dumping core in /var/log/samba/cores/smbd May 23 13:47:54 host smbd[5799]: host ~ zgrep -i internal error: signal 11 /var/log/messages-20070*.gz /var/log/messages-20070311.gz:Mar 6 15:33:50 host
[Samba] Fwd: another problem with printing
Hi! I have Samba version 3.0.10-1.4E.9 installed and CUPS v1.1.22rc1. the network printer is Xerox WorkCentre 4150. Once in a while (about every 20-30 jobs) i get an error I [23/May/2007:08:55:28 -0500] Adding start banner page none to job 165. I [23/May/2007:08:55:28 -0500] Adding end banner page none to job 165. I [23/May/2007:08:55:28 -0500] Job 165 queued on 'Xerox' by 'mezlakowski'. I [23/May/2007:08:55:28 -0500] Started backend /usr/lib/cups/backend/ ipp (PID 5755) for job 165. E [23/May/2007:08:55:29 -0500] [Job 165] Print file was not accepted (server-error-not-accepting-jobs)! E [23/May/2007:08:55:29 -0500] PID 5755 stopped with status 1! I [23/May/2007:08:55:29 -0500] Hint: Try setting the LogLevel to debug to find out more. I [23/May/2007:08:55:29 -0500] Saving printers.conf... and the printer stops printing. I have to stop the printer, reject all jobs, accept them and then start the printer again to print the documents which is pretty annoying. I'm new to Samba, I was trying to find the solution online and in the documentation but nothing seems right. I would appreciate any help Mateusz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] systemerror 67
I have a problem connecting to samba (3.0.24): localhost ~ # smbclient -L desktop -U rh Password: Domain=[DESKTOP] OS=[Unix] Server=[Samba 3.0.24] Sharename Type Comment - --- homes Disk Home Directories dataDisk Daten SuSEDisk SuSE Disk IPC$IPC IPC Service (Desktop (Samba Server 3.0.24)) OJ6110 Printer HP Officejet 6110 rh Disk Home Directories Domain=[DESKTOP] OS=[Unix] Server=[Samba 3.0.24] Server Comment ---- WorkgroupMaster ---- WORKGROUPDESKTOP 'rh' is a valid user to linux (gentoo) and i have added 'rh' to smbpasswd. In smb.conf i have set passdb backend=smbpasswd and i use security=user on my Windows notebook (Windows Vista Home Premium 6.0) i try to net use x: \\Desktop\rh and get s a systemerror 67 networkname not found Has anyone an idea what goes wrong? Thanks in advance -- Reinhard -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RPC Error with PC Netlink - additional info
-- Forwarded message -- From: Gaiseric Vandal [EMAIL PROTECTED] Date: May 16, 2007 5:01 PM Subject: RPC Error with PC Netlink To: samba@lists.samba.org I have setup a Samba 3.024 server on Solaris. I have successfully enabled two-way trusts between my samba domain and my legacy PC Netlink domain. (PC Netlink is the solaris port of NT4 aka Advanced Server for Unix.) My Samba domain includes 2 Windows 2003 Servers (One is Windows 2003 SP1, the other is Windows 2003 R2 SP2.) The PCNL server supports Windows 2000 Servers and XP Pro clients. Last week, at least with the first server (Windows 2003 SP1) , it seemed everything was working. Users in one domain could log into servers in the other domain. I Not sure what has changed- maybe a windows update, maybe rebooting the Solaris server, maybe changing something in smb.conf and forgetting to record it.The trusts still seem valid (in fact I recreated them.) If I try to add users from the PCNL domain to the local users on a Windows 2003 Server in the samba domain, I am prompted for a password in the legacy domain (which I don't think I should be) then I get the following error: _ Select Users, Computers, or Groups : the following error occured while using the user name and password you entered. The remote procedure call failed and did not execute. _ The event log on the PCNL server shows: _ No domain controller is available for domain E2K for the following reason: There are currently no logon servers available to service the logon request. _ The log file on the samba server shows: _ # tail log.wb-PCNL_DOMAIN [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(625) cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_UNK_IF received from remote machine PCNL_PDC pipe \lsarpc fnum 0x2! [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601) cli_pipe_validate_current_pdu: Bind NACK received from remote machine PCNL_PDC pipe \samr fnum 0x4! [2007/05/16 13:24:32, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_schannel_with_key(2524) cli_rpc_pipe_open_schannel_with_key: cli_rpc_pipe_bind failed with error NT_STATUS_NETWORK_ACCESS_DENIED [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601) cli_pipe_validate_current_pdu: Bind NACK received from remote machine PCNL_PDC pipe \lsarpc fnum 0x6! [2007/05/16 13:24:32, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_schannel_with_key(2524) cli_rpc_pipe_open_schannel_with_key: cli_rpc_pipe_bind failed with error NT_STATUS_NETWORK_ACCESS_DENIED _ I have tried the following options in my smb.conf file, in various combinations. enable asu support = yes netbios name = THEMACHINENAME smb ports = 139 client schannel = no Winbind is configured idmap uid = 1 - 2 idmap gid = 1 - 2 winbind enum users = yes winbind enum groups = ye I also have the following set smb ports = 139 This reduced a lot of errors about transport endpoint is not connected. As far as I can tell, PCNL only used NBT (netbios over tcp/ip) and netbios-free CIFS-over-tcp/ip. The samba machines and all windows machines are configured to use the PCNL servers for WINS servers. The wins server have dymanic entries for the Samba domain and PDC. I have also forced a replication between the WINS servers to make sure they are consistent. Any advice? Thanks -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3 on Suse 9.0 cannot see Windows boxes on the network
A machine with a fresh installation of Suse 9.0 can reach the router and the internet, is set to belong to the local workgroup, but cannot see the other three Windoze boxes (xp, w2kpro) and cannot be seen by them. smb.conf looks correct according to the documentation FAQs I have seen. Obviously I'm missing something crucial; any hints on what that might be would be most appreciated. -- View this message in context: http://www.nabble.com/Samba-3-on-Suse-9.0-cannot-see-Windows-boxes-on-the-network-tf3772787.html#a10667074 Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smb_maperror on FreeBSD
The logs on our FreeBSD system are repeatedly filling up with the following message: smb_maperror: Unmapped error 1:158 It seems as though this error or something related to it is causing our server to occasionally lock up. We are using FreeBSD 6 and Samba 3. After much searching on Google, I found that several people (mostly FreeBSD users) have reported this problem, but no solution has ever been offered. Any suggestions? Thanks. Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Drag and drop read only directories
Hi. r-directory dr-xr-sr-x / \ drwxrwsr-x DIR-ADIR-B drwxrwsr-x -rwxrw-r-- fileAfileB -rwxrw-r-- I'am trying to protect DIR-A an DIR-B not to be moved by mistake by set r-directory to read only. Users needs to able to create files in DIR-A and DIR-B But when using dragdrop I drag DIR-A into DIR-B. Samba will then create a new(copy) DIR-A in DIR-B and move fileA into the new dir-A directory. I want to have the same behavior as mv DIR-A DIR-B from prompt which of course said not allowed Any idees how will i prevent this from happening? I'am using samba 3.0.20 Regards Bengt Ohlen [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RPC Error with PC Netlink - additional info
Some additional info: The solaris server is Solaris 10 (sparc.) According to man smb.conf, enable asu support = yes creates an IPC only ADMIN$ share. Using the computer management tool from a Windows machine I could verify this was the case. However, the ADMIN$ share on the PC Netlink server is actually a data share. I did try enable asu support = no and creating an ADMIN$ data share on the samba server. I am not sure this is relevant to my current issue anyway. If I snoop traffic between the PC Netlink and Samba servers, I see the following: samba_pdc - pcnl_pdc NBT NS Query Request for *..[1b], Success pcnl_pdc - samba_pdc NBT NS Query Response for *..[1b], Name Error samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[1b], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[1c], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[1e], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[0], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_PDC[0], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_PDC[3], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_PDC[20], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[1b], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[1e], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[0], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_PDC[0], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_PDC[3], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_PDC[20], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[1c], Success It does suggest that the I am not at least dealing with a name resolution issue, despite the PCNL server reporting no domain controller is available for the SAMBA domain. I tried Samba 3.0.25 - that seemed to just cause problems additional, unreleasted issues. I also tried Samba 3.0.22- however it could not read the previously created passwd.tbd file. -- Forwarded message -- From: Gaiseric Vandal [EMAIL PROTECTED] Date: May 16, 2007 5:01 PM Subject: RPC Error with PC Netlink To: samba@lists.samba.org I have setup a Samba 3.024 server on Solaris. I have successfully enabled two-way trusts between my samba domain and my legacy PC Netlink domain. (PC Netlink is the solaris port of NT4 aka Advanced Server for Unix.) My Samba domain includes 2 Windows 2003 Servers (One is Windows 2003 SP1, the other is Windows 2003 R2 SP2.) The PCNL server supports Windows 2000 Servers and XP Pro clients. Last week, at least with the first server (Windows 2003 SP1) , it seemed everything was working. Users in one domain could log into servers in the other domain. I Not sure what has changed- maybe a windows update, maybe rebooting the Solaris server, maybe changing something in smb.conf and forgetting to record it.The trusts still seem valid (in fact I recreated them.) If I try to add users from the PCNL domain to the local users on a Windows 2003 Server in the samba domain, I am prompted for a password in the legacy domain (which I don't think I should be) then I get the following error: _ Select Users, Computers, or Groups : the following error occured while using the user name and password you entered. The remote procedure call failed and did not execute. _ The event log on the PCNL server shows: _ No domain controller is available for domain E2K for the following reason: There are currently no logon servers available to service the logon request. _ The log file on the samba server shows: _ # tail log.wb-PCNL_DOMAIN [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(625) cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_UNK_IF received from remote machine PCNL_PDC pipe \lsarpc fnum 0x2! [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601) cli_pipe_validate_current_pdu: Bind NACK received from remote machine PCNL_PDC pipe \samr fnum 0x4! [2007/05/16 13:24:32, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_schannel_with_key(2524) cli_rpc_pipe_open_schannel_with_key: cli_rpc_pipe_bind failed with error NT_STATUS_NETWORK_ACCESS_DENIED [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601)
[Samba] What version of Samba will work with an AIX version of Unix?
Bill Many thanks for your previous email, I took a look at the link you gave me and it states that version would only work with AIX version 5.1,5.2,5.3. I have since checked our version of AIX by typing 'lslpp -h bos.rte' at the prompt and it returned:- LEVEL 4.3.3.75 I then typed 'oslevel -r' and that reutned a value of 4330-09 Is there a link to a version of Samba that will succesfully install on the my version 4.3.3.75 / 4330-09? Any information would be greatly appreciated. Many Thanks Mark -Original Message- From: William Jojo [mailto:[EMAIL PROTECTED] Sent: 01 May 2007 15:49 To: Mark Blake-Smith; samba@lists.samba.org Subject: Re: [Samba] What version of Samba will work with an AIX version of Unix? You could try here: http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ Cheers, Bill Original message Date: Tue, 1 May 2007 15:13:44 +0100 From: Mark Blake-Smith [EMAIL PROTECTED] Subject: [Samba] What version of Samba will work with an AIX version of Unix? To: samba@lists.samba.org Hi all We are currently looking to implement a scenario where our AIX Unix Server and Windows Server can communicate with each other using a version of Samba. You could try here: http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ Cheers, Bill Kind Regards Mark -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba P Before printing, please think about the environment! This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Sandicliffe. Employees of Sandicliffe are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. Sandicliffe will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. No employee or agent is authorized to conclude any binding agreement on behalf of Sandicliffe with another party by email without express written confirmation by a Director. Sandicliffe accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. All quotes from Sandicliffe are valid for 30 days following the date of email transmission. Finally, the recipient should check this email and any attachments for the presence of viruses. Sandicliffe is a trading name of Sandicliffe Motor Holdings Ltd. registered in England and Wales. Company registration number 04609153. Registered office Nottingham Road, Stapleford, Nottingham NG9 8AU. E-mail address [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RPC Error with PC Netlink - some additional info
Some additional info: The solaris server is Solaris 10 (sparc.) According to man smb.conf, enable asu support = yes creates an IPC only ADMIN$ share. Using the computer management tool from a Windows machine I could verify this was the case. However, the ADMIN$ share on the PC Netlink server is actually a data share. I did try enable asu support = no and creating an ADMIN$ data share on the samba server. I am not sure this is relevant to my current issue anyway. If I snoop traffic between the PC Netlink and Samba servers, I see the following: samba_pdc - pcnl_pdc NBT NS Query Request for *..[1b], Success pcnl_pdc - samba_pdc NBT NS Query Response for *..[1b], Name Error samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[1b], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[1c], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[1e], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_DOMAIN[0], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_PDC[0], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_PDC[3], Success samba_pdc - pcnl_pdc NBT NS Refresh Request for SAMBA_PDC[20], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[1b], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[1e], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[0], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_PDC[0], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_PDC[3], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_PDC[20], Success pcnl_pdc - samba_pdc NBT NS Registration Response for SAMBA_DOMAIN[1c], Success It does suggest that the I am not at least dealing with a name resolution issue, despite the PCNL server reporting no domain controller is available for the SAMBA domain. I tried Samba 3.0.25 - that seemed to just cause problems additional, unreleasted issues. I also tried Samba 3.0.22- however it could not read the previously created passwd.tbd file. -- Forwarded message -- From: Gaiseric Vandal [EMAIL PROTECTED] Date: May 16, 2007 5:01 PM Subject: RPC Error with PC Netlink To: samba@lists.samba.org I have setup a Samba 3.024 server on Solaris. I have successfully enabled two-way trusts between my samba domain and my legacy PC Netlink domain. (PC Netlink is the solaris port of NT4 aka Advanced Server for Unix.) My Samba domain includes 2 Windows 2003 Servers (One is Windows 2003 SP1, the other is Windows 2003 R2 SP2.) The PCNL server supports Windows 2000 Servers and XP Pro clients. Last week, at least with the first server (Windows 2003 SP1) , it seemed everything was working. Users in one domain could log into servers in the other domain. I Not sure what has changed- maybe a windows update, maybe rebooting the Solaris server, maybe changing something in smb.conf and forgetting to record it.The trusts still seem valid (in fact I recreated them.) If I try to add users from the PCNL domain to the local users on a Windows 2003 Server in the samba domain, I am prompted for a password in the legacy domain (which I don't think I should be) then I get the following error: _ Select Users, Computers, or Groups : the following error occured while using the user name and password you entered. The remote procedure call failed and did not execute. _ The event log on the PCNL server shows: _ No domain controller is available for domain E2K for the following reason: There are currently no logon servers available to service the logon request. _ The log file on the samba server shows: _ # tail log.wb-PCNL_DOMAIN [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(625) cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_UNK_IF received from remote machine PCNL_PDC pipe \lsarpc fnum 0x2! [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601) cli_pipe_validate_current_pdu: Bind NACK received from remote machine PCNL_PDC pipe \samr fnum 0x4! [2007/05/16 13:24:32, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_schannel_with_key(2524) cli_rpc_pipe_open_schannel_with_key: cli_rpc_pipe_bind failed with error NT_STATUS_NETWORK_ACCESS_DENIED [2007/05/16 13:24:32, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601)
Re: [Samba] Connection gets closed after just a few seconds smbd/service.c:close_cnum(1150)
Hello I had the same problem and same log entries after I did a Yum update on the weekend. I also could make the mappings work with the dotted IP address but was not prepared at that stage to convert all existing scripts for the purpose. I am only a very limited administrator on networks but manage to achieve reliable outcomes mostly for my small enterprise, and that seemed not to be good snese going back to dotted IP addresses. Being basically lazy, I was also thinking it was too hard to rollback the Samba installation, so I played around a little trying to figure what had changed. The manual mapping was telling me that the path could not be found to the samba shares which seemed rediculous when they had all worked before and were still in the server and client host files. During my play I chose to use the workgroup name from the smb.conf file instead of the netbios name which is what is associated with the dotted IP in my host files...and would you know it .. that worked. So does that mean that samba is not using the hosts to resolve the names used in the path? I guess I have no idea what I have proved here, or what should be the best steps to take next. For the time being I reluctently did a search and replace to get the scripts going and everything is mapping perfectly. I occurs to me that there is some likelihood that I will have to change it again in the future but I thought that if I passed this information to other more skilled professionals they might be able to unravel the mystery. Regards Graham Lund, Claus wrote: I'm testing the AIX binaries for 3.0.24 and have run into a problem. Depending on how I map the share (using: \\[IP, hostname or FQDN]\[sharename]) then the connection to the server is closed after just a few seconds of inactivity. The server runs on AIX5.3 with the latest fixpack. The client is Win XP SP2. I'm currently using 3.0.22 on our production server and don't have this problem there (it's however a compiled from source and not the pre-made binaries from samba.org). If I use the IP address to map the share then everything works just like normal (the connection stays open for an hr). But if I use the hostname or FQDN to map the share then the connection is closed after just a few seconds of idle time. So if I map the share like this: C:\Documents and Settings\clundnet use Z: \\10.0.88.187\refprod The command completed successfully. Then everything works fine. But if I map the share like this: C:\Documents and Settings\clundnet use Z: \\tax187a\refprod The command completed successfully. Then the connection is closed within seconds. Here're the level 2 logs using the hostname to map the share. The log is identical to using the IP except for the last two entries: tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: [2007/05/11 14:38:07, 2] lib/access.c:check_access(323) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: Allowed connection from (10.0.89.165) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: [2007/05/11 14:38:07, 2] smbd/sesssetup.c:setup_new_vc_session(799) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: [2007/05/11 14:38:07, 2] smbd/sesssetup.c:setup_new_vc_session(799) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: [2007/05/11 14:38:11, 2] auth/auth.c:check_ntlm_password(309) tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: check_ntlm_password: authentication for user [clund] - [clund] - [clund] succeeded tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: [2007/05/11 14:38:11, 2] lib/access.c:check_access(323) tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: Allowed connection from (10.0.89.165) tax187a smbdwarning daemon 2007-05-11 14:38:12 smbd[892938]: [2007/05/11 14:38:12, 1] smbd/service.c:make_connection_snum(950) tax187a smbdwarning daemon 2007-05-11 14:38:12 smbd[892938]: tax165 (10.0.89.165) connect to service refprod initially as user refprod (uid=450, gid=202) (pid 892938) tax187a smbdnotice daemon 2007-05-11 14:38:12 smbd[892938]: [2007/05/11 14:38:12, 2] smbd/reply.c:reply_tcon_and_X(711) tax187a smbdnotice daemon 2007-05-11 14:38:12 smbd[892938]: Serving refprod as a Dfs root tax187a smbdwarning daemon 2007-05-11 14:38:14 smbd[892938]: [2007/05/11 14:38:14, 1] smbd/service.c:close_cnum(1150) tax187a smbdwarning daemon 2007-05-11
Re: [Samba] Text file busy
Diego Woitasen wrote: Hi! somebody knows how to avoid that samba mantains the files open on the server side while the clients close them. I have problems with a samba file server and windows/linux clients with the message text file busy. The clients doesn't have the files open, the problem is in the server. I tried with oplocks=no without sucess. regards, diegows Hi, We are using Samba 3.024 with a Linux Debian Etch We had the same problems with a unix share mounted by NFS (homes) on the samba server The process cannot access the file because another process has locked a portion of the file The problem had been resolved adding these oplocks parameters in smb.conf : [global] kernel oplocks = no [homes] .. oplocks = yes level2 oplocks = yes .. Parameters in [homes] section are default parameters Christine -- [EMAIL PROTECTED] |Centre de Calcul, Ecole des Mines de Paris bureau L023 |60,Bd Saint-Michel, 75272 Paris Cedex 06 tel : 01-40-51-91-41 | fax : 01-40-51-93-01 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind - wbinfo -u works, getent passwd only gives local users
I only have limited Samba experience, and expect this is a silly mistake, but have been unable to find a solution I have installed Samba and Winbind on my desktop Linux (Debian) machine (SPARKSTONELX), aiming to unify logins with other windows machines accessing the PDC, again samba/Debian, with tdbsam password backend. All is well, joining the domain, and getting account details using wbinfo -u, but getent passwd only gives the local account details. The log file on the PDC (FILESTONE) reports [2007/05/15 22:31:48, 0] rpc_server/srv_netlog_nt.c:get_md4pw(242) get_md4pw: Workstation SPARKSTONELX$: no account in domain [2007/05/15 22:31:48, 0] rpc_server/srv_netlog_nt.c:_net_auth_2(461) _net_auth2: failed to get machine password for account SPARKSTONELX$: NT_STATUS_ACCESS_DENIED [2007/05/15 22:31:52, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(259) group sparkstonelx$ in domain STONES does not exist and on the Linux desktop [2007/05/15 22:30:18, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(625) cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from remo te machine FILESTONE pipe \lsarpc fnum 0x767a! [2007/05/15 22:30:18, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601) cli_pipe_validate_current_pdu: Bind NACK received from remote machinesparkstonelx:/var/log/samba# wbinfo --own-domain STONES sparkstonelx:/var/log/samba# wbinfo -t checking the trust secret via RPC calls succeeded sparkstonelx:/var/log/samba# wbinfo -D stones Name : STONES Alt_Name : SID : S-1-5-21-835963941-2627181251-1431239077 Active Directory : No Native: No Primary : Yes Sequence : 1179266454 FILESTONE pipe \samr fnum 0x767b! [2007/05/15 22:30:18, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_ntlmssp_internal(2356) cli_rpc_pipe_open_ntlmssp_internal: cli_rpc_pipe_bind failed with error NT_STATUS_NETWORK_ ACCESS_DENIED [2007/05/15 22:30:18, 1] rpc_client/cli_pipe.c:cli_pipe_validate_current_pdu(601) cli_pipe_validate_current_pdu: Bind NACK received from remote machine FILESTONE pipe \lsar pc fnum 0x767e! [2007/05/15 22:30:18, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_ntlmssp_internal(2356) cli_rpc_pipe_open_ntlmssp_internal: cli_rpc_pipe_bind failed with error NT_STATUS_NETWORK_ ACCESS_DENIED but sparkstonelx:/var/log/samba# wbinfo --own-domain STONES sparkstonelx:/var/log/samba# wbinfo -t checking the trust secret via RPC calls succeeded sparkstonelx:/var/log/samba# wbinfo -D stones Name : STONES Alt_Name : SID : S-1-5-21-835963941-2627181251-1431239077 Active Directory : No Native: No Primary : Yes Sequence : 1179266454 Any ideas? My network is about 6 machines in a Christian community, some being XP home, which limits my possible security settings! -- David Lee Living Stones, Flore, UK -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Winbind dies silently
Can anyone confirm a bug here or offer any suggestions as to where to go next? Well, if this is reproducible safely and downgrading to samba 3.0.24 removes the bug, I'd suggest reporting this in the Debian BTS, along with your smb.conf file, as many details as possible about your setup and the level 10 log file you mentioned. We'll investigate this and, if necessary, pass it along to samba upstream. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba on Solaris 8
Good Morning, I would like to run a question by your technical support team. My employer is currently using Samba server (Samba 2.0.5a) Solaris 8 sun4u sparc SUNW,Ultra-4. Samba is configured to communicate through port 139. However we have been asked to change Samba configuration in order to change the communication from port 139 to 445. This configuration change is requested to improve network security. I am not entirely sure what porcess/es or steps needed for this alteration. I would like to know if there is any procedure or recommendation so I would be able to Implement this change. In advance, I would like to thank you for all your assistance. Regards, George Sadathian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RV: I need help with samba
De: Volker Lendecke [mailto:[EMAIL PROTECTED] Enviado el: jue 24/05/2007 17:37 Para: LOPEZ GARCIA, MONICA CC: [EMAIL PROTECTED] Asunto: Re: I need help with samba On Thu, May 24, 2007 at 05:27:11PM +0200, LOPEZ GARCIA, MONICA wrote: We have installed two versions of samba in the same machine (versión 2.x and 3.x). When I run only samba 2.x all is correct, but if now I run samba 3.x I can´t acces to resources of the samba 2.x. Can you help with this problem? You will probably get better help at the general user's mailing list, [EMAIL PROTECTED] [EMAIL PROTECTED] is more for developer-oriented discussion. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] [new script] smbldap-userlist
Hi, for those who are using ldap for managing Samba, here's a quick script I wrote to make it simple to list users or machines on the commandline. I use it to delete old machine entries that are not in use anymore. For usage, read the perldoc in the script. Place the script in the same directory as you have your other smbldap-tools scripts. The script is based on smbldap-usershow. Kind regards, Tarjei #!/usr/bin/perl -w # Created by [EMAIL PROTECTED] in 2004 use strict; use Getopt::Std; use FindBin; use FindBin qw($RealBin); use lib $RealBin/; use smbldap_tools; use Date::Format; # function declaration sub exist_in_tab; my %Options; my $ok = getopts('dmug?', \%Options); if ( (!$ok) || ($Options{'?'}) ) { print Usage: $0 []\n; exit (1); } my $user; my $pass; if ( $ != 0 ) { my $current_user = getpwuid($); if ($current_user and $ARGV[0] and $current_user ne $ARGV[0] ) { die Only root can change other users inormation\n; } } else { if ( $ARGV[0] ) { $user = $ARGV[0]; } $pass = 1; } if (!defined($user)) { $user = getpwuid($); } my ($dn,$ldap_master); # First, connecting to the directory if ($ != 0) { # non-root user if (!defined($pass)) { # prompt for password print UNIX password: ; system stty -echo if (-t STDIN); chomp($pass=STDIN); system stty echo if (-t STDIN); print \n; $config{masterDN}=uid=$user,$config{usersdn}; $config{masterPw}=$pass; $ldap_master=connect_ldap_master(); $dn=$config{masterDN}; if (!is_user_valid($user, $dn, $pass)) { print Authentication failure\n; exit (10); } } } else { # root user $ldap_master=connect_ldap_master(); # test existence of user in LDAP my $dn_line; } sub print_user { my ($entry, %Options) = @_; printf %4s , $entry-get_value('uidNumber') ; printf %-20s , $entry-get_value('uid'); printf %-10s , $entry-get_value('gecos') if ($Options{'g'}); printf %-12s , time2str(%D %H:%m, $entry-get_value('sambaPwdLastSet')) if ($Options{'d'}); print \n; } my $filter; if ($Options{'m'}) { $filter = ((objectclass=posixAccount)(sambaAcctFlags=[W ])); } elsif ($Options{'u'}) { $filter = ((objectclass=posixAccount)(sambaAcctFlags=[U ])); } else { $filter = ((objectclass=posixAccount)); } my $mesg = $ldap_master-search ( base = $config{suffix}, scope = $config{scope}, filter = $filter ); $mesg-code die $mesg-error; foreach my $entry ($mesg-all_entries) { print_user($entry,%Options); } =head1 NAME smbldap-listusers list users or machines with some info =head1 SYNOPSIS smbldap-listusers [-m] [-g] [-p] =head1 DESCRIPTION -g Show gecos entry -d Show when the user last changed his or her password. -m Only list machines. -u Only list users -? show the help message =cut #' # The End -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problem setting ntlm authentication for apache using mod_auth_winbind
[EMAIL PROTECTED] wrote: Hello list, I'm trying to set up ntlm authentication for using mod_auth_winbind. Unfortunately during the ntlm dance some errors occurs. It complains about Oversized message, Invalid request and ntlm_auth goes to defunc... ( broken pipe as we can see in apache error log file ) apache 31623 31578 1 19:25 ?00:00:00 [ntlm_auth] defunct Log file from apache is here: http://ncpnc.obsysa.net/combor/apache_arror.log I was trying to trace problem with strace but logfile contains nothing useful ( except the broken pipe information :) ). http://ncpnc.obsysa.net/combor/strace.log My share definition looks like below. Alias /auth/ntlm/ /var/www/auth/ntlm/ Directory /var/www/auth/ntlm/ AuthType NTLM NTLMAuth on NegotiateAuth off NTLMBasicAuth on NTLMAuthHelper /usr/bin/ntlm_auth -d10 --option='auth methods = winbind' --helper-protocol=squid-2.5-ntlmssp NTLMBasicAuthoritative off Require valid-user /Directory Host is correctly joined to AD and users can browse thru samba shares. The most useful information about errors are in attached log files so im not going to repeat them here. Is there any other information I could supply to resolve the problem? Did you ever find a solution to this problem? Mogens No, but i suspect it's a problem of amd64 architecture. I found workaround of this problem but its specific to my organization. -- Opole - Miasto Bez Granic. http://www.opole.pl - tu znajdziesz nowe miejsca, nowe możliwości, nowe inspiracje... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba with HP Tru64
Hi, I was wondering if there are any Samba binaries for TRU64?? I spoke to HP directly and they are only aware of one for HP-UX? TRU64 is the old Digital (DEC) operating system. I see there's a binary for VMS, so I was hoping there's something I can try. I've never used the app before. Thanks! Rachel -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] migrate smbpasswd to ldap
I have a samba 2.2 as a PDC, i would like to upgrade it to samba 3 with ldap as a backend, do you know how to migrate smbpasswd file to ldap thanks in advance luk -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] How to add CIFS Server to a Windows domain as a member
Mr Vernooij: I'm sorry to send this mail to your JABBER mailbox Here is the question: In our company we use ADS on Windows 2000 server as PDC and now I want to setup a Samba Server and add it to the domain. So I run the following cmd: # net ads join -W domain name -S PDC server name -U administrator Then it prompted me to input the password and I did, after that it output the following errors: [2007/05/16 20:50:20, 0] libads/kerberos.c:ads_kinit_password(146) kerberos_kinit_password [EMAIL PROTECTED] failed: Can't open /find Kerberos configuration file [2007/05/16 20:50:20, 0] utils/net_ads.c:ads_startup(191) ads_connect: Can't open/find Kerberos configuration file So Question 1: Why did that happen? Is it the problem of our PDC? Any advice? Question 2: If I succeed, what does this command actually do? I've read the manual page about it written by you but I'm sorry that I didn't get it. I'll very appreciate if you reply Best regards Jay 2007-5-17 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Can't create machine accounts or join domain (automatically or manually with scripts or pdbedit)
Tony, I am having pretty much the same issue that you were having with your Samba + Ldap setup it is listed below...did you happen to solve this issue or figure a work around ? Thanks, STEVE Hello, I've seen other folks posting with this problem, but I think my issue is a bit different (thus the super long subject). The environment is Solaris 9 09/05, running Samba 3.0.22/Sun DS 5.2/ idealx scripts 0.9.1, but I can translate openldap/linux/samba-ese if you think of a solution that would apply in that environment. Anyway - my core problem is an inability to add machine accounts on a new domain Im setting up. I didn't really see anything jump out at me in the samba logs except that the machine add script runs (its the samba piece that is failing). So of course I end up with a bunch of posix attributes for the computer in ou=Machines, but no sambaSamAccount attributes. The next step I took was to try it manually use the useradd script then pdbedit -a -m -u $machinename. The script ran with no errors and created the machine account without samba attributes: dn: uid=testmeagain$,ou=Machines,dc=mge,dc=arizona,dc=edu objectClass: top objectClass: inetOrgPerson objectClass: posixAccount objectClass: organizationalPerson objectClass: person cn: testmeagain$ sn: testmeagain$ uid: testmeagain$ uidNumber: 1003 gidNumber: 515 homeDirectory: /dev/null loginShell: /bin/false description: Computer gecos: Computer but pdbedit bombed with an error: ldapsam_modify_entry: Failed to modify user dn= uid=testmeagain$,ou=Machines,dc=mge,dc=arizona,dc=edu with: Object class violation ldapsam_add_sam_account: failed to modify/add user with uid = testmeagain$ (dn = uid=testmeagain$,ou=Machines,dc=mge,dc=arizona,dc=edu) Unable to add machine! (does it already exist?) When I check the ldap logs I came up with this: [13/Jul/2006:14:58:12 -0700] - ERROR5896 - Schema - conn=-1 op=-1 msgId=-1 - User error: Entry uid=testmeagain$,ou=Machines,dc=mge,dc=arizona,dc=edu, attribute sambaSID required by object class sambaSamAccount is missing So, just to be thorough I changed the samba schema to not require sambaSid for sambaSamAccount and it gets a little further through the process. I end up with an account that looks like this: dn: uid=testcomputer1$,ou=Machines,dc=mge,dc=arizona,dc=edu objectClass: top objectClass: inetOrgPerson objectClass: posixAccount objectClass: organizationalPerson objectClass: person objectClass: sambaSamAccount cn: testcomputer1$ sn: testcomputer1$ uid: testcomputer1$ uidNumber: 1021 gidNumber: 515 homeDirectory: /dev/null loginShell: /bin/false description: Computer gecos: Computer sambaPrimaryGroupSID: S-1-5-21-3141198788-4239702380-1374-515 sambaPwdCanChange: 1152734452 sambaPwdMustChange: 2147483647 sambaPasswordHistory: sambaPwdLastSet: 1152734452 sambaAcctFlags: [W ] So it doesn't have the password fields or the SID, and thus still won't let you join a machine. The only way I have done it successfully so far is to run at a high log level and capture what its trying to add as the password before it bombs. Then I create the SID field and password fields manually and it allows me to join. Any thoughts? Last year I had a problem where it wouldnt look in the sambadomain object (schema for the sun ds wasn't updated) and I had to use nextfreeuid to store the sid but that didn't do the trick either (in fact neither way worked for me). On a final note I should mention that using the scripts to add a user works perfectly - so its an issue in samba not in the scripts. Any ideas are appreciated! Tony -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] What version of Samba will work with an AIX version of Unix?
http://www.bullfreeware.com/ has somewhat outdated binaries for 4.3... http://aixpdslib.seas.ucla.edu/packages/samba.html does too. And http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html I don't know of any repositories with more up-to-date versions for AIX 4.3. Depending on what features you need then it's fairly easy to compile the Samba base yourself (but there's quite a bit of work involved if you want/need the whole she-bang with all its dependencies). -Claus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Blake-Smith Sent: Tuesday, May 08, 2007 4:26 AM To: [EMAIL PROTECTED] Cc: samba@lists.samba.org Subject: [Samba] What version of Samba will work with an AIX version of Unix? Bill Many thanks for your previous email, I took a look at the link you gave me and it states that version would only work with AIX version 5.1,5.2,5.3. I have since checked our version of AIX by typing 'lslpp -h bos.rte' at the prompt and it returned:- LEVEL 4.3.3.75 I then typed 'oslevel -r' and that reutned a value of 4330-09 Is there a link to a version of Samba that will succesfully install on the my version 4.3.3.75 / 4330-09? Any information would be greatly appreciated. Many Thanks Mark -Original Message- From: William Jojo [mailto:[EMAIL PROTECTED] Sent: 01 May 2007 15:49 To: Mark Blake-Smith; samba@lists.samba.org Subject: Re: [Samba] What version of Samba will work with an AIX version of Unix? You could try here: http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ Cheers, Bill Original message Date: Tue, 1 May 2007 15:13:44 +0100 From: Mark Blake-Smith [EMAIL PROTECTED] Subject: [Samba] What version of Samba will work with an AIX version of Unix? To: samba@lists.samba.org Hi all We are currently looking to implement a scenario where our AIX Unix Server and Windows Server can communicate with each other using a version of Samba. You could try here: http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ Cheers, Bill Kind Regards Mark -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba P Before printing, please think about the environment! This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Sandicliffe. Employees of Sandicliffe are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. Sandicliffe will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. No employee or agent is authorized to conclude any binding agreement on behalf of Sandicliffe with another party by email without express written confirmation by a Director. Sandicliffe accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. All quotes from Sandicliffe are valid for 30 days following the date of email transmission. Finally, the recipient should check this email and any attachments for the presence of viruses. Sandicliffe is a trading name of Sandicliffe Motor Holdings Ltd. registered in England and Wales. Company registration number 04609153. Registered office Nottingham Road, Stapleford, Nottingham NG9 8AU. E-mail address [EMAIL PROTECTED] -- 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] adddriver issue
I'm trying to adddriver using rpcclient but this error happens: ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver Windows NT x86 HP LaserJet 4250 PCL5e] The server properties add driver button is disable yes, I'm print operator: printserver:~ # net rpc rights list DOMAIN\user -Uroot -Wprintserver Password: SePrintOperatorPrivilege How could I fix that? Regards, Bruno Gomes Pessanha -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] adddriver issue
On Fri, May 25, 2007 at 06:33:41PM +, Bruno Gomes Pessanha wrote: I'm trying to adddriver using rpcclient but this error happens: ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver Windows NT x86 HP LaserJet 4250 PCL5e] The server properties add driver button is disable yes, I'm print operator: printserver:~ # net rpc rights list DOMAIN\user -Uroot -Wprintserver Password: SePrintOperatorPrivilege What version of Samba ? If it's not 3.0.25a please upgrade. If it is please post a debug level 10 log. Thanks, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] adddriver issue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno Gomes Pessanha wrote: Jeremy, # smbd -V Version 3.0.22-13.16-SUSE-SLES10 This is the newest version available by SuSE/Novell. It was fixed in this version? I didn't find anything related in release notes. I think this might just be a hard limit on the number of files included in the command line args to rpcclient's adddriver command. jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVzJ0IR7qMdg1EfYRAvTcAKDb9mSYoEX2VQJSGBHc/0DMIy61QwCgzfxp x0kuyo+Q9gnBbgsesZSrzDI= =pJwX -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] adddriver issue
On Fri, May 25, 2007 at 03:54:54PM -0300, Bruno Gomes Pessanha wrote: Jeremy, # smbd -V Version 3.0.22-13.16-SUSE-SLES10 This is the newest version available by SuSE/Novell. It was fixed in this version? I didn't find anything related in release notes. I don't know if this specific bug is fixed or not - but it's always easier to check against the current codebase. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] adddriver issue
Jeremy, # smbd -V Version 3.0.22-13.16-SUSE-SLES10 This is the newest version available by SuSE/Novell. It was fixed in this version? I didn't find anything related in release notes. Thanks, Bruno Gomes Pessanha 2007/5/25, Jeremy Allison [EMAIL PROTECTED]: On Fri, May 25, 2007 at 06:33:41PM +, Bruno Gomes Pessanha wrote: I'm trying to adddriver using rpcclient but this error happens: ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver Windows NT x86 HP LaserJet 4250 PCL5e] The server properties add driver button is disable yes, I'm print operator: printserver:~ # net rpc rights list DOMAIN\user -Uroot -Wprintserver Password: SePrintOperatorPrivilege What version of Samba ? If it's not 3.0.25a please upgrade. If it is please post a debug level 10 log. Thanks, Jeremy. -- Bruno Gomes Pessanha -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] STATUS_INVALID_HANDLE?
I have a user who gets some random disconnects (well not exactly, it is more like her box goes insane randomly...explained better below). I was able to run a wireshark dump on her box and when the trigger action is performed I get a STATUS_INVALID_HANDLE. She is in MS Access an runs a report to trigger it (then she gets about a thousand disk or network error dialog boxes). The action is 100% repeatable. This feels like an oplock problem, but then again I don't really know... Extracted bits of the dump are available on request (but no reason to spam the whole list) Any help would be most appreciated! Pat Samba 3.0.22 / Linux 2.6.17 / (Ubuntu 6.10) Output from testparm (removed the add user/box bits because you don't care) [global] display charset = UTF8 workgroup = IWU_LEARN server string = %h server (Samba, Ubuntu) obey pam restrictions = Yes passdb backend = tdbsam algorithmic rid base = 1 passwd program = /usr/bin/passwd %u username map = /etc/samba/users.map restrict anonymous = 2 lanman auth = No client NTLMv2 auth = Yes client lanman auth = No client plaintext auth = No log level = 1 syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 min protocol = NT1 announce version = 2.0 announce as = win95 max mux = 100 max xmit = 65535 change notify timeout = 300 deadtime = 900 max disk size = 5240 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE IPTOS_LOWDELAY load printers = No domain logons = Yes os level = 1 lm announce = No preferred master = No domain master = No wins server = 192.168.132.25 lock spin count = 30 lock spin time = 15 panic action = /usr/share/samba/panic-action %d hosts allow = 192.168.132., 10., 172.16.1., 127.0.0.1 ea support = Yes map acl inherit = Yes [homes] comment = Home Directories valid users = %S browseable = No [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = Yes share modes = No [HR] comment = Human Resources Share path = /home/hr valid users = @it, @hr force group = hr read only = No create mask = 0775 directory mask = 0775 strict allocate = Yes use sendfile = Yes preserve case = No hide special files = Yes hide unreadable = Yes hide unwriteable files = Yes browseable = No fstype = FAT wide links = No -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Can't write to a Samba shared directory from windows XP
Hi, I have setup a linux shared directory using Samba. From windows XP, I can see the shared directory, browse it, read files from it; however, I can't write to it. I have changed the ownership of the shared directory in linux to nobody, changed the group to nobody, and chmod it 777. I have looked at threads for similar problems, but I can't get my problem solved. The error that I am getting is: Access denied. Make sure the disk is not full, or write-protected. This is my smb.conf contents: - # Samba config file # from 127.0.0.1 (127.0.0.1) # Date: 2007/05/23 23:07:05 [global] netbios name = RAAD3 server string = Samba Server log file = /var/log/samba/%m.log max log size = 50 dns proxy = No security = user wins support = Yes ldap ssl = no cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [www] comment = webserver path = /var/www/html valid users = chris read only = No I've spent alot of time on this, and I have tried all sort of things with no luck. Please advise if you have any idea on why I can't copy/write from windows to the liunx shared directory. chris is the user on the windows machine as well as on linux. For some reason, I never get prompted for the samba username and passwd to authenticate the access. Thanks, Talal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] OSX losses link when samba is restarted
[EMAIL PROTECTED] wrote: We run Samba 3.0.24 on a FC5 and RHEL4-AS systems. Works great with windows clients, and OSX clients work great with it too except for one problem: Whenever I restart samba (with /etc/init.d/smb restart) any OSX client that has a samba share open will lose that connection, and so if a person had a file open and was editing, all changes made since the last save are lost. This of course does NOT happen with windows clients, they are smart enough to recognize the link is reconnected. But OSX losses the link completely, and the share has to be remounted, which is really silly. I'm not sure if there is some smb.conf setting that will fix this for OSX, and not screw things up for windows clients. Or maybe there is an OSX tweek to make on each client? I searched this list for OSX and found no similar problems. Arghgh. Anyone see this behavior and know of a fix. Our OSX clients are 10.4.9. Thanks in advance, Alex This is normal behavior of OS X, I'm afraid. I would love to have a way around it too. Andy Well shoot, okay so it's normal behavior, but isn't there some system setting that can be changed on the mac that changes the behavior? There must be some fix for this, I mean this is nuts if that's just the way it is and there really is no way around it. Is there any documentation you can point me to that talks about this issue? My boss uses OSX and I don't think he's going to be happy if I just say, there is no way around it, and don't say nothing else. I restart samba about once a week, adding new shares or policies on shares, so it's not like I can't restart it. Thanks, Alex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] programming libsmbclient
I made my own which works so far :) Just do m_pURLEncode = new Replace( %, %25 ); fd = smbc_open( m_pURLEncode-Translate(ossSMBURL.str()).c_str(), O_RDONLY, 0 ); So I just replace all % with %25 which is the code for % and you should be ok. Cheers, henrik 10 maj 2007 kl. 16:06 skrev Mattieu Puel: hi all, I have a strange problem using the libsmbclient.. retrieving or stating files named with percents in is for some of them impossible. Example: a file located at smb://test/test/% 7C2.txt cannot be retrieved with my code, smbc_open fails with the code NT_STATUS_OBJECT_NAME_INVALID. I have not found on the web exemples of url encoding/decoding that would escape strings with percent in.. At the same time under the same constraints, a file named 'whatever- you-want-except-with-percent' is correctly stated, opened, read. I tested the code on several distributions (debian, gentoo..) with the same results. I tried with several CIFS servers too (Win Xp, linux...). Attached: the source and the trace given by smbc_init with debug = 9. Has anyone any idea ? the code: -- #include sys/types.h #include stdio.h #include unistd.h #include string.h #include time.h #include errno.h #include libsmbclient.h static void get_auth_data_fn(const char * pServer, const char * pShare, char * pWorkgroup, int maxLenWorkgroup, char * pUsername, int maxLenUsername, char * pPassword, int maxLenPassword) { sprintf( pWorkgroup, %s, WG ); sprintf( pUsername, %s, test ); sprintf( pPassword, %s, test ); } int main(int argc, char * argv[]) { int fd; int ret; int debug = 9; int savedErrno; charbuffer[2048]; char * pSmbPath = NULL; if (argc == 2) { pSmbPath = argv[1]; } else { printf(usage: %s [ smb://path/to/file ]\n, argv[0]); return 1; } smbc_init(get_auth_data_fn, debug); printf(Open file %s\n, pSmbPath); if ((fd = smbc_open(pSmbPath, O_RDONLY, 0)) 0) { perror(smbc_open); return 1; } do { ret = smbc_read(fd, buffer, sizeof(buffer)); savedErrno = errno; if (ret 0) fwrite(buffer, 1, ret, stdout); } while (ret 0); smbc_close(fd); if (ret 0) { errno = savedErrno; perror(read); return 1; } return 0; } -- the tail of the trace: Server connect ok: //regis/dossier: 0x8050508 write_socket(4,88) write_socket(4,88) wrote 88 size=35 smb_com=0x2d smb_rcls=51 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51201 smb_tid=2048 smb_pid=13079 smb_uid=2048 smb_mid=5 smt_wct=0 smb_bcc=0 smbc errno NT_STATUS_OBJECT_NAME_INVALID - 22 smbc_open: Argument invalide Open file smb://regis/dossier/a%7C2.txt -- Mattieu PUEL Recherche développement -- Intradot Labs SAS +33 4 78 80 87 90 | www.intradot.com -- Intradot a déménagé ! Notez bien notre nouvelle adresse : 97 rue Racine - 69100 Villeurbanne trace -- 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] 3.0.24 lock not releasing when file is closed
On Wed, May 02, 2007 at 10:19:23AM +0800, Neil Wright wrote: Samba version 3.0.24-4 on a Fedora Core 5 box. I've been working solidly on this for the last 2 days but don't seem to be getting anywhere. Any and all help would be greatly appreciated. I've found that once a file has been opened, smbstatus shows the file is locked as expected (see below) Locked files: Pid UidDenyMode Access R/WOplock SharePath Name Time -- 20863670DENY_NONE 0x2019f RDWR EXCLUSIVE+BATCH /data/home/public New Microsoft Word Document.doc Tue May 1 22:22:36 2007 Then when the file is then closed the lock stays (see below) for approx 20 mins before disappearing Locked files: Pid UidDenyMode Access R/WOplock SharePath Name Time -- 20863670DENY_NONE 0x2019f RDWR NONE /data/home/public New Microsoft Word Document.doc Tue May 1 22:22:36 2007 Now if the user opens the file again they get a message that the file is locked for editing by 'another user' and then prompted to open a read-only version of the file. Below is the output of smbstatus showing the file locking. If the client redirector is holding the file open even after the app has exited (as they sometimes do), the second open with an oplock break should close it Do you have a wireshark/ethereal trace of this ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] possible reason for 'ERRnoaccess (Access denied.)' with 'securty = user' and correct username, password ?
If 'security' is 'user' in smb.conf, and I provide correct username and password in 'mount -t smbfs -o username=USER,password=PASSWORD ... ' and mount fails with 'ERRnoaccess (Access denied.)', then what can it be ? I use nonstandard port ' option port=123 on the smbclient side, and -p 123 on the samba sevrer side, on the smbd command line). Can be this troublesome ? Thanks Yakov -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Can't write to a Samba shared directory from windows XP
Hi. I think you have to be careful when you set the ownership to nobody:nobody for shared directory, usually this nobody user does not have a real shell and home, secondly your user chris might not be in this group at all so when he tried to access he was denied writing. Please changed the permission to a more sensible user and group like chris:chris or if chris:othergroup where chris is a member of othergroup. Hope this helps. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] OSX losses link when samba is restarted
On 25/05/07, Alexander Lazarevich [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: We run Samba 3.0.24 on a FC5 and RHEL4-AS systems. Works great with windows clients, and OSX clients work great with it too except for one problem: Whenever I restart samba (with /etc/init.d/smb restart) any OSX client that has a samba share open will lose that connection, and so if a person had a file open and was editing, all changes made since the last save are lost. This of course does NOT happen with windows clients, they are smart enough to recognize the link is reconnected. But OSX losses the link completely, and the share has to be remounted, which is really silly. I'm not sure if there is some smb.conf setting that will fix this for OSX, and not screw things up for windows clients. Or maybe there is an OSX tweek to make on each client? I searched this list for OSX and found no similar problems. Arghgh. Anyone see this behavior and know of a fix. Our OSX clients are 10.4.9. Thanks in advance, Alex This is normal behavior of OS X, I'm afraid. I would love to have a way around it too. Andy Well shoot, okay so it's normal behavior, but isn't there some system setting that can be changed on the mac that changes the behavior? There must be some fix for this, I mean this is nuts if that's just the way it is and there really is no way around it. Unfortunately there is no fix in 10.4. You could file a bug with Apple, but I don't like your chances. Is there any documentation you can point me to that talks about this issue? there might be something on http://www.apple.com/support My boss uses OSX and I don't think he's going to be happy if I just say, there is no way around it, and don't say nothing else. FWIW, the SMB client is noticeably improved in 10.5. -- James Peach | [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: Problem Installing Samba V2.2.8 on OpenVMS Alpha V7.3-2
Caroline Hibbad wrote: Hello, [...] $ copy 'vmsdir'smb.conf_template samba_root:[lib]smb.conf_template I don't see where SMB.CONF actually gets created. I'm wondering if I can just change the output name on the COPY command to SMB.CONF however, I thought I would pose the question to this group since it looks like others have successfully installed this on their systems and I don't see anyone reporting this error. I don't remember running across this error back in V7.3-2. Your suggestion seems reasonable, or perhaps all that really needs to be done is to find samba_root:[lib]smb.conf_template and rename it as samba_root:[lib]smb.conf before re-running the installation program again. Good luck! [...] PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
Rev 341: added IP takeover logic for public IPs to ctdb in http://samba.org/~tridge/ctdb
revno: 341 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-05-25 17:04:13 +1000 message: added IP takeover logic for public IPs to ctdb modified: Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1 common/cmdline.c cmdline.c-20070416041216-w1zvz91bkdsgjckw-1 common/ctdb.c ctdb.c-20061127094323-t50f58d65iaao5of-2 common/ctdb_client.c ctdb_client.c-20070411010216-3kd8v37k61steeya-1 common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1 common/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 common/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 tools/ctdb_control.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 Diff too large for email (529, the limit is 200).
Rev 342: new files for IP takeover in http://samba.org/~tridge/ctdb
revno: 342 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-05-25 17:16:50 +1000 message: new files for IP takeover added: takeover/ takeover-20070525071636-a5n1ihghjtppy08r-1 takeover/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2 takeover/system.c system.c-20070525071636-a5n1ihghjtppy08r-3 Diff too large for email (318, the limit is 200).
svn commit: samba r23133 - in branches/SAMBA_4_0/source/winbind: .
Author: abartlet Date: 2007-05-25 08:04:39 + (Fri, 25 May 2007) New Revision: 23133 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23133 Log: I felt pity on Kai, as he starts work on winbind in Samba4, so I decided to clean it up a little. We now use SPNEGO for authentication if possible, and common routines shared with the rest of the librpc codebase. Rather than make a connection to IPC$, then connect the pipes to it, we instead have the lsa and samr pipes as 'secondary connections'. Andrew Bartlett Modified: branches/SAMBA_4_0/source/winbind/wb_cmd_list_trustdom.c branches/SAMBA_4_0/source/winbind/wb_cmd_lookupname.c branches/SAMBA_4_0/source/winbind/wb_cmd_lookupsid.c branches/SAMBA_4_0/source/winbind/wb_connect_lsa.c branches/SAMBA_4_0/source/winbind/wb_connect_sam.c branches/SAMBA_4_0/source/winbind/wb_init_domain.c branches/SAMBA_4_0/source/winbind/wb_server.h Changeset: Sorry, the patch is too large (1019 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23133
svn commit: samba r23134 - in branches/SAMBA_4_0/source/librpc/rpc: .
Author: abartlet Date: 2007-05-25 08:05:14 + (Fri, 25 May 2007) New Revision: 23134 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23134 Log: Set the event context onto the cli_credentials. Andrew Bartlett Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c === --- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2007-05-25 08:04:39 UTC (rev 23133) +++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2007-05-25 08:05:14 UTC (rev 23134) @@ -915,6 +915,7 @@ /* anonymous credentials for rpc connection used to get endpoint mapping */ anon_creds = cli_credentials_init(mem_ctx); + cli_credentials_set_event_context(anon_creds, ev); cli_credentials_set_conf(anon_creds); cli_credentials_set_anonymous(anon_creds);
svn commit: samba r23135 - in branches/SAMBA_4_0/source/heimdal_build: .
Author: metze Date: 2007-05-25 08:14:15 + (Fri, 25 May 2007) New Revision: 23135 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23135 Log: inet_ntop and inet_pton are now provided by libreplace metze Modified: branches/SAMBA_4_0/source/heimdal_build/config.m4 branches/SAMBA_4_0/source/heimdal_build/config.mk Changeset: Modified: branches/SAMBA_4_0/source/heimdal_build/config.m4 === --- branches/SAMBA_4_0/source/heimdal_build/config.m4 2007-05-25 08:05:14 UTC (rev 23134) +++ branches/SAMBA_4_0/source/heimdal_build/config.m4 2007-05-25 08:14:15 UTC (rev 23135) @@ -70,9 +70,7 @@ atexit \ cgetent \ getprogname \ - inet_ntop \ inet_aton \ - inet_pton \ gethostname \ getnameinfo \ iruserok\ @@ -241,18 +239,6 @@ SMB_ENABLE(HEIMDAL_ROKEN_INET_ATON, YES) fi -if test x$ac_cv_func_inet_pton = xno; then -AC_CHECK_LIB_EXT(nsl_s, NSL_LIBS, inet_pton) -AC_CHECK_LIB_EXT(nsl, NSL_LIBS, inet_pton) -SMB_ENABLE(NSL,YES) -if test x$ac_cv_lib_ext_nsl_s_inet_pton != xyes - test x$ac_cv_lib_ext_nsl_inet_pton != xyes; then - AC_MSG_ERROR([no inet_pton() function available!]) -fi -fi - -SMB_EXT_LIB(NSL,[${NSL_LIBS}],[],[],[]) - # only add closefrom if needed SMB_ENABLE(HEIMDAL_ROKEN_CLOSEFROM, NO) if test t$ac_cv_func_closefrom != tyes; then Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk === --- branches/SAMBA_4_0/source/heimdal_build/config.mk 2007-05-25 08:05:14 UTC (rev 23134) +++ branches/SAMBA_4_0/source/heimdal_build/config.mk 2007-05-25 08:14:15 UTC (rev 23135) @@ -439,7 +439,6 @@ HEIMDAL_ROKEN_GETPROGNAME \ HEIMDAL_ROKEN_CLOSEFROM \ GAI \ - NSL \ RESOLV \ EXT_SOCKET # End SUBSYSTEM HEIMDAL_ROKEN
svn commit: samba r23136 - in branches/SAMBA_4_0/source: auth/gensec ntvfs/cifs
Author: abartlet Date: 2007-05-25 08:44:33 + (Fri, 25 May 2007) New Revision: 23136 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23136 Log: Set the event context onto the credentials in more places. This helps ensure that the kerberos code uses the right event context. Andrew Bartlett Modified: branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c Changeset: Modified: branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c === --- branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c 2007-05-25 08:14:15 UTC (rev 23135) +++ branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c 2007-05-25 08:44:33 UTC (rev 23136) @@ -1342,6 +1342,7 @@ return NT_STATUS_NO_MEMORY; } + cli_credentials_set_event_context(session_info-credentials, gensec_security-event_ctx); cli_credentials_set_conf(session_info-credentials); /* Just so we don't segfault trying to get at a username */ cli_credentials_set_anonymous(session_info-credentials); Modified: branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c === --- branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c 2007-05-25 08:14:15 UTC (rev 23135) +++ branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c 2007-05-25 08:44:33 UTC (rev 23136) @@ -165,6 +165,7 @@ if (!credentials) { return NT_STATUS_NO_MEMORY; } + cli_credentials_set_event_context(credentials, ntvfs-ctx-event_ctx); cli_credentials_set_conf(credentials); cli_credentials_set_username(credentials, user, CRED_SPECIFIED); if (domain) { @@ -174,6 +175,7 @@ } else if (machine_account) { DEBUG(5, (CIFS backend: Using machine account\n)); credentials = cli_credentials_init(private); + cli_credentials_set_event_context(credentials, ntvfs-ctx-event_ctx); cli_credentials_set_conf(credentials); if (domain) { cli_credentials_set_domain(credentials, domain, CRED_SPECIFIED);
svn commit: samba r23137 - in branches/SAMBA_4_0/source/selftest: .
Author: metze Date: 2007-05-25 09:15:09 + (Fri, 25 May 2007) New Revision: 23137 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23137 Log: make it possible to skip the pidl tests with PIDL_TESTS_SKIP=yes metze Modified: branches/SAMBA_4_0/source/selftest/test_pidl.sh Changeset: Modified: branches/SAMBA_4_0/source/selftest/test_pidl.sh === --- branches/SAMBA_4_0/source/selftest/test_pidl.sh 2007-05-25 08:44:33 UTC (rev 23136) +++ branches/SAMBA_4_0/source/selftest/test_pidl.sh 2007-05-25 09:15:09 UTC (rev 23137) @@ -7,7 +7,9 @@ incdir=`dirname $0` . $incdir/test_functions.sh -if $PERL -e 'eval require Test::More;' /dev/null 21; then +if test x${PIDL_TESTS_SKIP} = xyes; then + echo Skipping pidl tests - PIDL_TESTS_SKIP=yes +elif $PERL -e 'eval require Test::More;' /dev/null 21; then for f in pidl/tests/*.pl; do plantest $f none $PERL $f done
svn commit: samba r23139 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2007-05-25 10:43:06 + (Fri, 25 May 2007) New Revision: 23139 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23139 Log: use echo operations once a second in lockbench and openbench to ensure we detect IP takeover on servers Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c === --- branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 10:42:29 UTC (rev 23138) +++ branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 10:43:06 UTC (rev 23139) @@ -257,6 +257,16 @@ printf(\r); fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); + + /* send an echo on each interface to ensure it stays alive - this helps + with IP takeover */ + for (i=0;inprocs;i++) { + struct smb_echo p; + p.in.repeat_count = 0; + p.in.size = 0; + p.in.data = NULL; + smb_raw_echo_send(state[i].tree-session-transport, p); + } } /* Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c === --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 10:42:29 UTC (rev 23138) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 10:43:06 UTC (rev 23139) @@ -297,6 +297,16 @@ printf(\r); fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); + + /* send an echo on each interface to ensure it stays alive - this helps + with IP takeover */ + for (i=0;inprocs;i++) { + struct smb_echo p; + p.in.repeat_count = 0; + p.in.size = 0; + p.in.data = NULL; + smb_raw_echo_send(state[i].tree-session-transport, p); + } } /* @@ -355,6 +365,7 @@ state[i].fnum = smbcli_open(state[i].tree, fnames[state-file_num], O_RDWR|O_CREAT, DENY_ALL); + state[i].old_fnum = state[i].fnum; state[i].stage = OPEN_OPEN; next_operation(state[i]); }
svn commit: samba r23138 - in branches/SAMBA_4_0/source/libcli/raw: .
Author: tridge Date: 2007-05-25 10:42:29 + (Fri, 25 May 2007) New Revision: 23138 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23138 Log: added a raw interface for SMBecho operations Modified: branches/SAMBA_4_0/source/libcli/raw/clitransport.c branches/SAMBA_4_0/source/libcli/raw/interfaces.h Changeset: Modified: branches/SAMBA_4_0/source/libcli/raw/clitransport.c === --- branches/SAMBA_4_0/source/libcli/raw/clitransport.c 2007-05-25 09:15:09 UTC (rev 23137) +++ branches/SAMBA_4_0/source/libcli/raw/clitransport.c 2007-05-25 10:42:29 UTC (rev 23138) @@ -593,3 +593,71 @@ talloc_set_destructor(req, smbcli_request_destructor); } + + +/ + Send an SMBecho (async send) +*/ +struct smbcli_request *smb_raw_echo_send(struct smbcli_transport *transport, +struct smb_echo *p) +{ + struct smbcli_request *req; + + req = smbcli_request_setup_transport(transport, SMBecho, 1, p-in.size); + if (!req) return NULL; + + SSVAL(req-out.vwv, VWV(0), p-in.repeat_count); + + memcpy(req-out.data, p-in.data, p-in.size); + + ZERO_STRUCT(p-out); + + if (!smbcli_request_send(req)) { + smbcli_request_destroy(req); + return NULL; + } + + return req; +} + +/ + raw echo interface (async recv) +/ +NTSTATUS smb_raw_echo_recv(struct smbcli_request *req, TALLOC_CTX *mem_ctx, + struct smb_echo *p) +{ + if (!smbcli_request_receive(req) || + smbcli_request_is_error(req)) { + goto failed; + } + + SMBCLI_CHECK_WCT(req, 1); + p-out.count++; + p-out.sequence_number = SVAL(req-in.vwv, VWV(0)); + p-out.size = req-in.data_size; + talloc_free(p-out.data); + p-out.data = talloc_size(mem_ctx, p-out.size); + NT_STATUS_HAVE_NO_MEMORY(p-out.data); + + if (!smbcli_raw_pull_data(req, req-in.data, p-out.size, p-out.data)) { + req-status = NT_STATUS_BUFFER_TOO_SMALL; + } + + if (p-out.count == p-in.repeat_count) { + return smbcli_request_destroy(req); + } + + return NT_STATUS_OK; + +failed: + return smbcli_request_destroy(req); +} + +/ + Send a echo (sync interface) +*/ +NTSTATUS smb_raw_echo(struct smbcli_transport *transport, struct smb_echo *p) +{ + struct smbcli_request *req = smb_raw_echo_send(transport, p); + return smbcli_request_simple_recv(req); +} Modified: branches/SAMBA_4_0/source/libcli/raw/interfaces.h === --- branches/SAMBA_4_0/source/libcli/raw/interfaces.h 2007-05-25 09:15:09 UTC (rev 23137) +++ branches/SAMBA_4_0/source/libcli/raw/interfaces.h 2007-05-25 10:42:29 UTC (rev 23138) @@ -2614,4 +2614,22 @@ } findclose; }; + +/* + struct for SMBecho call +*/ +struct smb_echo { + struct { + uint16_t repeat_count; + uint16_t size; + uint8_t *data; + } in; + struct { + uint16_t count; + uint16_t sequence_number; + uint16_t size; + uint8_t *data; + } out; +}; + #endif /* __LIBCLI_RAW_INTERFACES_H__ */
svn commit: samba r23140 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2007-05-25 11:39:43 + (Fri, 25 May 2007) New Revision: 23140 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23140 Log: send send echos while disconnected Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c === --- branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 10:43:06 UTC (rev 23139) +++ branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 11:39:43 UTC (rev 23140) @@ -265,7 +265,9 @@ p.in.repeat_count = 0; p.in.size = 0; p.in.data = NULL; - smb_raw_echo_send(state[i].tree-session-transport, p); + if (state[i].tree) { + smb_raw_echo_send(state[i].tree-session-transport, p); + } } } Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c === --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 10:43:06 UTC (rev 23139) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 11:39:43 UTC (rev 23140) @@ -305,7 +305,9 @@ p.in.repeat_count = 0; p.in.size = 0; p.in.data = NULL; - smb_raw_echo_send(state[i].tree-session-transport, p); + if (state[i].tree) { + smb_raw_echo_send(state[i].tree-session-transport, p); + } } }
svn commit: samba r23141 - in branches/SAMBA_4_0/source/winbind: .
Author: abartlet Date: 2007-05-25 11:59:52 + (Fri, 25 May 2007) New Revision: 23141 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23141 Log: Use the finddcs() library call rather than a winbind-specific version. (I created finddcs() from the winbind code a while back, so this finishes that work) Andrew Bartlett Modified: branches/SAMBA_4_0/source/winbind/wb_dom_info.c branches/SAMBA_4_0/source/winbind/wb_init_domain.c branches/SAMBA_4_0/source/winbind/wb_server.h Changeset: Modified: branches/SAMBA_4_0/source/winbind/wb_dom_info.c === --- branches/SAMBA_4_0/source/winbind/wb_dom_info.c 2007-05-25 11:39:43 UTC (rev 23140) +++ branches/SAMBA_4_0/source/winbind/wb_dom_info.c 2007-05-25 11:59:52 UTC (rev 23141) @@ -30,16 +30,14 @@ #include librpc/gen_ndr/ndr_irpc.h #include librpc/gen_ndr/samr.h #include lib/messaging/irpc.h +#include libcli/finddcs.h struct get_dom_info_state { struct composite_context *ctx; - struct wbsrv_service *service; - struct nbtd_getdcname r; struct wb_dom_info *info; }; static void get_dom_info_recv_addrs(struct composite_context *ctx); -static void get_dom_info_recv_dcname(struct irpc_request *ireq); struct composite_context *wb_get_dom_info_send(TALLOC_CTX *mem_ctx, struct wbsrv_service *service, @@ -48,8 +46,7 @@ { struct composite_context *result, *ctx; struct get_dom_info_state *state; - struct nbt_name name; - + struct dom_sid *dup_sid; result = composite_create(mem_ctx, service-task-event_ctx); if (result == NULL) goto failed; @@ -58,24 +55,18 @@ state-ctx = result; result-private_data = state; - state-service = service; - state-info = talloc_zero(state, struct wb_dom_info); if (state-info == NULL) goto failed; - state-info-name = talloc_strdup(state-info, domain_name); - if (state-info-name == NULL) goto failed; - state-info-sid = dom_sid_dup(state-info, sid); - if (state-info-sid == NULL) goto failed; + dup_sid = dom_sid_dup(state, sid); + if (dup_sid == NULL) goto failed; - make_nbt_name(name, state-info-name, NBT_NAME_LOGON); - - ctx = resolve_name_send(name, result-event_ctx, - lp_name_resolve_order()); + ctx = finddcs_send(mem_ctx, domain_name, NBT_NAME_LOGON, + dup_sid, lp_name_resolve_order(), service-task-event_ctx, + service-task-msg_ctx); if (ctx == NULL) goto failed; - ctx-async.fn = get_dom_info_recv_addrs; - ctx-async.private_data = state; + composite_continue(state-ctx, ctx, get_dom_info_recv_addrs, state); return result; failed: @@ -88,48 +79,12 @@ struct get_dom_info_state *state = talloc_get_type(ctx-async.private_data, struct get_dom_info_state); - struct server_id *nbt_servers; - struct irpc_request *ireq; - state-ctx-status = resolve_name_recv(ctx, state-info, - state-info-dc_address); + state-ctx-status = finddcs_recv(ctx, state-info, + state-info-num_dcs, + state-info-dcs); if (!composite_is_ok(state-ctx)) return; - nbt_servers = irpc_servers_byname(state-service-task-msg_ctx, - state, nbt_server); - if ((nbt_servers == NULL) || (nbt_servers[0].id == 0)) { - composite_error(state-ctx, NT_STATUS_NO_LOGON_SERVERS); - return; - } - - state-r.in.domainname = state-info-name; - state-r.in.ip_address = state-info-dc_address; - state-r.in.my_computername = lp_netbios_name(); - state-r.in.my_accountname = talloc_asprintf(state, %s$, -lp_netbios_name()); - if (composite_nomem(state-r.in.my_accountname, state-ctx)) return; - state-r.in.account_control = ACB_WSTRUST; - state-r.in.domain_sid = dom_sid_dup(state, state-info-sid); - if (composite_nomem(state-r.in.domain_sid, state-ctx)) return; - - ireq = irpc_call_send(state-service-task-msg_ctx, nbt_servers[0], - dcerpc_table_irpc, DCERPC_NBTD_GETDCNAME, - state-r, state); - composite_continue_irpc(state-ctx, ireq, get_dom_info_recv_dcname, - state); -} - -static void get_dom_info_recv_dcname(struct irpc_request *ireq) -{ - struct get_dom_info_state *state = - talloc_get_type(ireq-async.private, - struct get_dom_info_state); - - - state-ctx-status = irpc_call_recv(ireq); - if
Rev 345: keep sending ARPs for 2 minutes, every 5 seconds in http://samba.org/~tridge/ctdb
revno: 345 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-05-25 21:27:26 +1000 message: keep sending ARPs for 2 minutes, every 5 seconds modified: include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 takeover/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2 === modified file 'include/ctdb_private.h' --- a/include/ctdb_private.h2007-05-25 10:00:06 + +++ b/include/ctdb_private.h2007-05-25 11:27:26 + @@ -250,6 +250,7 @@ struct ctdb_takeover { bool enabled; const char *interface; + TALLOC_CTX *last_ctx; }; === modified file 'takeover/ctdb_takeover.c' --- a/takeover/ctdb_takeover.c 2007-05-25 07:16:50 + +++ b/takeover/ctdb_takeover.c 2007-05-25 11:27:26 + @@ -29,6 +29,43 @@ #define TAKEOVER_TIMEOUT() timeval_current_ofs(5,0) +#define CTDB_ARP_INTERVAL 5 +#define CTDB_ARP_REPEAT 24 + +struct ctdb_takeover_arp { + struct ctdb_context *ctdb; + uint32_t count; + struct sockaddr_in sin; +}; + + +/* + send a gratuitous arp + */ +static void ctdb_control_send_arp(struct event_context *ev, struct timed_event *te, + struct timeval t, void *private_data) +{ + struct ctdb_takeover_arp *arp = talloc_get_type(private_data, + struct ctdb_takeover_arp); + int ret; + + ret = ctdb_sys_send_arp(arp-sin, arp-ctdb-takeover.interface); + if (ret != 0) { + DEBUG(0,(__location__ sending of arp failed (%s)\n, strerror(errno))); + } + + arp-count++; + + if (arp-count == CTDB_ARP_REPEAT) { + talloc_free(arp); + return; + } + + event_add_timed(arp-ctdb-ev, arp-ctdb-takeover.last_ctx, + timeval_current_ofs(CTDB_ARP_INTERVAL, 0), + ctdb_control_send_arp, arp); +} + /* take over an ip address */ @@ -37,6 +74,7 @@ int ret; struct sockaddr_in *sin = (struct sockaddr_in *)indata.dptr; char *cmdstr; + struct ctdb_takeover_arp *arp; cmdstr = talloc_asprintf(ctdb, ip addr add %s/32 dev %s 2 /dev/null, inet_ntoa(sin-sin_addr), ctdb-takeover.interface); @@ -46,11 +84,20 @@ system(cmdstr); talloc_free(cmdstr); - ret = ctdb_sys_send_arp(sin, ctdb-takeover.interface); - if (ret != 0) { - DEBUG(0,(__location__ sending of arp failed (%s)\n, strerror(errno))); + if (!ctdb-takeover.last_ctx) { + ctdb-takeover.last_ctx = talloc_new(ctdb); + CTDB_NO_MEMORY(ctdb, ctdb-takeover.last_ctx); } + arp = talloc_zero(ctdb-takeover.last_ctx, struct ctdb_takeover_arp); + CTDB_NO_MEMORY(ctdb, arp); + + arp-ctdb = ctdb; + arp-sin = *sin; + + event_add_timed(arp-ctdb-ev, arp-ctdb-takeover.last_ctx, + timeval_zero(), ctdb_control_send_arp, arp); + return ret; } @@ -62,6 +109,10 @@ struct sockaddr_in *sin = (struct sockaddr_in *)indata.dptr; char *cmdstr; + /* stop any previous arps */ + talloc_free(ctdb-takeover.last_ctx); + ctdb-takeover.last_ctx = NULL; + cmdstr = talloc_asprintf(ctdb, ip addr del %s/32 dev %s 2 /dev/null, inet_ntoa(sin-sin_addr), ctdb-takeover.interface);
svn commit: samba r23142 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2007-05-25 12:21:29 + (Fri, 25 May 2007) New Revision: 23142 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23142 Log: added error checking and reconnect on echo replies Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c === --- branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 11:59:52 UTC (rev 23141) +++ branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 12:21:29 UTC (rev 23142) @@ -244,6 +244,22 @@ } +static void echo_completion(struct smbcli_request *req) +{ + struct benchlock_state *state = talloc_get_type(req-async.private, + struct benchlock_state); + NTSTATUS status = smbcli_request_simple_recv(req); + if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) { + talloc_free(state-tree); + state-tree = NULL; + num_connected--; + DEBUG(0,(reopening connection to %s\n, state-dest_host)); + event_add_timed(state-ev, state-mem_ctx, + timeval_current_ofs(1,0), + reopen_connection, state); + } +} + static void report_rate(struct event_context *ev, struct timed_event *te, struct timeval t, void *private_data) { @@ -258,16 +274,21 @@ fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); + if (!state[i].tree) { + return; + } + /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ for (i=0;inprocs;i++) { struct smb_echo p; - p.in.repeat_count = 0; + struct smbcli_request *req; + p.in.repeat_count = 1; p.in.size = 0; p.in.data = NULL; - if (state[i].tree) { - smb_raw_echo_send(state[i].tree-session-transport, p); - } + req = smb_raw_echo_send(state[i].tree-session-transport, p); + req-async.private = state; + req-async.fn = echo_completion; } } Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c === --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 11:59:52 UTC (rev 23141) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 12:21:29 UTC (rev 23142) @@ -284,6 +284,22 @@ } } +static void echo_completion(struct smbcli_request *req) +{ + struct benchopen_state *state = talloc_get_type(req-async.private, + struct benchopen_state); + NTSTATUS status = smbcli_request_simple_recv(req); + if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) { + talloc_free(state-tree); + state-tree = NULL; + num_connected--; + DEBUG(0,(reopening connection to %s\n, state-dest_host)); + event_add_timed(state-ev, state-mem_ctx, + timeval_current_ofs(1,0), + reopen_connection, state); + } +} + static void report_rate(struct event_context *ev, struct timed_event *te, struct timeval t, void *private_data) { @@ -298,16 +314,21 @@ fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); + if (!state[i].tree) { + return; + } + /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ for (i=0;inprocs;i++) { struct smb_echo p; - p.in.repeat_count = 0; + struct smbcli_request *req; + p.in.repeat_count = 1; p.in.size = 0; p.in.data = NULL; - if (state[i].tree) { - smb_raw_echo_send(state[i].tree-session-transport, p); - } + req = smb_raw_echo_send(state[i].tree-session-transport, p); + req-async.private = state; + req-async.fn = echo_completion; } }
Rev 344: consider a node dead after 6 seconds, not 15 in http://samba.org/~tridge/ctdb
revno: 344 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-05-25 20:00:06 +1000 message: consider a node dead after 6 seconds, not 15 modified: include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 === modified file 'include/ctdb_private.h' --- a/include/ctdb_private.h2007-05-25 07:04:13 + +++ b/include/ctdb_private.h2007-05-25 10:00:06 + @@ -333,10 +333,10 @@ #define CTDB_TRAVERSE_TIMEOUT 20 /* timeout between dead-node monitoring events */ -#define CTDB_MONITORING_TIMEOUT 5 +#define CTDB_MONITORING_TIMEOUT 3 /* number of monitoring timeouts before a node is considered dead */ -#define CTDB_MONITORING_DEAD_COUNT 3 +#define CTDB_MONITORING_DEAD_COUNT 2 /* number of consecutive calls from the same node before we give them
Rev 346: make sure we find out about new nodes as fast as possible in http://samba.org/~tridge/ctdb
revno: 346 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-05-25 22:07:45 +1000 message: make sure we find out about new nodes as fast as possible modified: tcp/ctdb_tcp.h ctdb_tcp.h-20061127103747-l8xeniwiapbydehq-3 tcp/tcp_connect.c tcp_connect.c-20061128004937-x70q1cu5xzg5g2tm-1 === modified file 'tcp/ctdb_tcp.h' --- a/tcp/ctdb_tcp.h2007-04-13 10:38:24 + +++ b/tcp/ctdb_tcp.h2007-05-25 12:07:45 + @@ -39,6 +39,8 @@ struct ctdb_tcp_node { int fd; struct ctdb_queue *queue; + struct fd_event *connect_fde; + struct timed_event *connect_te; }; === modified file 'tcp/tcp_connect.c' --- a/tcp/tcp_connect.c 2007-05-15 08:40:56 + +++ b/tcp/tcp_connect.c 2007-05-25 12:07:45 + @@ -50,6 +50,7 @@ /* start a new connect cycle to try to re-establish the link */ ctdb_queue_set_fd(tnode-queue, -1); + tnode-fd = -1; event_add_timed(node-ctdb-ev, node, timeval_zero(), ctdb_tcp_node_connect, node); } @@ -69,6 +70,9 @@ socklen_t len = sizeof(error); int one = 1; + talloc_free(tnode-connect_te); + tnode-connect_te = NULL; + if (getsockopt(tnode-fd, SOL_SOCKET, SO_ERROR, error, len) != 0 || error != 0) { talloc_free(fde); @@ -120,6 +124,13 @@ struct sockaddr_in sock_in; struct sockaddr_in sock_out; + if (tnode-fd != -1) { + talloc_free(tnode-connect_fde); + tnode-connect_fde = NULL; + close(tnode-fd); + tnode-fd = -1; + } + tnode-fd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); set_nonblocking(tnode-fd); @@ -163,8 +174,15 @@ } /* non-blocking connect - wait for write event */ - event_add_fd(node-ctdb-ev, node, tnode-fd, EVENT_FD_WRITE|EVENT_FD_READ, -ctdb_node_connect_write, node); + tnode-connect_fde = event_add_fd(node-ctdb-ev, node, tnode-fd, + EVENT_FD_WRITE|EVENT_FD_READ, + ctdb_node_connect_write, node); + + /* don't give it long to connect - retry in one second. This ensures + that we find a node is up quickly (tcp normally backs off a syn reply + delay by quite a lot) */ + tnode-connect_te = event_add_timed(ctdb-ev, node, timeval_current_ofs(1, 0), + ctdb_tcp_node_connect, node); } /*
Rev 343: paraoid check for empty db on attach in http://samba.org/~tridge/ctdb
revno: 343 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-05-25 18:48:49 +1000 message: paraoid check for empty db on attach modified: common/ctdb_ltdb.c ctdb_ltdb.c-20061128065342-to93h6eejj5kon81-2 === modified file 'common/ctdb_ltdb.c' --- a/common/ctdb_ltdb.c2007-05-19 03:45:24 + +++ b/common/ctdb_ltdb.c2007-05-25 08:48:49 + @@ -318,6 +318,20 @@ /* + paraoid check to see if the db is empty + */ +static void ctdb_check_db_empty(struct ctdb_db_context *ctdb_db) +{ + struct tdb_context *tdb = ctdb_db-ltdb-tdb; + int count = tdb_traverse_read(tdb, NULL, NULL); + if (count != 0) { + DEBUG(0,(__location__ tdb '%s' not empty on attach! aborting\n, +ctdb_db-db_path)); + ctdb_fatal(ctdb_db-ctdb, database not empty on attach); + } +} + +/* a client has asked to attach a new database */ int32_t ctdb_control_db_attach(struct ctdb_context *ctdb, TDB_DATA indata, @@ -384,6 +398,8 @@ return -1; } + ctdb_check_db_empty(ctdb_db); + DLIST_ADD(ctdb-db_list, ctdb_db); /*
svn commit: samba r23143 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2007-05-25 12:35:03 + (Fri, 25 May 2007) New Revision: 23143 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23143 Log: error found by valgrind Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c === --- branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 12:21:29 UTC (rev 23142) +++ branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-25 12:35:03 UTC (rev 23143) @@ -274,15 +274,16 @@ fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); - if (!state[i].tree) { - return; - } - /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ for (i=0;inprocs;i++) { struct smb_echo p; struct smbcli_request *req; + + if (!state[i].tree) { + continue; + } + p.in.repeat_count = 1; p.in.size = 0; p.in.data = NULL; Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c === --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 12:21:29 UTC (rev 23142) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-25 12:35:03 UTC (rev 23143) @@ -314,15 +314,16 @@ fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); - if (!state[i].tree) { - return; - } - /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ for (i=0;inprocs;i++) { struct smb_echo p; struct smbcli_request *req; + + if (!state[i].tree) { + continue; + } + p.in.repeat_count = 1; p.in.size = 0; p.in.data = NULL;
svn commit: samba r23144 - in branches/SAMBA_4_0/source/torture/raw: .
Author: metze Date: 2007-05-25 13:03:33 + (Fri, 25 May 2007) New Revision: 23144 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23144 Log: splitup RAW-OPLOCK into small units metze Modified: branches/SAMBA_4_0/source/torture/raw/oplock.c branches/SAMBA_4_0/source/torture/raw/raw.c Changeset: Sorry, the patch is too large (1054 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23144
svn commit: samba r23145 - in branches/SAMBA_4_0/source/heimdal_build: .
Author: metze Date: 2007-05-25 13:11:17 + (Fri, 25 May 2007) New Revision: 23145 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23145 Log: try to fix the build on solaris metze Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk Changeset: Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk === --- branches/SAMBA_4_0/source/heimdal_build/config.mk 2007-05-25 13:03:33 UTC (rev 23144) +++ branches/SAMBA_4_0/source/heimdal_build/config.mk 2007-05-25 13:11:17 UTC (rev 23145) @@ -440,7 +440,8 @@ HEIMDAL_ROKEN_CLOSEFROM \ GAI \ RESOLV \ - EXT_SOCKET + EXT_SOCKET \ + EXT_NSL # End SUBSYSTEM HEIMDAL_ROKEN ###
svn commit: samba r23146 - in branches/SAMBA_4_0/source/winbind: .
Author: metze Date: 2007-05-25 13:30:49 + (Fri, 25 May 2007) New Revision: 23146 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23146 Log: fix the build (temporary) abartlet: please fix this correct! metze Modified: branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c Changeset: Modified: branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c === --- branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c 2007-05-25 13:11:17 UTC (rev 23145) +++ branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c 2007-05-25 13:30:49 UTC (rev 23146) @@ -55,6 +55,12 @@ result = composite_create(mem_ctx, service-task-event_ctx); if (result == NULL) goto failed; +composite_error(result, NT_STATUS_FOOBAR); +return result; +failed: +return NULL; +} +#if 0 state = talloc(result, struct trusted_dom_info_state); if (state == NULL) goto failed; state-ctx = result; @@ -207,6 +213,7 @@ composite_done(state-ctx); } +#endif NTSTATUS wb_trusted_dom_info_recv(struct composite_context *ctx, TALLOC_CTX *mem_ctx,
Rev 348: send the message from daemon context in http://samba.org/~tridge/ctdb
revno: 348 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Sat 2007-05-26 00:21:07 +1000 message: send the message from daemon context modified: takeover/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2 === modified file 'takeover/ctdb_takeover.c' --- a/takeover/ctdb_takeover.c 2007-05-25 14:05:30 + +++ b/takeover/ctdb_takeover.c 2007-05-25 14:21:07 + @@ -129,8 +129,7 @@ data.dptr = (uint8_t *)ip; data.dsize = strlen(ip)+1; - ctdb_send_message(ctdb, ctdb-vnn, CTDB_SRVID_RELEASE_IP, data); - + ctdb_daemon_send_message(ctdb, ctdb-vnn, CTDB_SRVID_RELEASE_IP, data); return 0; }
Rev 347: send a message to clients when an IP has been released in http://samba.org/~tridge/ctdb
revno: 347 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Sat 2007-05-26 00:05:30 +1000 message: send a message to clients when an IP has been released modified: common/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11 takeover/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2 === modified file 'common/ctdb_recoverd.c' --- a/common/ctdb_recoverd.c2007-05-25 07:04:13 + +++ b/common/ctdb_recoverd.c2007-05-25 14:05:30 + @@ -557,7 +557,8 @@ return -1; } - /* send a message to all clients telling them that the cluster has been reconfigured */ + /* send a message to all clients telling them that the cluster + has been reconfigured */ ctdb_send_message(ctdb, CTDB_BROADCAST_ALL, CTDB_SRVID_RECONFIGURE, tdb_null); DEBUG(0, (__location__ Recovery complete\n)); === modified file 'include/ctdb.h' --- a/include/ctdb.h2007-05-23 04:50:41 + +++ b/include/ctdb.h2007-05-25 14:05:30 + @@ -67,6 +67,11 @@ */ #define CTDB_SRVID_RECONFIGURE 0xF200LL +/* + a message handler ID meaning that an IP address has been released + */ +#define CTDB_SRVID_RELEASE_IP 0xF300LL + struct event_context; /* === modified file 'takeover/ctdb_takeover.c' --- a/takeover/ctdb_takeover.c 2007-05-25 11:27:26 + +++ b/takeover/ctdb_takeover.c 2007-05-25 14:05:30 + @@ -108,19 +108,30 @@ { struct sockaddr_in *sin = (struct sockaddr_in *)indata.dptr; char *cmdstr; + TDB_DATA data; + char *ip = inet_ntoa(sin-sin_addr); /* stop any previous arps */ talloc_free(ctdb-takeover.last_ctx); ctdb-takeover.last_ctx = NULL; cmdstr = talloc_asprintf(ctdb, ip addr del %s/32 dev %s 2 /dev/null, -inet_ntoa(sin-sin_addr), ctdb-takeover.interface); +ip, ctdb-takeover.interface); DEBUG(0,(Releasing IP : %s\n, cmdstr)); system(cmdstr); talloc_free(cmdstr); + /* send a message to all clients of this node telling them + that the cluster has been reconfigured and they should + release any sockets on this IP */ + data.dptr = (uint8_t *)ip; + data.dsize = strlen(ip)+1; + + ctdb_send_message(ctdb, ctdb-vnn, CTDB_SRVID_RELEASE_IP, data); + + return 0; }
svn commit: samba-web r1116 - in trunk/download: .
Author: jerry Date: 2007-05-25 15:39:05 + (Fri, 25 May 2007) New Revision: 1116 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1116 Log: remove SMBFS link Modified: trunk/download/index.html Changeset: Modified: trunk/download/index.html === --- trunk/download/index.html 2007-05-25 04:54:54 UTC (rev 1115) +++ trunk/download/index.html 2007-05-25 15:39:05 UTC (rev 1116) @@ -115,9 +115,6 @@ tr valign=top td ul -lia -href=http://samba.sernet.de/linux-lan/;SMBFS (amp; Linux Lan Info)/a/li - lia href=/samba/Linux_CIFS_client.htmlLinux CIFS VFS/a/li lia href=http://www.thursby.com/;Dave (Macintosh)/a/li lia href=http://www.tarantella.com/products/vision/family/#vfs;VisionFS/a/li
svn commit: samba-web r1117 - in trunk/history: .
Author: jerry Date: 2007-05-25 17:44:55 + (Fri, 25 May 2007) New Revision: 1117 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1117 Log: link to new ports of security patches for CVE-2007-244{4,6} Modified: trunk/history/security.html Changeset: Modified: trunk/history/security.html === --- trunk/history/security.html 2007-05-25 15:39:05 UTC (rev 1116) +++ trunk/history/security.html 2007-05-25 17:44:55 UTC (rev 1117) @@ -31,7 +31,7 @@ /tr td14 May 2007/td -tda href=/samba/ftp/patches/security/samba-3.0.24-CVE-2007-2446.patchpatch for Samba 3.0.24/a/td +tda href=/samba/ftp/patches/security/samba-3.0.24-CVE-2007-2446_v2.patchpatch for Samba 3.0.24/a/td tdMultiple Heap Overflows Allow Remote Code Execution/td tdSamba 3.0.0 - 3.0.25rc3/td tda href=http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2446;CVE-2007-2446/a/td @@ -39,7 +39,7 @@ /tr td14 May 2007/td -tda href=/samba/ftp/patches/security/samba-3.0.24-CVE-2007-2444.patchpatch for Samba 3.0.24/a/td +tda href=/samba/ftp/patches/security/samba-3.0.24-CVE-2007-2444_v2.patchpatch for Samba 3.0.24/a/td tdLocal SID/Name translation bug can result in user privilege elevation/td tdSamba 3.0.23d - 3.0.25pre2/td tda href=http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2444;CVE-2007-2444/a/td
svn commit: samba r23147 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_25/source/libads SAMBA_3_0_26/source/libads
Author: jra Date: 2007-05-25 22:04:03 + (Fri, 25 May 2007) New Revision: 23147 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23147 Log: Patch #4566 from jacob berkman [EMAIL PROTECTED]. Pass password data to krb5_prompter. Jeremy. Modified: branches/SAMBA_3_0/source/libads/kerberos.c branches/SAMBA_3_0_25/source/libads/kerberos.c branches/SAMBA_3_0_26/source/libads/kerberos.c Changeset: Modified: branches/SAMBA_3_0/source/libads/kerberos.c === --- branches/SAMBA_3_0/source/libads/kerberos.c 2007-05-25 13:30:49 UTC (rev 23146) +++ branches/SAMBA_3_0/source/libads/kerberos.c 2007-05-25 22:04:03 UTC (rev 23147) @@ -248,7 +248,8 @@ } if ((code = krb5_get_init_creds_password(ctx, my_creds, me, CONST_DISCARD(char *,password), -kerb_prompter, NULL, 0, NULL, opt))) { +kerb_prompter, CONST_DISCARD(char *,password), +0, NULL, opt))) { goto out; } Modified: branches/SAMBA_3_0_25/source/libads/kerberos.c === --- branches/SAMBA_3_0_25/source/libads/kerberos.c 2007-05-25 13:30:49 UTC (rev 23146) +++ branches/SAMBA_3_0_25/source/libads/kerberos.c 2007-05-25 22:04:03 UTC (rev 23147) @@ -138,7 +138,8 @@ } if ((code = krb5_get_init_creds_password(ctx, my_creds, me, CONST_DISCARD(char *,password), -kerb_prompter, NULL, 0, NULL, opt))) +kerb_prompter, CONST_DISCARD(char *,password), +0, NULL, opt))) { smb_krb5_get_init_creds_opt_free(ctx, opt); smb_krb5_free_addresses(ctx, addr); Modified: branches/SAMBA_3_0_26/source/libads/kerberos.c === --- branches/SAMBA_3_0_26/source/libads/kerberos.c 2007-05-25 13:30:49 UTC (rev 23146) +++ branches/SAMBA_3_0_26/source/libads/kerberos.c 2007-05-25 22:04:03 UTC (rev 23147) @@ -248,7 +248,8 @@ } if ((code = krb5_get_init_creds_password(ctx, my_creds, me, CONST_DISCARD(char *,password), -kerb_prompter, NULL, 0, NULL, opt))) { +kerb_prompter, CONST_DISCARD(char *,password), +0, NULL, opt))) { goto out; }
svn commit: samba r23148 - in branches: SAMBA_3_0/source/libsmb SAMBA_3_0_25/source/libsmb SAMBA_3_0_26/source/libsmb
Author: jra Date: 2007-05-25 23:50:35 + (Fri, 25 May 2007) New Revision: 23148 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23148 Log: Fix old old bug in cli_smbwrite() (not incrementing data being sent). Patch from [EMAIL PROTECTED] Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/clireadwrite.c branches/SAMBA_3_0_25/source/libsmb/clireadwrite.c branches/SAMBA_3_0_26/source/libsmb/clireadwrite.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/clireadwrite.c === --- branches/SAMBA_3_0/source/libsmb/clireadwrite.c 2007-05-25 22:04:03 UTC (rev 23147) +++ branches/SAMBA_3_0/source/libsmb/clireadwrite.c 2007-05-25 23:50:35 UTC (rev 23148) @@ -443,7 +443,7 @@ p = smb_buf(cli-outbuf); *p++ = 1; SSVAL(p, 0, size); p += 2; - memcpy(p, buf, size); p += size; + memcpy(p, buf + total, size); p += size; cli_setup_bcc(cli, p); Modified: branches/SAMBA_3_0_25/source/libsmb/clireadwrite.c === --- branches/SAMBA_3_0_25/source/libsmb/clireadwrite.c 2007-05-25 22:04:03 UTC (rev 23147) +++ branches/SAMBA_3_0_25/source/libsmb/clireadwrite.c 2007-05-25 23:50:35 UTC (rev 23148) @@ -413,7 +413,7 @@ p = smb_buf(cli-outbuf); *p++ = 1; SSVAL(p, 0, size); p += 2; - memcpy(p, buf, size); p += size; + memcpy(p, buf + total, size); p += size; cli_setup_bcc(cli, p); Modified: branches/SAMBA_3_0_26/source/libsmb/clireadwrite.c === --- branches/SAMBA_3_0_26/source/libsmb/clireadwrite.c 2007-05-25 22:04:03 UTC (rev 23147) +++ branches/SAMBA_3_0_26/source/libsmb/clireadwrite.c 2007-05-25 23:50:35 UTC (rev 23148) @@ -441,7 +441,7 @@ p = smb_buf(cli-outbuf); *p++ = 1; SSVAL(p, 0, size); p += 2; - memcpy(p, buf, size); p += size; + memcpy(p, buf + total, size); p += size; cli_setup_bcc(cli, p);
Build status as of Sat May 26 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-05-25 00:00:59.0 + +++ /home/build/master/cache/broken_results.txt 2007-05-26 00:02:37.0 + @@ -1,4 +1,4 @@ -Build status as of Fri May 25 00:00:02 2007 +Build status as of Sat May 26 00:00:02 2007 Build counts: Tree Total Broken Panic @@ -10,16 +10,16 @@ ldb 35 9 0 libreplace 34 13 0 lorikeet-heimdal 29 17 0 -pidl 18 3 0 -ppp 14 0 0 +pidl 17 3 0 +ppp 13 0 0 python 0 0 0 rsync36 13 0 samba0 0 0 samba-docs 0 0 0 -samba-gtk2 2 0 -samba4 33 24 2 -samba_3_036 19 0 -smb-build33 33 0 -talloc 36 4 0 +samba-gtk3 2 0 +samba4 33 24 4 +samba_3_036 29 0 +smb-build33 32 0 +talloc 35 5 0 tdb 35 5 0
svn commit: samba r23149 - in branches/SAMBA_4_0/source/winbind: .
Author: abartlet Date: 2007-05-26 00:25:22 + (Sat, 26 May 2007) New Revision: 23149 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23149 Log: Fix up the trusted domain lookup code to use the new structures. Andrew Bartlett Modified: branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c branches/SAMBA_4_0/source/winbind/wb_init_domain.c Changeset: Modified: branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c === --- branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c 2007-05-25 23:50:35 UTC (rev 23148) +++ branches/SAMBA_4_0/source/winbind/wb_dom_info_trusted.c 2007-05-26 00:25:22 UTC (rev 23149) @@ -27,6 +27,7 @@ #include winbind/wb_server.h #include smbd/service_task.h #include librpc/gen_ndr/ndr_netlogon_c.h +#include libcli/libcli.h struct trusted_dom_info_state { struct composite_context *ctx; @@ -55,12 +56,6 @@ result = composite_create(mem_ctx, service-task-event_ctx); if (result == NULL) goto failed; -composite_error(result, NT_STATUS_FOOBAR); -return result; -failed: -return NULL; -} -#if 0 state = talloc(result, struct trusted_dom_info_state); if (state == NULL) goto failed; state-ctx = result; @@ -101,14 +96,14 @@ state-d.in.server_unc = talloc_asprintf(state, %s, - state-my_domain-info-dc_name); + dcerpc_server_name(state-my_domain-netlogon_pipe)); if (composite_nomem(state-d.in.server_unc, state-ctx)) return; state-d.in.domain_name = state-info-name; state-d.in.domain_guid = NULL; state-d.in.site_guid = NULL; - state-d.in.flags = 0x4000; + state-d.in.flags = DS_RETURN_DNS_NAME; req = dcerpc_netr_DsRGetDCName_send(state-my_domain-netlogon_pipe, state, state-d); @@ -142,16 +137,17 @@ } /* Hey, that was easy! */ - - state-info-dc_name = talloc_steal(state-info, + state-info-num_dcs = 1; + state-info-dcs = talloc(state-info, struct nbt_dc_name); + state-info-dcs[0].name = talloc_steal(state-info, state-d.out.info-dc_unc); - if (*state-info-dc_name == '\\') state-info-dc_name++; - if (*state-info-dc_name == '\\') state-info-dc_name++; + if (*state-info-dcs[0].name == '\\') state-info-dcs[0].name++; + if (*state-info-dcs[0].name == '\\') state-info-dcs[0].name++; - state-info-dc_address = talloc_steal(state-info, + state-info-dcs[0].address = talloc_steal(state-info, state-d.out.info-dc_address); - if (*state-info-dc_address == '\\') state-info-dc_address++; - if (*state-info-dc_address == '\\') state-info-dc_address++; + if (*state-info-dcs[0].address == '\\') state-info-dcs[0].address++; + if (*state-info-dcs[0].address == '\\') state-info-dcs[0].address++; state-info-dns_name = talloc_steal(state-info, state-d.out.info-domain_name); @@ -187,13 +183,15 @@ state-ctx-status = werror_to_ntstatus(state-g.out.result); if (!composite_is_ok(state-ctx)) return; - state-info-dc_name = talloc_steal(state-info, + /* Hey, that was easy! */ + state-info-num_dcs = 1; + state-info-dcs = talloc(state-info, struct nbt_dc_name); + state-info-dcs[0].name = talloc_steal(state-info, state-g.out.dcname); - - if (*state-info-dc_name == '\\') state-info-dc_name++; - if (*state-info-dc_name == '\\') state-info-dc_name++; + if (*state-info-dcs[0].name == '\\') state-info-dcs[0].name++; + if (*state-info-dcs[0].name == '\\') state-info-dcs[0].name++; - make_nbt_name(name, state-info-dc_name, 0x20); + make_nbt_name(name, state-info-dcs[0].name, 0x20); ctx = resolve_name_send(name, state-service-task-event_ctx, lp_name_resolve_order()); @@ -208,12 +206,11 @@ struct trusted_dom_info_state); state-ctx-status = resolve_name_recv(ctx, state-info, - state-info-dc_address); + state-info-dcs[0].address); if (!composite_is_ok(state-ctx)) return; composite_done(state-ctx); } -#endif NTSTATUS wb_trusted_dom_info_recv(struct composite_context *ctx, TALLOC_CTX *mem_ctx, Modified: branches/SAMBA_4_0/source/winbind/wb_init_domain.c === --- branches/SAMBA_4_0/source/winbind/wb_init_domain.c 2007-05-25 23:50:35 UTC (rev 23148) +++
svn commit: samba r23150 - in branches: SAMBA_3_0/source/smbd SAMBA_3_0_25/source/smbd SAMBA_3_0_26/source/smbd
Author: jra Date: 2007-05-26 01:19:51 + (Sat, 26 May 2007) New Revision: 23150 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23150 Log: Fix Samba3 in the build farm again. In the case where the file was being created and we go into the race condition check, we were testing for compatible open modes, but were not breaking oplocks in the same way as if the file existed. This meant that we weren't going into the code path that sets fsp-oplock = FAKE_LEVEL_II_OPLOCK if the client didn't ask for an oplock on file create. We need to do this as internally it's what Windows does. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/open.c branches/SAMBA_3_0_25/source/smbd/open.c branches/SAMBA_3_0_26/source/smbd/open.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/open.c === --- branches/SAMBA_3_0/source/smbd/open.c 2007-05-26 00:25:22 UTC (rev 23149) +++ branches/SAMBA_3_0/source/smbd/open.c 2007-05-26 01:19:51 UTC (rev 23150) @@ -1650,6 +1650,15 @@ return NT_STATUS_SHARING_VIOLATION; } + /* First pass - send break only on batch oplocks. */ + if (delay_for_oplocks(lck, fsp, 1, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + status = open_mode_check(conn, fname, lck, access_mask, share_access, create_options, file_existed); @@ -1677,6 +1686,14 @@ return status; } + if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + /* * We exit this block with the share entry *locked*. */ Modified: branches/SAMBA_3_0_25/source/smbd/open.c === --- branches/SAMBA_3_0_25/source/smbd/open.c2007-05-26 00:25:22 UTC (rev 23149) +++ branches/SAMBA_3_0_25/source/smbd/open.c2007-05-26 01:19:51 UTC (rev 23150) @@ -1652,6 +1652,15 @@ return NT_STATUS_SHARING_VIOLATION; } + /* First pass - send break only on batch oplocks. */ + if (delay_for_oplocks(lck, fsp, 1, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + status = open_mode_check(conn, fname, lck, access_mask, share_access, create_options, file_existed); @@ -1679,6 +1688,14 @@ return status; } + if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + /* * We exit this block with the share entry *locked*. */ Modified: branches/SAMBA_3_0_26/source/smbd/open.c === --- branches/SAMBA_3_0_26/source/smbd/open.c2007-05-26 00:25:22 UTC (rev 23149) +++ branches/SAMBA_3_0_26/source/smbd/open.c2007-05-26 01:19:51 UTC (rev 23150) @@ -1654,6 +1654,15 @@ return NT_STATUS_SHARING_VIOLATION; } + /* First pass - send break only on batch oplocks. */ + if (delay_for_oplocks(lck, fsp, 1, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + status = open_mode_check(conn, fname, lck, access_mask, share_access, create_options, file_existed); @@ -1681,6 +1690,14 @@ return status; } + if (delay_for_oplocks(lck, fsp, 2, oplock_request)) {
svn commit: samba r23151 - in branches: SAMBA_3_0/source/smbd SAMBA_3_0_25/source/smbd SAMBA_3_0_26/source/smbd
Author: jra Date: 2007-05-26 01:26:09 + (Sat, 26 May 2007) New Revision: 23151 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23151 Log: Re-arrange the logic so it looks identical to the file existed case above. This has no functional change but is easier to see that it's doing the same thing. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/open.c branches/SAMBA_3_0_25/source/smbd/open.c branches/SAMBA_3_0_26/source/smbd/open.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/open.c === --- branches/SAMBA_3_0/source/smbd/open.c 2007-05-26 01:19:51 UTC (rev 23150) +++ branches/SAMBA_3_0/source/smbd/open.c 2007-05-26 01:26:09 UTC (rev 23151) @@ -1663,6 +1663,20 @@ access_mask, share_access, create_options, file_existed); + if (NT_STATUS_IS_OK(status)) { + /* We might be going to allow this open. Check oplock +* status again. */ + /* Second pass - send break for both batch or +* exclusive oplocks. */ + if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + } + if (!NT_STATUS_IS_OK(status)) { struct deferred_open_record state; @@ -1686,14 +1700,6 @@ return status; } - if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { - schedule_defer_open(lck, request_time); - TALLOC_FREE(lck); - fd_close(conn, fsp); - file_free(fsp); - return NT_STATUS_SHARING_VIOLATION; - } - /* * We exit this block with the share entry *locked*. */ Modified: branches/SAMBA_3_0_25/source/smbd/open.c === --- branches/SAMBA_3_0_25/source/smbd/open.c2007-05-26 01:19:51 UTC (rev 23150) +++ branches/SAMBA_3_0_25/source/smbd/open.c2007-05-26 01:26:09 UTC (rev 23151) @@ -1665,6 +1665,20 @@ access_mask, share_access, create_options, file_existed); + if (NT_STATUS_IS_OK(status)) { + /* We might be going to allow this open. Check oplock +* status again. */ + /* Second pass - send break for both batch or +* exclusive oplocks. */ + if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { + schedule_defer_open(lck, request_time); + TALLOC_FREE(lck); + fd_close(conn, fsp); + file_free(fsp); + return NT_STATUS_SHARING_VIOLATION; + } + } + if (!NT_STATUS_IS_OK(status)) { struct deferred_open_record state; @@ -1688,14 +1702,6 @@ return status; } - if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { - schedule_defer_open(lck, request_time); - TALLOC_FREE(lck); - fd_close(conn, fsp); - file_free(fsp); - return NT_STATUS_SHARING_VIOLATION; - } - /* * We exit this block with the share entry *locked*. */ Modified: branches/SAMBA_3_0_26/source/smbd/open.c === --- branches/SAMBA_3_0_26/source/smbd/open.c2007-05-26 01:19:51 UTC (rev 23150) +++ branches/SAMBA_3_0_26/source/smbd/open.c2007-05-26 01:26:09 UTC (rev 23151) @@ -1667,6 +1667,20 @@ access_mask, share_access, create_options, file_existed); + if (NT_STATUS_IS_OK(status)) { + /* We might be going to allow this open. Check oplock +* status again. */ + /* Second pass - send break for both batch or +* exclusive oplocks. */ + if (delay_for_oplocks(lck, fsp, 2, oplock_request)) { + schedule_defer_open(lck, request_time); +
svn commit: samba r23152 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2007-05-26 03:24:08 + (Sat, 26 May 2007) New Revision: 23152 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=23152 Log: fixed some async retry issues in openbench Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c === --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-26 01:26:09 UTC (rev 23151) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-26 03:24:08 UTC (rev 23152) @@ -39,15 +39,13 @@ static int open_retries; static char **fnames; static int num_connected; +static struct timed_event *report_te; -enum open_stage {OPEN_INITIAL, OPEN_OPEN, OPEN_CLOSE}; - struct benchopen_state { TALLOC_CTX *mem_ctx; struct event_context *ev; struct smbcli_state *cli; struct smbcli_tree *tree; - enum open_stage stage; int client_num; int old_fnum; int fnum; @@ -68,7 +66,6 @@ }; static void next_open(struct benchopen_state *state); -static void next_operation(struct benchopen_state *state); static void reopen_connection(struct event_context *ev, struct timed_event *te, struct timeval t, void *private_data); @@ -97,9 +94,9 @@ DEBUG(0,(reconnect to %s finished (%u connected)\n, state-dest_host, num_connected)); - state-stage = OPEN_INITIAL; state-fnum = -1; - next_operation(state); + state-old_fnum = -1; + next_open(state); } @@ -152,7 +149,9 @@ { state-count++; - state-file_num = (state-file_num+1) % (nprocs+1); + state-file_num = (state-file_num+1) % (3*nprocs); + + DEBUG(2,([%d] opening %u\n, state-client_num, state-file_num)); state-open_parms.ntcreatex.level = RAW_OPEN_NTCREATEX; state-open_parms.ntcreatex.in.flags = 0; state-open_parms.ntcreatex.in.root_fid = 0; @@ -174,6 +173,10 @@ static void next_close(struct benchopen_state *state) { + DEBUG(2,([%d] closing %d\n, state-client_num, state-old_fnum)); + if (state-old_fnum == -1) { + return; + } state-close_parms.close.level = RAW_CLOSE_CLOSE; state-close_parms.close.in.file.fnum = state-old_fnum; state-close_parms.close.in.write_time = 0; @@ -181,6 +184,7 @@ state-req_close = smb_raw_close_send(state-tree, state-close_parms); state-req_close-async.fn = close_completed; state-req_close-async.private = state; + state-old_fnum = -1; } /* @@ -192,8 +196,6 @@ TALLOC_CTX *tmp_ctx = talloc_new(state-mem_ctx); NTSTATUS status; - state-old_fnum = state-fnum; - status = smb_raw_open_recv(req, tmp_ctx, state-open_parms); talloc_free(tmp_ctx); @@ -215,6 +217,7 @@ } if (NT_STATUS_EQUAL(status, NT_STATUS_SHARING_VIOLATION)) { + DEBUG(2,([%d] retrying open\n, state-client_num)); open_retries++; state-req_open = smb_raw_open_send(state-tree, state-open_parms); state-req_open-async.fn = open_completed; @@ -228,9 +231,17 @@ return; } + state-old_fnum = state-fnum; state-fnum = state-open_parms.ntcreatex.out.file.fnum; - next_operation(state); + DEBUG(2,([%d] open completed: fnum=%d old_fnum=%d\n, +state-client_num, state-fnum, state-old_fnum)); + + if (state-old_fnum != -1) { + next_close(state); + } + + next_open(state); } /* @@ -263,27 +274,10 @@ return; } - next_operation(state); + DEBUG(2,([%d] close completed: fnum=%d old_fnum=%d\n, +state-client_num, state-fnum, state-old_fnum)); } -static void next_operation(struct benchopen_state *state) -{ - switch (state-stage) { - case OPEN_INITIAL: - next_open(state); - state-stage = OPEN_OPEN; - break; - case OPEN_OPEN: - next_open(state); - state-stage = OPEN_CLOSE; - break; - case OPEN_CLOSE: - next_close(state); - state-stage = OPEN_OPEN; - break; - } -} - static void echo_completion(struct smbcli_request *req) { struct benchopen_state *state = talloc_get_type(req-async.private, @@ -312,7 +306,8 @@ } printf(\r); fflush(stdout); - event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); + report_te = event_add_timed(ev, state, timeval_current_ofs(1, 0), + report_rate, state); /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ @@ -346,7 +341,7 @@ struct event_context *ev =