Re: [Samba] samba with ldap PDC cannot join my windows to domain?
Alberto Moreno wrote: Hi people. I have been working with samba+ldap = PDC in my test netwwork. I had follow the good tutorial: Samba By Example, chapter 5, I had done all the test the book say and no issues. I have 2 issues: 1; I cannot see my domain at my windows browser. 2; I cannot add my windows xp pro to my domain. I have been trying to see if I could find the solution but nothing yet, there is the reason I send this email. My server is Centos 5.3 latest one all the packages are the current from centos. Ldap looks that is working, because all my test from the book pass, and the same with samba. Went I try to add one Winbox to the domain I receive this: The following error occurred attempting to join the domain MyDomain The network path as not found My smb.conf is this: ... wins support = Yes The clients will try to locate a DC for your domain via wins and broadcast. If neither of these works, it will fail. Seems like you configured the samba box to be a WINS server. Did you add its IP address under WINS in the TCP/IP settings on the client machines? -- Deyan Stoykov, dstoy...@ru.acad.bg University of Rousse, BG-7017 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] xp problem with samba pdc
Hi all, I am new to this list, but have been struggling with the following problem for a while: I have samba as PDC working fine except that on xp sp2 it is not possible to connect to any of the printers installed on samba. It says something like the policy settings on this machine prevents connecting to this printer. However I have not set any policy settings on that xp box. How can fix this? Many thanks, Csaba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Problem: cannot rename files
Hi I'm having quite strange problem, maybe someone could help me solve it. From a WinXP client I can create files and directories, can remove them but cannot rename them. Cannot rename New Folder: Access is denied. Using smbclient as the same Windows user: no problems. The share config is very simple: [test] path = /export/samba/test writable = yes public = no browseable = yes The underlying filesystem is ZFS on Solaris10. The directory /export/samba/test is owned by root, the test user has following rights: # ls -lVda /export/samba/test drwxr-xr-x+ 3 root root 3 Aug 12 13:39 . user:test:rwxpdD-A-W-Co-:--:allow owner@:--:--:deny owner@:rwxp---A-W-Co-:--:allow group@:-w-p--:--:deny group@:r-x---:--:allow everyone@:-w-p---A-W-Co-:--:deny everyone@:r-x---a-R-c--s:--:allow Needless to say, the test user can on Solaris do whatever he wants in this directory. With this directory owned by user test rename works of course. Solaris 10 10/08, Samba 3.0.33 as delivered with it. Any help would be highly appreciated. Thanks for your time. Regards, Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba CP850 related errors.
Hi, I am trying to run Samba on my linux machine. I am getting the following errors when I execute the smbd daemon. The daemon aborts after some time. I see the following in the log file: init_iconv: Conversion from CP850 to UTF-16LE not supported [2009/08/11 13:44:33, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to UTF-16LE [2009/08/11 13:44:33, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from CP850 to UTF-8 not supported [2009/08/11 13:44:33, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2009/08/11 13:44:33, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from CP850 to ANSI_X3.4-1968 not supported [2009/08/11 13:44:33, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2009/08/11 13:44:33, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from CP850 to UTF8 not supported [2009/08/11 13:44:33, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2009/08/11 13:44:33, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from CP850 to UTF-16BE not supported [2009/08/11 13:44:33, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to UTF-16BE [2009/08/11 13:44:33, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from CP850 to ASCII not supported [2009/08/11 13:44:33, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII -- View this message in context: http://www.nabble.com/Samba-CP850-related-errors.-tp24925700p24925700.html 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/options/samba
[Samba] This needs to be easier
from Ubuntu machine to HP printer on a Windows network configure Samba to use the printer in Ubuntu George S Campbell _ Get free photo software from Windows Live http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] xp problem with samba pdc
Hi Csaba, You need to set the Point and Print functionality for your domain. If it remains unset Windows interprets that as not allowed. See this Microsoft KB article for more details: http://support.microsoft.com/kb/319939/ regards David Csaba Dobo wrote: Hi all, I am new to this list, but have been struggling with the following problem for a while: I have samba as PDC working fine except that on xp sp2 it is not possible to connect to any of the printers installed on samba. It says something like the policy settings on this machine prevents connecting to this printer. However I have not set any policy settings on that xp box. How can fix this? Many thanks, Csaba -- | Judicial Commission of NSW | Ph: +61 2 9299 4421 | Fax: +61 2 9290 3194 | This Message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender and not necessarily the views of the Judicial Commission of NSW. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba login errors of Vista PC to Samba DC
I am very new to Ubuntu/Linux/Samb and have very simple goals: Set up an Ubuntu Server as a Domain Controller to provide single signon for students using study center PC's. All of the PC's are Windows Vista Business. I have successfully added a PC to the domain. I have successfully created a network user and logged on to the PC. However, the Samba log is throwing errors and I have a login script I would like to run that never runs. My smb.conf: [global] netbios name = PIUSERVER1 workgroup = PIUDOMAIN server string = %h server (Samba, Ubuntu) dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d encrypt passwords = true security=user username map = /usr/bin/smbpasswd 'logon script = /scripts/LoginScript.bat passdb backend = tdbsam 'passdb backend = ldapsam:ldap://HTR.piudomain.com obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . 'pam password change = yes map to guest = bad user domain master = yes domain logins = yes local master = yes wins support = yes preferred master = yes os level = 255 [netlogon] 'path = /home/%u guest ok = no logon path = logon drive = logon home = logon script = /scripts/LoginScript.bat Misc I have no idea if the above smb.conf is good or not. The only information I have found is some from a book which has a chapter on setting up a Domain Controller. The book suggested the following parameter but it causes logon issues with it in the smb.conf: passdb backend = ldapsam:ldap://HTR.mydomain.com (and I did put my domain name in). When I log in my user, this shows up in the Samba log. [2009/08/12 14:29:12, 0] lib/util_str.c:safe_strcpy_fn(708) ERROR: string overflow by 1 (256 - 255) in safe_strcpy [ÿø3×ÿø3×ÿø3×ÿÖ3×ÿÀ3×ÿø3×ÿø3×ÿE[×ÿ^W×ÿ|W×ÿW×ÿžW×ÿÖ] [2009/08/12 14:29:12, 0] param/loadparm.c:process_usershare_file(8322) process_usershare_file: stat of /var/lib/samba/usershares/mcarruthers failed. Permission denied [2009/08/12 14:29:12, 0] param/loadparm.c:process_usershare_file(8322) process_usershare_file: stat of /var/lib/samba/usershares/mcarruthers failed. No such file or directory [2009/08/12 14:29:12, 0] smbd/service.c:make_connection(1284) sc15 (192.168.1.39) couldn't find service mcarruthers I have the script in /scripts/LoginScript.bat on my utuntu server. I is a case where I want to run the same script for every user. Please assume I know nothing. My background is all on the Windows side but I am trying to set up this Linux Server to be our Domain Controller instead of using Microsoft products. I know nothing about Unix, linux, and command lines give me a headache. I would appreciate any help you can give me but assume I know nothing. -- View this message in context: http://www.nabble.com/Samba-login-errors-of-Vista-PC-to-Samba-DC-tp24930198p24930198.html 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/options/samba
[Samba] Winbind core dump issue
Greetings We've moved from using NIS/SFU to using Samba/Winbind connecting to our Windows 2003 AD domain with an Openldap idmap backend on our Redhat 4/5 servers. We managed to get this mostly working in that users can authenticate using their domain accounts (thank you Samba team!!!). We do however keep getting the same error in the log.winbindd-idmap log: winbindd: ../../../libraries/libldap/getentry.c:48: ldap_next_entry: Assertion `entry != ((void *)0)' failed. [2009/08/11 12:00:12, 0] lib/fault.c:fault_report(40) === [2009/08/11 12:00:12, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 6 in pid 25614 (3.2.13) Please read the Trouble-Shooting section of the Samba3-HOWTO [2009/08/11 12:00:12, 0] lib/fault.c:fault_report(43) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2009/08/11 12:00:12, 0] lib/fault.c:fault_report(44) === [2009/08/11 12:00:12, 0] lib/util.c:smb_panic(1670) PANIC (pid 25614): internal error [2009/08/11 12:00:12, 0] lib/util.c:log_stack_trace(1774) BACKTRACE: 28 stack frames: #0 winbindd(log_stack_trace+0x2d) [0x891b0c] #1 winbindd(smb_panic+0x8e) [0x89195e] #2 winbindd [0x87b660] #3 winbindd [0x87b671] #4 /lib/tls/libc.so.6 [0x377918] #5 /lib/tls/libc.so.6(abort+0xe9) [0x379289] #6 /lib/tls/libc.so.6(__assert_fail+0x101) [0x370da1] #7 /usr/lib/libldap-2.2.so.7(ldap_next_entry+0x6b) [0x227c3b] #8 /usr/lib/samba/idmap/ldap.so [0x2a36e3] #9 winbindd [0xb2cec0] #10 winbindd(idmap_unixids_to_sids+0x41a) [0xb2dbd3] #11 winbindd(idmap_uid_to_sid+0xb9) [0xb30059] #12 winbindd(winbindd_dual_uid2sid+0xb0) [0x8031c6] #13 winbindd [0x7f842f] #14 winbindd [0x7faacf] #15 winbindd [0x7f7ff7] #16 winbindd(async_request+0x20f) [0x7f79c1] #17 winbindd(do_async+0x13c) [0x7fad81] #18 winbindd(winbindd_uid2sid_async+0x77) [0x80310c] #19 winbindd(winbindd_getpwuid+0xb1) [0x7c9a91] #20 winbindd [0x7c60d9] #21 winbindd [0x7c6c89] #22 winbindd [0x7c6ad4] #23 winbindd [0x7c6407] #24 winbindd [0x7c7383] #25 winbindd(main+0xc7e) [0x7c82e2] #26 /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x364df3] #27 winbindd [0x7c56b1] [2009/08/11 12:00:12, 0] lib/fault.c:dump_core(201) dumping core in /var/log/samba/cores/winbindd Winbind seems to continue running but users get ID errors like 'cannot find name for user ID #' and the machine is basically unusable for a minute or so before it goes away. With the error referring to ldap, I'm not sure if this is a problem with our ldap database or if it's a problem with winbind. Initially we just used the latest versions of samba (Version 3.0.9-1.3E.13.2) from the RedHat repos but we found we were having problems with trusted domains that we didn't have access to nor wanted to authenticate with. We tried the 'allow trusted domains = no' and 'winbind: ignore domains = trustdom1 trustdom2' options in smb.conf but I think these options were not supported in this version. We then installed the 3.2.12 rpms from ftp.sernet.de which fixed that issue and got us to this stage. Here is some information about our setup: smbd winbindd: Version 3.2.13 smb.conf: [global] workgroup = domain realm = krb realm server string = %h Samba Server Version %v security = ADS password server = server1 server2 local master = no domain master = no winbind cache time = 7200 max log size = 50 ldap admin dn = cn=manager,dc=example,dc=test,dc=com ldap idmap suffix = ou=idmap ldap suffix = dc=example,dc=test,dc=com idmap backend = ldap:ldap://10.0.1.16 idmap uid = 500-1 idmap gid = 100-1000 template homedir = /home/domain/%U template shell = /bin/bash winbind separator = + winbind use default domain = Yes winbind enum users = yes winbind enum groups = yes allow trusted domains = no #winbind nested groups = yes winbind: ignore domains = trustdom1 trustdom2 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 cups options = raw nsswitch.conf: passwd: files winbind shadow: files group: files winbind /etc/pam.d/system-auth: auth sufficient pam_env.so auth sufficient pam_unix.so auth sufficient pam_winbind.so try_first_pass accountsufficient pam_unix.so accountsufficient pam_winbind.so sessionsufficient pam_unix.so sessionsufficient pam_winbind.so password sufficient pam_unix.so password sufficient pam_winbind.so try_first_pass I really have no idea where to even start with this error so would really appreciate any help you can give. regards Paul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba
Sorry Lukas I dont really understand. I know in the directory /etc/skel the three files I mentioned in my earlier post are in there. I have taken a look at the contents too, but dont know how (if meant to) change the files so that the profiles are stored elsewhere and not cluttering up the shared directoryif that makes sense, I'd rather put these files in the users personal home directories, if anywhere... -- View this message in context: http://www.nabble.com/Samba-tp24823805p24919965.html 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/options/samba
[Samba] [Announce] Samba 3.2.14 Maintenance Release Available
I think there is a world market for maybe five computers. Thomas Watson Release Announcements = This is the last maintenance release of the Samba 3.2 series. Please note that this is the last bugfix release of the Samba 3.2 series! There will security releases on demand only. Please see http://wiki.samba.org/index.php/Samba3_Release_Planning for information on current releases. Major enhancements in 3.2.14 include: o Fix SAMR access checks (e.g. bugs #6089 and #6112). o Fix 'force user' (bug #6291). o Improve Win7 support (bug #6099). o Fix posix ACLs when setting an ACL without explicit ACE for the owner (bug #2346). ## Changes ### Changes since 3.2.13 o Michael Adam ob...@samba.org * BUG 6387: Fix Winbind crash when multiple IDmappings exist in the LDAP directory. * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache(). * BUG 6628: 'smbpasswd -a' uses algorithmic rid base with 'passdb backend = tdbsam'. * Prevent creation of keys containing the '/' character. o Jeremy Allison j...@samba.org * BUG 6089: Fix SAMR access checks. * BUG 6112: Fix SAMR access checks. * BUG 6279: Fix Winbind crash. * BUG 6291: Fix 'force user'. * BUG 6099: Try to fix domain join of Win7 Beta. * BUG 6386: Groupdb mapping fix. * BUG 6421: Fix POSIX read-only open on read-only shares. * BUG 6476: Fix more smbd-zombies in memory. * BUG 6488: acl_group_override() call in posix acls references an uninitialized variable. * BUG 6504: Fix SAMR server for Winbind access. * BUG 6520: Fix time stamps. * Fix join of Windows 7 RC to a Samba3 DC. * Fix bug in processing of open modes in POSIX open. o Günther Deschner g...@samba.org * BUG 6301: Fix samr_ConnectVersion enum which is 32bit not 16bit. * BUG 6340: Don't segfault when cleartext trustdom pwd could not be retrieved. * BUG 6372: Fix usermanager only displaying 1024 groups and aliases. * BUG 6465: Fix enum_aliasmem in ldb branch. * BUG 6484: Fix searching for users while adding them to groups via Windows usermanager. * Fix the negotiate flags. * Protect netlogon_creds_server_step() against NULL creds. o Björn Jacke b...@sernet.de * Also handle DirX return codes. o Stefan Metzmacher me...@samba.org * BUG 2346: Fix posix ACLs when setting an ACL without explicit ACE for the owner. * BUG 6526: Let parent_dirname() correctly return toplevel filenames. * BUG 6627: Raise the timeout for lsa_Lookup*() calls from 10 to 35 seconds. * Fix a crash bug if we timeout in net rpc trustdom list. * Add '--request-timeout' option to 'net'. o Volker Lendecke v...@samba.org * BUG 5798: Preserve CFLAGS info in configure. * BUG 6382: Case insensitive access to DFS links broken. * Fix a race condition in Winbind leading to a panic. * Add workaround for MS KB932762. o Jim McDonough j...@samba.org * BUG 6481: Don't require Modify property perms to unjoin. o Sébastien Prud'homme sebastien.prudho...@gmail.com * 5945: Fix out of memory error with Winbind idmap. o Simo Sorce sso...@redhat.com * BUG 6628: 'smbpasswd -a' uses algorithmic rid base with 'passdb backend = tdbsam'. * Avoid duplicate ACEs. * Fix profile ACLs in some corner cases. o Marc VanHeyningen marc.vanheynin...@isilon.com * Zero an uninitialized array. o Bo Yang boy...@samba.org * BUG 6560: Lookupname failed, cannot find domain when attempt to change password. Download Details The uncompressed tarballs and patch files have been signed using GnuPG (ID 6568B7EA). The source code can be downloaded from: http://download.samba.org/samba/ftp/ The release notes are available online at: http://www.samba.org/samba/ftp/history/samba-3.2.14.html Binary packages will be made available on a volunteer basis from http://download.samba.org/samba/ftp/Binary_Packages/ Our Code, Our Bugs, Our Responsibility. (https://bugzilla.samba.org/) --Enjoy The Samba Team pgpiDcCf6nZUT.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] This needs to be easier
Well, the last time I set it up, I was shocked how easy it was! (on Ubuntu 8.04 which is still running with two HP printers and 10 users). What problem did you have? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] RID idmap backend: difficulties looking up a user by its uid
Hi, I'm having a problem using the RID idmap backend with Winbind. Having configured NSS with the Winbind module, I can use getent passwd to look up a user by its username, but not by its uidnumber. However, if I first do a lookup using the username or run wbinfo on the user (specifying either the username or uid), and then try getent passwd with the uidnumber, I get the correct result. See here: debianrid:~# getent passwd 161907 debianrid:~# wbinfo --uid-info 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# getent passwd 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# Related smb.conf lines: idmap backend = rid idmap uid = 10-1000 idmap gid = 10-1000 winbind use default domain = yes winbind enum groups = yes winbind enum users = yes Version information: Version 3.3.7-SerNet-Debian From log.winbindd-idmap: [2009/08/12 10:13:58, 0] lib/module.c:do_smb_load_module(69) Module '/usr/lib/samba/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION [2009/08/12 10:13:58, 1] winbindd/idmap.c:idmap_alloc_init(580) could not find idmap alloc module rid Any ideas? Regards, Jakob -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Issues with CP 850
Samba does not start. Instead it goes in an infinite loop with the following messages in the log. What am I missing. I cross-compiled Samba code on my linux machine for linux kernel 2.6.x. init_iconv: Conversion from CP850 to UTF-16BE not supported [2009/08/11 14:32:24, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to UTF-16BE [2009/08/11 14:32:24, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from CP850 to ASCII not supported [2009/08/11 14:32:24, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2009/08/11 14:32:24, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from UTF8 to CP850 not supported [2009/08/11 14:32:24, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2009/08/11 14:32:24, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from UTF-16BE to CP850 not supported [2009/08/11 14:32:24, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from UTF-16BE to ASCII [2009/08/11 14:32:24, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from ASCII to CP850 not supported [2009/08/11 14:32:24, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2009/08/11 14:32:24, 0] lib/charcnv.c:158(init_iconv) init_iconv: Conversion from UTF-16LE to CP850 not supported [2009/08/11 14:32:24, 0] lib/charcnv.c:166(init_iconv) init_iconv: Attempting to replace with conversion from UTF-16LE to ASCII -- View this message in context: http://www.nabble.com/Issues-with-CP-850-tp24940186p24940186.html 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/options/samba
[Samba] Scaleability
Hi there, I am writing a proposal at the moment. I need some information for it please. How scaleable is Samba, i.e if i where to install Samba/LDAP, how hany controllers could i potentially have? TIA Paul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Vista Issues with samba
We have Samba setup for our shared drive. I have pasted the smb.conf file below. Everything is working well accept when we try and run an EXE file using Windows Vista. When we run an EXE file it first ask for UAC control then it pops up the username and password prompt. You must then type your username and password in again before it will run. I think the issues is that UAC is now running the application under Admin instead of the logged in user. So the first username and password that is cached is not seen by the admin user. Does anyone know of a work around for this? Smb.conf: [global] passdb backend = tdbsam security = user encrypt passwords = yes preferred master = Yes workgroup = Workgroup netbios name = Omni bind interfaces only = True interfaces = lo eth2 ;max disk size = 99 ;some programs (like PS7) can't deal with more than 1TB socket options = TCP_NODELAY server string = Omni ;smb ports = 139 debuglevel = 1 syslog = 0 log level = 2 log file = /var/log/samba/%U.log max log size = 61440 vfs objects = omnidrive recycle recycle:repository = RecycleBin/%U recycle:keeptree = Yes recycle:touch = No recycle:versions = Yes recycle:maxsize = 0 recycle:exclude = *.temp *.mp3 *.cat omnidrive:log = 2 omnidrive:com_log = 1 omnidrive:vscan = 1 omnidrive:versioningState = 1 omnidrive:versioningMaxFileSize = 0 omnidrive:versioningMaxRevSize = 7168 omnidrive:versioningMaxRevNum = 1000 omnidrive:versioningMinRevNum = 0 omnidrive:versioningfilesInclude = /*.doc/*.docx/*.xls/*.xlsx/*.txt/*.bmp/ omnidrive:versioningfilesExclude = /*.tmp/*.temp/*.exe/*.com/*.jarr/*.bat/.*/ full_audit:failure = none full_audit:success = mkdir rename unlink rmdir write open close full_audit:prefix = %u|%I|%m|%S full_audit:priority = NOTICE full_audit:facility = LOCAL6 ;dont descend = RecycleBin veto files = /.subversion/*.do/*.do/*.bar/*.cat/ client ntlmv2 auth = yes [netlogon] path = /var/lib/samba/netlogon read only = yes [homes] read only = yes browseable = no [share1] path = /share1 read only = no browseable = yes writable = yes admin users = clinton1 public = no create mask = 0770 directory mask = 0770 nt acl support = no ;acl map full control = no hide unreadable = yes store dos attributes = yes map archive = no map readonly = Permissions Clinton Mills Hitcents.com Tel: (270) 796-5063 ext 105 Fax: (270) 796-3195 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CTDB+GFS2+CMAN. clean_start=0 or clean_start=1?
On Tue, Aug 11, 2009 at 11:10 PM, Michael Adamob...@samba.org wrote: Btw, i thought OCFS2 is not ready to use with CTDB due to the lacks of some features. This was primary reason why I started with GFS. OCFS2 was lacking support of POSIX fcntl byte range locks (which are required to run ctdb) until recently. But this has changed! I have not tried it myself, but I think Jim McDonough (j...@samba.org, I have added him to Cc) might be able to give you some details (versions and such). OCFS2 supports posix fcntl byte range locks since 1.4, and I've been running ctdb on 1.4.1. -- Jim McDonough Samba Team SUSE labs jmcd at samba dot org jmcd at themcdonoughs dot org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CTDB+GFS2+CMAN. clean_start=0 or clean_start=1?
On Wed, Aug 12, 2009 at 7:17 PM, Jim McDonoughj...@samba.org wrote: OCFS2 supports posix fcntl byte range locks since 1.4, and I've been running ctdb on 1.4.1. Let me modify that statement a bit...it's on SLES11. I've been told that there is no oss.oracle.com release yet containing that code. -- Jim McDonough Samba Team SUSE labs jmcd at samba dot org jmcd at themcdonoughs dot org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RID idmap backend: difficulties looking up a user by its uid
I believe smb.conf line should be idmap backend = rid:DOMAIN=10-1000 Dale Jakob Ahlin wrote: Hi, I'm having a problem using the RID idmap backend with Winbind. Having configured NSS with the Winbind module, I can use getent passwd to look up a user by its username, but not by its uidnumber. However, if I first do a lookup using the username or run wbinfo on the user (specifying either the username or uid), and then try getent passwd with the uidnumber, I get the correct result. See here: debianrid:~# getent passwd 161907 debianrid:~# wbinfo --uid-info 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# getent passwd 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# Related smb.conf lines: idmap backend = rid idmap uid = 10-1000 idmap gid = 10-1000 winbind use default domain = yes winbind enum groups = yes winbind enum users = yes Version information: Version 3.3.7-SerNet-Debian From log.winbindd-idmap: [2009/08/12 10:13:58, 0] lib/module.c:do_smb_load_module(69) Module '/usr/lib/samba/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION [2009/08/12 10:13:58, 1] winbindd/idmap.c:idmap_alloc_init(580) could not find idmap alloc module rid Any ideas? Regards, Jakob -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CTDB+GFS2+CMAN. clean_start=0 or clean_start=1?
On Wed, Aug 12, 2009 at 7:28 PM, Jim McDonoughj...@samba.org wrote: On Wed, Aug 12, 2009 at 7:17 PM, Jim McDonoughj...@samba.org wrote: OCFS2 supports posix fcntl byte range locks since 1.4, and I've been running ctdb on 1.4.1. Let me modify that statement a bit...it's on SLES11. I've been told that there is no oss.oracle.com release yet containing that code. One additional piece: The SHA1 for the posix locking code commit is 53da4939f349d4edd283b043219221ca5b78e4d4 in mainline. -- Jim McDonough Samba Team SUSE labs jmcd at samba dot org jmcd at themcdonoughs dot org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] File Locking, Access - Inconsistencies
On Wed, Aug 12, 2009 at 11:01 AM, Ravi Channavajhalaravi.channavajh...@dciera.com wrote: On Wed, Aug 12, 2009 at 9:53 AM, Jeremy Allisonj...@samba.org wrote: On Wed, Aug 12, 2009 at 08:51:51AM +0530, ravi channavajhala wrote: Hi Jeremy, Why would the file name be an issue here? It is not just one file, several files are getting affected. I followed your earlier discussion on the issue way back in 2002, can you suggest something to try. Really, I will take whatever I can get. Firstly, let's keep the list CC:ed so we keep everyone up to date. I'm asking what file name the fcntl is blocked in, as I want to know if this is a Samba tdb, or a file the server is trying to access. The Samba server should never make a blocking fcntl lock call on a user data file, but will make such calls on tdb files. So please let me know what file the fcntl syscall is blocked in. Thanks, Jeremy. Sorry I must have not used reply to all. Anyway, here is how I trussed. I had the user open a file, and then capture the system calls made with truss. The fcntl appears blocking on a user file, but I might be incorrect because I didnt really see which file the file descriptor belonged to (the very first two lines of truss show fcntl, no other information). Either way, if this is blocking on tbd file what possible recourse I can apply? Thanks for your help. FWIW, this is what I see on Solaris 10 (Sun's stock Samba bundled with OS) # pstack 1968 1968: /usr/sfw/sbin/smbd -D ff049c64 fcntl(a, 23, ffbff750) ff0398c0 fcntl(a, 23, ffbff750, a, fee02a00, ff0c72b4) + 18 00272ec0 tdb_brlock (448180, 22dc, 2, 23, 0, 1) + 90 002731dc tdb_lock (448180, 88d, 2, 20, 18ec34, 401c98) + 17c 001ff048 (fffa7038, 43d960, 1d3d8, 453660, 9ea5, 453670) 001f8538 is_locked (43d960, feff, 0, 1000, 0, 0) + 1e8 000926a4 reply_read_and_X (495ca8, 4751f0, 3f, 43d960, 2, 0) + 2ec 000d4c64 (495ca8, 454da0, 4751f0, 3f, 2, 0) 000d4db8 (9400, 4751f0, 3f, 2, 9400, 32cf4c) 000d5060 (454da0, 4751f0, 0, 1, 401c98, 6c00) 000d634c smbd_process (fff58830, 6c7c, 401c98, 93a80, 20441, 17d) + 1e4 0032f028 main (0, 392800, 1, 40aacc, 40ca28, 0) + afc 0004dda8 _start (0, 0, 0, 0, 0, 0) + 108 # truss -v all -aef -p 1968 1968: *** SUID: ruid/euid/suid = 0 / 2110 / 2110 *** 1968: *** SGID: rgid/egid/sgid = 0 / 2110 / 2110 *** 1968: psargs: /usr/sfw/sbin/smbd -D 1968: fcntl(10, F_SETLKW64, 0xFFBFF750) (sleeping...) 1968: typ=F_WRLCK whence=SEEK_SET start=8924 len=1 sys=3 pid=0 Now on Solaris 9 (Compiled with gcc) #truss -aef -v all -p 3623 3623: *** SUID: ruid/euid/suid = 0 / 1598 / 1598 *** 3623: *** SGID: rgid/egid/sgid = 0 / 1598 / 1598 *** 3623: psargs: /usr/local/samba/sbin/smbd -D -d 3 -s /usr/local/samba/etc/smb.conf 3623: fcntl(25, F_GETLK64, 0xFFBFF100) (sleeping...) 3623: typ=F_RDLCK whence=SEEK_SET start=0 len=512 sys=0 pid=0 #pstack 3623 3623: /usr/local/samba/sbin/smbd -D -d 3 -s /usr/local/samba/etc/smb.conf fcntl(19, 21, ffbff100) #pflags 3623 3623: /usr/local/samba/sbin/smbd -D -d 3 -s /usr/local/samba/etc/smb.conf data model = _ILP32 flags = PR_ORPHAN /1: flags = PR_PCINVAL|PR_ASLEEP [ fcntl(0x19,0x21,0xffbff100) ] sigmask = 0x00011080,0x -- Ravi Channavajhala http://www.dciera.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] samba with ldap PDC cannot join my windows to domain?
Alberto, You will need a [netlogon] share. I used these tutorials for my setup, taking the best from both. I know they can work. I did skip the [profiles] share, as I didn't want roaming profiles. http://wiki.makethemove.net/index.php?title=LDAP-Samba https://help.ubuntu.com/community/OpenLDAP-SambaPDC-OrgInfo-Posix Compare these to what you've done; see if anything was missed. Dale Alberto Moreno wrote: Hi people. I have been working with samba+ldap = PDC in my test netwwork. I had follow the good tutorial: Samba By Example, chapter 5, I had done all the test the book say and no issues. I have 2 issues: 1; I cannot see my domain at my windows browser. 2; I cannot add my windows xp pro to my domain. I have been trying to see if I could find the solution but nothing yet, there is the reason I send this email. My server is Centos 5.3 latest one all the packages are the current from centos. Ldap looks that is working, because all my test from the book pass, and the same with samba. Went I try to add one Winbox to the domain I receive this: The following error occurred attempting to join the domain MyDomain The network path as not found My smb.conf is this: [global] dos charset = 850 unix charset = ISO8859-1 display charset = ISO8859-1 workgroup = RMAI netbios name = RMAIPDC server string = Samba Server on %L os level = 33 remote announce = 192.168.50.255 interfaces = eth0,lo bind interfaces only = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 allow hosts = 192.168.50.0/24 127.0.0.1 admin users = Manager @Domain Admins passdb backend = ldapsam:ldap://127.0.0.1 enable privileges = Yes username map = /etc/samba/smbusers log level = 6 syslog = 1 log file = /var/log/samba/%m.log max log size = 100 smb ports = 139 445 name resolve order = wins bcast hosts time server = No #printcap name = CUPS show add printer wizard = No add user script = /usr/sbin/smbldap-useradd -m %u delete user script = /usr/sbin/smbldap-userdel %u add group script = /usr/sbin/smbldap-groupadd -p %g delete group script = /usr/sbin/smbldap-groupdel %g add user to group script = /usr/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/sbin/smbldap-usermod -g %g %u add machine script = /usr/sbin/smbldap-useradd -w %u #logon script = scripts\logon.bat #logon path = \\%L\profiles\%U #logon drive = X: domain logons = Yes domain master = Yes preferred master = Yes wins support = Yes ##LDAP### ldap suffix = dc=rmai,dc=local ldap machine suffix = ou=Computers ldap user suffix = ou=People ldap group suffix = ou=Groups ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=rmai,dc=local idmap backend = ldap:ldap://127.0.0.1 idmap uid = 1-2 idmap gid = 1-2 # map acl inherit = Yes cups options = [homes] comment = RMAI Home Directories browseable = No writeable = Yes read only = No create mask = 0664 browseable = No valid users = %U [profiles] path = /home/samba/profiles read only = No store dos attributes = Yes create mask = 0600 directory mask = 0700 browseable = No writeable = Yes guest ok = No The stuff I can see at the log files is this: windows-box.log [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_uint32(710) 004c uni_max_len: 000c [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_uint32(710) 0050 offset : [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_uint32(710) 0054 uni_str_len: 000c [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:dbg_rw_punival(942) 0058 buffer : F.A.M.-.C.H.O.R.I.Z.O... [2009/08/11 16:40:49, 6] rpc_parse/parse_prs.c:prs_debug(84) 70 smb_io_chal [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_uint8s(857) 0070 data: 03 a3 f4 30 4b c7 3c 90 [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_debug(84) 00 net_io_r_auth [2009/08/11 16:40:49, 6] rpc_parse/parse_prs.c:prs_debug(84) 00 smb_io_chal [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_uint8s(857) data: 00 00 00 00 00 00 00 00 [2009/08/11 16:40:49, 5] rpc_parse/parse_prs.c:prs_ntstatus(769) 0008 status: NT_STATUS_ACCESS_DENIED [2009/08/11 16:40:49, 5] rpc_server/srv_pipe.c:api_rpcTNP(2305) api_rpcTNP: called NETLOGON successfully [2009/08/11 16:40:49, 3]
Re: [Samba] Samba login errors of Vista PC to Samba DC
SierraRose49 wrote: I am very new to Ubuntu/Linux/Samb and have very simple goals: Set up an Ubuntu Server as a Domain Controller to provide single signon for students using study center PC's. All of the PC's are Windows Vista Business. I have successfully added a PC to the domain. I have successfully created a network user and logged on to the PC. However, the Samba log is throwing errors and I have a login script I would like to run that never runs. My smb.conf: [global] netbios name = PIUSERVER1 workgroup = PIUDOMAIN server string = %h server (Samba, Ubuntu) dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d encrypt passwords = true security=user username map = /usr/bin/smbpasswd username map is the location of a file that contains user mappings, not the samba user listing. 'logon script = /scripts/LoginScript.bat passdb backend = tdbsam 'passdb backend = ldapsam:ldap://HTR.piudomain.com obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . 'pam password change = yes map to guest = bad user domain master = yes domain logins = yes local master = yes wins support = yes preferred master = yes os level = 255 [netlogon] 'path = /home/%u guest ok = no Everything below belongs in [global], rather than [netlogon]. logon path = logon drive = logon home = logon script = /scripts/LoginScript.bat Misc I have no idea if the above smb.conf is good or not. The only information I have found is some from a book which has a chapter on setting up a Domain Controller. The book suggested the following parameter but it causes logon issues with it in the smb.conf: passdb backend = ldapsam:ldap://HTR.mydomain.com (and I did put my domain name in). If you want to use ldap, look here: http://wiki.makethemove.net/index.php?title=LDAP-Samba https://help.ubuntu.com/community/OpenLDAP-SambaPDC-OrgInfo-Posix ldap adds another layer of difficulty, so you may wish to start with tdbsam instead. No ldap example: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/FastStart.html#id2556827 When I log in my user, this shows up in the Samba log. [2009/08/12 14:29:12, 0] lib/util_str.c:safe_strcpy_fn(708) ERROR: string overflow by 1 (256 - 255) in safe_strcpy [ÿø3×ÿø3×ÿø3×ÿÖ3×ÿÀ3×ÿø3×ÿø3×ÿE[×ÿ^W×ÿ|W×ÿW×ÿžW×ÿÖ] [2009/08/12 14:29:12, 0] param/loadparm.c:process_usershare_file(8322) process_usershare_file: stat of /var/lib/samba/usershares/mcarruthers failed. Permission denied [2009/08/12 14:29:12, 0] param/loadparm.c:process_usershare_file(8322) process_usershare_file: stat of /var/lib/samba/usershares/mcarruthers failed. No such file or directory [2009/08/12 14:29:12, 0] smbd/service.c:make_connection(1284) sc15 (192.168.1.39) couldn't find service mcarruthers I have the script in /scripts/LoginScript.bat on my utuntu server. I is a case where I want to run the same script for every user. Please assume I know nothing. My background is all on the Windows side but I am trying to set up this Linux Server to be our Domain Controller instead of using Microsoft products. I know nothing about Unix, linux, and command lines give me a headache. apt-get install swat samba-doc Browse to http://samba_server:901/ SWAT will allow you to forgo much of the command line. samba-doc will give you help linked to each parameter listed in SWAT and what its default is. Note that when SWAT rewrites the smb.conf, any existing parameters in smb.conf that are the default will be removed. I would appreciate any help you can give me but assume I know nothing. Run testparm to check for smb.conf errors. Check the web for Vista-specific requirements. Dale -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] samba with ldap PDC cannot join my windows to domain?
On Mittwoch, 12. August 2009 wrote Alberto Moreno: Hi people. I have been working with samba+ldap = PDC in my test netwwork. I had follow the good tutorial: Samba By Example, chapter 5, I had done all the test the book say and no issues. I have 2 issues: 1; I cannot see my domain at my windows browser. 2; I cannot add my windows xp pro to my domain. I have been trying to see if I could find the solution but nothing yet, there is the reason I send this email. My server is Centos 5.3 latest one all the packages are the current from centos. Ldap looks that is working, because all my test from the book pass, and the same with samba. Went I try to add one Winbox to the domain I receive this: The following error occurred attempting to join the domain MyDomain The network path as not found Maybe, it helps: Try the domain RMAI. My smb.conf is this: [global] dos charset = 850 unix charset = ISO8859-1 display charset = ISO8859-1 workgroup = RMAI Thanks for your time!!! -- LIving the dream... -- Gruss Harry Jede -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RID idmap backend: difficulties looking up a user by its uid
Thanks for your answer, Dale. You were right, I had that line wrong. However, I think it just affected what uids the users would get, because the problem remains. I have configured the TDB, LDAP and AD backends successfully; only the RID backend gives me the problem I explained in my original message. I tried using the idmap config directive as well... idmap backend = tdb idmap uid = 100-110 idmap gid = 100-110 idmap config WBLABB : backend = rid idmap config WBLABB : range= 1 - 100 winbind use default domain = yes ...with the same result, i.e I need to retrieve the passwd entry by username before I can do the reverse. Jakob Dale Schroeder wrote: I believe smb.conf line should be idmap backend = rid:DOMAIN=10-1000 Dale Jakob Ahlin wrote: Hi, I'm having a problem using the RID idmap backend with Winbind. Having configured NSS with the Winbind module, I can use getent passwd to look up a user by its username, but not by its uidnumber. However, if I first do a lookup using the username or run wbinfo on the user (specifying either the username or uid), and then try getent passwd with the uidnumber, I get the correct result. See here: debianrid:~# getent passwd 161907 debianrid:~# wbinfo --uid-info 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# getent passwd 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# Related smb.conf lines: idmap backend = rid idmap uid = 10-1000 idmap gid = 10-1000 winbind use default domain = yes winbind enum groups = yes winbind enum users = yes Version information: Version 3.3.7-SerNet-Debian From log.winbindd-idmap: [2009/08/12 10:13:58, 0] lib/module.c:do_smb_load_module(69) Module '/usr/lib/samba/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION [2009/08/12 10:13:58, 1] winbindd/idmap.c:idmap_alloc_init(580) could not find idmap alloc module rid Any ideas? Regards, Jakob -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] sambaprimaryGroupSid
Hi all! I'm configuring a samba PDC with an LDAP sam. Everything is working great except that when I do pdbedit -Lv root (which is my Domain Administrator account) I see that it's getting a Primary Group SID value of S-1-5-21-XX-XX-X-513 instead of the S-1-5-21-XX-XX-X-512 that is stored in my LDAP tree. Does someone know why this is happening and how could I get my root user to have Domain Administrators as it's primary group? Thank you very much! Best regards, David Wells. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] can not logon on windows after sometime
what version of samba? what version of openldap? what errors are you getting in /var/log/samba/* when you try to log in? Mohammad Reza Hosseini wrote: we are using samba on CentOS 5 with LDAP backend as a PDC. the problem is that after some times users can not logon to win XP clients and we must rejoin the clients to the domian so that users logon will be possible but again after some random time logon is not possible. any idea? thanks. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Vista client mounting .profile as home share
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone know why a Vista client would mount the .profile share used for roaming profiles as its home share? XP clients are mounting their correct share automatically. When I open Start-Computer and look at the network drive section, the Vista client is using the correct drive letter I have assigned for home shares; which XP clients are using correctly, but the share name is .profile. Thanks, David -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkqDM+MACgkQ5B+8XEnAvquiqACfcKci0erHcWkEWKUC0mmF2cOg Y20Anj4Qy1FMC8tXebrDTH4rxSsdVS53 =c9OD -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant browse user home directories
Roger D Vargas wrote: Adam Williams escribió: What i want is to use default system users (/etc/passwd) for authentication. The problem is that i already have 2 domains, with users forced to have accounts in both, the mail password and the proxy password. Security policies requires changing all those passwords and I dont want to deal with a fourth password for samba. I know it is quite old idea, I implemented it almost 10 years ago, but people is used to access their home folders using their mail password and i would like to keep it that way. Also my resources are so scarce that I have a single server, so I cant research an ldap migration withouth breaking stuff in the server that handles mail ,proxy, samba and firewall. why not? i upgraded a live system from /etc/passwd to ldap and didn't break anything. you can use the migration scripts provided with openldap to load the users into ldap, and use pdbedit to import the tdbsam/smbpasswd users to openldap, then configure and enable nss_ldap so that now pam is authenticating users in ldap, delete the users from /etc/passwd, then config samba to use ldap and restart it. you can install microsoft virtual pc 2007 sp1 for free on a windows computer, and install linux in it and do all the testing you need. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] sambaprimaryGroupSid
Dear david Do your root working as domain admin? I think you have to modify your ldap database for that Thanks On Thu, Aug 13, 2009 at 1:22 AM, David Wells david_wells...@yahoo.com.arwrote: Hi all! I'm configuring a samba PDC with an LDAP sam. Everything is working great except that when I do pdbedit -Lv root (which is my Domain Administrator account) I see that it's getting a Primary Group SID value of S-1-5-21-XX-XX-X-513 instead of the S-1-5-21-XX-XX-X-512 that is stored in my LDAP tree. Does someone know why this is happening and how could I get my root user to have Domain Administrators as it's primary group? Thank you very much! Best regards, David Wells. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- http://linuxinterviews.blogspot.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] This is happening during config
Does kernel header present your system ? Thnks On Mon, Aug 10, 2009 at 12:18 PM, Michael Heydon micha...@jaswin.com.auwrote: Chris Lavin wrote: configure: WARNING: sys/mount.h: check for missing prerequisite headers Did you do this? Your other message also mentions missing headers. You probably need to install various header/development packages. Do you really need to be compiling from source? Using your distro's packages is much simpler and less likely to cause problems down the track. *Michael Heydon - IT Administrator * micha...@jaswin.com.au mailto:micha...@jaswin.com.au -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- http://linuxinterviews.blogspot.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Build status as of Wed Aug 12 06:00:02 2009
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2009-08-11 00:00:18.0 -0600 +++ /home/build/master/cache/broken_results.txt 2009-08-12 00:00:04.0 -0600 @@ -1,4 +1,4 @@ -Build status as of Tue Aug 11 06:00:01 2009 +Build status as of Wed Aug 12 06:00:02 2009 Build counts: Tree Total Broken Panic @@ -8,15 +8,15 @@ ldb 32 32 0 libreplace 32 13 0 lorikeet 0 0 0 -pidl 23 3 0 +pidl 3 0 0 ppp 2 0 0 rsync33 13 0 samba-docs 0 0 0 samba-web0 0 0 -samba_3_current 1 0 0 -samba_3_master 30 26 5 -samba_3_next 28 25 1 -samba_4_0_test 33 28 2 +samba_3_current 30 26 0 +samba_3_master 31 28 6 +samba_3_next 31 29 1 +samba_4_0_test 33 30 2 talloc 32 32 0 tdb 30 30 0
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-948-ged051ce
The branch, master has been updated via ed051ce424a93e08f59cd65ae0abe1a8926286a3 (commit) via 011f103501e9465fbea56194910e082306bbf1f1 (commit) from 3b5c6bc971c4e5c32b19072f0f54258792d00439 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit ed051ce424a93e08f59cd65ae0abe1a8926286a3 Author: Andrew Tridgell tri...@samba.org Date: Wed Aug 12 15:34:03 2009 +1000 try to give some hint as to what is causing NDR string errors commit 011f103501e9465fbea56194910e082306bbf1f1 Author: Andrew Tridgell tri...@samba.org Date: Wed Aug 12 15:33:37 2009 +1000 when we get an NDR error in the logs, it is useful to know where it happened --- Summary of changes: librpc/ndr/libndr.h |2 +- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 10 +- source4/librpc/ndr/ndr_string.c | 16 3 files changed, 14 insertions(+), 14 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 7109b73..53bed01 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -215,7 +215,7 @@ enum ndr_compression_alg { #define NDR_PULL_NEED_BYTES(ndr, n) do { \ if ((n) ndr-data_size || ndr-offset + (n) ndr-data_size) { \ - return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, Pull bytes %u, (unsigned)n); \ + return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, Pull bytes %u (%s), (unsigned)n, __location__); \ } \ } while(0) diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 3e724c9..cc8085a 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1669,7 +1669,7 @@ sub ParseUnionPushPrimitives() } if (! $have_default) { $self-pidl(default:); - $self-pidl(\treturn ndr_push_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u\, level);); + $self-pidl(\treturn ndr_push_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u at \%s\, level, __location__);); } $self-deindent; $self-pidl(}); @@ -1705,7 +1705,7 @@ sub ParseUnionPushDeferred() } if (! $have_default) { $self-pidl(default:); - $self-pidl(\treturn ndr_push_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u\, level);); + $self-pidl(\treturn ndr_push_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u at \%s\, level, __location__);); } $self-deindent; $self-pidl(}); @@ -1784,7 +1784,7 @@ sub ParseUnionPullPrimitives($) if (defined($switch_type)) { $self-pidl(NDR_CHECK(ndr_pull_$switch_type($ndr, NDR_SCALARS, _level));); $self-pidl(if (_level != level) {); - $self-pidl(\treturn ndr_pull_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value %u for $varname\, _level);); + $self-pidl(\treturn ndr_pull_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value %u for $varname at \%s\, _level, __location__);); $self-pidl(}); } @@ -1814,7 +1814,7 @@ sub ParseUnionPullPrimitives($) } if (! $have_default) { $self-pidl(default:); - $self-pidl(\treturn ndr_pull_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u\, level);); + $self-pidl(\treturn ndr_pull_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u at \%s\, level, __location__);); } $self-deindent; $self-pidl(}); @@ -1848,7 +1848,7 @@ sub ParseUnionPullDeferred() } if (! $have_default) { $self-pidl(default:); - $self-pidl(\treturn ndr_pull_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u\, level);); + $self-pidl(\treturn ndr_pull_error($ndr, NDR_ERR_BAD_SWITCH, \Bad switch value \%u at \%s\, level, __location__);); } $self-deindent; $self-pidl(}); diff --git a/source4/librpc/ndr/ndr_string.c b/source4/librpc/ndr/ndr_string.c index d6d9968..d4e04c1 100644 --- a/source4/librpc/ndr/ndr_string.c +++ b/source4/librpc/ndr/ndr_string.c @@ -87,7 +87,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, (len2 + c_len_term)*byte_mul, (void **)as, ret, false)) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, - Bad character conversion); + Bad character conversion with flags 0x%x, flags); } } NDR_CHECK(ndr_pull_advance(ndr, (len2 +
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-950-g5796da6
The branch, master has been updated via 5796da6948379ffc101e813a4d68676e4a661c61 (commit) via 6392f14cd78d3f0585615ccf0a6b0a961187f68f (commit) from ed051ce424a93e08f59cd65ae0abe1a8926286a3 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 5796da6948379ffc101e813a4d68676e4a661c61 Author: Stefan Metzmacher me...@samba.org Date: Wed Aug 12 10:24:01 2009 +0200 pidl: fix parse_idl test after idl.yp changes We now generate 'FILE' and 'LINE' elements for each layer. This change makes the expected PIDL trees human readable:-) metze commit 6392f14cd78d3f0585615ccf0a6b0a961187f68f Author: Stefan Metzmacher me...@samba.org Date: Wed Aug 12 10:01:12 2009 +0200 pidl: fix samba3-cli test after the async function were added metze --- Summary of changes: pidl/tests/parse_idl.pl | 131 ++-- pidl/tests/samba3-cli.pl | 214 +- 2 files changed, 315 insertions(+), 30 deletions(-) Changeset truncated at 500 lines: diff --git a/pidl/tests/parse_idl.pl b/pidl/tests/parse_idl.pl index 9d43ddc..e06526d 100755 --- a/pidl/tests/parse_idl.pl +++ b/pidl/tests/parse_idl.pl @@ -113,52 +113,127 @@ testok cpp-quote, cpp_quote(\bla\); my $x = Parse::Pidl::IDL::parse_string(interface foo { struct x {}; }, foo); -is_deeply($x, -[ { 'FILE' = 'foo', 'NAME' = 'foo', 'DATA' = [ -{ 'NAME' = 'x', 'TYPE' = 'STRUCT', ELEMENTS = [] } ], -'TYPE' = 'INTERFACE', 'LINE' = 0 } ]); +is_deeply($x, [ { + 'TYPE' = 'INTERFACE', + 'NAME' = 'foo', + 'DATA' = [ { + 'TYPE' = 'STRUCT', + 'NAME' = 'x', + 'ELEMENTS' = [], + 'FILE' = 'foo', + 'LINE' = 0 + } ], + 'FILE' = 'foo', + 'LINE' = 0 +}]); $x = Parse::Pidl::IDL::parse_string(interface foo { struct x; }, foo); -is_deeply($x, -[ { 'FILE' = 'foo', 'NAME' = 'foo', 'DATA' = [ -{ 'NAME' = 'x', 'TYPE' = 'STRUCT' } ], -'TYPE' = 'INTERFACE', 'LINE' = 0 } ]); +is_deeply($x, [ { + 'TYPE' = 'INTERFACE', + 'NAME' = 'foo', + 'DATA' = [ { + 'TYPE' = 'STRUCT', + 'NAME' = 'x', + 'FILE' = 'foo', + 'LINE' = 0 + } ], + 'FILE' = 'foo', + 'LINE' = 0 +}]); $x = Parse::Pidl::IDL::parse_string(cpp_quote(\foobar\), quote); -is_deeply($x, -[ { 'FILE' = 'quote', 'DATA' = 'foobar', -'TYPE' = 'CPP_QUOTE', 'LINE' = 0 } ]); +is_deeply($x, [ { + 'TYPE' = 'CPP_QUOTE', + 'DATA' = 'foobar', + 'FILE' = 'quote', + 'LINE' = 0 +}]); # A typedef of a struct without body $x = Parse::Pidl::IDL::parse_string(interface foo { typedef struct x y; }, foo); -is_deeply($x, -[ { 'FILE' = 'foo', 'NAME' = 'foo', 'DATA' = [ -{ 'FILE' = 'foo', 'LINE' = 0, 'NAME' = 'y', 'TYPE' = 'TYPEDEF', DATA = { -TYPE = 'STRUCT', NAME = 'x' } } ], -'TYPE' = 'INTERFACE', 'LINE' = 0 } ]); +is_deeply($x, [ { + 'TYPE' = 'INTERFACE', + 'NAME' = 'foo', + 'DATA' = [ { + 'TYPE' = 'TYPEDEF', + 'NAME' = 'y', + 'DATA' = { + 'TYPE' = 'STRUCT', + 'NAME' = 'x', + 'FILE' = 'foo', + 'LINE' = 0, + }, + 'FILE' = 'foo', + 'LINE' = 0, + } ], + 'FILE' = 'foo', + 'LINE' = 0 +}]); # A typedef of a struct with empty body $x = Parse::Pidl::IDL::parse_string(interface foo { typedef struct {} y; }, foo); -is_deeply($x, -[ { 'FILE' = 'foo', 'NAME' = 'foo', 'DATA' = [ -{ 'FILE' = 'foo', 'LINE' = 0, 'NAME' = 'y', 'TYPE' = 'TYPEDEF', DATA = { TYPE = 'STRUCT', ELEMENTS = [] } } ], -'TYPE' = 'INTERFACE', 'LINE' = 0 } ]); +is_deeply($x, [ { + 'TYPE' = 'INTERFACE', + 'NAME' = 'foo', + 'DATA' = [ { + 'TYPE' = 'TYPEDEF', + 'NAME' = 'y', + 'DATA' = { + 'TYPE' = 'STRUCT', + 'ELEMENTS' = [], + 'FILE' = 'foo', + 'LINE' = 0 + }, + 'FILE' = 'foo', + 'LINE' = 0 + } ], + 'FILE' = 'foo', + 'LINE' = 0 +}]); # A typedef of a bitmap with no body $x = Parse::Pidl::IDL::parse_string(interface foo { typedef bitmap x y; }, foo); -is_deeply($x, -[ { 'FILE' = 'foo', 'NAME' = 'foo', 'DATA' = [ -{ 'FILE' = 'foo', 'LINE' = 0, 'NAME' = 'y', 'TYPE' = 'TYPEDEF', DATA = { TYPE = 'BITMAP', NAME = 'x' } } ], -
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-957-g159a33a
The branch, master has been updated via 159a33a7d4cb69b5487acb183cbf56a584048734 (commit) via 9126b75aaed91d79c5b5388613a9cdbb6d898894 (commit) via b255a41dca63a68f404e37b7eb46b54070bea466 (commit) via fe767d4b70665bf8cf825455cb2c1db3fc2a1217 (commit) via 7fc94932ad28880caed82155d65dcbfe8530e791 (commit) via 8fcf1b988ad5c2338a75631696c32a31116708f1 (commit) via c73984a5c9966f9c90549e753764ae071670e15f (commit) from 5796da6948379ffc101e813a4d68676e4a661c61 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 159a33a7d4cb69b5487acb183cbf56a584048734 Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Tue Aug 11 12:25:13 2009 +0200 s4:test for primaryGroupToken Tests for the right behaviour of this introduced constructed attribute. Since we don't support the read-only-ness of those attributes yet, I commented some lines out. Also I had to add a function for python which converts domain SIDs in RIDs. And a small fix for the groupType test. commit 9126b75aaed91d79c5b5388613a9cdbb6d898894 Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Mon Aug 10 13:19:18 2009 +0200 s4:samldb module - Remove duplicate line commit b255a41dca63a68f404e37b7eb46b54070bea466 Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Mon Aug 10 13:16:41 2009 +0200 s4:operational module - move and enhancements This moves the operational LDB module to the right place under dsdb/samdb/ldb_modules (suggested by abartlet) and enhances it for supporting dynamic generated primaryGroupToken for AD groups. This should fix bug #6466. commit fe767d4b70665bf8cf825455cb2c1db3fc2a1217 Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Mon Aug 10 11:06:33 2009 +0200 s4:pwsettings script - Fix a small glitch This fixes the problem with the setting and getting of the minPwdAge and maxPwdAge attributes. I wanted to handle them in days but forgot to add conversions (from ticks (tenth of microsecond) - days and backwards). commit 7fc94932ad28880caed82155d65dcbfe8530e791 Author: Kouhei Sutou k...@clear-code.com Date: Mon Aug 10 12:18:58 2009 +0900 Rename ASN1_BITFIELD to ASN1_BIT_STRING. X.690 uses BIT STRING not BIT FIELD. commit 8fcf1b988ad5c2338a75631696c32a31116708f1 Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Mon Aug 10 10:12:51 2009 +0200 torture/basic: in run_derefopen() the file could have been deleted before the last unlink Through a suggestion pointed out in bug #6622 the test file sometimes doesn't exist on the last turn anymore. So we haven't to fail here since it could have been deleted by a concurrent process (e.g. when the same test runs multiple times). Therefore also NT_STATUS_OBJECT_NAME_NOT_FOUND is an acceptable result. commit c73984a5c9966f9c90549e753764ae071670e15f Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Sat Aug 8 13:50:10 2009 +0200 s4:AD LDIFs - More refactoring This commit includes: - Additional static object data in SAMBA 4's AD to start supporting of - forest updates, - lost and found, - quotas on DS, - physical locations, - licensing of sites, - subnets, - policies for WMI, - DNS entries in AD - Reordering of provision*.ldif files to be able to find entries and make future additions easier - Add comments in provision*.ldif files to point out where subentries are located when they are based in other LDIFs - Removations of autogenerated cn attributes --- Summary of changes: lib/util/asn1.h|2 +- source3/libsmb/clispnego.c |2 +- source4/dsdb/samdb/ldb_modules/config.mk | 11 + .../samdb/ldb_modules}/operational.c | 63 - source4/dsdb/samdb/ldb_modules/samldb.c|1 - source4/lib/ldb/config.mk | 12 - source4/lib/ldb/tests/python/ldap.py | 68 - source4/scripting/python/pyglue.c | 23 ++ source4/setup/provision.ldif | 36 +++ source4/setup/provision_configuration.ldif | 285 +--- source4/setup/provision_self_join.ldif |6 +- source4/setup/provision_users.ldif | 61 - source4/setup/pwsettings | 15 +- source4/torture/basic/base.c |8 +- 14 files changed, 325 insertions(+), 268 deletions(-) rename source4/{lib/ldb/modules = dsdb/samdb/ldb_modules}/operational.c (86%) Changeset truncated at 500 lines: diff --git a/lib/util/asn1.h b/lib/util/asn1.h index b147ccc..4c66240 100644 --- a/lib/util/asn1.h +++
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-958-gc7e2190
The branch, master has been updated via c7e21907b4a620cf9646648f6f68cdb94ab5b590 (commit) from 159a33a7d4cb69b5487acb183cbf56a584048734 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit c7e21907b4a620cf9646648f6f68cdb94ab5b590 Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Tue Aug 11 11:02:03 2009 +0200 ldb: Don't break the standalone LDB build (operational module removed) --- Summary of changes: source4/lib/ldb/ldb.mk |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/lib/ldb/ldb.mk b/source4/lib/ldb/ldb.mk index 4234fcc..4b73a45 100644 --- a/source4/lib/ldb/ldb.mk +++ b/source4/lib/ldb/ldb.mk @@ -20,8 +20,8 @@ COMMON_OBJ=$(COMDIR)/ldb.o $(COMDIR)/ldb_ldif.o \ $(COMDIR)/attrib_handlers.o $(COMDIR)/ldb_controls.o $(COMDIR)/qsort.o MODDIR=modules -MODULES_OBJ=$(MODDIR)/operational.o $(MODDIR)/rdn_name.o \ - $(MODDIR)/paged_results.o $(MODDIR)/sort.o $(MODDIR)/asq.o +MODULES_OBJ=$(MODDIR)/rdn_name.o ${MODDIR}/asq.o \ + $(MODDIR)/paged_results.o $(MODDIR)/sort.o NSSDIR=nssldb NSS_OBJ= $(NSSDIR)/ldb-nss.o $(NSSDIR)/ldb-pwd.o $(NSSDIR)/ldb-grp.o -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-959-ge96338b
The branch, master has been updated via e96338bf2b9ff6767a54c6127cdda34591b98c0d (commit) from c7e21907b4a620cf9646648f6f68cdb94ab5b590 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit e96338bf2b9ff6767a54c6127cdda34591b98c0d Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de Date: Tue Aug 11 11:08:05 2009 +0200 s4:operational - Remove some outdated comments --- Summary of changes: source4/dsdb/samdb/ldb_modules/operational.c | 12 1 files changed, 0 insertions(+), 12 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c index 9cbe1db..7e3aec4 100644 --- a/source4/dsdb/samdb/ldb_modules/operational.c +++ b/source4/dsdb/samdb/ldb_modules/operational.c @@ -49,23 +49,11 @@ on modify we need to change whenChanged - - subschemaSubentry: HIDDEN, not-searchable, - points at DN CN=Aggregate,$SCHEMADN - - for this one we do the search as normal, then add the static - value if requested. How do we work out the $BASEDN from inside a - module? - structuralObjectClass: HIDDEN, CONSTRUCTED, not-searchable. always same as objectclass? for this one we do the search as normal, then if requested ask for objectclass, change the attribute name, and add it - allowedAttributesEffective: HIDDEN, CONSTRUCTED, not-searchable, - - list of attributes that can be modified - requires schema lookup - primaryGroupToken: HIDDEN, CONSTRUCTED, SEARCHABLE contains the RID of a certain group object -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-965-gf75934e
The branch, master has been updated via f75934e2dc95d99dfbbc80f26eb3d1d1efe08604 (commit) via 7229e9a4762f1fee15708ac20de9c40ce75f85a2 (commit) via fedac72dfc4c220f653dd243de221dad56650bac (commit) via d30b1c9fa9d03246124dc7db8bb583c260adb0d1 (commit) via 14888c21acaf34da047937b29833d7788bafe11d (commit) via 91d13b68be55728a85b3832e2da9267dbf4f2464 (commit) from e96338bf2b9ff6767a54c6127cdda34591b98c0d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit f75934e2dc95d99dfbbc80f26eb3d1d1efe08604 Author: Stefan Metzmacher me...@samba.org Date: Tue Aug 11 18:31:27 2009 +0200 s3:smbd: as check_path_syntax() changes the string, we need to copy the string before metze commit 7229e9a4762f1fee15708ac20de9c40ce75f85a2 Author: Stefan Metzmacher me...@samba.org Date: Tue Aug 11 18:29:06 2009 +0200 s3:smbd: avoid 'goto out' in smbd_smb2_create_send() metze commit fedac72dfc4c220f653dd243de221dad56650bac Author: Stefan Metzmacher me...@samba.org Date: Tue Aug 11 18:09:05 2009 +0200 s3:smbd: make sure we don't call conn_free() with a NULL pointer for SMB2 metze commit d30b1c9fa9d03246124dc7db8bb583c260adb0d1 Author: Stefan Metzmacher me...@samba.org Date: Tue Aug 11 18:08:26 2009 +0200 s3:smbd: correctly invalidate vuids when SMB2 is used metze commit 14888c21acaf34da047937b29833d7788bafe11d Author: Stefan Metzmacher me...@samba.org Date: Tue Aug 11 13:52:07 2009 +0200 s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESET metze commit 91d13b68be55728a85b3832e2da9267dbf4f2464 Author: Matt Kraai mkr...@beckman.com Date: Wed Aug 12 08:49:24 2009 +0200 libreplace: undef AI_ADDRCONFIG on QNX 6.3.0 (fix bug #6630) Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG. On QNX 6.3.0, this macro is defined but, if it's used, getaddrinfo will fail. This prevents smbd from opening any sockets. If I undefine AI_ADDRCONFIG on such systems and allow lib/replace/system/network.h to define it to be 0, this works around the issue. Signed-off-by: Stefan Metzmacher me...@samba.org --- Summary of changes: lib/replace/system/network.h | 14 + source3/lib/errmap_unix.c |3 ++ source3/smbd/password.c |4 +++ source3/smbd/smb2_create.c| 43 + source3/smbd/smb2_sesssetup.c |1 + source3/smbd/smb2_tcon.c |4 ++- 6 files changed, 47 insertions(+), 22 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h index c836410..1f51035 100644 --- a/lib/replace/system/network.h +++ b/lib/replace/system/network.h @@ -195,6 +195,20 @@ int rep_socketpair(int d, int type, int protocol, int sv[2]); #endif #endif +/* + * Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG. On QNX + * 6.3.0, this macro is defined but, if it's used, getaddrinfo will fail. This + * prevents smbd from opening any sockets. + * + * If I undefine AI_ADDRCONFIG on such systems and define it to be 0, + * this works around the issue. + */ +#ifdef __QNX__ +#include sys/neutrino.h +#if _NTO_VERSION == 630 +#undef AI_ADDRCONFIG +#endif +#endif #ifndef AI_ADDRCONFIG /* * logic copied from AI_NUMERICHOST diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c index 00c5475..d43598b 100644 --- a/source3/lib/errmap_unix.c +++ b/source3/lib/errmap_unix.c @@ -87,6 +87,9 @@ const struct unix_error_map unix_dos_nt_errmap[] = { #ifdef ECONNABORTED { ECONNABORTED, ERRHRD, ERRgeneral, NT_STATUS_CONNECTION_ABORTED}, #endif +#ifdef ECONNRESET + { ECONNRESET, ERRHRD, ERRgeneral, NT_STATUS_CONNECTION_RESET}, +#endif #ifdef ENODEV { ENODEV, ERRDOS, 55, NT_STATUS_DEVICE_DOES_NOT_EXIST}, #endif diff --git a/source3/smbd/password.c b/source3/smbd/password.c index b1a7497..4c1cef4 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -128,6 +128,10 @@ void invalidate_vuid(struct smbd_server_connection *sconn, uint16 vuid) void invalidate_all_vuids(struct smbd_server_connection *sconn) { + if (sconn-allow_smb2) { + return; + } + while (sconn-smb1.sessions.validated_users != NULL) { invalidate_vuid(sconn, sconn-smb1.sessions.validated_users-vuid); diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 1517ab8..fe414bb 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -272,7 +272,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, smbreq = smbd_smb2_fake_smb_request(smb2req); if (tevent_req_nomem(smbreq, req)) { - goto out; +
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3651-g0a1b125
The branch, v3-2-test has been updated via 0a1b125ae4260de3cee6a92b19e3977d922a8c11 (commit) from 9bcfbccad5d5983cfa42f31f6394f03c4678e79a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 0a1b125ae4260de3cee6a92b19e3977d922a8c11 Author: Simo Sorce i...@samba.org Date: Sat Jul 12 22:44:15 2008 -0400 Fix bug #6628 - smbpassdb -a using rid algorithm with tdbsam passdb samu_set_unix() does not use the rid allocator, but forces to use the algoritmic allocator unconditionally, this is wrong and inconsistent. Use samu_alloc_rid_unix() instead. (If we create a new user we should do it in a way consistent with all other commands like pdbedit -a and net rpc user add.) (cherry picked from commit e1d4db8f55b25c7e9c408cb334fb89ccfd4c6565) Signed-off-by: Michael Adam ob...@samba.org This fixes bug #6628. --- Summary of changes: source/passdb/passdb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c index e3a3d3c..125689c 100644 --- a/source/passdb/passdb.c +++ b/source/passdb/passdb.c @@ -675,7 +675,7 @@ NTSTATUS local_password_change(const char *user_name, return NT_STATUS_NO_MEMORY; } - result = samu_set_unix( sam_pass, pwd ); + result = samu_alloc_rid_unix( sam_pass, pwd ); DEBUGLEVEL = tmp_debug; -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3652-g93de86c
The branch, v3-2-test has been updated via 93de86c490d5da0d0b3ecf363148ba3174997800 (commit) from 0a1b125ae4260de3cee6a92b19e3977d922a8c11 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 93de86c490d5da0d0b3ecf363148ba3174997800 Author: Karolin Seeger ksee...@samba.org Date: Wed Aug 12 13:58:12 2009 +0200 WHATSNEW: Update changes. Karolin --- Summary of changes: WHATSNEW.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/WHATSNEW.txt b/WHATSNEW.txt index f29e92c..3f15827 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -32,6 +32,8 @@ o Michael Adam ob...@samba.org * BUG 6387: Fix Winbind crash when multiple IDmappings exist in the LDAP directory. * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache(). +* BUG 6628: 'smbpasswd -a' uses algorithmic rid base with + 'passdb backend = tdbsam'. * Prevent creation of keys containing the '/' character. -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-13-30-gf46137e
The branch, v3-2-stable has been updated via f46137ef9485324c3789d7d28bc858fca4f7509e (commit) via 8080a0094317eb1e677b5523b5ff9f894a354caa (commit) from 7aea93c3d1060f277aab87e85fb3066b4f666109 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable - Log - commit f46137ef9485324c3789d7d28bc858fca4f7509e Author: Karolin Seeger ksee...@samba.org Date: Wed Aug 12 13:58:12 2009 +0200 WHATSNEW: Update changes. Karolin (cherry picked from commit 93de86c490d5da0d0b3ecf363148ba3174997800) commit 8080a0094317eb1e677b5523b5ff9f894a354caa Author: Simo Sorce i...@samba.org Date: Sat Jul 12 22:44:15 2008 -0400 Fix bug #6628 - smbpassdb -a using rid algorithm with tdbsam passdb samu_set_unix() does not use the rid allocator, but forces to use the algoritmic allocator unconditionally, this is wrong and inconsistent. Use samu_alloc_rid_unix() instead. (If we create a new user we should do it in a way consistent with all other commands like pdbedit -a and net rpc user add.) (cherry picked from commit e1d4db8f55b25c7e9c408cb334fb89ccfd4c6565) Signed-off-by: Michael Adam ob...@samba.org This fixes bug #6628. (cherry picked from commit 0a1b125ae4260de3cee6a92b19e3977d922a8c11) --- Summary of changes: WHATSNEW.txt |2 ++ source/passdb/passdb.c |2 +- 2 files changed, 3 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/WHATSNEW.txt b/WHATSNEW.txt index f29e92c..3f15827 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -32,6 +32,8 @@ o Michael Adam ob...@samba.org * BUG 6387: Fix Winbind crash when multiple IDmappings exist in the LDAP directory. * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache(). +* BUG 6628: 'smbpasswd -a' uses algorithmic rid base with + 'passdb backend = tdbsam'. * Prevent creation of keys containing the '/' character. diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c index e3a3d3c..125689c 100644 --- a/source/passdb/passdb.c +++ b/source/passdb/passdb.c @@ -675,7 +675,7 @@ NTSTATUS local_password_change(const char *user_name, return NT_STATUS_NO_MEMORY; } - result = samu_set_unix( sam_pass, pwd ); + result = samu_alloc_rid_unix( sam_pass, pwd ); DEBUGLEVEL = tmp_debug; -- Samba Shared Repository
[SCM] Samba Shared Repository - annotated tag release-3-2-14 created - release-3-2-14
The annotated tag, release-3-2-14 has been created at 6a7f2784f0e76f4fc3b6fb22fd03eaeb6b15fda2 (tag) tagging f46137ef9485324c3789d7d28bc858fca4f7509e (commit) replaces release-3-2-13 tagged by Karolin Seeger on Wed Aug 12 14:19:51 2009 +0200 - Log - tag release-3-2-14 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iD8DBQBKgrN9bzORW2Vot+oRAnu9AJwM2EG58bPBj+FDZqDuksc0N4Vr8wCdFHOm lQc3OWvzpFFvIi/9bSDFXNw= =mT9G -END PGP SIGNATURE- Bo Yang (1): handling upn name Günther Deschner (3): s3-test: add RPC-SAMR-MACHINE-AUTH to list of tests to run against s3. s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0. s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved. Jeremy Allison (5): Fix bug #6520 time stamps. Fix SAMR server for winbindd access. Ensure we allow MAX_ACCESS to be mapped to what we're giving Everyone. Jeremy. Fix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd/trans2.c opens up SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2 holes that would have been exposed by allowing POSIX_OPENS on readonly shares, and their ability to set arbitrary flags permutations. The O_CREAT - O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT) that previously was being passed down to the open syscall. Jeremy. Fix bug #6476 - more then 3000 smbd-zombies in memory Fix bug #6487: Missing DFS call in trans2 mkdir call. (cherry picked from commit 1a0005e1c508cf3b170d1c7e43b94a47b2820506) Jim McDonough (1): Don't require Modify property perms to unjoin (bug #6481) net ads leave stopped working when modify properties permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Karolin Seeger (13): s3/docs: Fix typos. s3/smbldap: Fix typo in debug message. VERSION: Raise version up to 3.2.14. WHATSNEW: Start WHATSNEW for 3.2.14. s3/docs: Add documentation for 'net sam rights'. s3/packaging: pam_winbind has been moved to section 8. s3/docs: Fix typo. s3/libsmb: Fix typo in error message. WHATSNEW: Update WHATSNEW. WHATSNEW: Update changes. WHATSNEW: Update changes since 3.2.13. WHATSNEW: Update changes. WHATSNEW: Update changes. Matt Kraai (1): s3/docs: Fix typo. Michael Adam (2): s3:winbind:idmap_ldap: fix a crash bug in idmap_ldap_unixids_to_sids (#6387) s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache(). Simo Sorce (1): Fix bug #6628 - smbpassdb -a using rid algorithm with tdbsam passdb Stefan Metzmacher (2): s3:util: let parent_dirname() correctly return toplevel filenames s3:winbindd: raise the timeout for lsa_Lookup*() calls from 10 to 35 seconds. Volker Lendecke (1): s3/lanman: Workaround for KB932762. --- -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3653-gbdccf98
The branch, v3-2-test has been updated via bdccf9831ae530b55d1819c040a3ee5448b24ac3 (commit) from 93de86c490d5da0d0b3ecf363148ba3174997800 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit bdccf9831ae530b55d1819c040a3ee5448b24ac3 Author: Karolin Seeger ksee...@samba.org Date: Wed Aug 12 14:31:54 2009 +0200 WHATSNEW: Actually it was Simo's patch... Karolin --- Summary of changes: WHATSNEW.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 3f15827..631e1d6 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -95,6 +95,8 @@ o Sébastien Prud'homme sebastien.prudho...@gmail.com o Simo Sorce sso...@redhat.com +* BUG 6628: 'smbpasswd -a' uses algorithmic rid base with + 'passdb backend = tdbsam'. * Avoid duplicate ACEs. * Fix profile ACLs in some corner cases. -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-14-1-ge8be79d
The branch, v3-2-stable has been updated via e8be79de16329360b15827d3cbf65c09772a3788 (commit) from f46137ef9485324c3789d7d28bc858fca4f7509e (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable - Log - commit e8be79de16329360b15827d3cbf65c09772a3788 Author: Karolin Seeger ksee...@samba.org Date: Wed Aug 12 14:31:54 2009 +0200 WHATSNEW: Actually it was Simo's patch... Karolin (cherry picked from commit bdccf9831ae530b55d1819c040a3ee5448b24ac3) --- Summary of changes: WHATSNEW.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 3f15827..631e1d6 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -95,6 +95,8 @@ o Sébastien Prud'homme sebastien.prudho...@gmail.com o Simo Sorce sso...@redhat.com +* BUG 6628: 'smbpasswd -a' uses algorithmic rid base with + 'passdb backend = tdbsam'. * Avoid duplicate ACEs. * Fix profile ACLs in some corner cases. -- Samba Shared Repository
[SCM] Samba Shared Repository - annotated tag release-3-2-14 updated - release-3-2-14
The annotated tag, release-3-2-14 has been updated to 8431554e1f0c88ff9eec3166ec5b5578568c00ab (tag) from 6a7f2784f0e76f4fc3b6fb22fd03eaeb6b15fda2 (which is now obsolete) tagging e8be79de16329360b15827d3cbf65c09772a3788 (commit) replaces release-3-2-13 tagged by Karolin Seeger on Wed Aug 12 14:34:48 2009 +0200 - Log - tag release-3-2-14 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iD8DBQBKgrcBbzORW2Vot+oRAk9eAKCYY+Rsaws0OxA6uXSwoTgl+tO+tgCguW20 pkJnB/o05r7dt23TCZJPqqk= =hL78 -END PGP SIGNATURE- Bo Yang (1): handling upn name Günther Deschner (3): s3-test: add RPC-SAMR-MACHINE-AUTH to list of tests to run against s3. s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0. s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved. Jeremy Allison (5): Fix bug #6520 time stamps. Fix SAMR server for winbindd access. Ensure we allow MAX_ACCESS to be mapped to what we're giving Everyone. Jeremy. Fix bug #6421 - POSIX read-only open fails on read-only shares. The change to smbd/trans2.c opens up SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2 holes that would have been exposed by allowing POSIX_OPENS on readonly shares, and their ability to set arbitrary flags permutations. The O_CREAT - O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT) that previously was being passed down to the open syscall. Jeremy. Fix bug #6476 - more then 3000 smbd-zombies in memory Fix bug #6487: Missing DFS call in trans2 mkdir call. (cherry picked from commit 1a0005e1c508cf3b170d1c7e43b94a47b2820506) Jim McDonough (1): Don't require Modify property perms to unjoin (bug #6481) net ads leave stopped working when modify properties permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Karolin Seeger (14): s3/docs: Fix typos. s3/smbldap: Fix typo in debug message. VERSION: Raise version up to 3.2.14. WHATSNEW: Start WHATSNEW for 3.2.14. s3/docs: Add documentation for 'net sam rights'. s3/packaging: pam_winbind has been moved to section 8. s3/docs: Fix typo. s3/libsmb: Fix typo in error message. WHATSNEW: Update WHATSNEW. WHATSNEW: Update changes. WHATSNEW: Update changes since 3.2.13. WHATSNEW: Update changes. WHATSNEW: Update changes. WHATSNEW: Actually it was Simo's patch... Matt Kraai (1): s3/docs: Fix typo. Michael Adam (2): s3:winbind:idmap_ldap: fix a crash bug in idmap_ldap_unixids_to_sids (#6387) s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache(). Simo Sorce (1): Fix bug #6628 - smbpassdb -a using rid algorithm with tdbsam passdb Stefan Metzmacher (2): s3:util: let parent_dirname() correctly return toplevel filenames s3:winbindd: raise the timeout for lsa_Lookup*() calls from 10 to 35 seconds. Volker Lendecke (1): s3/lanman: Workaround for KB932762. --- -- Samba Shared Repository
svn commit: samba-web r1317 - in trunk: . history
Author: kseeger Date: 2009-08-12 07:27:58 -0600 (Wed, 12 Aug 2009) New Revision: 1317 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1317 Log: Announce Samba 3.2.14 Karolin Added: trunk/history/samba-3.2.14.html Modified: trunk/header_columns.html trunk/history/header_history.html trunk/index.html Changeset: Modified: trunk/header_columns.html === --- trunk/header_columns.html 2009-08-07 21:26:34 UTC (rev 1316) +++ trunk/header_columns.html 2009-08-12 13:27:58 UTC (rev 1317) @@ -141,9 +141,9 @@ lia href=/samba/history/samba-3.3.7.htmlRelease Notes 3.3.7/a/li lia href=/samba/ftp/stable/samba-3.3.7.tar.ascSignature 3.3.7/a/li -lia href=/samba/ftp/stable/samba-3.2.13.tar.gzSamba 3.2.13 (gzipped)/a/li -lia href=/samba/history/samba-3.2.13.htmlRelease Notes 3.2.13/a/li -lia href=/samba/ftp/stable/samba-3.2.13.tar.ascSignature 3.2.13/a/li +lia href=/samba/ftp/stable/samba-3.2.14.tar.gzSamba 3.2.14 (gzipped)/a/li +lia href=/samba/history/samba-3.2.14.htmlRelease Notes 3.2.14/a/li +lia href=/samba/ftp/stable/samba-3.2.14.tar.ascSignature 3.2.14/a/li lia href=/samba/ftp/stable/samba-3.0.36.tar.gzSamba 3.0.36 (gzipped)/a/li lia href=/samba/history/samba-3.0.36.htmlRelease Notes 3.0.36/a/li lia href=/samba/ftp/stable/samba-3.0.36.tar.ascSignature 3.0.36/a/li Modified: trunk/history/header_history.html === --- trunk/history/header_history.html 2009-08-07 21:26:34 UTC (rev 1316) +++ trunk/history/header_history.html 2009-08-12 13:27:58 UTC (rev 1317) @@ -86,6 +86,7 @@ lia href=samba-3.3.2.htmlsamba-3.3.2/a/li lia href=samba-3.3.1.htmlsamba-3.3.1/a/li lia href=samba-3.3.0.htmlsamba-3.3.0/a/li +lia href=samba-3.2.14.htmlsamba-3.2.14/a/li lia href=samba-3.2.13.htmlsamba-3.2.13/a/li lia href=samba-3.2.12.htmlsamba-3.2.12/a/li lia href=samba-3.2.11.htmlsamba-3.2.11/a/li Added: trunk/history/samba-3.2.14.html === --- trunk/history/samba-3.2.14.html (rev 0) +++ trunk/history/samba-3.2.14.html 2009-08-12 13:27:58 UTC (rev 1317) @@ -0,0 +1,127 @@ +!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; +html xmlns=http://www.w3.org/1999/xhtml; + +head +titleSamba - Release Notes Archive/title +/head + +body + + H2Samba 3.2.14 Available for Download/H2 + +p +pre + == + Release Notes for Samba 3.2.14 + August 12, 2009 + == + + +This is the last maintenance release of the Samba 3.2 series. + +Please note that this is the last bugfix release of the Samba 3.2 series! +There will security releases on demand only. Please see +http://wiki.samba.org/index.php/Samba3_Release_Planning for information +on current releases. + +Major enhancements in 3.2.14 include: + +o Fix SAMR access checks (e.g. bugs #6089 and #6112). +o Fix 'force user' (bug #6291). +o Improve Win7 support (bug #6099). +o Fix posix ACLs when setting an ACL without explicit ACE for the + owner (bug #2346). + + +## +Changes +### + +Changes since 3.2.13 + + + +o Michael Adam lt;ob...@samba.orggt; +* BUG 6387: Fix Winbind crash when multiple IDmappings exist in the + LDAP directory. +* BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache(). +* BUG 6628: 'smbpasswd -a' uses algorithmic rid base with + 'passdb backend = tdbsam'. +* Prevent creation of keys containing the '/' character. + + +o Jeremy Allison lt;j...@samba.orggt; +* BUG 6089: Fix SAMR access checks. +* BUG 6112: Fix SAMR access checks. +* BUG 6279: Fix Winbind crash. +* BUG 6291: Fix 'force user'. +* BUG 6099: Try to fix domain join of Win7 Beta. +* BUG 6386: Groupdb mapping fix. +* BUG 6421: Fix POSIX read-only open on read-only shares. +* BUG 6476: Fix more smbd-zombies in memory. +* BUG 6488: acl_group_override() call in posix acls references an + uninitialized variable. +* BUG 6504: Fix SAMR server for Winbind access. +* BUG 6520: Fix time stamps. +* Fix join of Windows 7 RC to a Samba3 DC. +* Fix bug in processing of open modes in POSIX open. + + +o Guuml;nther Deschner lt;g...@samba.orggt; +* BUG 6301: Fix samr_ConnectVersion enum which is 32bit not 16bit. +* BUG 6340: Don't segfault when cleartext trustdom pwd could not be + retrieved. +* BUG 6372: Fix usermanager only displaying 1024 groups and aliases. +* BUG 6465: Fix enum_aliasmem in ldb branch. +* BUG 6484: Fix searching for users while adding them to
svn commit: samba-web r1318 - in trunk: .
Author: kseeger Date: 2009-08-12 07:33:23 -0600 (Wed, 12 Aug 2009) New Revision: 1318 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1318 Log: Fix typos Karolin Modified: trunk/index.html Changeset: Modified: trunk/index.html === --- trunk/index.html2009-08-12 13:27:58 UTC (rev 1317) +++ trunk/index.html2009-08-12 13:33:23 UTC (rev 1318) @@ -29,7 +29,7 @@ h412 August 2009/h4 p class=headlineSamba 3.2.14 Available for Download/p -pThis is the last bugfix release of the Samba 3.2 series/p +pThis is the last bug fix release of the Samba 3.2 series/p pThe uncompressed tarballs and patch files have been signed using GnuPG (ID 6568B7EA). The source code can be @@ -38,7 +38,7 @@ is also available. See a href=/samba/history/samba-3.2.14.html the release notes for more info/a./p -pPlease note, that this is the last bugfix release of the Samba 3.2 series! +pPlease note, that this is the last bug fix release of the Samba 3.2 series! There will be security releases on demand only. For more information on current Samba releases, please see the a href=http://wiki.samba.org/index.php/Samba3_Release_Planning;Release
[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1208-gc704e22
The branch, v3-4-test has been updated via c704e22806198a620d7e058c8d69c144ce096837 (commit) from 80cedd944c3bcee7fe44787c9730b564b2d86726 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test - Log - commit c704e22806198a620d7e058c8d69c144ce096837 Author: Jeremy Allison j...@samba.org Date: Thu Aug 6 13:11:20 2009 -0700 Correctly implement SMB_INFO_STANDARD setfileinfo. Fixes bug #6593. Jeremy. --- Summary of changes: source3/smbd/trans2.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index cae13df..7173796 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -5702,13 +5702,13 @@ static NTSTATUS smb_set_info_standard(connection_struct *conn, } /* create time */ - ft.create_time = interpret_long_date(pdata); + ft.create_time = convert_time_t_to_timespec(srv_make_unix_date2(pdata)); /* access time */ - ft.atime = interpret_long_date(pdata + 8); + ft.atime = convert_time_t_to_timespec(srv_make_unix_date2(pdata+4)); /* write time */ - ft.mtime = interpret_long_date(pdata + 16); + ft.mtime = convert_time_t_to_timespec(srv_make_unix_date2(pdata+8)); DEBUG(10,(smb_set_info_standard: file %s\n, fname ? fname : fsp-fsp_name )); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1209-g174356c
The branch, v3-4-test has been updated via 174356c6618f8704b968ccfb46b04233bf7dfa40 (commit) from c704e22806198a620d7e058c8d69c144ce096837 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test - Log - commit 174356c6618f8704b968ccfb46b04233bf7dfa40 Author: Karolin Seeger ksee...@samba.org Date: Wed May 13 10:07:56 2009 +0200 s3/packaging: Fix build on RHEL when ccache is not available. This fixes bug #5832. Patch was provided by D.L. Meyer dlmeyer [at] uiuc.edu. Thanks for reporting and providing the patch! Karolin (cherry picked from commit 42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f) (cherry picked from commit b2205a7697598729f85cb767621b8c610654053c) --- Summary of changes: packaging/RHEL/samba.spec.tmpl |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index eb85f9c..4467963 100644 --- a/packaging/RHEL/samba.spec.tmpl +++ b/packaging/RHEL/samba.spec.tmpl @@ -122,8 +122,7 @@ cd source3 # RPM_OPT_FLAGS=$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 ## check for ccache - ccache -h 21 /dev/null -if [ $? -eq 0 ]; then +if [ $(which ccache 2 /dev/null) != ]; then CC=ccache gcc else CC=gcc -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-966-g31e57ab
The branch, master has been updated via 31e57ab1e5d676a60fada9b3de7acdf3fd415dbb (commit) from f75934e2dc95d99dfbbc80f26eb3d1d1efe08604 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 31e57ab1e5d676a60fada9b3de7acdf3fd415dbb Author: Kai Blin k...@samba.org Date: Wed Aug 12 17:59:46 2009 +0200 librpc: rerun make idl_full --- Summary of changes: librpc/gen_ndr/ndr_dcerpc.c |8 +- librpc/gen_ndr/ndr_dfs.c | 20 ++-- librpc/gen_ndr/ndr_drsblobs.c| 76 +- librpc/gen_ndr/ndr_drsuapi.c | 270 +- librpc/gen_ndr/ndr_dssetup.c | 10 +- librpc/gen_ndr/ndr_echo.c| 20 ++-- librpc/gen_ndr/ndr_lsa.c | 32 ++-- librpc/gen_ndr/ndr_named_pipe_auth.c | 20 ++-- librpc/gen_ndr/ndr_nbt.c | 40 +++--- librpc/gen_ndr/ndr_netlogon.c| 90 ++-- librpc/gen_ndr/ndr_samr.c| 80 +- librpc/gen_ndr/ndr_spoolss.c | 56 librpc/gen_ndr/ndr_srvsvc.c | 34 ++-- librpc/gen_ndr/ndr_wkssvc.c | 52 librpc/gen_ndr/ndr_xattr.c | 20 ++-- 15 files changed, 414 insertions(+), 414 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/gen_ndr/ndr_dcerpc.c b/librpc/gen_ndr/ndr_dcerpc.c index c510967..9596440 100644 --- a/librpc/gen_ndr/ndr_dcerpc.c +++ b/librpc/gen_ndr/ndr_dcerpc.c @@ -1356,7 +1356,7 @@ static enum ndr_err_code ndr_push_dcerpc_payload(struct ndr_push *ndr, int ndr_f break; } default: - return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u, level); + return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u at %s, level, __location__); } } if (ndr_flags NDR_BUFFERS) { @@ -1424,7 +1424,7 @@ static enum ndr_err_code ndr_push_dcerpc_payload(struct ndr_push *ndr, int ndr_f break; default: - return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u, level); + return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u at %s, level, __location__); } } return NDR_ERR_SUCCESS; @@ -1517,7 +1517,7 @@ static enum ndr_err_code ndr_pull_dcerpc_payload(struct ndr_pull *ndr, int ndr_f break; } default: - return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u, level); + return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u at %s, level, __location__); } } if (ndr_flags NDR_BUFFERS) { @@ -1584,7 +1584,7 @@ static enum ndr_err_code ndr_pull_dcerpc_payload(struct ndr_pull *ndr, int ndr_f break; default: - return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u, level); + return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u at %s, level, __location__); } } return NDR_ERR_SUCCESS; diff --git a/librpc/gen_ndr/ndr_dfs.c b/librpc/gen_ndr/ndr_dfs.c index 6e36cb3..bf1d300 100644 --- a/librpc/gen_ndr/ndr_dfs.c +++ b/librpc/gen_ndr/ndr_dfs.c @@ -1614,7 +1614,7 @@ static enum ndr_err_code ndr_push_dfs_Info(struct ndr_push *ndr, int ndr_flags, break; } default: - return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u, level); + return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u at %s, level, __location__); } } if (ndr_flags NDR_BUFFERS) { @@ -1711,7 +1711,7 @@ static enum ndr_err_code ndr_push_dfs_Info(struct ndr_push *ndr, int ndr_flags, break; default: - return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u, level); + return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u at %s, level, __location__); } } return NDR_ERR_SUCCESS; @@ -1740,7 +1740,7 @@ static enum ndr_err_code ndr_pull_dfs_Info(struct ndr_pull *ndr, int ndr_flags, if (ndr_flags NDR_SCALARS) { NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, _level)); if (_level != level) { - return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, Bad switch value %u for r, _level); + return
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-967-g1df883a
The branch, master has been updated via 1df883aa39ce69b040f9d9e72125bf4b80c714a9 (commit) from 31e57ab1e5d676a60fada9b3de7acdf3fd415dbb (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1df883aa39ce69b040f9d9e72125bf4b80c714a9 Author: Stefan Metzmacher me...@samba.org Date: Wed Aug 12 17:52:55 2009 +0200 libcli: move some common SMB and SMB2 stuff into libcli/smb/ This will hold code that's shared between source3 and source4. metze --- Summary of changes: .../libcli/smb2 = libcli/smb}/smb2_constants.h|0 .../smb/smb_common.h | 25 +-- source3/smbd/smb2_break.c |2 +- source3/smbd/smb2_close.c |2 +- source3/smbd/smb2_create.c |2 +- source3/smbd/smb2_find.c |2 +- source3/smbd/smb2_flush.c |2 +- source3/smbd/smb2_getinfo.c|2 +- source3/smbd/smb2_glue.c |2 +- source3/smbd/smb2_ioctl.c |2 +- source3/smbd/smb2_keepalive.c |2 +- source3/smbd/smb2_lock.c |2 +- source3/smbd/smb2_negprot.c|2 +- source3/smbd/smb2_notify.c |2 +- source3/smbd/smb2_read.c |2 +- source3/smbd/smb2_server.c |2 +- source3/smbd/smb2_sesssetup.c |2 +- source3/smbd/smb2_setinfo.c|2 +- source3/smbd/smb2_signing.c|2 +- source3/smbd/smb2_tcon.c |2 +- source3/smbd/smb2_write.c |2 +- source4/libcli/raw/interfaces.h|2 +- source4/libcli/smb2/smb2.h |1 - 23 files changed, 32 insertions(+), 34 deletions(-) rename {source4/libcli/smb2 = libcli/smb}/smb2_constants.h (100%) copy source4/libnet/libnet_export_keytab.h = libcli/smb/smb_common.h (77%) Changeset truncated at 500 lines: diff --git a/source4/libcli/smb2/smb2_constants.h b/libcli/smb/smb2_constants.h similarity index 100% rename from source4/libcli/smb2/smb2_constants.h rename to libcli/smb/smb2_constants.h diff --git a/source4/libnet/libnet_export_keytab.h b/libcli/smb/smb_common.h similarity index 77% copy from source4/libnet/libnet_export_keytab.h copy to libcli/smb/smb_common.h index 194f890..f5994d4 100644 --- a/source4/libnet/libnet_export_keytab.h +++ b/libcli/smb/smb_common.h @@ -1,28 +1,27 @@ -/* +/* Unix SMB/CIFS implementation. - Copyright (C) Andrew Bartlett abart...@samba.org 2009 - + SMB and SMB2 common header + + Copyright (C) Stefan Metzmacher 2009 + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. */ -struct libnet_export_keytab { - struct { - const char *keytab_name; - } in; - struct { - const char *error_string; - } out; -}; +#ifndef __LIBCLI_SMB_SMB_COMMON_H__ +#define __LIBCLI_SMB_SMB_COMMON_H__ + +#include ../libcli/smb/smb2_constants.h +#endif diff --git a/source3/smbd/smb2_break.c b/source3/smbd/smb2_break.c index 29c55fc..449b8f6 100644 --- a/source3/smbd/smb2_break.c +++ b/source3/smbd/smb2_break.c @@ -20,7 +20,7 @@ #include includes.h #include smbd/globals.h -#include ../source4/libcli/smb2/smb2_constants.h +#include ../libcli/smb/smb_common.h static struct tevent_req *smbd_smb2_oplock_break_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, diff --git a/source3/smbd/smb2_close.c b/source3/smbd/smb2_close.c index acb5da7..b28fb72 100644 --- a/source3/smbd/smb2_close.c +++ b/source3/smbd/smb2_close.c @@ -20,7 +20,7 @@ #include includes.h #include smbd/globals.h -#include ../source4/libcli/smb2/smb2_constants.h +#include ../libcli/smb/smb_common.h static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req, uint16_t in_flags, diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index fe414bb..43b1fcb 100644 ---
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-968-g1d75a6e
The branch, master has been updated via 1d75a6e2245c022e2688d5fa6807d572fa18bcd6 (commit) from 1df883aa39ce69b040f9d9e72125bf4b80c714a9 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1d75a6e2245c022e2688d5fa6807d572fa18bcd6 Author: Stefan Metzmacher me...@samba.org Date: Wed Aug 12 17:43:03 2009 +0200 libcli/smb: move smb2_create_blob code to libcli/smb/ I want to use this in source3/smbd/ metze --- Summary of changes: libcli/smb/config.mk| 11 +++ libcli/smb/smb2_create_blob.c | 186 +++ libcli/smb/smb2_create_blob.h | 51 +++ libcli/smb/smb_common.h |1 + source4/libcli/config.mk|2 +- source4/libcli/raw/interfaces.h |8 +-- source4/libcli/smb2/create.c| 157 - source4/main.mk |1 + 8 files changed, 252 insertions(+), 165 deletions(-) create mode 100644 libcli/smb/config.mk create mode 100644 libcli/smb/smb2_create_blob.c create mode 100644 libcli/smb/smb2_create_blob.h Changeset truncated at 500 lines: diff --git a/libcli/smb/config.mk b/libcli/smb/config.mk new file mode 100644 index 000..57c25c3 --- /dev/null +++ b/libcli/smb/config.mk @@ -0,0 +1,11 @@ +# common SMB and SMB2 stuff +[SUBSYSTEM::LIBCLI_SMB_COMMON] +PUBLIC_DEPENDENCIES = LIBTALLOC + +LIBCLI_SMB_COMMON_OBJ_FILES = $(addprefix ../libcli/smb/, \ + smb2_create_blob.o) + +$(eval $(call proto_header_template, \ + ../libcli/smb/smb_common_proto.h, \ + $(LIBCLI_SMB_COMMON_OBJ_FILES:.o=.c))) + diff --git a/libcli/smb/smb2_create_blob.c b/libcli/smb/smb2_create_blob.c new file mode 100644 index 000..0dad224 --- /dev/null +++ b/libcli/smb/smb2_create_blob.c @@ -0,0 +1,186 @@ +/* + Unix SMB/CIFS implementation. + + SMB2 Create Context Blob handling + + Copyright (C) Andrew Tridgell 2005 + Copyright (C) Stefan Metzmacher 2008-2009 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see http://www.gnu.org/licenses/. +*/ + +#include includes.h +#include ../libcli/smb/smb_common.h + +static size_t smb2_create_blob_padding(uint32_t offset, size_t n) +{ + if ((offset (n-1)) == 0) return 0; + return n - (offset (n-1)); +} + +/* + parse a set of SMB2 create blobs +*/ +NTSTATUS smb2_create_blob_parse(TALLOC_CTX *mem_ctx, const DATA_BLOB buffer, + struct smb2_create_blobs *blobs) +{ + const uint8_t *data = buffer.data; + uint32_t remaining = buffer.length; + + while (remaining 0) { + uint32_t next; + uint32_t name_offset, name_length; + uint32_t reserved, data_offset; + uint32_t data_length; + char *tag; + DATA_BLOB b; + NTSTATUS status; + + if (remaining 16) { + return NT_STATUS_INVALID_PARAMETER; + } + next= IVAL(data, 0); + name_offset = SVAL(data, 4); + name_length = SVAL(data, 6); + reserved= SVAL(data, 8); + data_offset = SVAL(data, 10); + data_length = IVAL(data, 12); + + if ((next 0x7) != 0 || + next remaining || + name_offset 16 || + name_offset remaining || + name_length != 4 || /* windows enforces this */ + name_offset + name_length remaining || + data_offset name_offset + name_length || + data_offset remaining || + data_offset + (uint64_t)data_length remaining) { + return NT_STATUS_INVALID_PARAMETER; + } + + tag = talloc_strndup(mem_ctx, (const char *)data + name_offset, name_length); + if (tag == NULL) { + return NT_STATUS_NO_MEMORY; + } + + b = data_blob_const(data+data_offset, data_length); + status = smb2_create_blob_add(mem_ctx, blobs, tag, b); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + talloc_free(tag); + +
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-969-g1ddd10b
The branch, master has been updated via 1ddd10b56aea663b06768638d83e3bdcfea9ec89 (commit) from 1d75a6e2245c022e2688d5fa6807d572fa18bcd6 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1ddd10b56aea663b06768638d83e3bdcfea9ec89 Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 10:58:00 2009 -0700 Fix some warnings in the AIX ACL code. Jeremy. --- Summary of changes: source3/modules/vfs_aixacl_util.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/modules/vfs_aixacl_util.c b/source3/modules/vfs_aixacl_util.c index b2329fe..2d84f03 100644 --- a/source3/modules/vfs_aixacl_util.c +++ b/source3/modules/vfs_aixacl_util.c @@ -38,8 +38,8 @@ SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl) - DEBUG(10,(acl_entry is %d\n,acl_entry)); - DEBUG(10,(acl_last(file_acl) id %d\n,acl_last(file_acl))); + DEBUG(10,(acl_entry is %p\n,(void *)acl_entry)); + DEBUG(10,(acl_last(file_acl) id %p\n,(void *)acl_last(file_acl))); /* Check if the extended acl bit is on. * * If it isn't, do not show the * @@ -124,7 +124,7 @@ SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl) ace-a_perm |= (ace-a_perm S_IXUSR) ? SMB_ACL_EXECUTE : 0; DEBUG(10,(ace-a_perm is %d\n,ace-a_perm)); - DEBUG(10,(acl_entry = %d\n,acl_entry)); + DEBUG(10,(acl_entry = %p\n,(void *)acl_entry)); DEBUG(10,(The ace_type is %d\n,acl_entry-ace_type)); acl_entry = acl_nxt(acl_entry); @@ -210,7 +210,6 @@ struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl) struct acl_entry *acl_entry = NULL; struct ace_id *ace_id = NULL; unsigned int id_type; - unsigned int user_id; unsigned int acl_length; int i; -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-970-gd6270df
The branch, master has been updated via d6270df748dcfd8d5a02c328518c2332da8fbed5 (commit) from 1ddd10b56aea663b06768638d83e3bdcfea9ec89 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d6270df748dcfd8d5a02c328518c2332da8fbed5 Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 13:00:54 2009 -0700 Add store create time parameter (docs to follow) that stores the create time in the user.DosTimestamps EA. Jeremy. --- Summary of changes: source3/include/proto.h | 12 - source3/include/smb.h|2 + source3/modules/vfs_default.c|9 source3/param/loadparm.c | 12 + source3/script/tests/selftest.sh |1 + source3/smbd/dosmode.c | 91 -- source3/smbd/nttrans.c |8 ++-- source3/smbd/open.c |9 source3/smbd/reply.c |2 +- source3/smbd/trans2.c|9 ++-- 10 files changed, 140 insertions(+), 15 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/include/proto.h b/source3/include/proto.h index 8b3e029..963e6df 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4187,6 +4187,7 @@ bool lp_administrative_share(int ); bool lp_print_ok(int ); bool lp_map_hidden(int ); bool lp_map_archive(int ); +bool lp_store_create_time(int ); bool lp_store_dos_attributes(int ); bool lp_dmapi_support(int ); bool lp_locking(const struct share_params *p ); @@ -6266,10 +6267,17 @@ bool set_sticky_write_time_fsp(struct files_struct *fsp, struct timespec mtime); bool update_write_time(struct files_struct *fsp); -struct timespec get_create_timespec(struct files_struct *fsp, +NTSTATUS set_create_timespec_ea(connection_struct *conn, + struct files_struct *fsp, + const struct smb_filename *smb_fname, + struct timespec create_time); + +struct timespec get_create_timespec(connection_struct *conn, + struct files_struct *fsp, const struct smb_filename *smb_fname); -struct timespec get_change_timespec(struct files_struct *fsp, +struct timespec get_change_timespec(connection_struct *conn, + struct files_struct *fsp, const struct smb_filename *smb_fname); /* The following definitions come from smbd/error.c */ diff --git a/source3/include/smb.h b/source3/include/smb.h index fb01a92..28bd60a 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1859,6 +1859,8 @@ struct ea_list { #define SAMBA_XATTR_DOS_ATTRIB user.DOSATTRIB /* Prefix for DosStreams in the vfs_streams_xattr module */ #define SAMBA_XATTR_DOSSTREAM_PREFIX user.DosStream. +/* Prefix for DOS timestamps. */ +#define SAMBA_XATTR_DOSTIMESTAMPS user.DosTimestamps #define UUID_SIZE 16 diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 2ee2fd1..a793b33 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -817,6 +817,15 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, errno = ENOSYS; result = -1; #endif + + if (!null_timespec(ft-create_time) + lp_store_create_time(SNUM(handle-conn))) { + set_create_timespec_ea(handle-conn, + NULL, + smb_fname, + ft-create_time); + } + out: END_PROFILE(syscall_ntimes); return result; diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index dbbd6e3..3598471 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -446,6 +446,7 @@ struct service { bool bMap_system; bool bMap_hidden; bool bMap_archive; + bool bStoreCreateTime; bool bStoreDosAttributes; bool bDmapiSupport; bool bLocking; @@ -589,6 +590,7 @@ static struct service sDefault = { False, /* bMap_system */ False, /* bMap_hidden */ True, /* bMap_archive */ + False, /* bStoreCreateTime */ False, /* bStoreDosAttributes */ False, /* bDmapiSupport */ True, /* bLocking */ @@ -3066,6 +3068,15 @@ static struct parm_struct parm_table[] = { .flags = FLAG_ADVANCED, }, { + .label = store create time, + .type = P_BOOL, + .p_class= P_LOCAL, + .ptr= sDefault.bStoreCreateTime, + .special= NULL, +
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-971-g7ad5c69
The branch, master has been updated via 7ad5c69bd45d9211dc3bceb655d63d2f141f1bc6 (commit) from d6270df748dcfd8d5a02c328518c2332da8fbed5 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 7ad5c69bd45d9211dc3bceb655d63d2f141f1bc6 Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 13:54:38 2009 -0700 Documentation for store create time. Jeremy. --- Summary of changes: docs-xml/smbdotconf/filename/storecreatetime.xml | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 docs-xml/smbdotconf/filename/storecreatetime.xml Changeset truncated at 500 lines: diff --git a/docs-xml/smbdotconf/filename/storecreatetime.xml b/docs-xml/smbdotconf/filename/storecreatetime.xml new file mode 100644 index 000..5957a5d --- /dev/null +++ b/docs-xml/smbdotconf/filename/storecreatetime.xml @@ -0,0 +1,15 @@ +samba:parameter name=store create time + context=S +type=boolean + xmlns:samba=http://www.samba.org/samba/DTD/samba-doc; +description + para + If this parameter is set Samba attempts to store a create timestamp on any file or directory created by Samba + in a filesystem extended attribute. The data is written as an 8 byte Windows timestamp in little-endian form + in attribute named user.DosTimestamps. This extended attribute is explicitly hidden from smbd clients requesting an + EA list. On Linux the filesystem must have been mounted with the mount option user_xattr in order for + extended attributes to work, also extended attributes must be compiled into the Linux kernel. + /para +/description +value type=defaultno/value +/samba:parameter -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-972-g6a0c294
The branch, master has been updated via 6a0c2946be947afbb56acbf6444d4a2b48cc06f4 (commit) from 7ad5c69bd45d9211dc3bceb655d63d2f141f1bc6 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 6a0c2946be947afbb56acbf6444d4a2b48cc06f4 Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 15:08:23 2009 -0700 Fix BASE-DELAYWRITE test by removing const from struct smb_filename in smbd_do_qfilepathinfo(). update_stat_ex_mtime() modifies the stat struct inside the smb_fname so don't make a copy of that stat struct, use it directly - it's meant to be updated and represent the state of the file we're returning. Jeremy. --- Summary of changes: source3/smbd/dosmode.c |2 ++ source3/smbd/globals.h |2 +- source3/smbd/trans2.c | 38 ++ 3 files changed, 21 insertions(+), 21 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index e9e92ad..e9345cc 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -887,6 +887,8 @@ NTSTATUS set_create_timespec_ea(connection_struct *conn, if (ret == -1) { map_nt_error_from_unix(errno); } + DEBUG(10,(set_create_timespec_ea: wrote create time EA for file %s\n, + smb_fname_str_dbg(smb_fname))); return NT_STATUS_OK; } diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 58c92de..0b8ef58 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -184,7 +184,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, TALLOC_CTX *mem_ctx, uint16_t info_level, files_struct *fsp, - const struct smb_filename *smb_fname, + struct smb_filename *smb_fname, bool delete_pending, struct timespec write_time_ts, bool ms_dfs_link, diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index b14d505..ae4b8b0 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3987,7 +3987,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, TALLOC_CTX *mem_ctx, uint16_t info_level, files_struct *fsp, - const struct smb_filename *smb_fname, + struct smb_filename *smb_fname, bool delete_pending, struct timespec write_time_ts, bool ms_dfs_link, @@ -4004,7 +4004,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, unsigned int data_size; struct timespec create_time_ts, mtime_ts, atime_ts, ctime_ts; time_t create_time, mtime, atime, c_time; - SMB_STRUCT_STAT sbuf; + SMB_STRUCT_STAT *psbuf = smb_fname-st; char *p; char *base_name; char *dos_fname; @@ -4017,8 +4017,6 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, uint64_t file_index = 0; uint32_t access_mask = 0; - sbuf = smb_fname-st; - if (INFO_LEVEL_IS_UNIX(info_level) !lp_unix_extensions()) { return NT_STATUS_INVALID_LEVEL; } @@ -4035,7 +4033,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, if (!mode) mode = FILE_ATTRIBUTE_NORMAL; - nlink = sbuf.st_ex_nlink; + nlink = psbuf-st_ex_nlink; if (nlink (modeaDIR)) { nlink = 1; @@ -4055,12 +4053,12 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, dend = dstart + data_size - 1; if (!null_timespec(write_time_ts) !INFO_LEVEL_IS_UNIX(info_level)) { - update_stat_ex_mtime(sbuf, write_time_ts); + update_stat_ex_mtime(psbuf, write_time_ts); } create_time_ts = get_create_timespec(conn, fsp, smb_fname); - mtime_ts = sbuf.st_ex_mtime; - atime_ts = sbuf.st_ex_atime; + mtime_ts = psbuf-st_ex_mtime; + atime_ts = psbuf-st_ex_atime; ctime_ts = get_change_timespec(conn, fsp, smb_fname); if (lp_dos_filetime_resolution(SNUM(conn))) { @@ -4106,20 +4104,20 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, string_replace(dos_fname, '/', '\\'); } - allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, fsp, sbuf); + allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, fsp, psbuf); if (!fsp) { /* Do we have this path open ? */ files_struct *fsp1; - struct file_id fileid = vfs_file_id_from_sbuf(conn, sbuf); + struct
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-973-gd91edea
The branch, master has been updated via d91edeaa94c54a190a0c90bbd63156fdf670c26a (commit) from 6a0c2946be947afbb56acbf6444d4a2b48cc06f4 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d91edeaa94c54a190a0c90bbd63156fdf670c26a Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 16:27:17 2009 -0700 When mapping EA's into a TDB, don't remove the EA until the last link to the file is gone (fixes the build farm RAW-RENAME test with xattr's in tdb's). Jeremy. --- Summary of changes: source3/modules/vfs_xattr_tdb.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index a058c82..55fb141 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -620,6 +620,7 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, struct db_record *rec; NTSTATUS status; int ret = -1; + bool remove_record = false; SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context, return -1); @@ -632,6 +633,10 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, if (SMB_VFS_STAT(handle-conn, smb_fname_tmp) == -1) { goto out; } + if (smb_fname_tmp-st.st_ex_nlink == 1) { + /* Only remove record on last link to file. */ + remove_record = true; + } ret = SMB_VFS_NEXT_UNLINK(handle, smb_fname_tmp); @@ -639,6 +644,10 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, goto out; } + if (!remove_record) { + goto out; + } + id = SMB_VFS_FILE_ID_CREATE(handle-conn, smb_fname_tmp-st); rec = xattr_tdb_lock_attrs(talloc_tos(), db, id); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-975-g88fd98b
The branch, master has been updated via 88fd98b7c4ed41ab6c6ac5a226581e862ae900f3 (commit) via 28f7b0743679c042bc135c7ec5265d75e900aa87 (commit) from d91edeaa94c54a190a0c90bbd63156fdf670c26a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 88fd98b7c4ed41ab6c6ac5a226581e862ae900f3 Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 17:44:48 2009 -0700 Fix EVERY SINGLE build on the buildfarm that doesn't have bindtextdomain or textdomain. C'mon, this is what configure.in is *FOR*. Jeremy. commit 28f7b0743679c042bc135c7ec5265d75e900aa87 Author: Jeremy Allison j...@samba.org Date: Wed Aug 12 17:07:13 2009 -0700 Move build over to storing DOS attributes in EA's. Turn off map to directives. I've now fixed the issues with the build tests running this way. I think this is how most people run these days - please raise this on the list (or revert) if you disagree. --- Summary of changes: source3/configure.in |1 + source3/script/tests/selftest.sh |6 -- source3/utils/net.c |4 3 files changed, 9 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/configure.in b/source3/configure.in index 7cfd3fb..749bfc4 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1018,6 +1018,7 @@ AC_CHECK_HEADERS(sys/mman.h) # setbuffer, shmget, shm_open are needed for smbtorture AC_CHECK_FUNCS(shmget shm_open) AC_CHECK_FUNCS(gettext dgettext) +AC_CHECK_FUNCS(bindtextdomain textdomain) # Find a method of generating a stack trace AC_CHECK_HEADERS(execinfo.h libexc.h libunwind.h) diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh index 3fcfa4d..ae856ca 100755 --- a/source3/script/tests/selftest.sh +++ b/source3/script/tests/selftest.sh @@ -240,8 +240,10 @@ cat $SERVERCONFFILEEOF read only = no smbd:sharedelay = 10 smbd:writetimeupdatedelay = 50 - map hidden = yes - map system = yes + map hidden = no + map system = no + map readonly = no + store dos attributes = yes create mask = 755 store create time = yes vfs objects = $BINDIR/xattr_tdb.so $BINDIR/streams_depot.so diff --git a/source3/utils/net.c b/source3/utils/net.c index 1e3923f..58c9623 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -678,8 +678,12 @@ static struct functable net_func[] = { load_case_tables(); setlocale(LC_ALL, ); +#if defined(HAVE_BINDTEXTDOMAIN) bindtextdomain(MODULE_NAME, dyn_LOCALEDIR); +#endif +#if defined(HAVE_TEXTDOMAIN) textdomain(MODULE_NAME); +#endif /* set default debug level to 0 regardless of what smb.conf sets */ DEBUGLEVEL_CLASS[DBGC_ALL] = 0; -- Samba Shared Repository
[SCM] CTDB repository - branch master updated - ctdb-1.0.87-46-g5852a52
The branch, master has been updated via 5852a526ce7d0333cd1f9a05353d8920ea99db37 (commit) via 7e799b7523c9699bd65a8a8207f7e03d668b0b81 (commit) from a42dbdb7b9ccf3ce2aed48aa33f1cd3af2e94fe3 (commit) http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master - Log - commit 5852a526ce7d0333cd1f9a05353d8920ea99db37 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Thu Aug 13 13:02:00 2009 +1000 document enable/disablescript commit 7e799b7523c9699bd65a8a8207f7e03d668b0b81 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Thu Aug 13 13:04:08 2009 +1000 add new controls to make it possible to enable/disable individual eventscripts update scriptstatus output so it lists disabled scripts --- Summary of changes: client/ctdb_client.c | 66 + doc/ctdb.1 | 15 ++- doc/ctdb.1.html| 109 --- doc/ctdb.1.xml | 19 +++ include/ctdb.h |4 + include/ctdb_private.h |8 + server/ctdb_control.c |9 + server/eventscript.c | 382 ++-- tools/ctdb.c | 49 ++- 9 files changed, 531 insertions(+), 130 deletions(-) Changeset truncated at 500 lines: diff --git a/client/ctdb_client.c b/client/ctdb_client.c index 2e7a093..a6135c9 100644 --- a/client/ctdb_client.c +++ b/client/ctdb_client.c @@ -3568,6 +3568,27 @@ int ctdb_ctrl_event_script_stop(struct ctdb_context *ctdb, int32_t result) return 0; } +/* + tell the main daemon a script was disabled + */ +int ctdb_ctrl_event_script_disabled(struct ctdb_context *ctdb, const char *name) +{ + int ret; + int32_t res; + TDB_DATA data; + + data.dptr = discard_const(name); + data.dsize = strlen(name)+1; + + ret = ctdb_control(ctdb, CTDB_CURRENT_NODE, 0, CTDB_CONTROL_EVENT_SCRIPT_DISABLED, 0, data, + ctdb, NULL, res, NULL, NULL); + if (ret != 0 || res != 0) { + DEBUG(DEBUG_ERR,(Failed to send event_script_disabeld\n)); + return -1; + } + + return 0; +} /* get the status of running the monitor eventscripts @@ -3776,3 +3797,48 @@ int ctdb_ctrl_setrecmasterrole(struct ctdb_context *ctdb, struct timeval timeout return 0; } + +/* enable an eventscript + */ +int ctdb_ctrl_enablescript(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, const char *script) +{ + int ret; + TDB_DATA data; + int32_t res; + + data.dsize = strlen(script) + 1; + data.dptr = discard_const(script); + + ret = ctdb_control(ctdb, destnode, 0, + CTDB_CONTROL_ENABLE_SCRIPT, 0, data, + NULL, NULL, res, timeout, NULL); + if (ret != 0 || res != 0) { + DEBUG(DEBUG_ERR,(__location__ ctdb_control for enablescript failed\n)); + return -1; + } + + return 0; +} + +/* disable an eventscript + */ +int ctdb_ctrl_disablescript(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, const char *script) +{ + int ret; + TDB_DATA data; + int32_t res; + + data.dsize = strlen(script) + 1; + data.dptr = discard_const(script); + + ret = ctdb_control(ctdb, destnode, 0, + CTDB_CONTROL_DISABLE_SCRIPT, 0, data, + NULL, NULL, res, timeout, NULL); + if (ret != 0 || res != 0) { + DEBUG(DEBUG_ERR,(__location__ ctdb_control for disablescript failed\n)); + return -1; + } + + return 0; +} + diff --git a/doc/ctdb.1 b/doc/ctdb.1 index ab487d9..0b59cf6 100644 --- a/doc/ctdb.1 +++ b/doc/ctdb.1 @@ -1,11 +1,11 @@ .\ Title: ctdb .\Author: .\ Generator: DocBook XSL Stylesheets v1.73.2 http://docbook.sf.net/ -.\ Date: 07/28/2009 +.\ Date: 08/13/2009 .\Manual: .\Source: .\ -.TH CTDB 1 07/28/2009 +.TH CTDB 1 08/13/2009 .\ disable hyphenation .nh .\ disable justification (adjust text to left margin only) @@ -260,6 +260,7 @@ Example output: 10\.interface Status:OKDuration:0\.077 Tue Mar 24 18:56:57 2009 11\.natgw Status:OKDuration:0\.039 Tue Mar 24 18:56:57 2009 20\.multipathdStatus:OKDuration:0\.038 Tue Mar 24 18:56:57 2009 +31\.clamd Status:DISABLED 40\.vsftpdStatus:OKDuration:0\.045 Tue Mar 24 18:56:57 2009 41\.httpd Status:OKDuration:0\.039 Tue Mar 24 18:56:57 2009 50\.samba Status:ERRORDuration:0\.082 Tue Mar 24 18:56:57 2009 @@ -267,6 +268,16 @@ Example output: .fi .RE +.SS disablescript script +.PP +This command is used to disable an eventscript\. +.PP +This will take effect the next time the eventscripts are being executed so it can