[Samba] Shared homes in a different samba server
Hello, I have a pdc with shared homes and roaming profiles. I would like to put the homes share in openfiler (a samba/san appliance). Is it possible? I am asking because I am failing to do it. Thanks in advance for any reply! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba shared homes without roaming profiles
Hello, I would like to put users homes in a central (backupped) server. But I do not want to use roaming profiles, I would like a solution similar to solaris /exports/home. Is it possible with samba? Thanks in advance, Mario -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cups_async_callback(504) error after upgrade to 3.2.7
On Thurs, Jan 08, 2009 at 19:40:17, Jeremy wrote [2009/01/07 18:04:05, 5] printing/print_cups.c:cups_async_callback(412) cups_async_callback: callback received for printer data. fd = 23 [2009/01/07 18:04:05, 2] printing/print_cups.c:cups_async_callback(504) cups_async_callback: failed to read a new printer list This log shows no data being transferred back up the async pipe (the send_pcap_info() is never being called). This would happen if the code in cups_cache_reload_async() was unable to fetch any printers from the cups server (ie. tmp_pcap_cache == NULL in the function cups_cache_reload_async()). You'll need to debug from the CUPS side what's happening to the get printers request. I could find nothing in the cups logs but my cups version was pretty old so I updated that to 2.61 but it's still giving me the error. Everything is printing okay so it's not critical. Thanks for the explanation... Ed ... Randomly Generated Quote (39 of 1503): Be courteous to all, but intimate with few, and let those few be well tried before you give them your confidence. True friendship is a plant of slow growth, and must undergo and withstand the shocks of adversity before it is entitled to the appellation. --George Washington -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Shared homes in a different samba server
On Fri, Jan 9, 2009 at 4:01 AM, Mario Giammarco mgiamma...@gmail.com wrote: Hello, I have a pdc with shared homes and roaming profiles. I would like to put the homes share in openfiler (a samba/san appliance). Is it possible? I am asking because I am failing to do it. We do that (and have that in place for 5 or so years). No data exists on the pdc. The nice thing about that is with this setup we can make a new PDC/BDC in less than 5 minutes and install it on one of our openvz or xen hosts. We do have the profiles folder mounted under nfs to the PDC and our ldap configuration each users profile is specified with the server name of the machine with the user shares. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Shared homes in a different samba server
2009/1/9 John Drescher dresche...@gmail.com We do that (and have that in place for 5 or so years). No data exists on the pdc. The nice thing about that is with this setup we can make a new PDC/BDC in less than 5 minutes and install it on one of our openvz or xen hosts. We do have the profiles folder mounted under nfs to the PDC and our ldap configuration each users profile is specified with the server name of the machine with the user shares. So you are cheating: in the PDC samba conf you say that homes and profiles are in a directory of the PDC, but the directory is not phisically there, it is a nfs mount on another server right? Very good idea anyway! I do not understand the part about the ldap configuration, can you please explain it better: what can you do with ldap?? Thanks you very much!!! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Shared homes in a different samba server
On Fri, Jan 9, 2009 at 9:26 AM, Mario Giammarco mgiamma...@gmail.com wrote: 2009/1/9 John Drescher dresche...@gmail.com We do that (and have that in place for 5 or so years). No data exists on the pdc. The nice thing about that is with this setup we can make a new PDC/BDC in less than 5 minutes and install it on one of our openvz or xen hosts. We do have the profiles folder mounted under nfs to the PDC and our ldap configuration each users profile is specified with the server name of the machine with the user shares. So you are cheating: in the PDC samba conf you say that homes and profiles are in a directory of the PDC, but the directory is not phisically there, it is a nfs mount on another server right? Very good idea anyway! I do not understand the part about the ldap configuration, can you please explain it better: what can you do with ldap?? If you are not using LDAP for your password security I would not bother then. You can still make your profiles folder on a second server in your smb.conf. [Profiles] path = /home/%U/%U.pds browseable = no guest ok = yes profile acls = yes # Un-comment the following and create the netlogon directory for Domain Logons [netlogon] comment = Network Logon Service path = /home/netlogon readonly = yes browseable = yes Here I have the regular /home which is an nfs mount but you could instead specify a UNC path. I know I tested this in the past. I would activate and test this now but I have a meeting in 30 minutes and so its not good to make any changes with no one running the store... Also all other shares (user public and private + several dfs mounts) are mapped with my login script to the appropriate servers. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Shared homes in a different samba server
Ah ok you can use UNC on PDC. I failed because I tried to not put at all any profiles or homes directive in pdc and I put them in the other samba. I will use ldap because I am already using it for unix accounts and so I need for samba. I was interested because reading your post it seems that you can put some info in ldap to change behaviour of samba differently for each user. Many thanks again! 2009/1/9 John Drescher dresche...@gmail.com On Fri, Jan 9, 2009 at 9:26 AM, Mario Giammarco mgiamma...@gmail.com wrote: 2009/1/9 John Drescher dresche...@gmail.com We do that (and have that in place for 5 or so years). No data exists on the pdc. The nice thing about that is with this setup we can make a new PDC/BDC in less than 5 minutes and install it on one of our openvz or xen hosts. We do have the profiles folder mounted under nfs to the PDC and our ldap configuration each users profile is specified with the server name of the machine with the user shares. So you are cheating: in the PDC samba conf you say that homes and profiles are in a directory of the PDC, but the directory is not phisically there, it is a nfs mount on another server right? Very good idea anyway! I do not understand the part about the ldap configuration, can you please explain it better: what can you do with ldap?? If you are not using LDAP for your password security I would not bother then. You can still make your profiles folder on a second server in your smb.conf. [Profiles] path = /home/%U/%U.pds browseable = no guest ok = yes profile acls = yes # Un-comment the following and create the netlogon directory for Domain Logons [netlogon] comment = Network Logon Service path = /home/netlogon readonly = yes browseable = yes Here I have the regular /home which is an nfs mount but you could instead specify a UNC path. I know I tested this in the past. I would activate and test this now but I have a meeting in 30 minutes and so its not good to make any changes with no one running the store... Also all other shares (user public and private + several dfs mounts) are mapped with my login script to the appropriate servers. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Suggestions on group permissions
I have a user community of about 2000 users and a samba server running on AIX that currently hosts a read-only share for the whole company. [Released] path = /mypath guest ok = Yes But now I have been requested to make this share available as read-only for some users and completely inaccessible to everyone else. The number of users who will have access is probably a few hundred and I expect users to be added/removed on a daily basis. Some of the users have unix logins, while others do not. Because of this, I hesitate to mess with user mapping because I would have to manage this every day, unless I do something with a script. Can someone suggest a scheme I can use to deny everyone except for certain users? Someone here in my office suggested we use hosts allow or deny, since the users who will still have access are located on the same subnet. However, there is a distinct possibility that a small number of people on a few other subnets will need access. Is there a way I can specify hosts allow but still allow specific users from other subnets? Forgive me if this question has been asked before. I'm sure it must have been, but I am having trouble doing a search of the archives that will give me advice about this particular problem. Thanks in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba + Windows 2003 AD
Hey :) I have now added undervisning.local to my resolv.conf but it is not working anyways :) my new debuglevel # net ads join -U Administrator --debuglevel=10 [2009/01/09 19:12:32, 5] lib/debug.c:debug_dump_status(407) INFO: Current debug levels: all: True/10 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 locking: False/0 msdfs: False/0 dmapi: False/0 registry: False/0 [2009/01/09 19:12:32, 3] param/loadparm.c:lp_load_ex(8778) lp_load_ex: refreshing parameters [2009/01/09 19:12:32, 3] param/loadparm.c:init_globals(4621) Initialising global parameters [2009/01/09 19:12:32, 3] param/params.c:pm_process(569) params.c:pm_process() - Processing configuration file /etc/samba/smb.conf [2009/01/09 19:12:32, 3] param/loadparm.c:do_section(7441) Processing section [global] doing parameter dos charset = ASCII [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UCS-2LE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UCS-2LE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UTF-16LE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UTF-16LE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UCS-2BE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UCS-2BE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UTF-16BE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UTF-16BE [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UTF8 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UTF8 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UTF-8 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UTF-8 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset ASCII [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset ASCII [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset 646 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset 646 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset ISO-8859-1 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset ISO-8859-1 [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(104) Attempting to register new charset UCS2-HEX [2009/01/09 19:12:32, 5] lib/iconv.c:smb_register_charset(112) Registered charset UCS2-HEX [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE [2009/01/09 19:12:32, 5] lib/charcnv.c:charset_name(82) Substituting charset 'UTF-8' for LOCALE doing parameter display charset = ASCII doing parameter workgroup = UNDERVISNING doing parameter realm = UNDERVISNING.LOCAL doing parameter server string = Debian 4.0 - Samba %v - BDC doing parameter security = ADS doing parameter password server = bgdc.birke-gym.dk doing parameter log level = 10 doing parameter log file = /var/log/samba/UNDERVISNING doing parameter disable netbios = Yes doing parameter name resolve order = wins lmhosts hosts bcast doing parameter os level = 1000 doing parameter preferred master = No doing parameter local master = No doing parameter domain master = No doing parameter wins server = bgdc.birke-gym.dk doing parameter idmap uid =
[Samba] samba / ldap problem with cpu load
First of all, I am french. My english is not very good and i am sorry for this ;). One month ago, I have upgrade my server in debian Etch (it was in debian sarge). So now, samba is in 3.0.24 version. My server use samba and ldap. Since this upgrade, i have some problems with cpu loading when the users log on the samba domain (smbd and slapd services). I have take a look at samba log but i don't see anything. After that, i have take a look on the ldap logs in debug level 256. I can see the problem in the logs but i can't explain it, i hope you can help me about it. In the log file, i have this entry thousand of time (2 entry) base=ou=Groups,ou=clg-hugo-gisors,ou=ac-rouen,ou=education,o=gouv,c=fr scope=2 deref=0 filter=((objectClass=sambaGroupMapping)(gidNumber=0)) thanks for your help, bye -- ~~ Franck MOLLE Animateur de Secteur Relais assistance Tice, Louviers-Vernon ~~ -- 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 v3-3-stable updated - release-3-3-0rc2-113-g4f8c8a8
The branch, v3-3-stable has been updated via 4f8c8a84a39b2fe06e7cdac6bb7dc14d836444a6 (commit) via 2ddff1644b80aec9acd6918c43612443d5f269ad (commit) via 3634ed69910c86447bde44a163f6ec1e4001b509 (commit) via b7ae32518c7d7f8ba0008a63ebd54bbb992271bd (commit) via 336faff11baded723a9701f0e5f9907deac75e8c (commit) via 3523b8459b1389929a5d24e7b28962f78dc3b2f2 (commit) via 79e930b5fe9d87c197bf08abfe36fe7934420850 (commit) via d134531fb407e54b0c09ac0c983ae44db5e3561e (commit) via 60b72b67f5db0b9fe557be84acf03c6141bb84db (commit) via 7c7435b224ac09601a96082944b220f42317f332 (commit) via ae0002841e67530abd069f0e0ad6b747a1e59a02 (commit) via 13a52176050c86ffcbd6b75bad298ee4160527e5 (commit) via 7699c715b0c5b41c2903a667d520ce3c8f20680f (commit) via ec8413188ad69423dfb85b425f4a7c690b02dd5c (commit) via a806c7b1771e140b342c8d1928f65e6bbd8c3528 (commit) via d761bc8faf398c2f1e18cb50c87eb12944333e05 (commit) via 29159131ec51311b3bd9e2fd1877361d2368e8c3 (commit) via 94e57bb795b88ffcb6af774cf3bf8acf7ff72d32 (commit) via 56f8db87c626917c4041eaa9d71a6f357e85a0b4 (commit) via c3a39de351e156d62644b4fd86d43a32dbd76c9c (commit) via 5a7e9667ff78764dee0a80cc36768480f6af2c5e (commit) via 7db39201adef6b1579b2f62e3ee95b0311cbf643 (commit) via cfc6aeb90b2fdcbac090aeb828e1f1ab1fa5231f (commit) from 9b17f7907bca32282d6e56fa28ca62ef84bf7afc (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-stable - Log - commit 4f8c8a84a39b2fe06e7cdac6bb7dc14d836444a6 Author: Jeremy Allison j...@samba.org Date: Wed Jan 7 14:55:13 2009 -0800 Fix bug #6016 - Alternate Data Streams / Extended Attributes seem to conflict. Jeremy. (cherry picked from commit c5a8337657ebe63e1c12279fcec20a6a1abd8638) commit 2ddff1644b80aec9acd6918c43612443d5f269ad Author: boyang boy...@suse.de Date: Wed Jan 7 11:01:48 2009 -0800 refresh sequence number as soon as possible when domain-sequence_number == -1 or domain-last_status is not ok. (cherry picked from commit 0e058da2ee3f70e66cdf5d27f7deb479fb4ccae0) commit 3634ed69910c86447bde44a163f6ec1e4001b509 Author: Jeremy Allison j...@samba.org Date: Tue Jan 6 17:35:34 2009 -0800 Make winbindd_cm.c use winbindd_reinit_after_fork(). Jeremy. (cherry picked from commit 77a4a3976af353f517b5193bae9cfbe0f3ad6f4c) commit b7ae32518c7d7f8ba0008a63ebd54bbb992271bd Author: Jeremy Allison j...@samba.org Date: Tue Jan 6 16:06:22 2009 -0800 Fix bug #6017, - magic script does not work. based on a patch from mo...@samba.gr.jp. Jeremy. (cherry picked from commit 8bd7b19aaafe96ec6ac0bf700ec9dd337b598c03) commit 336faff11baded723a9701f0e5f9907deac75e8c Author: Jeremy Allison j...@samba.org Date: Tue Jan 6 15:15:30 2009 -0800 Add winbindd_reinit_after_fork(), cleaning out all possible events in a forked child. Jeremy. (cherry picked from commit e7433112f4f05aeaf9a3c03ec58962c4d9e16c7d) commit 3523b8459b1389929a5d24e7b28962f78dc3b2f2 Author: Jeremy Allison j...@samba.org Date: Tue Jan 6 13:16:25 2009 -0800 Factor out lots of common code into a function. Jeremy. (cherry picked from commit 995fb1dc9c0aaa909dc5928bdffa756ea9402f2d) commit 79e930b5fe9d87c197bf08abfe36fe7934420850 Author: Stefan Metzmacher me...@samba.org Date: Tue Jan 6 11:22:08 2009 -0800 s3:events: change event_add_timed() prototype to match samba4 metze (cherry picked from commit a632a1bcd694cff03de3456dac582800e94c451e) commit d134531fb407e54b0c09ac0c983ae44db5e3561e Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 15:13:43 2009 +0100 s3/swat: Fix creation of the first share using SWAT. This fixes bug #5965. (cherry picked from commit f76614169f1e0a932cf2895702cfa9e8a5735875) commit 60b72b67f5db0b9fe557be84acf03c6141bb84db Author: Karolin Seeger ksee...@samba.org Date: Tue Jan 6 12:26:23 2009 +0100 docs: Improve description of the share commands in man smb.conf. -Correct the parameter names. -Fix typos. -Fix related parameters. This fixes bug #6008. Thanks to TAKAHASHI Motonobu mo...@samba.gr.jp for reporting! Karolin (cherry picked from commit 8b7f66c548ed170d2dab0c91ccff4aca00f4b52d) (cherry picked from commit 6f38786aa878bd1a7fc10069773c19b28437fbbb) commit 7c7435b224ac09601a96082944b220f42317f332 Author: Karolin Seeger ksee...@samba.org Date: Tue Jan 6 10:26:37 2009 +0100 docs: Fix example in man vfs_recycle. This fixes bug #6001. Thanks to TAKAHASHI Motonobu mo...@samba.gr.jp for reporting! Karolin (cherry picked from commit 9f44a17c3bf36067d04cec036c3e529798932cd7) (cherry picked from commit 5e073807f7c4679dd299a2b8f3e2643dc1c82405) commit ae0002841e67530abd069f0e0ad6b747a1e59a02
[SCM] Samba Shared Repository - branch master updated - 1f7e09ea542df3a2f5f553c0cb11a39c74712950
The branch, master has been updated via 1f7e09ea542df3a2f5f553c0cb11a39c74712950 (commit) from fff711fddbd62fde6e170a3e2e635d41c63a844a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1f7e09ea542df3a2f5f553c0cb11a39c74712950 Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 11:22:00 2009 +0100 docs: Improve man mount.cifs. Add hint about specifying the workgroup in the credentials file. Whitespace cleanup. This fixes bug #4541. Patch based on proposed patch from Christian Perrier bubu...@debian.org. Thanks for reporting and providing a patch! Karolin --- Summary of changes: docs-xml/manpages-3/mount.cifs.8.xml |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/manpages-3/mount.cifs.8.xml b/docs-xml/manpages-3/mount.cifs.8.xml index 51a22b3..54fbc13 100644 --- a/docs-xml/manpages-3/mount.cifs.8.xml +++ b/docs-xml/manpages-3/mount.cifs.8.xml @@ -89,7 +89,7 @@ to be specified as part of the username. listitemparaspecifies the CIFS password. If this option is not given then the environment variable -emphasisPASSWD/emphasis is used. If the password is not specified +emphasisPASSWD/emphasis is used. If the password is not specified directly or indirectly via an argument to mount, emphasismount.cifs/emphasis will prompt for a password, unless the guest option is specified. /para @@ -106,14 +106,16 @@ below) or entered at the password prompt will be read correctly. listitempara specifies a file that contains a username - and/or password. The format of the file is: + and/or password and optionally the name of the + workgroup. The format of the file is: /para programlisting username=replaceablevalue/replaceable password=replaceablevalue/replaceable + workgroup=replaceablevalue/replaceable /programlisting - + para This is preferred over having passwords in plaintext in a shared file, such as filename/etc/fstab/filename. Be sure to protect any -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4809-gb99d98f
The branch, v3-3-test has been updated via b99d98ff2ef5491979301656e7f516d3c8829f6e (commit) from 98eb11ef99418e690ae43116432c0566a28da8a0 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit b99d98ff2ef5491979301656e7f516d3c8829f6e Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 11:22:00 2009 +0100 docs: Improve man mount.cifs. Add hint about specifying the workgroup in the credentials file. Whitespace cleanup. This fixes bug #4541. Patch based on proposed patch from Christian Perrier bubu...@debian.org. Thanks for reporting and providing a patch! Karolin (cherry picked from commit 1f7e09ea542df3a2f5f553c0cb11a39c74712950) --- Summary of changes: docs-xml/manpages-3/mount.cifs.8.xml |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/manpages-3/mount.cifs.8.xml b/docs-xml/manpages-3/mount.cifs.8.xml index ff9ab66..9382365 100644 --- a/docs-xml/manpages-3/mount.cifs.8.xml +++ b/docs-xml/manpages-3/mount.cifs.8.xml @@ -89,7 +89,7 @@ to be specified as part of the username. listitemparaspecifies the CIFS password. If this option is not given then the environment variable -emphasisPASSWD/emphasis is used. If the password is not specified +emphasisPASSWD/emphasis is used. If the password is not specified directly or indirectly via an argument to mount, emphasismount.cifs/emphasis will prompt for a password, unless the guest option is specified. /para @@ -106,14 +106,16 @@ below) or entered at the password prompt will be read correctly. listitempara specifies a file that contains a username - and/or password. The format of the file is: + and/or password and optionally the name of the + workgroup. The format of the file is: /para programlisting username=replaceablevalue/replaceable password=replaceablevalue/replaceable + workgroup=replaceablevalue/replaceable /programlisting - + para This is preferred over having passwords in plaintext in a shared file, such as filename/etc/fstab/filename. Be sure to protect any -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3342-g1900233
The branch, v3-2-test has been updated via 1900233ede3083410eb3dc691d2d486c5340ccc4 (commit) from f21a6d66f0bde933e5bf8cf673fc380e5dd52793 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 1900233ede3083410eb3dc691d2d486c5340ccc4 Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 11:22:00 2009 +0100 docs: Improve man mount.cifs. Add hint about specifying the workgroup in the credentials file. Whitespace cleanup. This fixes bug #4541. Patch based on proposed patch from Christian Perrier bubu...@debian.org. Thanks for reporting and providing a patch! Karolin (cherry picked from commit 1f7e09ea542df3a2f5f553c0cb11a39c74712950) (cherry picked from commit b99d98ff2ef5491979301656e7f516d3c8829f6e) --- Summary of changes: docs-xml/manpages-3/mount.cifs.8.xml |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/manpages-3/mount.cifs.8.xml b/docs-xml/manpages-3/mount.cifs.8.xml index 51a22b3..54fbc13 100644 --- a/docs-xml/manpages-3/mount.cifs.8.xml +++ b/docs-xml/manpages-3/mount.cifs.8.xml @@ -89,7 +89,7 @@ to be specified as part of the username. listitemparaspecifies the CIFS password. If this option is not given then the environment variable -emphasisPASSWD/emphasis is used. If the password is not specified +emphasisPASSWD/emphasis is used. If the password is not specified directly or indirectly via an argument to mount, emphasismount.cifs/emphasis will prompt for a password, unless the guest option is specified. /para @@ -106,14 +106,16 @@ below) or entered at the password prompt will be read correctly. listitempara specifies a file that contains a username - and/or password. The format of the file is: + and/or password and optionally the name of the + workgroup. The format of the file is: /para programlisting username=replaceablevalue/replaceable password=replaceablevalue/replaceable + workgroup=replaceablevalue/replaceable /programlisting - + para This is preferred over having passwords in plaintext in a shared file, such as filename/etc/fstab/filename. Be sure to protect any -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-32-99-g47f4662
The branch, v3-0-test has been updated via 47f4662b6d727f2901d630d74792a6a971b54662 (commit) from 8904b83ce6c69db31dc2ce4c05e8e8ee3db5ec3b (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test - Log - commit 47f4662b6d727f2901d630d74792a6a971b54662 Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 11:22:00 2009 +0100 docs: Improve man mount.cifs. Add hint about specifying the workgroup in the credentials file. Whitespace cleanup. This fixes bug #4541. Patch based on proposed patch from Christian Perrier bubu...@debian.org. Thanks for reporting and providing a patch! Karolin (cherry picked from commit 1f7e09ea542df3a2f5f553c0cb11a39c74712950) (cherry picked from commit b99d98ff2ef5491979301656e7f516d3c8829f6e) (cherry picked from commit 1900233ede3083410eb3dc691d2d486c5340ccc4) --- Summary of changes: docs-xml/manpages-3/mount.cifs.8.xml |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/manpages-3/mount.cifs.8.xml b/docs-xml/manpages-3/mount.cifs.8.xml index fcea5bc..86242a2 100644 --- a/docs-xml/manpages-3/mount.cifs.8.xml +++ b/docs-xml/manpages-3/mount.cifs.8.xml @@ -89,7 +89,7 @@ to be specified as part of the username. listitemparaspecifies the CIFS password. If this option is not given then the environment variable -emphasisPASSWD/emphasis is used. If the password is not specified +emphasisPASSWD/emphasis is used. If the password is not specified directly or indirectly via an argument to mount, emphasismount.cifs/emphasis will prompt for a password, unless the guest option is specified. /para @@ -106,14 +106,16 @@ below) or entered at the password prompt will be read correctly. listitempara specifies a file that contains a username - and/or password. The format of the file is: + and/or password and optionally the name of the + workgroup. The format of the file is: /para programlisting username=replaceablevalue/replaceable password=replaceablevalue/replaceable + workgroup=replaceablevalue/replaceable /programlisting - + para This is preferred over having passwords in plaintext in a shared file, such as filename/etc/fstab/filename. Be sure to protect any -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 2a52b059ce44403ff6ced066e0bb23fa6cc66a73
The branch, master has been updated via 2a52b059ce44403ff6ced066e0bb23fa6cc66a73 (commit) from 1f7e09ea542df3a2f5f553c0cb11a39c74712950 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 2a52b059ce44403ff6ced066e0bb23fa6cc66a73 Author: Björn Jacke b...@sernet.de Date: Fri Jan 9 12:05:55 2009 +0100 quote ' inside '...' and make sure shell isn't eating \ by using perl here. Signed-off-by: Stefan Metzmacher me...@samba.org --- Summary of changes: source4/build/m4/public.m4 |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4 index e51a8ac..eca7e8f 100644 --- a/source4/build/m4/public.m4 +++ b/source4/build/m4/public.m4 @@ -201,8 +201,9 @@ CEOF for ac_var in $ac_subst_vars do -eval ac_val=\$$ac_var - echo $ac_var = '$ac_val', $1 + eval ac_val=\$$ac_var + # quote ' (\x27) inside '...' and make sure \ isn't eaten by shells, so use perl: + perl -e '$myval=$ENV{ac_val}; $myval =~ s/\x27/\\\x27/g ; print $ENV{ac_var}. = \x27$myval\x27,\n' $1 done cat $1CEOF -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 308eb1c46e0c76a30bf869e5e971d531df935d80
The branch, master has been updated via 308eb1c46e0c76a30bf869e5e971d531df935d80 (commit) from 2a52b059ce44403ff6ced066e0bb23fa6cc66a73 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 308eb1c46e0c76a30bf869e5e971d531df935d80 Author: Stefan Metzmacher me...@samba.org Date: Fri Jan 9 12:23:11 2009 +0100 Revert quote ' inside '...' and make sure shell isn't eating \ by using perl here. This reverts commit 2a52b059ce44403ff6ced066e0bb23fa6cc66a73. It breaks the build on ubuntu. metze --- Summary of changes: source4/build/m4/public.m4 |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4 index eca7e8f..e51a8ac 100644 --- a/source4/build/m4/public.m4 +++ b/source4/build/m4/public.m4 @@ -201,9 +201,8 @@ CEOF for ac_var in $ac_subst_vars do - eval ac_val=\$$ac_var - # quote ' (\x27) inside '...' and make sure \ isn't eaten by shells, so use perl: - perl -e '$myval=$ENV{ac_val}; $myval =~ s/\x27/\\\x27/g ; print $ENV{ac_var}. = \x27$myval\x27,\n' $1 +eval ac_val=\$$ac_var + echo $ac_var = '$ac_val', $1 done cat $1CEOF -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 49a6d757b4d944cd22c91b2838beb83f04fbe1e9
The branch, master has been updated via 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 (commit) from 308eb1c46e0c76a30bf869e5e971d531df935d80 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 Author: Stefan Metzmacher me...@samba.org Date: Fri Jan 9 13:10:07 2009 +0100 s4:debug: make setup_logging() a bit more compatible with samba3 In samba3 the 2nd argument is bool interactive. E.g ndrdump uses true there which used to map to DEBUG_FILE in samba4, it maps to DEBUG_STDOUT now, which is better. In the end end samba3 should also use the samba4 version of setup_logging() metze --- Summary of changes: lib/util/debug.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/util/debug.h b/lib/util/debug.h index 7518a64..85e64fb 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -75,7 +75,7 @@ extern int DEBUGLEVEL; #define DEBUGTAB(n) do_debug_tab(n) /** Possible destinations for the debug log */ -enum debug_logtype {DEBUG_STDOUT = 0, DEBUG_FILE = 1, DEBUG_STDERR = 2}; +enum debug_logtype {DEBUG_FILE = 0, DEBUG_STDOUT = 1, DEBUG_STDERR = 2}; /** the backend for debug messages. Note that the DEBUG() macro has already -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3343-g72bd558
The branch, v3-2-test has been updated via 72bd55835fa853abb7ce960a53830a20f10ffa4d (commit) from 1900233ede3083410eb3dc691d2d486c5340ccc4 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 72bd55835fa853abb7ce960a53830a20f10ffa4d Author: Karolin Seeger ksee...@samba.org Date: Fri Dec 19 14:45:36 2008 +0100 VERSION: Raise version number up to 3.2.7. Karolin (cherry picked from commit 33b904c7003e85362eb991c9475991f35b576fd1) Signed-off-by: Michael Adam ob...@samba.org --- Summary of changes: source/VERSION |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/VERSION b/source/VERSION index a61066a..f67e8d1 100644 --- a/source/VERSION +++ b/source/VERSION @@ -25,7 +25,7 @@ SAMBA_VERSION_MAJOR=3 SAMBA_VERSION_MINOR=2 -SAMBA_VERSION_RELEASE=6 +SAMBA_VERSION_RELEASE=7 # Bug fix releases use a letter for the patch revision # -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3344-g6425326
The branch, v3-2-test has been updated via 642532608bea788e174f15aabd13376847de106a (commit) from 72bd55835fa853abb7ce960a53830a20f10ffa4d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 642532608bea788e174f15aabd13376847de106a Author: Karolin Seeger ksee...@samba.org Date: Fri Dec 19 14:57:33 2008 +0100 WHATSNEW: Prepare WHATSNEW for 3.2.7. Karolin (cherry picked from commit 0730f4e464b249ffe2319e98902ed96089f3230b) (cherry picked from commit e2ac74fb837a184ac01483199463bf623ee9a8ef) Signed-off-by: Michael Adam ob...@samba.org --- Summary of changes: WHATSNEW.txt | 203 -- 1 files changed, 14 insertions(+), 189 deletions(-) Changeset truncated at 500 lines: diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 447844b..af91e72 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -1,206 +1,31 @@ - == - Release Notes for Samba 3.2.6 -December 10, 2008 - == + = + Release Notes for Samba 3.2.7 +January 05, 2009 + = -This is a bug fix release of the Samba 3.2 series. +This is a security release in order to address CVE-2009-0022. -Major enhancements included in Samba 3.2.6 are: + o CVE-2009-0022 + In Samba 3.2.0 to 3.2.6, in setups with registry shares enabled, + access to the root filesystem (/) is granted + when connecting to a share called (empty string) + using old versions of smbclient (before 3.0.28). - o Fix Winbind crash bugs. - o Fix moving of readonly files. - o Fix write list in setups using security = share. - o Fix access to cups-printers with cups 1.3.4. - o Fix timeouts in setups with large groups. - o Fix several bugs concerning Alternate Data Streams. - o Add new SMB traffic analyzer VFS module. +The original security announcement for this and past advisories can +be found http://www.samba.org/samba/security/ ## Changes ### -Changes since 3.2.5 +Changes since 3.2.6 --- o Michael Adam ob...@samba.org -* BUG 5677: Fix test_{shlibs,nss_modules,pam_modules} on Solaris. -* BUG 5765: Fix installlibs on solaris by using portable test -r. -* Fix potential segfault in vfs_tsmsm. -* Don't list the domain twice when expanding internal aliases. -* Fix the output of getent group when winbind use default domain = yes - with security = ads. -* Add domain prefix to username in lookup_groupmem(). -* Prevent negative GM/ cache entries due to broken connections. -* Fix crash in sync_eventlog_params(). -* Fix timeouts when calling 'getgrent'. -* Fix smbd hanging on Solaris when winbindd closes socket. - - -o Jeremy Allison j...@samba.org -* BUG 1254: Fix write list in setups using security = share. -* BUG 5080: Fix access to cups-printers with cups 1.3.4. -* BUG 5737: Fix Winbind crash in an unusual failure mode. -* BUG 5783: Fix FindFirst where search pattern equals the mangled filename. -* BUG 5790: Fix returning of STATUS_OBJECT_NAME_NOT_FOUND on set file - disposition. -* BUG 5797: Fix moving of readonly files. -* BUG 5814: Fix Winbind crash bug while doing rescan_trusted_domain. -* BUG 5818: Sort ACEs in smbcacl output properly and honor inheritance. -* BUG 5825: Fix account locking with LDAP backend. -* BUG 5826: Fix truncated filenames when accessing old servers. -* BUG 5889: Fix delete veto files = no. -* BUG 5891: Fix smbd crash when viewing the eventlog exported by eventlog - list. -* BUG 5900: Fix vfs_readonly. -* BUG 5903: Fix vfs_streams_xattr breaking contents of files. -* BUG 5904: Fix libnss_wins causing SIGABRT while servicing getaddrinfo() - request. -* BUG 5914: Fix build failure: redefinition of struct name_list. -* BUG 5937: Fix filenames with * char hiding other files. -* BUG 5953: Fix smbclient crashes. -* Fix rename_open_files. -* Restructure VFS SMB traffic analyzer VFS module. -* Correctly fix smbclient to terminate on eof from server. -* Unify access checks for lsa server functions. -* Remove the requirement for ldap call made as root. -* Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles. -* Fix net rpc vampire, based on an *amazing* piece of debugging work by - Cooper S. Blake the_analog...@yahoo.com. -* Fix Coverity IDs 456, 574, 592, 606 and 607. -* Fix net rpc vampire. - - -o Gerald (Jerry) Carter je...@samba.org -* Use the same
[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - build_3.2.6_ctdb.52-7-ge2ac74f
The branch, v3-2-ctdb has been updated via e2ac74fb837a184ac01483199463bf623ee9a8ef (commit) via fad1ebe43b95f48b988175f06c49ea7cfd59ccf6 (commit) via 1cc7001af4ae6fc1c5193d3f7657e879495e8d06 (commit) from 392ef47470e7b246157aa13b9550af96a600d169 (commit) http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-2-ctdb - Log - commit e2ac74fb837a184ac01483199463bf623ee9a8ef Author: Karolin Seeger ksee...@samba.org Date: Fri Dec 19 14:57:33 2008 +0100 WHATSNEW: Prepare WHATSNEW for 3.2.7. Karolin (cherry picked from commit 0730f4e464b249ffe2319e98902ed96089f3230b) commit fad1ebe43b95f48b988175f06c49ea7cfd59ccf6 Author: Karolin Seeger ksee...@samba.org Date: Fri Dec 19 14:45:36 2008 +0100 VERSION: Raise version number up to 3.2.7. Karolin (cherry picked from commit 33b904c7003e85362eb991c9475991f35b576fd1) commit 1cc7001af4ae6fc1c5193d3f7657e879495e8d06 Author: Michael Adam ob...@samba.org Date: Thu Dec 18 18:01:55 2008 +0100 smbd: prevent access to root filesystem when connecting with empty service name This only applies to a setup with registry shares = yes Michael (cherry picked from commit 288fa94ac7cfdf7457b5098c33fc840bed3d5410) --- Summary of changes: WHATSNEW.txt | 203 - source/VERSION|2 +- source/smbd/service.c |4 + 3 files changed, 19 insertions(+), 190 deletions(-) Changeset truncated at 500 lines: diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 447844b..af91e72 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -1,206 +1,31 @@ - == - Release Notes for Samba 3.2.6 -December 10, 2008 - == + = + Release Notes for Samba 3.2.7 +January 05, 2009 + = -This is a bug fix release of the Samba 3.2 series. +This is a security release in order to address CVE-2009-0022. -Major enhancements included in Samba 3.2.6 are: + o CVE-2009-0022 + In Samba 3.2.0 to 3.2.6, in setups with registry shares enabled, + access to the root filesystem (/) is granted + when connecting to a share called (empty string) + using old versions of smbclient (before 3.0.28). - o Fix Winbind crash bugs. - o Fix moving of readonly files. - o Fix write list in setups using security = share. - o Fix access to cups-printers with cups 1.3.4. - o Fix timeouts in setups with large groups. - o Fix several bugs concerning Alternate Data Streams. - o Add new SMB traffic analyzer VFS module. +The original security announcement for this and past advisories can +be found http://www.samba.org/samba/security/ ## Changes ### -Changes since 3.2.5 +Changes since 3.2.6 --- o Michael Adam ob...@samba.org -* BUG 5677: Fix test_{shlibs,nss_modules,pam_modules} on Solaris. -* BUG 5765: Fix installlibs on solaris by using portable test -r. -* Fix potential segfault in vfs_tsmsm. -* Don't list the domain twice when expanding internal aliases. -* Fix the output of getent group when winbind use default domain = yes - with security = ads. -* Add domain prefix to username in lookup_groupmem(). -* Prevent negative GM/ cache entries due to broken connections. -* Fix crash in sync_eventlog_params(). -* Fix timeouts when calling 'getgrent'. -* Fix smbd hanging on Solaris when winbindd closes socket. - - -o Jeremy Allison j...@samba.org -* BUG 1254: Fix write list in setups using security = share. -* BUG 5080: Fix access to cups-printers with cups 1.3.4. -* BUG 5737: Fix Winbind crash in an unusual failure mode. -* BUG 5783: Fix FindFirst where search pattern equals the mangled filename. -* BUG 5790: Fix returning of STATUS_OBJECT_NAME_NOT_FOUND on set file - disposition. -* BUG 5797: Fix moving of readonly files. -* BUG 5814: Fix Winbind crash bug while doing rescan_trusted_domain. -* BUG 5818: Sort ACEs in smbcacl output properly and honor inheritance. -* BUG 5825: Fix account locking with LDAP backend. -* BUG 5826: Fix truncated filenames when accessing old servers. -* BUG 5889: Fix delete veto files = no. -* BUG 5891: Fix smbd crash when viewing the eventlog exported by eventlog - list. -* BUG 5900: Fix vfs_readonly. -* BUG 5903: Fix vfs_streams_xattr breaking contents of files. -* BUG 5904: Fix libnss_wins causing SIGABRT while servicing getaddrinfo() - request. -* BUG 5914: Fix build failure: redefinition of struct name_list.
[SCM] Samba Shared Repository - branch master updated - 1b9ae1a6bb771ee16908e66fa35dada514a8f36d
The branch, master has been updated via 1b9ae1a6bb771ee16908e66fa35dada514a8f36d (commit) from 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1b9ae1a6bb771ee16908e66fa35dada514a8f36d Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 15:54:16 2009 +0100 s3/smbpasswd: Check if Unix account exists before asking for the password. Admins shouldn't have to type in the password twice when the passdb account cannot be created because the Unix account is missing. Karolin --- Summary of changes: source3/utils/smbpasswd.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index d2652ad..93e2f81 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -430,6 +430,15 @@ static int process_root(int local_flags) } if((local_flags LOCAL_SET_PASSWORD) (new_passwd == NULL)) { + struct passwd *passwd; + + passwd = getpwnam_alloc(NULL, user_name); + if (!passwd) { + DEBUG(0, (Cannot locate Unix account for + '%s'!\n, user_name)); + exit(1);; + } + new_passwd = prompt_for_new_password(stdin_passwd_get); if(!new_passwd) { -- Samba Shared Repository
[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - build_3.2.6_ctdb.52-3274-gf7d34eb
The branch, v3-2-ctdb has been updated via f7d34eb3e18ae47a357726ea24f043b904f7327c (commit) via d54a1e49d5fe567bcda7c4c02f6ace2d03e189e9 (commit) via 776c7ce0c1e73efc4f3d24a297bb3b2f3dd3892a (commit) via e504256f84927c9b22df3945a3e95baaa9bf7063 (commit) via 73039cd49521e724a8351a353e9ae1d342be1352 (commit) via 3d2fe303830c0c1e425f6279a1625a56a27abd07 (commit) via 9838de125505fdff18014d72ebe9816176a610f9 (commit) via d47dda115e1a3df50357a7a82694522df884c374 (commit) via 6359df973fa24a3babd0e10e9e131ace47e2b2e8 (commit) via 60c0166fd492bb6cff41811973c8da026c5109d7 (commit) via f771eee7878fd4d5e67256032ed56f537d8e (commit) via 6ee994e2d25d14b31dc9de75264e94a9ac6a09d4 (commit) via 8321caf35736401d2a0d53cefc5c432d5b9e2bc7 (commit) via 5e47b314550d1165b86bd556330d36e0787e5109 (commit) via 46d5eef85477d621c27e72910bffe6d15f83d6a6 (commit) via e79ce10550e18a59e9aa2edb377e9b7130e60789 (commit) via d5f1a3b9196933f86f46a6664a044fd027a8f417 (commit) via dc3c9fd570850e69ad5166184726f9abb7d8a9c7 (commit) via c48a4e52b707a860c2956b3eb9d1d631b1f1 (commit) via 879a4fbe99739b67d877caac2d7a2f763c69d41f (commit) via 9af716f5fb144a047f1fc9fe02f24bcc59a0bc97 (commit) via fda3f00246c3ecb664d2bf387ecd0e28dec16e34 (commit) via 1497c6964767d6d73d6c1c1f6bbbeff2f05b35bc (commit) via 239a2d0ac6f1b56d67d7fffdb7388a3008eeb4e2 (commit) from 68e6c230f4053f2cb48a7c97ae39e18067725f57 (commit) http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-2-ctdb - Log - commit f7d34eb3e18ae47a357726ea24f043b904f7327c Merge: 68e6c230f4053f2cb48a7c97ae39e18067725f57 d54a1e49d5fe567bcda7c4c02f6ace2d03e189e9 Author: Michael Adam ob...@samba.org Date: Fri Jan 9 16:09:28 2009 +0100 Merge commit 'd54a1e49d5fe567bcda7c4c02f6ace2d03e189e9' into v3-2-ctdb Again a git merge -s ours d54a1e49d5fe567bcda7c4c02f6ace2d03e189e9 with empty diff: I had in fact already merged more from v3-2-test than I imported in my last merge commit. Michael commit d54a1e49d5fe567bcda7c4c02f6ace2d03e189e9 Author: Karolin Seeger ksee...@samba.org Date: Tue Dec 16 09:04:32 2008 +0100 docs: Fix typo in the idmap_ad manpage. Karolin (cherry picked from commit b876e1336bed52e0823e0e88381d223bd6aa95e4) (cherry picked from commit 611ac35a694930693d2f773d15e59be138261a8e) commit 776c7ce0c1e73efc4f3d24a297bb3b2f3dd3892a Author: Stefan Metzmacher me...@samba.org Date: Tue Dec 16 10:40:32 2008 +0100 s3:net_status: use dbwrap to open sessionid.tdb metze (cherry picked from commit 8891b2b0215a3609fcc8c5f9aa3e2fbcf05c6290) (cherry picked from commit 598bf8fbe38d76adca2e067c90987d9cd31e8a3e) commit e504256f84927c9b22df3945a3e95baaa9bf7063 Author: Volker Lendecke v...@samba.org Date: Mon Dec 15 12:46:04 2008 +0100 Fix bug 5969: Optimize smbclient put command This used to be checkin 3f0406f6 to master commit 73039cd49521e724a8351a353e9ae1d342be1352 Author: Volker Lendecke v...@sernet.de Date: Sat Dec 13 13:14:58 2008 -0800 Fix error code when smbclient puts a file over an existing directory Windows returns NT_STATUS_FILE_IS_A_DIRECTORY, as does Samba 3.0. 3.2 and following returned NT_STATUS_INVALID_PARAMETER which is wrong. Before I converted reply_open_and_X to create_file() we called open_file_ntcreate directly. Passing through openX for a filename that exists as a directory ends up in open_directory after having tried open_file_ntcreate. Some check in there returns NT_STATUS_INVALID_PARAMETER. With this additional FILE_NON_DIRECTORY_FILE flag we get the correct error message back from create_file_unixpath before trying open_directory(). Survives make test, but as this also touches the other open variants I would like others to review this. Volker commit 3d2fe303830c0c1e425f6279a1625a56a27abd07 Author: Stefan Metzmacher me...@samba.org Date: Fri Nov 21 08:28:13 2008 +0100 s3:dsgetdcname: retry with the clients site metze (cherry picked from commit 1b7b0e924f3064a9774fd5d46bedc3d342b39ddb) (cherry picked from commit f7a811f2ae3572791035014b6e20410b07ea011e) commit 9838de125505fdff18014d72ebe9816176a610f9 Author: Stefan Metzmacher me...@samba.org Date: Fri Nov 21 08:22:38 2008 +0100 s3:libnet_join: use DS_FORCE_REDISCOVERY metze (cherry picked from commit 2bb91392b46e347fe3b6803d10b10d8b40e4a4a6) (cherry picked from commit 134893ef2b12b4b039c717588a8172613f6d1955) commit d47dda115e1a3df50357a7a82694522df884c374 Author: Stefan Metzmacher me...@samba.org Date: Mon Oct 27 19:40:23 2008 +0100 s3:libnet_join: call saf_join_store() after a the join. metze Signed-off-by: Stefan
[SCM] Samba Shared Repository - branch master updated - abc2843481a6cade7306b0beb8e615bf648d0087
The branch, master has been updated via abc2843481a6cade7306b0beb8e615bf648d0087 (commit) via 9119ed310129529f229aa720e6e48c8713bfa7ab (commit) via c60569c9b85e12b12adfd990b13f1404d3f468a0 (commit) from 1b9ae1a6bb771ee16908e66fa35dada514a8f36d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit abc2843481a6cade7306b0beb8e615bf648d0087 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 14:32:39 2009 +0100 s3-svcctl: use pidl defined constants in services implementation. Guenther commit 9119ed310129529f229aa720e6e48c8713bfa7ab Author: Günther Deschner g...@samba.org Date: Fri Jan 9 14:30:56 2009 +0100 s3: re-run make samba3-idl. Guenther commit c60569c9b85e12b12adfd990b13f1404d3f468a0 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 14:29:40 2009 +0100 svcctl: add SERVICE_TYPE_INTERACTIVE_PROCESS define. Guenther --- Summary of changes: librpc/gen_ndr/svcctl.h |1 + librpc/idl/svcctl.idl |1 + source3/services/svc_netlogon.c | 20 ++-- source3/services/svc_rcinit.c | 24 ++-- source3/services/svc_spoolss.c | 34 ++ source3/services/svc_winreg.c | 16 source3/services/svc_wins.c | 20 ++-- 7 files changed, 62 insertions(+), 54 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/gen_ndr/svcctl.h b/librpc/gen_ndr/svcctl.h index 80f906a..328d8ab 100644 --- a/librpc/gen_ndr/svcctl.h +++ b/librpc/gen_ndr/svcctl.h @@ -15,6 +15,7 @@ #define SERVICE_TYPE_WIN32_OWN_PROCESS ( 0x10 ) #define SERVICE_TYPE_WIN32_SHARE_PROCESS ( 0x20 ) #define SERVICE_TYPE_WIN32 ( SERVICE_TYPE_WIN32_OWN_PROCESS|SERVICE_TYPE_WIN32_SHARE_PROCESS ) +#define SERVICE_TYPE_INTERACTIVE_PROCESS ( 0x100 ) #define SV_TYPE_ALL( 0x ) #define SC_MANAGER_READ_ACCESS ( (SEC_STD_READ_CONTROL|SC_RIGHT_MGR_CONNECT|SC_RIGHT_MGR_ENUMERATE_SERVICE|SC_RIGHT_MGR_QUERY_LOCK_STATUS) ) #define SC_MANAGER_EXECUTE_ACCESS ( SC_MANAGER_READ_ACCESS ) diff --git a/librpc/idl/svcctl.idl b/librpc/idl/svcctl.idl index 7cc176e..a48eb35 100644 --- a/librpc/idl/svcctl.idl +++ b/librpc/idl/svcctl.idl @@ -76,6 +76,7 @@ import misc.idl, security.idl; const int SERVICE_TYPE_WIN32_OWN_PROCESS = 0x10; const int SERVICE_TYPE_WIN32_SHARE_PROCESS = 0x20; const int SERVICE_TYPE_WIN32=SERVICE_TYPE_WIN32_OWN_PROCESS|SERVICE_TYPE_WIN32_SHARE_PROCESS; + const int SERVICE_TYPE_INTERACTIVE_PROCESS = 0x100; typedef [public,bitmap32bit] bitmap { SV_TYPE_WORKSTATION = 0x0001, diff --git a/source3/services/svc_netlogon.c b/source3/services/svc_netlogon.c index 2745695..931f774 100644 --- a/source3/services/svc_netlogon.c +++ b/source3/services/svc_netlogon.c @@ -1,18 +1,18 @@ -/* +/* * Unix SMB/CIFS implementation. * Service Control API Implementation * Copyright (C) Gerald Carter 2005. - * + * * 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/. */ @@ -28,16 +28,16 @@ static WERROR netlogon_status( const char *service, struct SERVICE_STATUS *servi { ZERO_STRUCTP( service_status ); -service_status-type = 0x20; -service_status-controls_accepted = SVCCTL_ACCEPT_NONE; +service_status-type = SERVICE_TYPE_WIN32_SHARE_PROCESS; +service_status-controls_accepted = SVCCTL_ACCEPT_NONE; if ( lp_servicenumber(NETLOGON) != -1 ) { - service_status-state = SVCCTL_RUNNING; - service_status-win32_exit_code= WERR_SERVICE_NEVER_STARTED; + service_status-state = SVCCTL_RUNNING; + service_status-win32_exit_code = WERR_SERVICE_NEVER_STARTED; } else - service_status-state = SVCCTL_STOPPED; - + service_status-state = SVCCTL_STOPPED; + return WERR_OK; } diff --git a/source3/services/svc_rcinit.c b/source3/services/svc_rcinit.c index 5e9a546..3f56676 100644 --- a/source3/services/svc_rcinit.c +++
[SCM] Samba Shared Repository - branch master updated - 86b1b82d9ef29f0431d27d62ce2ec289078a6802
The branch, master has been updated via 86b1b82d9ef29f0431d27d62ce2ec289078a6802 (commit) via 413cb33fd59efbeb3ebfcdc0ddce3500412fe66d (commit) via a9b7695c2462654918204986c72cdb0c413b24c9 (commit) from abc2843481a6cade7306b0beb8e615bf648d0087 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 86b1b82d9ef29f0431d27d62ce2ec289078a6802 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:17:35 2009 +0100 s3: re-run make samba3-idl. Guenther commit 413cb33fd59efbeb3ebfcdc0ddce3500412fe66d Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:17:03 2009 +0100 svcctl: include hand marshalling helper in idl. Guenther commit a9b7695c2462654918204986c72cdb0c413b24c9 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 14:36:13 2009 +0100 svcctl: add ndr_push/pull_ENUM_SERVICE_STATUSW_array helper. Thanks metze for helping here. Guenther --- Summary of changes: librpc/gen_ndr/ndr_svcctl.h |1 + librpc/idl/svcctl.idl |1 + librpc/ndr/ndr_svcctl.c | 52 +++ librpc/ndr/ndr_svcctl.h | 24 +++ 4 files changed, 78 insertions(+), 0 deletions(-) create mode 100644 librpc/ndr/ndr_svcctl.c create mode 100644 librpc/ndr/ndr_svcctl.h Changeset truncated at 500 lines: diff --git a/librpc/gen_ndr/ndr_svcctl.h b/librpc/gen_ndr/ndr_svcctl.h index be7ada3..902565d 100644 --- a/librpc/gen_ndr/ndr_svcctl.h +++ b/librpc/gen_ndr/ndr_svcctl.h @@ -6,6 +6,7 @@ #ifndef _HEADER_NDR_svcctl #define _HEADER_NDR_svcctl +#include ../librpc/ndr/ndr_svcctl.h #define NDR_SVCCTL_UUID 367abb81-9844-35f1-ad32-98f038001003 #define NDR_SVCCTL_VERSION 2.0 #define NDR_SVCCTL_NAME svcctl diff --git a/librpc/idl/svcctl.idl b/librpc/idl/svcctl.idl index a48eb35..3f99029 100644 --- a/librpc/idl/svcctl.idl +++ b/librpc/idl/svcctl.idl @@ -9,6 +9,7 @@ import misc.idl, security.idl; version(2.0), pointer_default(unique), endpoint(ncacn_np:[\\pipe\\svcctl], ncalrpc:), + helper(../librpc/ndr/ndr_svcctl.h), helpstring(Service Control) ] interface svcctl { diff --git a/librpc/ndr/ndr_svcctl.c b/librpc/ndr/ndr_svcctl.c new file mode 100644 index 000..83e581b --- /dev/null +++ b/librpc/ndr/ndr_svcctl.c @@ -0,0 +1,52 @@ +/* + Unix SMB/CIFS implementation. + + routines for marshalling/unmarshalling special svcctl types + + Copyright (C) Guenther Deschner 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 librpc/gen_ndr/ndr_svcctl.h + +_PUBLIC_ enum ndr_err_code ndr_push_ENUM_SERVICE_STATUSW_array(struct ndr_push *ndr, uint32_t count, struct ENUM_SERVICE_STATUSW *r) +{ + uint32_t cntr_array_1; + + for (cntr_array_1 = 0; cntr_array_1 count; cntr_array_1++) { + NDR_CHECK(ndr_push_ENUM_SERVICE_STATUSW(ndr, NDR_SCALARS, r[cntr_array_1])); + } + for (cntr_array_1 = 0; cntr_array_1 count; cntr_array_1++) { + NDR_CHECK(ndr_push_ENUM_SERVICE_STATUSW(ndr, NDR_BUFFERS, r[cntr_array_1])); + } + + return NDR_ERR_SUCCESS; + +} + +_PUBLIC_ enum ndr_err_code ndr_pull_ENUM_SERVICE_STATUSW_array(struct ndr_pull *ndr, uint32_t count, struct ENUM_SERVICE_STATUSW *r) +{ + uint32_t cntr_array_1; + + for (cntr_array_1 = 0; cntr_array_1 count; cntr_array_1++) { + NDR_CHECK(ndr_pull_ENUM_SERVICE_STATUSW(ndr, NDR_SCALARS, r[cntr_array_1])); + } + for (cntr_array_1 = 0; cntr_array_1 count; cntr_array_1++) { + NDR_CHECK(ndr_pull_ENUM_SERVICE_STATUSW(ndr, NDR_BUFFERS, r[cntr_array_1])); + } + + return NDR_ERR_SUCCESS; +} diff --git a/librpc/ndr/ndr_svcctl.h b/librpc/ndr/ndr_svcctl.h new file mode 100644 index 000..e11ff69 --- /dev/null +++ b/librpc/ndr/ndr_svcctl.h @@ -0,0 +1,24 @@ +/* + Unix SMB/CIFS implementation. + + routines for marshalling/unmarshalling special svcctl types + + Copyright (C) Guenther Deschner 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
[SCM] Samba Shared Repository - branch master updated - b516a2abcadb4a58fe7058ddbb4e38f53a467426
The branch, master has been updated via b516a2abcadb4a58fe7058ddbb4e38f53a467426 (commit) from 86b1b82d9ef29f0431d27d62ce2ec289078a6802 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit b516a2abcadb4a58fe7058ddbb4e38f53a467426 Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 16:52:12 2009 +0100 s3/net: Display error message if user does not exist. net rpc rights grant: Verify if the username can be resolved to a SID and display a proper error message if it does not. Otherwise users might think setting privileges worked fine, but in fact it does not. Karolin --- Summary of changes: source3/utils/net_rpc_rights.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/utils/net_rpc_rights.c b/source3/utils/net_rpc_rights.c index 2bc5efe..ddcfff3 100644 --- a/source3/utils/net_rpc_rights.c +++ b/source3/utils/net_rpc_rights.c @@ -449,8 +449,11 @@ static NTSTATUS rpc_rights_grant_internal(struct net_context *c, } result = name_to_sid(pipe_hnd, mem_ctx, sid, argv[0]); + if (NT_STATUS_EQUAL(result, NT_STATUS_NONE_MAPPED)) + result = NT_STATUS_NO_SUCH_USER; + if (!NT_STATUS_IS_OK(result)) - return result; + goto done; result = rpccli_lsa_open_policy2(pipe_hnd, mem_ctx, true, SEC_RIGHTS_MAXIMUM_ALLOWED, -- Samba Shared Repository
[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - build_3.2.6_ctdb.52-3340-g31be3d3
The branch, v3-2-ctdb has been updated via 31be3d3868e89f3a508c1013e92d16d6b1ce8577 (commit) via 642532608bea788e174f15aabd13376847de106a (commit) via 72bd55835fa853abb7ce960a53830a20f10ffa4d (commit) via 1900233ede3083410eb3dc691d2d486c5340ccc4 (commit) via f21a6d66f0bde933e5bf8cf673fc380e5dd52793 (commit) via ab0359a19986f744075bf861dd43626210c2ecf7 (commit) via 0e30f6d835016a73e89e3159d827a2703058d34b (commit) via 097e9d64ade609da9f920156c98b466dc6c42dab (commit) via a2042edb42e312d5b8fc5b4750bf5b91b5ee1b3c (commit) via 3954c6965240836a467d16f447197681b7396a31 (commit) via 9995378cf3f28af183030c3867513552d85bf935 (commit) via c93a5131913a1a18645c4f972be6f6b2c1715f28 (commit) via 4af1d077915c7bbe5268b78bde71b102861a2b98 (commit) via 148437fcd0896591ebbf6c2808723575d025123f (commit) via f420b5c2af7d46e88269d9ec89c5dcd37f1f8f46 (commit) via c0877d14cb04956b29ca329897a7b4bface7f363 (commit) via aef7ad9d2f65c5e2a3b9622b352cafd30be79663 (commit) via 7045272e5436e3a24d187945e405cb3cc407ce73 (commit) via 101ef64e3181335b66524296af08f7df04391b9a (commit) via de41f0e9a08b796873bdd319fe784b6c90e28b23 (commit) via fbee9f20b30a426d5c336066522d047a504914b9 (commit) via 2ad41fedc50f764e77e2ba56b4d53d1045947a9c (commit) via b4c5c03b69ac2f8e0ed74fd7788549f7e822 (commit) via 1f979334266706656874fdbe6cce14f17105360b (commit) via cc70e0f88328e36410089a81f41c5b33fef24a10 (commit) via e85526b184e66f86b7faa9d0a37288a09c12c19e (commit) via 8275c3e7b1064dbf7b0922e0285dee28ff2eac3d (commit) via b17132c61c22962fc30747f4619d32d0be608272 (commit) via 6dbaf86ba4119a4fe2b2aea56994c3d3ea5d8428 (commit) via b2ef64515d4a4876276d152ff2075546d2030d23 (commit) via cd796359ec0c30a0204fe744805bfbea3550f57d (commit) via 347f1b6dcc88e04307397ea965ca8d0412b7a8c8 (commit) via 3577e583eeabb0555dc1ec1dd231ca835d90d307 (commit) via ce0a7974c5e5032893fa80fbc710edfc29353413 (commit) via f9f6bffc3763ddd8e19400616b6e5da962142e5e (commit) via 783247bdce9268d44b14005ec3eb84c35e0cd71a (commit) via 69e7a69c781a10fc64f8e4d40c6ad07cdc23e645 (commit) via f03e6b8faf8f3222e3dcdaae906f48e2aa3eeba8 (commit) via 228d0c9459e9187d671875eda03aaa1435ab8401 (commit) via c0fc381ac7ad09fd454fd6802149c46b607069ee (commit) via c364d44de2285cabb83a0c105f061b8640a3a431 (commit) via 75b5b7b2664e4d55aa97418f42a415fd88d3d4bd (commit) via 6bfcf1904ef50b74656d1cfb7f11b730481d2c6c (commit) via 2d05db409e11443480c8cdc52e205f57aa512fba (commit) via 9f6710abfaafa4b918b0c55547d5cd0823a26a56 (commit) via b995677f9895ba7fa9744b079ebc905713e59d40 (commit) via 7adf6961bfbbb3de07d40f397db5b5520d5f9d9f (commit) via ccd63a202b7978af3d6fdb46d1c17f0e9ac0fef6 (commit) via 5122f064d8d05b24c755506f4d7043c693670e80 (commit) via fc86d348a41bf276c1863a0012bad3d3774bc12b (commit) via 40c510097a43edd10f6b5cd376a2cf6eca1f7e8b (commit) via 3a8ca8406e72c2029ccbe050069da010642baf14 (commit) via c5d9ba5a377174e3a5b61eb17e2bbda1c9f31f84 (commit) via 3356b95f72e26ede4ab16a12c334be90b8b1a639 (commit) via 7f36de6906811d4f0428b75c79c72b17b8ccfcef (commit) via 5c686419096362176d80f3d05339b8836d0178a4 (commit) via 882ac5e5a79646754dfd1669ea6720ab52c9b6ee (commit) via 2534619eedc3e9528d589cfee793a55b3cc62bed (commit) via 9b5359f992e5ffac2cedc1360098c21f9c1d2f02 (commit) via 0d6b3df8d9c8b5e777ac6717168a11455b2ad2ce (commit) via b1727bbc7416f1a752cb1aadaff718e66f4a4381 (commit) via bfc4c75c340e3182b5a9572763fcf8c004ec2eed (commit) via 10e7d6b428c6e44f8b95c2794154dc1bfe4bde2d (commit) via 3f47eb787f5b8499e5580407dc84c904db70b725 (commit) via cb036772d09227f870c2fec3ecd8c3f53787dfbc (commit) via 877951eea6e67273748aa9f56a56e41cf2dca00a (commit) from f7d34eb3e18ae47a357726ea24f043b904f7327c (commit) http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-2-ctdb - Log - commit 31be3d3868e89f3a508c1013e92d16d6b1ce8577 Merge: f7d34eb3e18ae47a357726ea24f043b904f7327c 642532608bea788e174f15aabd13376847de106a Author: Michael Adam ob...@samba.org Date: Fri Jan 9 16:53:30 2009 +0100 Merge commit 'origin/v3-2-test' into v3-2-ctdb Import Bugfixes from v3-2-test to v3-2-ctdb. Michael commit 642532608bea788e174f15aabd13376847de106a Author: Karolin Seeger ksee...@samba.org Date: Fri Dec 19 14:57:33 2008 +0100 WHATSNEW: Prepare WHATSNEW for 3.2.7. Karolin (cherry picked from commit 0730f4e464b249ffe2319e98902ed96089f3230b) (cherry picked from commit
[SCM] Samba Shared Repository - branch master updated - 22a96cbe31875a1adfbfc7157b308eebb5d0f2ec
The branch, master has been updated via 22a96cbe31875a1adfbfc7157b308eebb5d0f2ec (commit) via 03611c6c9d84b2654481dc51ce2af2665205e755 (commit) via 2d218c93cd18f8c26fc0f549f7d059cf4b139893 (commit) via fa6053fe6d854e9cae986d8144a72f2ff487cdcc (commit) via 9e6e3bc0105d81076ad838d1424b494243318619 (commit) via f2dd351a1e63f57e030a7b6e8660fcf43e401e9d (commit) from b516a2abcadb4a58fe7058ddbb4e38f53a467426 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 22a96cbe31875a1adfbfc7157b308eebb5d0f2ec Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:25:47 2009 +0100 s3-svcctl: remove last traces of hand-marshalled svcctl code. Guenther commit 03611c6c9d84b2654481dc51ce2af2665205e755 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:22:03 2009 +0100 s3-svcctl: remove old marshalling of svcctl_EnumServicesStatusW. Guenther commit 2d218c93cd18f8c26fc0f549f7d059cf4b139893 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:20:09 2009 +0100 s3-svcctl: build svcctl marshalling helper. Guenther commit fa6053fe6d854e9cae986d8144a72f2ff487cdcc Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:19:37 2009 +0100 s3-svcctl: use pidl for _svcctl_EnumServicesStatusW. Guenther commit 9e6e3bc0105d81076ad838d1424b494243318619 Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:18:51 2009 +0100 s3-net: use rpccli_svcctl_EnumServicesStatusW. Guenther commit f2dd351a1e63f57e030a7b6e8660fcf43e401e9d Author: Günther Deschner g...@samba.org Date: Fri Jan 9 16:16:11 2009 +0100 s4-smbtorture: print hand-decoded service status array in svcctl torture test. Guenther --- Summary of changes: source3/Makefile.in|9 +- source3/configure.in |4 +- source3/include/includes.h |1 - source3/include/proto.h| 19 --- source3/include/rpc_svcctl.h | 77 source3/rpc_client/cli_svcctl.c| 92 --- source3/rpc_parse/parse_svcctl.c | 155 source3/rpc_server/srv_svcctl.c| 227 source3/rpc_server/srv_svcctl_nt.c | 58 + source3/utils/net_rpc_service.c| 87 +++--- source4/librpc/config.mk |2 +- source4/torture/rpc/svcctl.c | 30 +- 12 files changed, 135 insertions(+), 626 deletions(-) delete mode 100644 source3/include/rpc_svcctl.h delete mode 100644 source3/rpc_client/cli_svcctl.c delete mode 100644 source3/rpc_parse/parse_svcctl.c delete mode 100644 source3/rpc_server/srv_svcctl.c Changeset truncated at 500 lines: diff --git a/source3/Makefile.in b/source3/Makefile.in index 33d0959..d693bb5 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -408,7 +408,8 @@ LIBNBT_OBJ = ../libcli/nbt/nbtname.o \ ../libcli/netlogon.o \ ../libcli/ndr_netlogon.o \ ../librpc/gen_ndr/ndr_nbt.o \ -../librpc/gen_ndr/ndr_svcctl.o +../librpc/gen_ndr/ndr_svcctl.o \ +../librpc/ndr/ndr_svcctl.o LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \ libsmb/namequery.o libsmb/conncache.o libads/dns.o @@ -455,7 +456,6 @@ RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \ $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \ rpc_client/cli_spoolss.o rpc_client/cli_spoolss_notify.o \ - rpc_client/cli_svcctl.o \ rpc_client/init_samr.o \ librpc/rpc/dcerpc.o \ ../librpc/rpc/binding.o @@ -549,7 +549,7 @@ RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \ RPC_WKS_OBJ = ../librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o -RPC_SVCCTL_OBJ = rpc_server/srv_svcctl.o rpc_server/srv_svcctl_nt.o \ +RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \ ../librpc/gen_ndr/srv_svcctl.o \ services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \ services/svc_netlogon.o services/svc_winreg.o \ @@ -574,8 +574,7 @@ RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ) RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2) \ rpc_parse/parse_spoolss.o \ - rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o \ -rpc_parse/parse_svcctl.o + rpc_parse/parse_eventlog.o rpc_parse/parse_buffer.o RPC_CLIENT_OBJ = rpc_client/cli_pipe.o diff --git a/source3/configure.in b/source3/configure.in index 6727181..fb5e7b3 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -406,7 +406,7 @@ AC_SUBST(DYNEXP) dnl Add modules that have to be built by
[SCM] Samba Shared Repository - branch master updated - 29384794ccac1904cdbd4544ffb77996eaa9fcff
The branch, master has been updated via 29384794ccac1904cdbd4544ffb77996eaa9fcff (commit) via f2269e6cc85ffcd38134df2e430c4c0fabde17f8 (commit) via 6dde84553c1f4d14f075982377f5af97ff5abc44 (commit) via a65f1b9655498850864946d89528f3a475a88248 (commit) from 22a96cbe31875a1adfbfc7157b308eebb5d0f2ec (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 29384794ccac1904cdbd4544ffb77996eaa9fcff Author: Tim Prouty tpro...@samba.org Date: Fri Jan 9 11:50:28 2009 -0800 s3: Remove rendundant op_tuple entry in xattr streams commit f2269e6cc85ffcd38134df2e430c4c0fabde17f8 Author: Tim Prouty tpro...@samba.org Date: Fri Jan 9 11:07:45 2009 -0800 s3: Fix open path to delete streams depending on the create disposition The new create disposition test in smbtorture RAW-STREAMS verifies this fix. commit 6dde84553c1f4d14f075982377f5af97ff5abc44 Author: Tim Prouty tpro...@samba.org Date: Sun Dec 21 15:49:46 2008 -0800 s3: Add delete_all_streams to proto.h commit a65f1b9655498850864946d89528f3a475a88248 Author: Tim Prouty tpro...@samba.org Date: Fri Jan 9 11:38:58 2009 -0800 s4 torture: Add new create disposition test to RAW-STREAMS --- Summary of changes: source3/include/proto.h |1 + source3/modules/vfs_streams_xattr.c |2 - source3/smbd/close.c|2 +- source3/smbd/open.c | 14 +++ source4/torture/raw/streams.c | 168 ++- 5 files changed, 183 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/include/proto.h b/source3/include/proto.h index d4aefea..2a75473 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6532,6 +6532,7 @@ void msg_close_file(struct messaging_context *msg_ctx, uint32_t msg_type, struct server_id server_id, DATA_BLOB *data); +NTSTATUS delete_all_streams(connection_struct *conn, const char *fname); /* The following definitions come from smbd/conn.c */ diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 7124c57..1df4932 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -950,8 +950,6 @@ static vfs_op_tuple streams_xattr_ops[] = { SMB_VFS_LAYER_TRANSPARENT}, {SMB_VFS_OP(streams_xattr_pwrite), SMB_VFS_OP_PWRITE, SMB_VFS_LAYER_TRANSPARENT}, - {SMB_VFS_OP(streams_xattr_lstat), SMB_VFS_OP_LSTAT, -SMB_VFS_LAYER_TRANSPARENT}, {SMB_VFS_OP(streams_xattr_unlink), SMB_VFS_OP_UNLINK, SMB_VFS_LAYER_TRANSPARENT}, {SMB_VFS_OP(streams_xattr_rename), SMB_VFS_OP_RENAME, diff --git a/source3/smbd/close.c b/source3/smbd/close.c index a6dff20..abcd651 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -167,7 +167,7 @@ static void notify_deferred_opens(struct share_mode_lock *lck) Delete all streams / -static NTSTATUS delete_all_streams(connection_struct *conn, const char *fname) +NTSTATUS delete_all_streams(connection_struct *conn, const char *fname) { struct stream_struct *stream_info; int i; diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 52e31df..7d23b92 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1330,6 +1330,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, bool def_acl = False; bool posix_open = False; bool new_file_created = False; + bool clear_ads = false; struct file_id id; NTSTATUS fsp_open = NT_STATUS_ACCESS_DENIED; mode_t new_unx_mode = (mode_t)0; @@ -1461,12 +1462,14 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, /* If file exists replace/overwrite. If file doesn't * exist create. */ flags2 |= (O_CREAT | O_TRUNC); + clear_ads = true; break; case FILE_OVERWRITE_IF: /* If file exists replace/overwrite. If file doesn't * exist create. */ flags2 |= (O_CREAT | O_TRUNC); + clear_ads = true; break; case FILE_OPEN: @@ -1491,6 +1494,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, return NT_STATUS_OBJECT_NAME_NOT_FOUND; } flags2 |= O_TRUNC; + clear_ads = true; break; case FILE_CREATE: @@ -1925,6 +1929,16 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
[SCM] Samba Shared Repository - branch master updated - 2714ac4d3ab40bcd53acb2b86b9dc774040851c8
The branch, master has been updated via 2714ac4d3ab40bcd53acb2b86b9dc774040851c8 (commit) from 29384794ccac1904cdbd4544ffb77996eaa9fcff (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 2714ac4d3ab40bcd53acb2b86b9dc774040851c8 Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 11:32:07 2009 +0100 Fix some nonempty blank lines --- Summary of changes: source3/rpc_server/srv_pipe.c | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 5610e0b..980630c 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -577,7 +577,7 @@ bool create_next_pdu(pipes_struct *p) case PIPE_AUTH_LEVEL_CONNECT: /* This is incorrect for auth level connect. Fixme. JRA */ return create_next_pdu_noauth(p); - + default: switch(p-auth.auth_type) { case PIPE_AUTH_TYPE_NTLMSSP: @@ -751,7 +751,7 @@ bool api_pipe_bind_auth3(pipes_struct *p, prs_struct *rpc_in_p) * The following call actually checks the challenge/response data. * for correctness against the given DOMAIN\user name. */ - + if (!pipe_ntlmssp_verify_final(p, blob)) { goto err; } @@ -1040,7 +1040,7 @@ NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, } else { rpc_lookup = rpc_entry; } - + rpc_entry = rpc_lookup + (rpc_lookup_size - 1); ZERO_STRUCTP(rpc_entry); rpc_entry-pipe.clnt = SMB_STRDUP(clnt); @@ -1048,7 +1048,7 @@ NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, rpc_entry-rpc_interface = *interface; rpc_entry-cmds = cmds; rpc_entry-n_cmds = size; - + return NT_STATUS_OK; } @@ -2003,7 +2003,7 @@ bool api_pipe_ntlmssp_auth_process(pipes_struct *p, prs_struct *rpc_in, unsigned char *full_packet_data = NULL; size_t full_packet_data_len; DATA_BLOB auth_blob; - + *pstatus = NT_STATUS_OK; if (p-auth.auth_level == PIPE_AUTH_LEVEL_NONE || p-auth.auth_level == PIPE_AUTH_LEVEL_CONNECT) { @@ -2053,7 +2053,7 @@ bool api_pipe_ntlmssp_auth_process(pipes_struct *p, prs_struct *rpc_in, auth_blob.data = (unsigned char *)prs_data_p(rpc_in) + prs_offset(rpc_in); auth_blob.length = auth_len; - + switch (p-auth.auth_level) { case PIPE_AUTH_LEVEL_PRIVACY: /* Data is encrypted. */ @@ -2137,7 +2137,7 @@ bool api_pipe_schannel_process(pipes_struct *p, prs_struct *rpc_in, uint32 *p_ss data_len = p-hdr.frag_len - RPC_HEADER_LEN - RPC_HDR_REQ_LEN - RPC_HDR_AUTH_LEN - auth_len; - + DEBUG(5,(data %d auth %d\n, data_len, auth_len)); if(!prs_set_offset(rpc_in, RPC_HDR_REQ_LEN + data_len)) { @@ -2202,19 +2202,19 @@ static PIPE_RPC_FNS* find_pipe_fns_by_context( PIPE_RPC_FNS *list, uint32 contex { PIPE_RPC_FNS *fns = NULL; PIPE_RPC_FNS *tmp = NULL; - + if ( !list ) { DEBUG(0,(find_pipe_fns_by_context: ERROR! No context list for pipe!\n)); return NULL; } - + for (tmp=list; tmp; tmp=tmp-next ) { if ( tmp-context_id == context_id ) break; } - + fns = tmp; - + return fns; } @@ -2226,7 +2226,7 @@ void free_pipe_rpc_context( PIPE_RPC_FNS *list ) { PIPE_RPC_FNS *tmp = list; PIPE_RPC_FNS *tmp2; - + while (tmp) { tmp2 = tmp-next; SAFE_FREE(tmp); @@ -2250,7 +2250,7 @@ bool api_pipe_request(pipes_struct *p) bool ret = False; bool changed_user = False; PIPE_RPC_FNS *pipe_fns; - + if (p-pipe_bound ((p-auth.auth_type == PIPE_AUTH_TYPE_NTLMSSP) || (p-auth.auth_type == PIPE_AUTH_TYPE_SPNEGO_NTLMSSP))) { @@ -2262,11 +2262,11 @@ bool api_pipe_request(pipes_struct *p) } DEBUG(5, (Requested \\PIPE\\%s\n, p-name)); - + /* get the set of RPC functions for this context */ - + pipe_fns = find_pipe_fns_by_context(p-contexts, p-hdr_req.context_id); - + if ( pipe_fns ) { TALLOC_CTX *frame = talloc_stackframe(); ret = api_rpcTNP(p, p-name, pipe_fns-cmds, pipe_fns-n_cmds); @@ -2294,7 +2294,7 @@ static bool api_rpcTNP(pipes_struct *p, const char *rpc_name, int fn_num; fstring name;
[SCM] Samba Shared Repository - branch master updated - 9176cfe0658c6be066582bd9d372c73b8714b44b
The branch, master has been updated via 9176cfe0658c6be066582bd9d372c73b8714b44b (commit) via c1a8e8adac501cdead692f298f8dea0c20bafc76 (commit) from 2714ac4d3ab40bcd53acb2b86b9dc774040851c8 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 9176cfe0658c6be066582bd9d372c73b8714b44b Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 21:28:44 2009 +0100 Fix some nonempty blank lines commit c1a8e8adac501cdead692f298f8dea0c20bafc76 Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 11:32:46 2009 +0100 Simplify find_pipe_fns_by_context slightly --- Summary of changes: librpc/rpc/binding.c | 52 source3/rpc_server/srv_pipe.c | 12 +++-- 2 files changed, 30 insertions(+), 34 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 16abcfe..dff2426 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -7,17 +7,17 @@ Copyright (C) Jelmer Vernooij 2004 Copyright (C) Andrew Bartlett abart...@samba.org 2005 Copyright (C) Rafal Szczesniak 2006 - + 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/. */ @@ -289,7 +289,7 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struc } talloc_free(type); - + s = p+1; } @@ -365,7 +365,7 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struc if (b-options[0] == NULL) b-options = NULL; - + *b_out = b; return NT_STATUS_OK; } @@ -422,7 +422,7 @@ const char *dcerpc_floor_get_rhs_data(TALLOC_CTX *mem_ctx, struct epm_floor *epm case EPM_PROTOCOL_TCP: if (epm_floor-rhs.tcp.port == 0) return NULL; return talloc_asprintf(mem_ctx, %d, epm_floor-rhs.tcp.port); - + case EPM_PROTOCOL_UDP: if (epm_floor-rhs.udp.port == 0) return NULL; return talloc_asprintf(mem_ctx, %d, epm_floor-rhs.udp.port); @@ -454,20 +454,20 @@ const char *dcerpc_floor_get_rhs_data(TALLOC_CTX *mem_ctx, struct epm_floor *epm case EPM_PROTOCOL_NCALRPC: return NULL; - + case EPM_PROTOCOL_VINES_SPP: return talloc_asprintf(mem_ctx, %d, epm_floor-rhs.vines_spp.port); - + case EPM_PROTOCOL_VINES_IPC: return talloc_asprintf(mem_ctx, %d, epm_floor-rhs.vines_ipc.port); - + case EPM_PROTOCOL_STREETTALK: return talloc_strdup(mem_ctx, epm_floor-rhs.streettalk.streettalk); - + case EPM_PROTOCOL_UNIX_DS: if (strlen(epm_floor-rhs.unix_ds.path) == 0) return NULL; return talloc_strdup(mem_ctx, epm_floor-rhs.unix_ds.path); - + case EPM_PROTOCOL_NULL: return NULL; @@ -487,7 +487,7 @@ static NTSTATUS dcerpc_floor_set_rhs_data(TALLOC_CTX *mem_ctx, case EPM_PROTOCOL_TCP: epm_floor-rhs.tcp.port = atoi(data); return NT_STATUS_OK; - + case EPM_PROTOCOL_UDP: epm_floor-rhs.udp.port = atoi(data); return NT_STATUS_OK; @@ -526,25 +526,25 @@ static NTSTATUS dcerpc_floor_set_rhs_data(TALLOC_CTX *mem_ctx, case EPM_PROTOCOL_NCALRPC: return NT_STATUS_OK; - + case EPM_PROTOCOL_VINES_SPP: epm_floor-rhs.vines_spp.port = atoi(data); return NT_STATUS_OK; - + case EPM_PROTOCOL_VINES_IPC: epm_floor-rhs.vines_ipc.port = atoi(data); return NT_STATUS_OK; - + case EPM_PROTOCOL_STREETTALK: epm_floor-rhs.streettalk.streettalk = talloc_strdup(mem_ctx, data); NT_STATUS_HAVE_NO_MEMORY(epm_floor-rhs.streettalk.streettalk); return NT_STATUS_OK; - + case EPM_PROTOCOL_UNIX_DS: epm_floor-rhs.unix_ds.path = talloc_strdup(mem_ctx, data);
[SCM] Samba Shared Repository - branch master updated - f8f878285d348e43a22385c1907dff3e120d4b59
The branch, master has been updated via f8f878285d348e43a22385c1907dff3e120d4b59 (commit) via ad6e9c60124ed30ee035cd522db3c4e561e4543a (commit) from 9176cfe0658c6be066582bd9d372c73b8714b44b (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit f8f878285d348e43a22385c1907dff3e120d4b59 Author: Volker Lendecke v...@samba.org Date: Fri Jan 9 18:32:20 2009 +0100 Add derpc_transport_string_by_transport(), apply some const commit ad6e9c60124ed30ee035cd522db3c4e561e4543a Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 19:09:57 2009 +0100 start rpcclient epmapper --- Summary of changes: librpc/rpc/binding.c | 20 -- source3/Makefile.in |2 +- source3/include/proto.h |3 +- source3/rpcclient/cmd_epmapper.c | 133 ++ source3/rpcclient/rpcclient.c|2 + source4/librpc/rpc/dcerpc.h |3 +- 6 files changed, 154 insertions(+), 9 deletions(-) create mode 100644 source3/rpcclient/cmd_epmapper.c Changeset truncated at 500 lines: diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index dff2426..ba99239 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -176,11 +176,7 @@ _PUBLIC_ char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_bi const char *t_name = NULL; if (b-transport != NCA_UNKNOWN) { - for (i=0;iARRAY_SIZE(transports);i++) { - if (transports[i].transport == b-transport) { - t_name = transports[i].name; - } - } + t_name = derpc_transport_string_by_transport(b-transport); if (!t_name) { return NULL; } @@ -572,7 +568,7 @@ enum dcerpc_transport_t dcerpc_transport_by_endpoint_protocol(int prot) return (unsigned int)-1; } -_PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(struct epm_tower *tower) +_PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(const struct epm_tower *tower) { int i; @@ -598,6 +594,18 @@ _PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(struct epm_tower *tow return (unsigned int)-1; } +_PUBLIC_ const char *derpc_transport_string_by_transport(enum dcerpc_transport_t t) +{ + int i; + + for (i=0; iARRAY_SIZE(transports); i++) { + if (t == transports[i].transport) { + return transports[i].name; + } + } + return NULL; +} + _PUBLIC_ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, struct epm_tower *tower, struct dcerpc_binding **b_out) diff --git a/source3/Makefile.in b/source3/Makefile.in index d693bb5..624156b 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -795,7 +795,7 @@ DISPLAY_SEC_OBJ= lib/display_sec.o RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \ rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \ rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \ -rpcclient/cmd_dfs.o \ +rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \ rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \ rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \ rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \ diff --git a/source3/include/proto.h b/source3/include/proto.h index 2a75473..e65369e 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2292,7 +2292,8 @@ _PUBLIC_ NTSTATUS dcerpc_floor_get_lhs_data(const struct epm_floor *epm_floor, struct ndr_syntax_id *syntax); const char *dcerpc_floor_get_rhs_data(TALLOC_CTX *mem_ctx, struct epm_floor *epm_floor); enum dcerpc_transport_t dcerpc_transport_by_endpoint_protocol(int prot); -_PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(struct epm_tower *tower); +_PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(const struct epm_tower *tower); +_PUBLIC_ const char *derpc_transport_string_by_transport(enum dcerpc_transport_t t); _PUBLIC_ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, struct epm_tower *tower, struct dcerpc_binding **b_out); diff --git a/source3/rpcclient/cmd_epmapper.c b/source3/rpcclient/cmd_epmapper.c new file mode 100644 index 000..cb33416 --- /dev/null +++ b/source3/rpcclient/cmd_epmapper.c @@ -0,0 +1,133 @@ +/* + Unix SMB/CIFS implementation. + RPC pipe client + + Copyright (C) Volker Lendecke 2009 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public
[SCM] Samba Shared Repository - branch master updated - 964acde86e17d91148e063ce81014444e4c1f63d
The branch, master has been updated via 964acde86e17d91148e063ce8101e4c1f63d (commit) via 2729c484fbc317687e537a1acc1d7ec83a96a1bd (commit) via 106e65a3b3ac5b13ffbf8ea644f25e99257ee64e (commit) via 125696b73dbe3d0813432c9775c146e861b4707c (commit) from f8f878285d348e43a22385c1907dff3e120d4b59 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 964acde86e17d91148e063ce8101e4c1f63d Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 23:46:05 2009 +0100 Remove the rpc_srv_register wrapper around rpc_pipe_register_commands commit 2729c484fbc317687e537a1acc1d7ec83a96a1bd Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 23:39:09 2009 +0100 Call rpc_srv_register instead of rpc_pipe_register_commands in eventlog and svcctl commit 106e65a3b3ac5b13ffbf8ea644f25e99257ee64e Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 23:37:09 2009 +0100 Fake up ndr_table_spoolss commit 125696b73dbe3d0813432c9775c146e861b4707c Author: Volker Lendecke v...@samba.org Date: Tue Jan 6 23:29:25 2009 +0100 Pass the full ndr_interface_table into the s3 rpcserver when registering --- Summary of changes: librpc/gen_ndr/srv_dfs.c|2 +- librpc/gen_ndr/srv_dssetup.c|2 +- librpc/gen_ndr/srv_echo.c |2 +- librpc/gen_ndr/srv_epmapper.c |2 +- librpc/gen_ndr/srv_eventlog.c |2 +- librpc/gen_ndr/srv_initshutdown.c |2 +- librpc/gen_ndr/srv_lsa.c|2 +- librpc/gen_ndr/srv_netlogon.c |2 +- librpc/gen_ndr/srv_ntsvcs.c |2 +- librpc/gen_ndr/srv_samr.c |2 +- librpc/gen_ndr/srv_srvsvc.c |2 +- librpc/gen_ndr/srv_svcctl.c |2 +- librpc/gen_ndr/srv_winreg.c |2 +- librpc/gen_ndr/srv_wkssvc.c |2 +- pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm |2 +- source3/include/proto.h |4 source3/rpc_server/srv_eventlog.c |4 ++-- source3/rpc_server/srv_pipe.c |9 - source3/rpc_server/srv_spoolss.c| 31 +++ 19 files changed, 52 insertions(+), 26 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/gen_ndr/srv_dfs.c b/librpc/gen_ndr/srv_dfs.c index 666874f..00afa36 100644 --- a/librpc/gen_ndr/srv_dfs.c +++ b/librpc/gen_ndr/srv_dfs.c @@ -1750,5 +1750,5 @@ void netdfs_get_pipe_fns(struct api_struct **fns, int *n_fns) NTSTATUS rpc_netdfs_init(void) { - return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, netdfs, netdfs, ndr_table_netdfs.syntax_id, api_netdfs_cmds, sizeof(api_netdfs_cmds) / sizeof(struct api_struct)); + return rpc_srv_register(SMB_RPC_INTERFACE_VERSION, netdfs, netdfs, ndr_table_netdfs, api_netdfs_cmds, sizeof(api_netdfs_cmds) / sizeof(struct api_struct)); } diff --git a/librpc/gen_ndr/srv_dssetup.c b/librpc/gen_ndr/srv_dssetup.c index 3c07ad1..abb890f 100644 --- a/librpc/gen_ndr/srv_dssetup.c +++ b/librpc/gen_ndr/srv_dssetup.c @@ -841,5 +841,5 @@ void dssetup_get_pipe_fns(struct api_struct **fns, int *n_fns) NTSTATUS rpc_dssetup_init(void) { - return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, dssetup, dssetup, ndr_table_dssetup.syntax_id, api_dssetup_cmds, sizeof(api_dssetup_cmds) / sizeof(struct api_struct)); + return rpc_srv_register(SMB_RPC_INTERFACE_VERSION, dssetup, dssetup, ndr_table_dssetup, api_dssetup_cmds, sizeof(api_dssetup_cmds) / sizeof(struct api_struct)); } diff --git a/librpc/gen_ndr/srv_echo.c b/librpc/gen_ndr/srv_echo.c index 6436079..1912b8b 100644 --- a/librpc/gen_ndr/srv_echo.c +++ b/librpc/gen_ndr/srv_echo.c @@ -801,5 +801,5 @@ void rpcecho_get_pipe_fns(struct api_struct **fns, int *n_fns) NTSTATUS rpc_rpcecho_init(void) { - return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, rpcecho, rpcecho, ndr_table_rpcecho.syntax_id, api_rpcecho_cmds, sizeof(api_rpcecho_cmds) / sizeof(struct api_struct)); + return rpc_srv_register(SMB_RPC_INTERFACE_VERSION, rpcecho, rpcecho, ndr_table_rpcecho, api_rpcecho_cmds, sizeof(api_rpcecho_cmds) / sizeof(struct api_struct)); } diff --git a/librpc/gen_ndr/srv_epmapper.c b/librpc/gen_ndr/srv_epmapper.c index 68e4a41..b66bdf4 100644 --- a/librpc/gen_ndr/srv_epmapper.c +++ b/librpc/gen_ndr/srv_epmapper.c @@ -642,5 +642,5 @@ void epmapper_get_pipe_fns(struct api_struct **fns, int *n_fns) NTSTATUS rpc_epmapper_init(void) { - return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, epmapper, epmapper, ndr_table_epmapper.syntax_id, api_epmapper_cmds, sizeof(api_epmapper_cmds) / sizeof(struct api_struct)); + return rpc_srv_register(SMB_RPC_INTERFACE_VERSION, epmapper, epmapper, ndr_table_epmapper,
Build status as of Sat Jan 10 00:00:02 2009
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2009-01-09 00:00:20.0 + +++ /home/build/master/cache/broken_results.txt 2009-01-10 00:00:10.0 + @@ -1,23 +1,23 @@ -Build status as of Fri Jan 9 00:00:02 2009 +Build status as of Sat Jan 10 00:00:02 2009 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 31 6 0 +ccache 28 6 0 ctdb 0 0 0 distcc 1 0 0 -ldb 31 30 0 -libreplace 29 11 0 -lorikeet-heimdal 27 17 0 -pidl 19 2 0 -ppp 12 0 0 -rsync31 11 0 +ldb 29 28 0 +libreplace 28 10 0 +lorikeet-heimdal 25 17 0 +pidl 17 2 0 +ppp 11 0 0 +rsync29 9 0 samba-docs 0 0 0 samba-gtk5 5 0 -samba_3_X_devel 29 23 1 -samba_3_X_test 29 23 0 -samba_4_0_test 30 26 1 -smb-build29 6 0 -talloc 31 30 0 -tdb 28 10 0 +samba_3_X_devel 27 23 1 +samba_3_X_test 27 21 0 +samba_4_0_test 28 25 1 +smb-build27 5 0 +talloc 28 28 0 +tdb 27 10 0
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4810-gaf0ceb7
The branch, v3-3-test has been updated via af0ceb784af1ea8d591f5c35fb010d60b178a8d2 (commit) from b99d98ff2ef5491979301656e7f516d3c8829f6e (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit af0ceb784af1ea8d591f5c35fb010d60b178a8d2 Author: Karolin Seeger ksee...@samba.org Date: Fri Jan 9 19:39:46 2009 -0800 s3/smbpasswd: Check if Unix account exists before asking for the password. Admins shouldn't have to type in the password twice when the passdb account cannot be created because the Unix account is missing. Karolin --- Summary of changes: source/utils/smbpasswd.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c index b18ab55..78c1ce8 100644 --- a/source/utils/smbpasswd.c +++ b/source/utils/smbpasswd.c @@ -430,6 +430,15 @@ static int process_root(int local_flags) } if((local_flags LOCAL_SET_PASSWORD) (new_passwd == NULL)) { + struct passwd *passwd = getpwnam_alloc(NULL, user_name); + + if (!passwd) { + fprintf(stderr, Cannot locate Unix account for + '%s'!\n, user_name); + exit(1); + } + TALLOC_FREE(passwd); + new_passwd = prompt_for_new_password(stdin_passwd_get); if(!new_passwd) { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - cda0b7051967afaaaafbd3dad2052c66b3035491
The branch, master has been updated via cda0b7051967affbd3dad2052c66b3035491 (commit) from 964acde86e17d91148e063ce8101e4c1f63d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit cda0b7051967affbd3dad2052c66b3035491 Author: Jeremy Allison j...@samba.org Date: Fri Jan 9 19:40:09 2009 -0800 Minor tidyup of unix account missing code. Jeremy. --- Summary of changes: source3/utils/smbpasswd.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 93e2f81..4cd0d55 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -430,14 +430,14 @@ static int process_root(int local_flags) } if((local_flags LOCAL_SET_PASSWORD) (new_passwd == NULL)) { - struct passwd *passwd; + struct passwd *passwd = getpwnam_alloc(NULL, user_name); - passwd = getpwnam_alloc(NULL, user_name); if (!passwd) { - DEBUG(0, (Cannot locate Unix account for - '%s'!\n, user_name)); - exit(1);; + fprintf(stderr, Cannot locate Unix account for + '%s'!\n, user_name); + exit(1); } + TALLOC_FREE(passwd); new_passwd = prompt_for_new_password(stdin_passwd_get); -- Samba Shared Repository
Re: [SCM] Samba Shared Repository - branch master updated - aeb798c325cc33072ad090a1f8610bba4fdebaaa
On Fri, Jan 09, 2009 at 01:46:25AM -0600, Stefan Metzmacher wrote: The branch, master has been updated via aeb798c325cc33072ad090a1f8610bba4fdebaaa (commit) via d524e5f4174e4f7578595bf6cd22a6d161b6e324 (commit) via def5e8e889e0ffe1cf55462ca32b69b627c5ff96 (commit) from 447f2668879e91990c985bdb8f0c5d5db2719a91 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit aeb798c325cc33072ad090a1f8610bba4fdebaaa Author: Stefan Metzmacher me...@samba.org Date: Thu Jan 8 15:38:47 2009 +0100 s3:smbd: handle incoming smb requests via event handlers We use a fd event and receive incoming smb requests when the fd becomes readable. It's not completely nonblocking yet, but it should behave like the old code. We use timed events to trigger retries for deferred open calls. This is a nice piece of work Metze, thanks ! I was planning this also :-). Left TODO are the oplock signal handlers, and the message handlers, then I think we're completely driven by tevents. Great job ! Jeremy.