Re: [Samba] NFSv4 ACL Support
Hi Michael, I've got two bugs open because ACL inheritance does not work on NFSv4. See https://bugzilla.samba.org/show_bug.cgi?id=5446 (https://bugzilla.samba.org/show_bug.cgi?id=5447 pro forma for samba 3.0) So if you need ACL inhertance, you'll probaby want to apply the simple ptahces to vfs_zfsacl.c Oops. Sorry, I did not follow the bug reports closely lately. Thank you for taking them. I'll assign the corresponding bugs to me, and I'll take a look at your cleaned up patch. I think the issue I had originally was with the prototypes of the disabled methods, right?... Exactly. Nils P.S.: Maybe I should have mentioned that this issue might be Solaris-specific, as this bug depends on the semantics of the acl() call on NFS (or the equivalent on other O/Ses). -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to share [homes] in a more flexible way?
Hello, Am Sonntag, 16. November 2008 10:23 schrieb Dariem Pérez Herrera: Hello everybody, This is the scenario I have: I've joined a GNU/Linux machine to an Active Directory domain using winbind, and I've shared [homes], so now every user of the entire organization were I work can see a shared resource named like his/her username when they connect to that PC, but I don't want that, I just want the people from my department to see their homes (they are the only users who can access that machine by connecting to Samba, because I've specified valid users in [homes], but keeping visible homes for the rest of the users in the organization can bring me some trouble with personnel asking why their usernames appear naming a shared folder on an unknown machine in a remote department). I've attempted various approaches but I've failed to achieve my goal, Have you tried the following options? browseable = no # and / or valid users = %S best regards, Dariem regards Thomas -- Thomas Flaig mailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] files to trash
Hi, I setup trash in samba, it working well but people can avoid it when they delete files/folder using key combination ( Shift+Del ) in Windows XP. Is possible to prevent hard delete? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] How to share [homes] in a more flexible way?
I've attempted various approaches but I've failed to achieve my goal, so I wonder if it's even possible. Sharing homes one-by-one is out of question: too many people in my department. Can you help me? Assuming all the people in your department are in a group, you can just include a separate configuration based on group membership: Eg: In smb.conf: include = /etc/samba/%G_smb.conf For your group, you should then create /etc/samba/mygroup_smb.conf: [homes] comment = Homes browsable = no valid users = %S path = %H Etc etc etc You might have problems with this if your department group is not your primary group membership... Alex -- Alex Harrington - Network Development Manager Longhill High School t: 01273 391672 e: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to share [homes] in a more flexible way?
On 11/16/2008, Dariem Pérez Herrera ([EMAIL PROTECTED]) wrote: It doesn't solve my problem, that option is for hiding files within a shared folder if they are not readable, but what I want is to hide the inaccessible folder. It also hides unreadable folders... So, if you add this to the [homes] share, every user will see only the folders (home directories) that they actually have access to - which if you are doing this right will only be their own home directory. -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Direction Required
Hi, I'm sure this has been asked before, but I can't find where I should start. I have a lan with about 10 computers involved in web development. The main domain that is setup is using Windows Small Business Server (with IIS for testing sites). I would like to use Debian as a linux testing server. Rather than access this via ftp (which is awkward), I would like to integrate with the windows network via samba. I have a security group on the Small Business Server called Production. This is a list of people involved in production (...) and thus access to web files. Is it possible to setup Debian (or any distro) to check if users are part of the Production security group and then access the files on the Debian box accordingly. Sorry if this is long-winded, I just want to be as clear as possible on what I want to do. The question is, can someone point me in the direction of how to acheive this goal? Cheers Troot -- View this message in context: http://www.nabble.com/Direction-Required-tp20538337p20538337.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/listinfo/samba
Re: [Samba] How to share [homes] in a more flexible way?
If your users are seeing folders other than their own under homes, it means that you made some mistake with the configuration, probably with the path directive to homes. That is NOT the normal behavior. You still didn't show us your [homes] entry in smb.conf... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba + Vista Issue
Sorry to be a pain, but can anyone help me with this as it's starting to bug the hell out of me. Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Stirk Sent: 15 November 2008 14:51 To: samba@lists.samba.org Subject: [Samba] Samba + Vista Issue Importance: High Hi, I'm experiencing a problem with samba v3.2.4 and windows vista. If I access my samba share via the ip address e.g. \\192.168.0.1\share windows will authenticate against the samba server and bring the share up, but if I use the dns name e.g. \\server.domain.local\share i'm faced with the logon box. I am able to logon with the user I have created, but I find this annoying as it works one way but not another. Does anyone know how I can fix this? Regards Adam -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Problems running autoconf on Solaris 10 Update 4
It looks like all of this stuff is under source/lib. It's like the autoconf equivalent of CPPFLAGS needs to be set so it picks up the directories that contain the stuff. More research. You might just run ./autogen on a recent linux box and scp the result to Solaris. Volker Thanks Volker, that worked like a charm! ~Eric -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Users not able to change password
-- Can somebody point me into the right direction please? Is this a windows issue/setting or samba or both ... Thanks Peter -- Hi list, My brand new samba network is working pretty good, ironing out some glitches. Win XP users cannot change their password. I use SaMBa as a domain-controller with an LDAP backend. A stripped down version of the config is below. I set minimum password length to 8, trying to change the password to a 7 char long gives me the messages that the password does not meet requirements. So that part seems to be working. However using an 8 char long pass (with numbers etc) gives me the msg that I don't have enough permissions to change the passwd. This is going to be an issue in 30 days, when users are required to change their passwd... Used pdbedit to set those requirements Tips and hints are welcome. The log shows: 2008/11/13 12:54:19, 0] auth/auth_util.c:create_builtin_users(758) create_builtin_users: Failed to create Users [2008/11/13 12:54:19, 0] lib/util_sock.c:read_socket_with_timeout(497) read_socket_with_timeout: timeout read. read error = Input/output error. [2008/11/13 12:54:19, 0] lib/util_sock.c:read_socket_with_timeout(497) read_socket_with_timeout: timeout read. read error = Input/output error. [2008/11/13 12:55:02, 0] auth/auth_util.c:create_builtin_administrators(792) create_builtin_administrators: Failed to create Administrators [2008/11/13 12:55:02, 0] auth/auth_util.c:create_builtin_users(758) create_builtin_users: Failed to create Users Thanks Peter [global] workgroup = ENGIN server string = fileserver dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = ldapsam:ldap://localhost/ obey pam restrictions = no ldap admin dn = cn=xxx,dc=xxx,dc=xxx ldap suffix = dc=xxx, dc=xxx ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ldap passwd sync = Yes passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* add user script = /usr/sbin/smbldap-useradd -m %u ldap delete dn = Yes delete user script = /usr/sbin/smbldap-userdel %u add machine script = /usr/sbin/smbldap-useradd -w %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 domain logons = 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* . logon path = logon script = allusers.bat load printers = yes printcap name = cups printing = cups use client driver = yes cups options = raw socket options = TCP_NODELAY [homes] comment = Home directories browseable = no read only = no create mask = 0700 directory mask = 0700 valid users = %S hide dot files = yes [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes read only = yes share modes = no [shared] comment = Shared by all path = /data/shares/shared create mask = 0770 directory mask = 0770 users = %S force group = Domain users read only = no -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] [samba-users] Network Pblm with misty (XP Home SP3 )
Ted Hilts wrote: Rubin Bennett wrote: On Fri, 2008-11-14 at 17:17 -0700, Ted Hilts wrote: In short this is the problem. The XP Home machine called misty cannot see any other machines. It cannot see the Linux machines and it cannot see the XP Home machines or the XP Pro machine. In spite of this blindness it can map to all the XP machines and define so-called network places. But misty cannot map through the SAMBA protocal used by the Linux machines to make their shares available. All the other XP machines can access these Linux shares. So this problem is unique to misty. Looking from the Linux side of the LAN the Linux machines can see misty shares as in these following diagnostics generated from the Linux machine called Ubuntu with the same OS name. (misty has the static IP address 192.168.1.20 and MS SP3). The diagnostics indicate that Ubuntu can see the misty shares. The Linux machine Ubuntu has IP address 192.168.1.16. Here are those diagnostics: (disregard the error line allow hosts associated with the smb.config file. [EMAIL PROTECTED]:~$ nmblookup -d 2 '*' params.c:Parameter() - Ignoring badly formed line in configuration file: allow hosts added interface ip=192.168.1.16 bcast=192.168.1.255 nmask=255.255.255.0 querying * on 192.168.1.255 Got a positive name query response from 192.168.1.16 ( 192.168.1.16 ) Got a positive name query response from 192.168.1.20 ( 192.168.1.20 ) Got a positive name query response from 192.168.1.15 ( 192.168.1.15 ) Got a positive name query response from 192.168.1.9 ( 192.168.1.9 ) Got a positive name query response from 192.168.1.70 ( 192.168.1.70 ) 192.168.1.16 *00 192.168.1.20 *00 192.168.1.15 *00 192.168.1.9 *00 192.168.1.70 *00 [EMAIL PROTECTED]:~$ sudo smbclient -L misty -U ted -W peggyted [sudo] password for ted: params.c:Parameter() - Ignoring badly formed line in configuration file: allow hosts Password: Domain=[MISTY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Sharename Type Comment - --- IPC$IPC Remote IPC SharedDocs Disk C Disk D Disk Domain=[MISTY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Server Comment ---- WorkgroupMaster ---- [EMAIL PROTECTED]:~$ In addition I obtained some advice but am not sure what to make of it. All the following is that advice. Look into that XP Home / Samaba. I would do some more research samba xp registry hack I remember having to use the below at one point. Network Sign or Seal Registry Change The following registry entry needs to be changed: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\Netlogon\Parameters] requiresignorseal=dword: signsecurechannel=dword: end of advice. When XP first came out, this was valid advice. It hasn't been for several years now though. Your diagnostics are thorough but flawed - you don't have to have working shares to be able to list them from smbclient. You'd be better off to test them using smbclient -U ted //ubuntu/ShareDocs Once you authenticate successfully, you should be able to do a directory listing in the share. You also should be able to browse from teh XP machine via the Ubuntu server's IP address: Start - Run - \\192.168.1.16 That *should* return a list of shares and you should be able to descend into them if all is working. Re: the error: NEVER disregard error messages, they *always* mean something. I presume that you're only trying to have workgroup browsing, as you already know that XP Home can't do domains? HTH, Rubin Rubin: I think my problem is with misty not with Ubuntu. You said: Start - Run - \\192.168.1.16 (remember 192.168.1.16 is the Ubuntu machine IP address and your XP instructions are applied to misty which has IP address 192.168.1.20. The results follow: Windows Explorer \\192.168.1.16 is not accesible. You might not have permissions to use this network resource. Contact the administrator of this service to find out if you have access permissions. The account is not authorized to log in from this station. Both misty and Ubuntu have the same account name which is ted and ted is me -- the administrator for both. Both misty and Ubuntu use the HOSTS and LMHOSTS files and the proper information is in each of them. Static IP addresses are used for all machines in the LAN. The addresses and names are properly correlated for each machine. Both can ping each other and any other machine in the LAN. The Ubuntu smb file properly shows that misty is an acceptable host and the user ted is an acceptable user. As shown earlier Ubuntu can see the misty shares but cannot do a smbmount on these shares. What has been said of Ubuntu is also true of gateway (not the command) machine which is a Suse Linux distribution. Both Linux
[Samba] SAMBA-3.2.4 for Solaris SPARC 9: ld.so.1: net: fatal: libtalloc.so: open failed: No such file or directory
Just sharing the information on this a work around for this problem. reported to bugzilla.samba.org: BUG 5907. net ads join get the error: ld.so.1: net: fatal: libtalloc.so: open failed: No such file or directory Killed warning: net ads join failed Top of config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Samba configure 3, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --with-ldap --with-ads --with-pam --with-winbind --with-krb5=/us r/local ## - ## ## Platform. ## ## - ## hostname = newsystem uname -m = sun4u uname -r = 5.9 uname -s = SunOS uname -v = Generic_118558-25 /usr/bin/uname -p = sparc /bin/uname -X = System = SunOS Node = newsystem Release = 5.9 KernelID = Generic_118558-25 Machine = sun4u BusType = unknown Serial = unknown Users = unknown OEM# = 0 Origin# = 1 NumCPU = 1 /bin/arch = sun4 /usr/bin/arch -k = sun4u /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/local/sbin PATH: /usr/ccs/bin PATH: /bin PATH: /usr/bin PATH: /usr/ucb PATH: /etc PATH: /usr/etc PATH: /usr/lib/uucp PATH: /usr/sbin PATH: /usr/sfw/bin PATH: /u/mcs/bin PATH: /u/mcs/utils PATH: /usr/local/samba/bin PATH: /usr/local/samba/sbin PATH: /usr/wp80/wpbin PATH: /usr/wp80/shbin10 PATH: /usr/opt/SUNWesm/sbin Work Around* cd /usr/local/samba/lib ln -s libtalloc.so.1 libtalloc.so ln -s libtdb.so.1 libtdb.so ln -s libwbclient.so.0 libwbclient.so #might as well do these as well. ln -s libnetapi.so.0 libnetapi.so ln -s libsmbclient.so.0 libsmbclient.so ln -s libsmbsharemodes.so.0 libsmbsharemodes.so ** NOTE: to fix: net ads join get the error: ld.so.1: net: fatal: libtalloc.so: open failed: No such file or directory Killed warning: net ads join failed run: ln -s libtalloc.so.1 libtalloc.so NOTE: to fix: ld.so.1: net: fatal: libtdb.so: open failed: No such file or directory Killed warning: net ads join failed run: ln -s libtdb.so.1 libtdb.so NOTE: to fix: ld.so.1: net: fatal: libwbclient.so: open failed: No such file or directory Killed warning: net ads join failed run: ln -s libwbclient.so.0 libwbclient.so -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] How to share [homes] in a more flexible way?
-Original Message- From: Miguel Medalha [mailto:[EMAIL PROTECTED] If your users are seeing folders other than their own under homes, it means that you made some mistake with the configuration, probably with the path directive to homes. That is NOT the normal behavior. You still didn't show us your [homes] entry in smb.conf... This us my [homes] configuration: [homes] browseable = no writeable = yes valid users = @UCI\NovaGroup As you can see, I do not specify path. That's because users' homes are in the default location and Samba finds them without any problem. Members of NovaGroup are the only ones who can access their homes. For example, user Frank who belongs to NovaGroup, can access (read and write) the folder \\server\frank . The problem is that hypothetical user Jon, who doesn't belong to NovaGroup but is a domain user, also see a folder \\server\jon , although he cannot access that folder. I don't want Jon to see that folder, because nasty users like Jon are always complaining about a phantom folder appearing on an unknown machine in a department where they don't work. Did you get the idea? Solutions you have gave me doesn't solve my problem. Thanks anyway, but I'm still searching Regards, Dariem -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to share [homes] in a more flexible way?
You could separate your [homes] entry into a file called Novagroup.homes then do: include = %g.homes Then only the Novagroup members will get a home directory served up. Works for me. Regards Andreas Dariem Pérez Herrera wrote: -Original Message- From: Miguel Medalha [mailto:[EMAIL PROTECTED] If your users are seeing folders other than their own under homes, it means that you made some mistake with the configuration, probably with the path directive to homes. That is NOT the normal behavior. You still didn't show us your [homes] entry in smb.conf... This us my [homes] configuration: [homes] browseable = no writeable = yes valid users = @UCI\NovaGroup As you can see, I do not specify path. That's because users' homes are in the default location and Samba finds them without any problem. Members of NovaGroup are the only ones who can access their homes. For example, user Frank who belongs to NovaGroup, can access (read and write) the folder \\server\frank . The problem is that hypothetical user Jon, who doesn't belong to NovaGroup but is a domain user, also see a folder \\server\jon , although he cannot access that folder. I don't want Jon to see that folder, because nasty users like Jon are always complaining about a phantom folder appearing on an unknown machine in a department where they don't work. Did you get the idea? Solutions you have gave me doesn't solve my problem. Thanks anyway, but I'm still searching Regards, Dariem -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to share [homes] in a more flexible way?
Solutions you have gave me doesn't solve my problem. Thanks anyway, but I'm still searching Why do you insist on using the [homes] share for that atypical use, then? You are searching for a solution to a problem you see in a certain way, but perhaps you should think in some other direction... Think in terms of function, don't stick to some particular form. Why don't you use a %G script parameter and respective script to connect to a share containing folders dedicated to each user of that group? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to share [homes] in a more flexible way?
You could separate your [homes] entry into a file called Novagroup.homes then do: include = %g.homes Then only the Novagroup members will get a home directory served up. Yes, it certainly seems the best solution. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] files to trash
test test wrote: Hi, I setup trash in samba, it working well but people can avoid it when they delete files/folder using key combination ( Shift+Del ) in Windows XP. Is possible to prevent hard delete? I don't exactly have a solution to your problem (in fact, I'm kind of surprised that you can do that), but have a look at rsync + hardlink backups. Our systems here run a backup every hour (during business hours), each evening we grab the most recent hourly sync and put it away (we keep 5 days worth of these), each friday we grab the most recent daily and keep that (for 4 weeks). All up, I can just back to any given hour for the past day, and given day for the past week, or any week for the past month, and it uses approx 1.5x the storage space of the original data (obviously that number will increase if you have less static data). This is my intermediate step, between the recycled module and the tape backups, but to be honest, since this has been up and running I hardly ever look at the recycled stuff. If someone wants something recovered it is far simpler to grab it from the rsync copy. *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] How to share [homes] in a more flexible way?
-Original Message- From: Andreas Baitis [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 5:16 PM You could separate your [homes] entry into a file called Novagroup.homes then do: include = %g.homes Then only the Novagroup members will get a home directory served up. Works for me. Excellent, it worked! :-) Thanks a lot to everybody! best regards, Dariem -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba upgradation
Dear all I know that this is very basic questions but i unable to find out solution for this. I want to upgrade my samba version without disturbing running configuration. is any sort of patching is possible is samba as we do for linux kernel? thanks -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba upgradation
On Tue, Nov 18, 2008 at 12:42 AM, vishesh kumar [EMAIL PROTECTED] wrote: Dear all I know that this is very basic questions but i unable to find out solution for this. I want to upgrade my samba version without disturbing running configuration. is any sort of patching is possible is samba as we do for linux kernel? Just install the new version. I do this in gentoo without restarting the system or samba or messing with the config files. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Users not able to change password
Ummm, I'm not sure, but, how do you set the ACL on slapd.conf? I set mine like these: access to attrs=userPassword,sambaLMPassword,sambaNTPassword ,deliveryMode,mailRe plyText by dnattr=administrator write by self write by anonymous auth by * none access to * by * read Pay attention to the line I colored red. :) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbd process list
Hi, This thing has run in my head either but I forgot to email the forum. Thank you for throwing this out into the forum Vishes and thanx (again) to Volker for the explanation. Best regards, -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: autodesk / autocad write problems
The same problem here. I run RHEL 4 with samba-3.0.10 here and solidworks's (SW 2008 SP3) user cannot save or run into/from samba share. I upgraded to samba-3.0.32 and it solved some of my problem (user can save into samba share directory. What still bothered me was some users could double-click solid's file (part/assembly, etc - while solidworks application closed) in samba share dir. and some just couldn't. But, if you failed in the first double-click, you could try again to double-click those solid's file and solidworks will open it for you OR run the application first and then open those files. Funny, huh? :| -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[SCM] Samba Shared Repository - branch master updated - 806a45c3c7e33fad90597f87373a532016e614e3
The branch, master has been updated via 806a45c3c7e33fad90597f87373a532016e614e3 (commit) from 5e5ccab372035a4e46e83775f40fca1ae5542ada (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 806a45c3c7e33fad90597f87373a532016e614e3 Author: Andreas Schneider [EMAIL PROTECTED] Date: Mon Nov 17 11:01:15 2008 +0100 Improve the Gemand pam_winbind translation. Signed-off-by: Andreas Schneider [EMAIL PROTECTED] --- Summary of changes: source3/locale/pam_winbind/de.po | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/locale/pam_winbind/de.po b/source3/locale/pam_winbind/de.po index 642d9d3..79ec20f 100644 --- a/source3/locale/pam_winbind/de.po +++ b/source3/locale/pam_winbind/de.po @@ -62,7 +62,7 @@ msgstr Sie können sich zum jetzigen Zeitpunkt nicht anmelden #: ../../nsswitch/pam_winbind.c:601 #, fuzzy msgid Your account has expired. -msgstr Ihr Passwort ist abgelaufen +msgstr Ihr Benutzerkonto ist abgelaufen #: ../../nsswitch/pam_winbind.c:602 ../../nsswitch/pam_winbind.c:605 ../../nsswitch/pam_winbind.c:608 msgid Please contact your System administrator @@ -70,15 +70,15 @@ msgstr Bitte kontaktieren Sie ihren System-Administrator #: ../../nsswitch/pam_winbind.c:604 msgid Your account is disabled. -msgstr Ihr Account ist deaktiviert. +msgstr Ihr Benutzerkonto ist deaktiviert. #: ../../nsswitch/pam_winbind.c:607 msgid Your account has been locked. -msgstr Ihr Account wurde gesperrt. +msgstr Ihr Benutzerkonto wurde gesperrt. #: ../../nsswitch/pam_winbind.c:610 ../../nsswitch/pam_winbind.c:612 ../../nsswitch/pam_winbind.c:614 msgid Invalid Trust Account -msgstr Ungültiger Maschinen-Account +msgstr Ungültiges Maschinen-Konto #: ../../nsswitch/pam_winbind.c:616 msgid Access is denied @@ -103,7 +103,7 @@ msgstr Tag #: ../../nsswitch/pam_winbind.c:1253 msgid Grace login. Please change your password as soon you're online again -msgstr +msgstr Kulanzanmeldung. Bitte ändern sie ihr Passwort sobald sie wieder online sind #: ../../nsswitch/pam_winbind.c:1263 msgid Domain Controller unreachable, using cached credentials instead. Network resources may be unavailable @@ -115,7 +115,7 @@ msgid with the domain controller. Please verify the system time.\n msgstr Anforderung eines Kerberos Tickets aufgrund Zeitunterscheid zum \n -Domänen-Controller fehlgeschlagen. Bitte überprüfen Sie die System Zeit.\n +Domänen-Controller fehlgeschlagen. Bitte überprüfen Sie die Systemzeit.\n #: ../../nsswitch/pam_winbind.c:1356 msgid Your password @@ -133,7 +133,7 @@ msgstr kann keines der %d vorherigen Passwörter enthalten; #: ../../nsswitch/pam_winbind.c:1382 msgid must contain capitals, numerals or punctuation; and cannot contain your account or full name; -msgstr muà GroÃbuchstaben, Ziffern oder Punktzeichen enthalten; kann nicht den Anmelde- oder Vollnamen enthalten; +msgstr muà GroÃbuchstaben, Ziffern oder Punktzeichen enthalten; kann nicht den Benutzer- oder vollen Namen enthalten; #: ../../nsswitch/pam_winbind.c:1392 msgid Please type a different password. Type a password which meets these requirements in both text boxes. -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 29f2ca8ff2b0ea5ac4639530d2d10eecff0d5eec
The branch, master has been updated via 29f2ca8ff2b0ea5ac4639530d2d10eecff0d5eec (commit) from 806a45c3c7e33fad90597f87373a532016e614e3 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 29f2ca8ff2b0ea5ac4639530d2d10eecff0d5eec Author: Bo Yang [EMAIL PROTECTED] Date: Sun Nov 16 16:31:31 2008 +0800 Fix broken msgids in ntstatus_errors Signed-off-by: Günther Deschner [EMAIL PROTECTED] --- Summary of changes: source3/nsswitch/pam_winbind.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index c164f8e..1daa05e 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -598,14 +598,14 @@ static const struct ntstatus_errors { {NT_STATUS_INVALID_LOGON_HOURS, N_(You are not allowed to logon at this time)}, {NT_STATUS_ACCOUNT_EXPIRED, - N_(Your account has expired. ) - N_(Please contact your System administrator)}, /* SCNR */ + N_(Your account has expired. + Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_DISABLED, - N_(Your account is disabled. ) - N_(Please contact your System administrator)}, /* SCNR */ + N_(Your account is disabled. + Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_LOCKED_OUT, - N_(Your account has been locked. ) - N_(Please contact your System administrator)}, /* SCNR */ + N_(Your account has been locked. + Please contact your System administrator)}, /* SCNR */ {NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, N_(Invalid Trust Account)}, {NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 327d2be4529722b69e1663858f634a79c5091ed9
The branch, master has been updated via 327d2be4529722b69e1663858f634a79c5091ed9 (commit) from 29f2ca8ff2b0ea5ac4639530d2d10eecff0d5eec (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 327d2be4529722b69e1663858f634a79c5091ed9 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Mon Nov 17 10:51:39 2008 +0100 s4:dsdb/samdb: don't allow objects without objectClass We're using @ROOTDSE instead of CN=ROOTDSE. metze --- Summary of changes: source4/dsdb/samdb/ldb_modules/objectclass.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 7d00851..1d240a3 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -414,10 +414,10 @@ static int objectclass_add(struct ldb_module *module, struct ldb_request *req) return ldb_next_request(module, req); } - /* Need to object to this, but cn=rootdse doesn't have an objectClass... */ + /* the objectClass must be specified on add */ if (ldb_msg_find_element(req-op.add.message, objectClass) == NULL) { - return ldb_next_request(module, req); + return LDB_ERR_OBJECT_CLASS_VIOLATION; } ac = oc_init_context(module, req); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - f09231254e2777dd8a1bb5555897139eec2d0b5b
The branch, master has been updated via f09231254e2777dd8a1bb897139eec2d0b5b (commit) from 327d2be4529722b69e1663858f634a79c5091ed9 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit f09231254e2777dd8a1bb897139eec2d0b5b Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Nov 17 13:06:42 2008 +0100 pam_winbind: rerun genmsg after Bo Yang's fixes. Guenther --- Summary of changes: source3/locale/pam_winbind/de.po | 19 +++ 1 files changed, 7 insertions(+), 12 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/locale/pam_winbind/de.po b/source3/locale/pam_winbind/de.po index 79ec20f..5a7223d 100644 --- a/source3/locale/pam_winbind/de.po +++ b/source3/locale/pam_winbind/de.po @@ -7,7 +7,7 @@ msgid msgstr Project-Id-Version: @[EMAIL PROTECTED] Report-Msgid-Bugs-To: \n -POT-Creation-Date: 2008-11-13 17:21+0100\n +POT-Creation-Date: 2008-11-17 12:00+0100\n PO-Revision-Date: 2008-11-13 14:29+0100\n Last-Translator: Guenther Deschner [EMAIL PROTECTED]\n MIME-Version: 1.0\n @@ -60,21 +60,16 @@ msgid You are not allowed to logon at this time msgstr Sie können sich zum jetzigen Zeitpunkt nicht anmelden #: ../../nsswitch/pam_winbind.c:601 -#, fuzzy -msgid Your account has expired. -msgstr Ihr Benutzerkonto ist abgelaufen - -#: ../../nsswitch/pam_winbind.c:602 ../../nsswitch/pam_winbind.c:605 ../../nsswitch/pam_winbind.c:608 -msgid Please contact your System administrator -msgstr Bitte kontaktieren Sie ihren System-Administrator +msgid Your account has expired. Please contact your System administrator +msgstr Ihr Benutzerkonto ist abgelaufen. Bitte kontaktieren Sie ihren System-Administrator #: ../../nsswitch/pam_winbind.c:604 -msgid Your account is disabled. -msgstr Ihr Benutzerkonto ist deaktiviert. +msgid Your account is disabled. Please contact your System administrator +msgstr Ihr Benutzerkonto ist deaktiviert. Bitte kontaktieren Sie ihren System-Administrator #: ../../nsswitch/pam_winbind.c:607 -msgid Your account has been locked. -msgstr Ihr Benutzerkonto wurde gesperrt. +msgid Your account has been locked. Please contact your System administrator +msgstr Ihr Benutzerkonto wurde gesperrt. Bitte kontaktieren Sie ihren System-Administrator #: ../../nsswitch/pam_winbind.c:610 ../../nsswitch/pam_winbind.c:612 ../../nsswitch/pam_winbind.c:614 msgid Invalid Trust Account -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4379-ge64c4ff
The branch, v3-3-test has been updated via e64c4ff6061422f79e550810affd1c90c7eb22a0 (commit) from 0d874b23a43778931c0c570c5aa77bec6888d21d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit e64c4ff6061422f79e550810affd1c90c7eb22a0 Author: Bo Yang [EMAIL PROTECTED] Date: Sun Nov 16 16:34:34 2008 +0800 Fix broken msgids in ntstatus_errors Signed-off-by: Günther Deschner [EMAIL PROTECTED] --- Summary of changes: source/nsswitch/pam_winbind.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c index cc6bf22..e94f9af 100644 --- a/source/nsswitch/pam_winbind.c +++ b/source/nsswitch/pam_winbind.c @@ -552,14 +552,14 @@ static const struct ntstatus_errors { {NT_STATUS_INVALID_LOGON_HOURS, N_(You are not allowed to logon at this time)}, {NT_STATUS_ACCOUNT_EXPIRED, - N_(Your account has expired. ) - N_(Please contact your System administrator)}, /* SCNR */ + N_(Your account has expired. + Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_DISABLED, - N_(Your account is disabled. ) - N_(Please contact your System administrator)}, /* SCNR */ + N_(Your account is disabled. + Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_LOCKED_OUT, - N_(Your account has been locked. ) - N_(Please contact your System administrator)}, /* SCNR */ + N_(Your account has been locked. + Please contact your System administrator)}, /* SCNR */ {NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, N_(Invalid Trust Account)}, {NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 2fbdf22541497b56143083863bf1ffe5af7487fd
The branch, master has been updated via 2fbdf22541497b56143083863bf1ffe5af7487fd (commit) via fea323bdf3e4b87af87a8b69e9e528e04e34fe07 (commit) via 7d5f3f51b0f576d99e22fdb95e013b857071f978 (commit) from f09231254e2777dd8a1bb897139eec2d0b5b (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 2fbdf22541497b56143083863bf1ffe5af7487fd Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 00:52:50 2008 +0100 s3-rpcclient: fill in unknowns in cmd_ntsvcs_get_hw_prof_info. Guenther commit fea323bdf3e4b87af87a8b69e9e528e04e34fe07 Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 00:30:11 2008 +0100 s4-smbtorture: add PNP_GetDeviceRegProp test for ntsvcs testsuite. Guenther commit 7d5f3f51b0f576d99e22fdb95e013b857071f978 Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 09:48:56 2008 +0100 ntsvcs: remove todo from PNP_GetDeviceList. Guenther --- Summary of changes: librpc/idl/ntsvcs.idl |2 +- source3/rpcclient/cmd_ntsvcs.c |6 +++--- source4/torture/rpc/ntsvcs.c | 40 3 files changed, 44 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/idl/ntsvcs.idl b/librpc/idl/ntsvcs.idl index d502435..be7fcdf 100644 --- a/librpc/idl/ntsvcs.idl +++ b/librpc/idl/ntsvcs.idl @@ -70,7 +70,7 @@ interface ntsvcs /**/ /* Function: 0x0a */ - [todo] WERROR PNP_GetDeviceList( + WERROR PNP_GetDeviceList( [in,unique] [string,charset(UTF16)] uint16 *filter, [out,ref] [size_is(*length),length_is(*length)] uint16 *buffer, [in,out,ref] uint32 *length, diff --git a/source3/rpcclient/cmd_ntsvcs.c b/source3/rpcclient/cmd_ntsvcs.c index 7a25352..11f16d3 100644 --- a/source3/rpcclient/cmd_ntsvcs.c +++ b/source3/rpcclient/cmd_ntsvcs.c @@ -122,15 +122,15 @@ static WERROR cmd_ntsvcs_get_hw_prof_info(struct rpc_pipe_client *cli, WERROR werr; uint32_t idx = 0; struct PNP_HwProfInfo info; - uint32_t unknown1 = 0, unknown2 = 0; + uint32_t size = 0, flags = 0; ZERO_STRUCT(info); status = rpccli_PNP_GetHwProfInfo(cli, mem_ctx, idx, info, - unknown1, - unknown2, + size, + flags, werr); if (!NT_STATUS_IS_OK(status)) { return ntstatus_to_werror(status); diff --git a/source4/torture/rpc/ntsvcs.c b/source4/torture/rpc/ntsvcs.c index 3db79ac..5453102 100644 --- a/source4/torture/rpc/ntsvcs.c +++ b/source4/torture/rpc/ntsvcs.c @@ -108,6 +108,44 @@ static bool test_PNP_GetDeviceList(struct torture_context *tctx, return true; } +static bool test_PNP_GetDeviceRegProp(struct torture_context *tctx, + struct dcerpc_pipe *p) +{ + NTSTATUS status; + struct PNP_GetDeviceRegProp r; + + enum winreg_Type reg_data_type = REG_NONE; + uint32_t buffer_size = 0; + uint32_t needed = 0; + uint8_t *buffer; + + buffer = talloc(tctx, uint8_t); + + r.in.devicepath = ACPI\\ACPI0003\\1; + r.in.property = DEV_REGPROP_DESC; + r.in.flags = 0; + r.in.reg_data_type = reg_data_type; + r.in.buffer_size = buffer_size; + r.in.needed = needed; + r.out.buffer = buffer; + r.out.reg_data_type = reg_data_type; + r.out.buffer_size = buffer_size; + r.out.needed = needed; + + status = dcerpc_PNP_GetDeviceRegProp(p, tctx, r); + torture_assert_ntstatus_ok(tctx, status, PNP_GetDeviceRegProp); + + if (W_ERROR_EQUAL(r.out.result, WERR_CM_BUFFER_SMALL)) { + + buffer = talloc_array(tctx, uint8_t, needed); + r.in.buffer_size = needed; + + status = dcerpc_PNP_GetDeviceRegProp(p, tctx, r); + torture_assert_ntstatus_ok(tctx, status, PNP_GetDeviceRegProp); + } + + return true; +} struct torture_suite *torture_rpc_ntsvcs(TALLOC_CTX *mem_ctx) { @@ -118,6 +156,8 @@ struct torture_suite *torture_rpc_ntsvcs(TALLOC_CTX *mem_ctx) tcase = torture_suite_add_rpc_iface_tcase(suite, ntsvcs, ndr_table_ntsvcs); + test = torture_rpc_tcase_add_test(tcase, PNP_GetDeviceRegProp, + test_PNP_GetDeviceRegProp); test = torture_rpc_tcase_add_test(tcase, PNP_GetDeviceList, test_PNP_GetDeviceList); test =
[SCM] Samba Shared Repository - branch master updated - 0e801722e335c1bd17897848bf63d2acf4576b2e
The branch, master has been updated via 0e801722e335c1bd17897848bf63d2acf4576b2e (commit) via 5b4140a99767db9f0dfa02049e4dcff23a7fdb83 (commit) via 738d066768a8aebf0d9522e49d30e2df0ad4f07b (commit) via 2409f216cfb74079687929d670b8ebc29e54a038 (commit) via abbd539082022166b7e3a222eb3dc050b3ae7279 (commit) via 4e0bbb6e7919212572ba66b8808d8cef1ec3e772 (commit) via c0db253507569804e0cc852a58b5fa9117ebc92e (commit) via b43c3a36a7b8950421bd2f4b9c9eea809fd6f0dc (commit) via 880e232e7ea57531bd9dcb26f130a174534eea6a (commit) via 2d44f72c337f9877ce5931893914d47c437d205a (commit) from 2fbdf22541497b56143083863bf1ffe5af7487fd (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 0e801722e335c1bd17897848bf63d2acf4576b2e Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:54:46 2008 +0100 s3-build: re-run make samba3-idl. Guenther commit 5b4140a99767db9f0dfa02049e4dcff23a7fdb83 Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:54:16 2008 +0100 svcctl: fill in SERVICE_CONTROL from s3. Guenther commit 738d066768a8aebf0d9522e49d30e2df0ad4f07b Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:41:40 2008 +0100 svcctl: fix idl for svcctl_EnumServicesStatusW. Guenther commit 2409f216cfb74079687929d670b8ebc29e54a038 Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:36:47 2008 +0100 s4-smbtorture: add test for svcctl_QueryServiceConfig2W. Guenther commit abbd539082022166b7e3a222eb3dc050b3ae7279 Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:29:03 2008 +0100 svcctl: fix idl for svcctl_QueryServiceConfig2W. Guenther commit 4e0bbb6e7919212572ba66b8808d8cef1ec3e772 Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:26:25 2008 +0100 svcctl: fix idl for EnumServicesStatusExW. Guenther commit c0db253507569804e0cc852a58b5fa9117ebc92e Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:25:30 2008 +0100 s4-smbtorture: fix test for svcctl_EnumServicesStatusW. Guenther commit b43c3a36a7b8950421bd2f4b9c9eea809fd6f0dc Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:24:52 2008 +0100 s4-smbtorture: add test for svcctl_QueryServiceStatusEx. Guenther commit 880e232e7ea57531bd9dcb26f130a174534eea6a Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 11:24:10 2008 +0100 svcctl: fix idl for svcctl_QueryServiceStatusEx. Guenther commit 2d44f72c337f9877ce5931893914d47c437d205a Author: Günther Deschner [EMAIL PROTECTED] Date: Fri Nov 14 10:18:35 2008 +0100 s4-smbtorture: pure reformatting of svcctl test. Guenther --- Summary of changes: librpc/idl/svcctl.idl | 44 --- source3/include/rpc_svcctl.h|8 -- source3/librpc/gen_ndr/cli_svcctl.c | 36 +++--- source3/librpc/gen_ndr/cli_svcctl.h | 34 +++--- source3/librpc/gen_ndr/ndr_svcctl.c | 216 ++- source3/librpc/gen_ndr/ndr_svcctl.h |1 + source3/librpc/gen_ndr/srv_svcctl.c |6 - source3/librpc/gen_ndr/svcctl.h | 48 + source4/torture/rpc/svcctl.c| 178 - 9 files changed, 397 insertions(+), 174 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/idl/svcctl.idl b/librpc/idl/svcctl.idl index fa8e109..4b88f5e 100644 --- a/librpc/idl/svcctl.idl +++ b/librpc/idl/svcctl.idl @@ -89,13 +89,19 @@ import misc.idl, security.idl; /*/ /* Function 0x01 */ - typedef enum { - FIXME=1 + /* Service Controls */ + + typedef [v1_enum] enum { + SVCCTL_CONTROL_STOP = 0x0001, + SVCCTL_CONTROL_PAUSE= 0x0002, + SVCCTL_CONTROL_CONTINUE = 0x0003, + SVCCTL_CONTROL_INTERROGATE = 0x0004, + SVCCTL_CONTROL_SHUTDOWN = 0x0005 } SERVICE_CONTROL; WERROR svcctl_ControlService( [in,ref] policy_handle *handle, - [in] uint32 control, + [in] SERVICE_CONTROL control, [out,ref] SERVICE_STATUS *service_status ); @@ -218,10 +224,10 @@ import misc.idl, security.idl; [in,ref] policy_handle *handle, [in] uint32 type, [in] uint32 state, - [in] uint32 buf_size, - [out,size_is(buf_size)] uint8 service[*], - [out,ref] uint32 *bytes_needed, - [out,ref] uint32 *services_returned, + [out,ref,size_is(buf_size)] uint8 *service, + [in] [range(0,262144)] uint32 buf_size, +
Re: [SCM] Samba Shared Repository - branch master updated - 3d0a3c1078d936a52ce82720ddc09b4037653655
On Sun, 2008-11-16 at 18:12 -0600, Andrew Bartlett wrote: The branch, master has been updated via 3d0a3c1078d936a52ce82720ddc09b4037653655 (commit) via 16a3a2da78b1f2d5a1077e382a26466944f6c59e (commit) via cf5c919c744c714b9be849e4d6424f7df92b328d (commit) via 5b796adb125174084cfc2a6f04cfdac5e9324ef8 (commit) via 00b63434063a128662d4ce83ce382fc2e6102d22 (commit) via 8e1934a3845944ba7d79848368976e82d182e8d1 (commit) via 109719de030cb2432bea991077b12b4cf937c108 (commit) via 9abd45979ee0415c16775f6dfd17a6e421091d5c (commit) from 1d9c88b3885728aba3d7fef85d80501125011f1c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 3d0a3c1078d936a52ce82720ddc09b4037653655 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Wed Nov 5 12:00:44 2008 +1100 Add helpful function for comparison of DATA_BLOB elements commit 16a3a2da78b1f2d5a1077e382a26466944f6c59e Author: Andrew Bartlett [EMAIL PROTECTED] Date: Thu Nov 13 14:07:29 2008 +1100 Remove timeout event once we are calling the callback. (Even if the callback takes some time, this isn't a ldb_tdb timeout any more) Andrew Bartlett I think this is wrong Andrew. The callback is fully part of the call and the timeout should apply. You may rise the timeout time if you think that normally we should give more time. But certainly not remove the timeout imo. commit cf5c919c744c714b9be849e4d6424f7df92b328d Author: Andrew Bartlett [EMAIL PROTECTED] Date: Thu Nov 13 15:58:12 2008 +1100 Improve debug when SASL search fails commit 5b796adb125174084cfc2a6f04cfdac5e9324ef8 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Nov 14 09:40:02 2008 +1100 Print unconvertable ldb element values as base64. If an LDB element cannot be converted into a printable form, we should still print it, just with safety applied. Andrew Bartlett commit 00b63434063a128662d4ce83ce382fc2e6102d22 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Nov 14 13:26:02 2008 +1100 The samba3sam test does not really need the extended_dn module (This module has been split up into extended_dn_in, extended_dn_out and extended_dn_store). Andrew Bartlett commit 8e1934a3845944ba7d79848368976e82d182e8d1 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Nov 14 13:24:54 2008 +1100 Use new GUID_from_data_blob This avoid the problem that GUID_from_string now strictly requires no trailing data after the string-form GUID. Andrew Bartlett commit 109719de030cb2432bea991077b12b4cf937c108 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Nov 14 16:34:59 2008 +1100 Remove restrictions on number of DN components in LDAP server There is no reason for these restrictions to be in the LDAP server - they belong in the LDB layer. When accepting 'extended' or 'alternate' DNs we can't tell anyway. No, they certainly do not belong in LDB, as LDB does not have the same restrictions as the LDAP server. I would like you to put them back. Andrew Bartlett commit 9abd45979ee0415c16775f6dfd17a6e421091d5c Author: Andrew Bartlett [EMAIL PROTECTED] Date: Fri Nov 14 17:16:39 2008 +1100 Always validate a DN when constructing from a string in python This may make the python bindings much slower ... but perhaps that's ok for the bindings. Simo. -- Simo Sorce Samba Team GPL Compliance Officer [EMAIL PROTECTED] Senior Software Engineer at Red Hat Inc. [EMAIL PROTECTED]
[SCM] Samba Shared Repository - branch master updated - 0cba859f12177aaf3ef2d96663f0a51f61c24d56
The branch, master has been updated via 0cba859f12177aaf3ef2d96663f0a51f61c24d56 (commit) from 0e801722e335c1bd17897848bf63d2acf4576b2e (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 0cba859f12177aaf3ef2d96663f0a51f61c24d56 Author: Karolin Seeger [EMAIL PROTECTED] Date: Mon Nov 17 15:23:34 2008 +0100 s3 create-tarball.sh: Remove dashes in git commands. Newer git versions (e.g. 1.6.0.2) do not provide the 'git-' commands any longer. Karolin --- Summary of changes: release-scripts/create-tarball |8 1 files changed, 4 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/release-scripts/create-tarball b/release-scripts/create-tarball index 04728d8..ab27f08 100755 --- a/release-scripts/create-tarball +++ b/release-scripts/create-tarball @@ -137,7 +137,7 @@ function createReleaseTag return 0 fi -if [ x`git-tag -l ${OPT_TAG}` != x ]; then +if [ x`git tag -l ${OPT_TAG}` != x ]; then echo -n Tag exists. Do you wish to overwrite? (y/N): read answer @@ -155,7 +155,7 @@ function createReleaseTag fi fi -git-tag -u ${OPT_KEYID} ${OPT_TAG} +git tag -u ${OPT_KEYID} ${OPT_TAG} exitOnError $? Failed to create tag return 0 @@ -170,7 +170,7 @@ function main cd $TOPDIR -git-checkout ${OPT_BRANCH} +git checkout ${OPT_BRANCH} exitOnError $? Invalid branch name \${OPT_BRANCH}\ (cd source3 ./script/mkversion.sh) @@ -188,7 +188,7 @@ function main echo Creating release tarball for Samba $version /bin/rm -rf ../samba-${version} -git-archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) +git archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) exitOnError $? Failed to create release directory tree pushd ../samba-${version} -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4380-g3d64e67
The branch, v3-3-test has been updated via 3d64e67de2b50f7b781aa3f5ad13ec8e866d4333 (commit) from e64c4ff6061422f79e550810affd1c90c7eb22a0 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 3d64e67de2b50f7b781aa3f5ad13ec8e866d4333 Author: Karolin Seeger [EMAIL PROTECTED] Date: Mon Nov 17 15:23:34 2008 +0100 s3 create-tarball.sh: Remove dashes in git commands. Newer git versions (e.g. 1.6.0.2) do not provide the 'git-' commands any longer. Karolin (cherry picked from commit 0cba859f12177aaf3ef2d96663f0a51f61c24d56) --- Summary of changes: release-scripts/create-tarball |8 1 files changed, 4 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/release-scripts/create-tarball b/release-scripts/create-tarball index 3463f01..da39d89 100755 --- a/release-scripts/create-tarball +++ b/release-scripts/create-tarball @@ -137,7 +137,7 @@ function createReleaseTag return 0 fi -if [ x`git-tag -l ${OPT_TAG}` != x ]; then +if [ x`git tag -l ${OPT_TAG}` != x ]; then echo -n Tag exists. Do you wish to overwrite? (y/N): read answer @@ -155,7 +155,7 @@ function createReleaseTag fi fi -git-tag -u ${OPT_KEYID} ${OPT_TAG} +git tag -u ${OPT_KEYID} ${OPT_TAG} exitOnError $? Failed to create tag return 0 @@ -170,7 +170,7 @@ function main cd $TOPDIR -git-checkout ${OPT_BRANCH} +git checkout ${OPT_BRANCH} exitOnError $? Invalid branch name \${OPT_BRANCH}\ (cd source ./script/mkversion.sh) @@ -188,7 +188,7 @@ function main echo Creating release tarball for Samba $version /bin/rm -rf ../samba-${version} -git-archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) +git archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) exitOnError $? Failed to create release directory tree pushd ../samba-${version} -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-stable updated - release-3-3-0pre2-78-gaa41a80
The branch, v3-3-stable has been updated via aa41a80969bd413d5922c602c7309bd8c05f3181 (commit) from df97ffbaf376ea322b30465332cbba0f2af5ce42 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-stable - Log - commit aa41a80969bd413d5922c602c7309bd8c05f3181 Author: Karolin Seeger [EMAIL PROTECTED] Date: Mon Nov 17 15:23:34 2008 +0100 s3 create-tarball.sh: Remove dashes in git commands. Newer git versions (e.g. 1.6.0.2) do not provide the 'git-' commands any longer. Karolin (cherry picked from commit 0cba859f12177aaf3ef2d96663f0a51f61c24d56) (cherry picked from commit 3d64e67de2b50f7b781aa3f5ad13ec8e866d4333) --- Summary of changes: release-scripts/create-tarball |8 1 files changed, 4 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/release-scripts/create-tarball b/release-scripts/create-tarball index 3463f01..da39d89 100755 --- a/release-scripts/create-tarball +++ b/release-scripts/create-tarball @@ -137,7 +137,7 @@ function createReleaseTag return 0 fi -if [ x`git-tag -l ${OPT_TAG}` != x ]; then +if [ x`git tag -l ${OPT_TAG}` != x ]; then echo -n Tag exists. Do you wish to overwrite? (y/N): read answer @@ -155,7 +155,7 @@ function createReleaseTag fi fi -git-tag -u ${OPT_KEYID} ${OPT_TAG} +git tag -u ${OPT_KEYID} ${OPT_TAG} exitOnError $? Failed to create tag return 0 @@ -170,7 +170,7 @@ function main cd $TOPDIR -git-checkout ${OPT_BRANCH} +git checkout ${OPT_BRANCH} exitOnError $? Invalid branch name \${OPT_BRANCH}\ (cd source ./script/mkversion.sh) @@ -188,7 +188,7 @@ function main echo Creating release tarball for Samba $version /bin/rm -rf ../samba-${version} -git-archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) +git archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) exitOnError $? Failed to create release directory tree pushd ../samba-${version} -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3156-g0b4dd0c
The branch, v3-2-test has been updated via 0b4dd0cb1f81126344a6fe3304b46f880089718d (commit) from 0a7fb721cdc0d825cf246d53075ad32a81b2b31d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 0b4dd0cb1f81126344a6fe3304b46f880089718d Author: Karolin Seeger [EMAIL PROTECTED] Date: Mon Nov 17 15:23:34 2008 +0100 s3 create-tarball.sh: Remove dashes in git commands. Newer git versions (e.g. 1.6.0.2) do not provide the 'git-' commands any longer. Karolin (cherry picked from commit 0cba859f12177aaf3ef2d96663f0a51f61c24d56) (cherry picked from commit 3d64e67de2b50f7b781aa3f5ad13ec8e866d4333) (cherry picked from commit aa41a80969bd413d5922c602c7309bd8c05f3181) --- Summary of changes: release-scripts/create-tarball |8 1 files changed, 4 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/release-scripts/create-tarball b/release-scripts/create-tarball index 3463f01..da39d89 100755 --- a/release-scripts/create-tarball +++ b/release-scripts/create-tarball @@ -137,7 +137,7 @@ function createReleaseTag return 0 fi -if [ x`git-tag -l ${OPT_TAG}` != x ]; then +if [ x`git tag -l ${OPT_TAG}` != x ]; then echo -n Tag exists. Do you wish to overwrite? (y/N): read answer @@ -155,7 +155,7 @@ function createReleaseTag fi fi -git-tag -u ${OPT_KEYID} ${OPT_TAG} +git tag -u ${OPT_KEYID} ${OPT_TAG} exitOnError $? Failed to create tag return 0 @@ -170,7 +170,7 @@ function main cd $TOPDIR -git-checkout ${OPT_BRANCH} +git checkout ${OPT_BRANCH} exitOnError $? Invalid branch name \${OPT_BRANCH}\ (cd source ./script/mkversion.sh) @@ -188,7 +188,7 @@ function main echo Creating release tarball for Samba $version /bin/rm -rf ../samba-${version} -git-archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) +git archive --format=tar --prefix=samba-${version}/ HEAD | (cd .. tar xf -) exitOnError $? Failed to create release directory tree pushd ../samba-${version} -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 0b1015d73edd437fdc85dd765e59cb5ae232afac
The branch, master has been updated via 0b1015d73edd437fdc85dd765e59cb5ae232afac (commit) from 0cba859f12177aaf3ef2d96663f0a51f61c24d56 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 0b1015d73edd437fdc85dd765e59cb5ae232afac Author: Tim Prouty [EMAIL PROTECTED] Date: Mon Nov 17 10:21:29 2008 -0800 Fix build warning introduced by making SERVICE_CONTROL an enum --- Summary of changes: source3/rpc_server/srv_svcctl_nt.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index 4beab64..0bed13e 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/rpc_server/srv_svcctl_nt.c @@ -517,11 +517,9 @@ WERROR _svcctl_ControlService(pipes_struct *p, return info-ops-service_status( info-name, r-out.service_status ); + default: + return WERR_ACCESS_DENIED; } - - /* default control action */ - - return WERR_ACCESS_DENIED; } / -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - a48abdaa811c76e64a3383fe970e62b7bbb3582c
The branch, master has been updated via a48abdaa811c76e64a3383fe970e62b7bbb3582c (commit) from 0b1015d73edd437fdc85dd765e59cb5ae232afac (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit a48abdaa811c76e64a3383fe970e62b7bbb3582c Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Nov 17 18:25:01 2008 +0100 s3-libnet-samsync: use enctype 23 for vampired keytab entries. Guenther --- Summary of changes: source3/libnet/libnet_samsync_keytab.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/libnet/libnet_samsync_keytab.c b/source3/libnet/libnet_samsync_keytab.c index 4b0cc06..0341641 100644 --- a/source3/libnet/libnet_samsync_keytab.c +++ b/source3/libnet/libnet_samsync_keytab.c @@ -90,7 +90,7 @@ static NTSTATUS fetch_sam_entry_keytab(TALLOC_CTX *mem_ctx, ctx-dns_domain_name); entry.password = data_blob_talloc(mem_ctx, r-ntpassword.hash, 16); entry.kvno = ads_get_kvno(ctx-ads, entry.name); - entry.enctype = ENCTYPE_NULL; + entry.enctype = ENCTYPE_ARCFOUR_HMAC; NT_STATUS_HAVE_NO_MEMORY(entry.name); NT_STATUS_HAVE_NO_MEMORY(entry.principal); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4381-g38f37eb
The branch, v3-3-test has been updated via 38f37ebb2478e62007e1eeb38054ad4f6949824a (commit) from 3d64e67de2b50f7b781aa3f5ad13ec8e866d4333 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 38f37ebb2478e62007e1eeb38054ad4f6949824a Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Nov 17 18:25:01 2008 +0100 s3-libnet-samsync: use enctype 23 for vampired keytab entries. Guenther (cherry picked from commit a48abdaa811c76e64a3383fe970e62b7bbb3582c) --- Summary of changes: source/libnet/libnet_samsync_keytab.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/libnet/libnet_samsync_keytab.c b/source/libnet/libnet_samsync_keytab.c index 4b0cc06..0341641 100644 --- a/source/libnet/libnet_samsync_keytab.c +++ b/source/libnet/libnet_samsync_keytab.c @@ -90,7 +90,7 @@ static NTSTATUS fetch_sam_entry_keytab(TALLOC_CTX *mem_ctx, ctx-dns_domain_name); entry.password = data_blob_talloc(mem_ctx, r-ntpassword.hash, 16); entry.kvno = ads_get_kvno(ctx-ads, entry.name); - entry.enctype = ENCTYPE_NULL; + entry.enctype = ENCTYPE_ARCFOUR_HMAC; NT_STATUS_HAVE_NO_MEMORY(entry.name); NT_STATUS_HAVE_NO_MEMORY(entry.principal); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3157-g4cd7045
The branch, v3-2-test has been updated via 4cd70457781907edf6641696cc311915905c96fa (commit) from 0b4dd0cb1f81126344a6fe3304b46f880089718d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 4cd70457781907edf6641696cc311915905c96fa Author: Jeremy Allison [EMAIL PROTECTED] Date: Mon Nov 17 13:46:35 2008 -0800 Fix bug #5900 reported by [EMAIL PROTECTED] - vfs_readonly.so does not work. Jeremy. --- Summary of changes: source/modules/vfs_readonly.c |8 source/smbd/share_access.c|6 -- source/smbd/uid.c |2 +- 3 files changed, 13 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source/modules/vfs_readonly.c b/source/modules/vfs_readonly.c index d4ddf32..ccb95b5 100644 --- a/source/modules/vfs_readonly.c +++ b/source/modules/vfs_readonly.c @@ -64,12 +64,20 @@ static int readonly_connect(vfs_handle_struct *handle, period, period_def); if (period period[0] period[1]) { +int i; time_t current_time = time(NULL); time_t begin_period = get_date(period[0], current_time); time_t end_period = get_date(period[1], current_time); if ((current_time = begin_period) (current_time = end_period)) { + connection_struct *conn = handle-conn; + handle-conn-read_only = True; + + /* Wipe out the VUID cache. */ + for (i=0;iconn-vuid_cache.entries i VUID_CACHE_SIZE;i++) { +conn-vuid_cache.array[i].vuid = UID_FIELD_INVALID; + } } return SMB_VFS_NEXT_CONNECT(handle, service, user); diff --git a/source/smbd/share_access.c b/source/smbd/share_access.c index 5121262..e89934c 100644 --- a/source/smbd/share_access.c +++ b/source/smbd/share_access.c @@ -248,9 +248,11 @@ bool user_ok_token(const char *username, struct nt_user_token *token, int snum) */ bool is_share_read_only_for_token(const char *username, - struct nt_user_token *token, int snum) + struct nt_user_token *token, + connection_struct *conn) { - bool result = lp_readonly(snum); + int snum = SNUM(conn); + bool result = conn-read_only; if (lp_readlist(snum) != NULL) { if (token_contains_name_in_list(username, diff --git a/source/smbd/uid.c b/source/smbd/uid.c index ffa643a..631a37f 100644 --- a/source/smbd/uid.c +++ b/source/smbd/uid.c @@ -102,7 +102,7 @@ static bool check_user_ok(connection_struct *conn, user_struct *vuser,int snum) readonly_share = is_share_read_only_for_token(vuser-user.unix_name, vuser-nt_user_token, - SNUM(conn)); + conn); token = conn-nt_user_token ? conn-nt_user_token : vuser-nt_user_token; -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3158-g1daad74
The branch, v3-2-test has been updated via 1daad740c6f0e3914b691b3e9c57aaf68ba0ca01 (commit) from 4cd70457781907edf6641696cc311915905c96fa (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 1daad740c6f0e3914b691b3e9c57aaf68ba0ca01 Author: Jeremy Allison [EMAIL PROTECTED] Date: Mon Nov 17 14:05:55 2008 -0800 When clearing out vuid cache remember to set entries = 0. Jeremy. --- Summary of changes: source/modules/vfs_readonly.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/modules/vfs_readonly.c b/source/modules/vfs_readonly.c index ccb95b5..37d9e5a 100644 --- a/source/modules/vfs_readonly.c +++ b/source/modules/vfs_readonly.c @@ -78,6 +78,7 @@ static int readonly_connect(vfs_handle_struct *handle, for (i=0;iconn-vuid_cache.entries i VUID_CACHE_SIZE;i++) { conn-vuid_cache.array[i].vuid = UID_FIELD_INVALID; } + conn-vuid_cache.entries = 0; } return SMB_VFS_NEXT_CONNECT(handle, service, user); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - d8df43e65d507710de72c6743f43127ad14019fc
The branch, master has been updated via d8df43e65d507710de72c6743f43127ad14019fc (commit) from a48abdaa811c76e64a3383fe970e62b7bbb3582c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d8df43e65d507710de72c6743f43127ad14019fc Author: Jeremy Allison [EMAIL PROTECTED] Date: Mon Nov 17 14:13:20 2008 -0800 Fix bug #5900 reported by [EMAIL PROTECTED] - vfs_readonly.so does not work. Jeremy. --- Summary of changes: source3/include/proto.h|3 ++- source3/modules/vfs_readonly.c | 13 + source3/smbd/share_access.c|6 -- source3/smbd/uid.c |3 ++- 4 files changed, 21 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/include/proto.h b/source3/include/proto.h index 5f9203a..3342584 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -8459,7 +8459,8 @@ bool user_ok_token(const char *username, const char *domain, struct nt_user_token *token, int snum); bool is_share_read_only_for_token(const char *username, const char *domain, - struct nt_user_token *token, int snum); + struct nt_user_token *token, + connection_struct *conn); /* The following definitions come from smbd/srvstr.c */ diff --git a/source3/modules/vfs_readonly.c b/source3/modules/vfs_readonly.c index d4ddf32..58c83e5 100644 --- a/source3/modules/vfs_readonly.c +++ b/source3/modules/vfs_readonly.c @@ -64,12 +64,25 @@ static int readonly_connect(vfs_handle_struct *handle, period, period_def); if (period period[0] period[1]) { +int i; time_t current_time = time(NULL); time_t begin_period = get_date(period[0], current_time); time_t end_period = get_date(period[1], current_time); if ((current_time = begin_period) (current_time = end_period)) { + connection_struct *conn = handle-conn; + handle-conn-read_only = True; + + /* Wipe out the VUID cache. */ + for (i=0; i VUID_CACHE_SIZE; i++) { +struct vuid_cache_entry *ent = ent = conn-vuid_cache.array[i]; +ent-vuid = UID_FIELD_INVALID; +TALLOC_FREE(ent-server_info); +ent-read_only = false; +ent-admin_user = false; + } + conn-vuid_cache.next_entry = 0; } return SMB_VFS_NEXT_CONNECT(handle, service, user); diff --git a/source3/smbd/share_access.c b/source3/smbd/share_access.c index f5f79c8..9dbacc2 100644 --- a/source3/smbd/share_access.c +++ b/source3/smbd/share_access.c @@ -252,9 +252,11 @@ bool user_ok_token(const char *username, const char *domain, bool is_share_read_only_for_token(const char *username, const char *domain, - struct nt_user_token *token, int snum) + struct nt_user_token *token, + connection_struct *conn) { - bool result = lp_readonly(snum); + int snum = SNUM(conn); + bool result = conn-read_only; if (lp_readlist(snum) != NULL) { if (token_contains_name_in_list(username, domain, diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 045de6f..c238f40 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -88,7 +88,8 @@ static bool check_user_ok(connection_struct *conn, uint16_t vuid, readonly_share = is_share_read_only_for_token( server_info-unix_name, pdb_get_domain(server_info-sam_account), - server_info-ptok, snum); + server_info-ptok, + conn); if (!readonly_share !share_access_check(server_info-ptok, lp_servicename(snum), -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4382-g37233a3
The branch, v3-3-test has been updated via 37233a3f62f4b0e5d4fc3376687f445656bded41 (commit) from 38f37ebb2478e62007e1eeb38054ad4f6949824a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 37233a3f62f4b0e5d4fc3376687f445656bded41 Author: Jeremy Allison [EMAIL PROTECTED] Date: Mon Nov 17 14:13:28 2008 -0800 Fix bug #5900 reported by [EMAIL PROTECTED] - vfs_readonly.so does not work. Jeremy. --- Summary of changes: source/include/proto.h|3 ++- source/modules/vfs_readonly.c | 13 + source/smbd/share_access.c|6 -- source/smbd/uid.c |3 ++- 4 files changed, 21 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/proto.h b/source/include/proto.h index b432e6b..3e3ddd4 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -10306,7 +10306,8 @@ bool user_ok_token(const char *username, const char *domain, struct nt_user_token *token, int snum); bool is_share_read_only_for_token(const char *username, const char *domain, - struct nt_user_token *token, int snum); + struct nt_user_token *token, + connection_struct *conn); /* The following definitions come from smbd/srvstr.c */ diff --git a/source/modules/vfs_readonly.c b/source/modules/vfs_readonly.c index d4ddf32..58c83e5 100644 --- a/source/modules/vfs_readonly.c +++ b/source/modules/vfs_readonly.c @@ -64,12 +64,25 @@ static int readonly_connect(vfs_handle_struct *handle, period, period_def); if (period period[0] period[1]) { +int i; time_t current_time = time(NULL); time_t begin_period = get_date(period[0], current_time); time_t end_period = get_date(period[1], current_time); if ((current_time = begin_period) (current_time = end_period)) { + connection_struct *conn = handle-conn; + handle-conn-read_only = True; + + /* Wipe out the VUID cache. */ + for (i=0; i VUID_CACHE_SIZE; i++) { +struct vuid_cache_entry *ent = ent = conn-vuid_cache.array[i]; +ent-vuid = UID_FIELD_INVALID; +TALLOC_FREE(ent-server_info); +ent-read_only = false; +ent-admin_user = false; + } + conn-vuid_cache.next_entry = 0; } return SMB_VFS_NEXT_CONNECT(handle, service, user); diff --git a/source/smbd/share_access.c b/source/smbd/share_access.c index f5f79c8..9dbacc2 100644 --- a/source/smbd/share_access.c +++ b/source/smbd/share_access.c @@ -252,9 +252,11 @@ bool user_ok_token(const char *username, const char *domain, bool is_share_read_only_for_token(const char *username, const char *domain, - struct nt_user_token *token, int snum) + struct nt_user_token *token, + connection_struct *conn) { - bool result = lp_readonly(snum); + int snum = SNUM(conn); + bool result = conn-read_only; if (lp_readlist(snum) != NULL) { if (token_contains_name_in_list(username, domain, diff --git a/source/smbd/uid.c b/source/smbd/uid.c index 045de6f..c238f40 100644 --- a/source/smbd/uid.c +++ b/source/smbd/uid.c @@ -88,7 +88,8 @@ static bool check_user_ok(connection_struct *conn, uint16_t vuid, readonly_share = is_share_read_only_for_token( server_info-unix_name, pdb_get_domain(server_info-sam_account), - server_info-ptok, snum); + server_info-ptok, + conn); if (!readonly_share !share_access_check(server_info-ptok, lp_servicename(snum), -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 9ea794417e8bad3da4236f4071a0d8a23612ac8a
The branch, master has been updated via 9ea794417e8bad3da4236f4071a0d8a23612ac8a (commit) from d8df43e65d507710de72c6743f43127ad14019fc (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 9ea794417e8bad3da4236f4071a0d8a23612ac8a Author: Davide Sfriso [EMAIL PROTECTED] Date: Mon Nov 17 15:38:56 2008 -0800 Fix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group' Jeremy. --- Summary of changes: source3/winbindd/winbindd_passdb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c index 0cf4540..101854a 100644 --- a/source3/winbindd/winbindd_passdb.c +++ b/source3/winbindd/winbindd_passdb.c @@ -639,13 +639,13 @@ static NTSTATUS sam_lookup_groupmem(struct winbindd_domain *domain, sid_type_lookup(lsa_names[i].type))); continue; } - if (!((*names)[i] = talloc_strdup((*names), + if (!((*names)[num_mapped] = talloc_strdup((*names), lsa_names[i].name))) { TALLOC_FREE(tmp_ctx); return NT_STATUS_NO_MEMORY; } - (*name_types)[i] = lsa_names[i].type; + (*name_types)[num_mapped] = lsa_names[i].type; num_mapped += 1; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4383-gf4ebb87
The branch, v3-3-test has been updated via f4ebb87e39a3f5d1b76cfd2be86d56de9ae98ee9 (commit) from 37233a3f62f4b0e5d4fc3376687f445656bded41 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit f4ebb87e39a3f5d1b76cfd2be86d56de9ae98ee9 Author: Davide Sfriso [EMAIL PROTECTED] Date: Mon Nov 17 15:39:34 2008 -0800 Fix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group'. --- Summary of changes: source/winbindd/winbindd_passdb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source/winbindd/winbindd_passdb.c b/source/winbindd/winbindd_passdb.c index 0cf4540..101854a 100644 --- a/source/winbindd/winbindd_passdb.c +++ b/source/winbindd/winbindd_passdb.c @@ -639,13 +639,13 @@ static NTSTATUS sam_lookup_groupmem(struct winbindd_domain *domain, sid_type_lookup(lsa_names[i].type))); continue; } - if (!((*names)[i] = talloc_strdup((*names), + if (!((*names)[num_mapped] = talloc_strdup((*names), lsa_names[i].name))) { TALLOC_FREE(tmp_ctx); return NT_STATUS_NO_MEMORY; } - (*name_types)[i] = lsa_names[i].type; + (*name_types)[num_mapped] = lsa_names[i].type; num_mapped += 1; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3159-g742ac5c
The branch, v3-2-test has been updated via 742ac5c45674446546b9e8ee22320a39d700b195 (commit) from 1daad740c6f0e3914b691b3e9c57aaf68ba0ca01 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 742ac5c45674446546b9e8ee22320a39d700b195 Author: Davide Sfriso [EMAIL PROTECTED] Date: Mon Nov 17 15:40:43 2008 -0800 Fix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group'. --- Summary of changes: source/winbindd/winbindd_passdb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source/winbindd/winbindd_passdb.c b/source/winbindd/winbindd_passdb.c index 0cf4540..101854a 100644 --- a/source/winbindd/winbindd_passdb.c +++ b/source/winbindd/winbindd_passdb.c @@ -639,13 +639,13 @@ static NTSTATUS sam_lookup_groupmem(struct winbindd_domain *domain, sid_type_lookup(lsa_names[i].type))); continue; } - if (!((*names)[i] = talloc_strdup((*names), + if (!((*names)[num_mapped] = talloc_strdup((*names), lsa_names[i].name))) { TALLOC_FREE(tmp_ctx); return NT_STATUS_NO_MEMORY; } - (*name_types)[i] = lsa_names[i].type; + (*name_types)[num_mapped] = lsa_names[i].type; num_mapped += 1; } -- Samba Shared Repository
Build status as of Tue Nov 18 00:00:02 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-11-17 00:00:43.0 + +++ /home/build/master/cache/broken_results.txt 2008-11-18 00:00:55.0 + @@ -1,22 +1,22 @@ -Build status as of Mon Nov 17 00:00:01 2008 +Build status as of Tue Nov 18 00:00:02 2008 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 33 7 0 +ccache 33 8 0 ctdb 0 0 0 distcc 1 0 0 ldb 33 32 0 -libreplace 31 13 0 +libreplace 32 13 0 lorikeet-heimdal 29 20 0 pidl 19 2 0 ppp 13 13 0 rsync33 13 0 samba-docs 0 0 0 samba-gtk5 5 0 -samba_3_X_devel 29 20 1 -samba_3_X_test 29 17 0 -samba_4_0_test 30 30 0 +samba_3_X_devel 29 21 1 +samba_3_X_test 29 19 0 +samba_4_0_test 31 30 0 smb-build31 7 0 talloc 33 32 0 tdb 33 12 0
[SCM] Samba Shared Repository - branch master updated - 1c07c30d31b4b588b59b845bdb5f85a0ba19f762
The branch, master has been updated via 1c07c30d31b4b588b59b845bdb5f85a0ba19f762 (commit) via ab55ecb881bfabe427ecb874d2dff2b5c2a7e84a (commit) from 9ea794417e8bad3da4236f4071a0d8a23612ac8a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1c07c30d31b4b588b59b845bdb5f85a0ba19f762 Merge: ab55ecb881bfabe427ecb874d2dff2b5c2a7e84a 9ea794417e8bad3da4236f4071a0d8a23612ac8a Author: Jelmer Vernooij [EMAIL PROTECTED] Date: Tue Nov 18 01:36:02 2008 +0100 Merge branch 'master' of ssh://git.samba.org/data/git/samba commit ab55ecb881bfabe427ecb874d2dff2b5c2a7e84a Author: Jelmer Vernooij [EMAIL PROTECTED] Date: Tue Nov 18 01:35:10 2008 +0100 Explicitly include samba4 includes.h to fix the build. --- Summary of changes: lib/torture/torture.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/torture/torture.c b/lib/torture/torture.c index 6b2a5b1..0ef5f61 100644 --- a/lib/torture/torture.c +++ b/lib/torture/torture.c @@ -18,7 +18,7 @@ along with this program. If not, see http://www.gnu.org/licenses/. */ -#include includes.h +#include source4/include/includes.h #include ../torture/torture.h #include ../lib/util/dlinklist.h #include param/param.h -- Samba Shared Repository