1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

52139 Commits

Author SHA1 Message Date
Tim Prouty
664268a287 s3 OneFS: Refactor config code and cleanup includes 2009-03-01 16:39:55 -08:00
Jelmer Vernooij
9940c7690e Use shared header file for character sets, remove old definitions from samba3 smb.h. 2009-03-01 22:31:10 +01:00
Jelmer Vernooij
9551ab8f7b Merge branch 'master' of git://git.samba.org/samba into convenience 2009-03-01 22:25:57 +01:00
Jelmer Vernooij
7ab8f373c8 Use common header file for character set handling in Samba 3 and Samba 4. 2009-03-01 22:24:34 +01:00
Jelmer Vernooij
8568b4fa9f Add header files for secace and secacl. 2009-03-01 20:06:55 +01:00
Jelmer Vernooij
94069bd274 s4: Use same function signature for convert_* as s3. 2009-03-01 19:55:46 +01:00
Jelmer Vernooij
da6721e323 Move secacl to top-level. 2009-03-01 18:15:36 +01:00
Jelmer Vernooij
e9bba3e288 dom_sid.h: Include dependency security.h that provides the dom_sid struct. 2009-03-01 18:15:15 +01:00
Jelmer Vernooij
d3c2de093a Also re-add removed codepoint_t; I'm clearly not having my day today. 2009-03-01 18:05:22 +01:00
Jelmer Vernooij
9bd0cf8d60 Keep using Samba3's charset.h for now. 2009-03-01 18:02:24 +01:00
Jelmer Vernooij
99b288156f Move secace.c to top-level. 2009-03-01 18:00:26 +01:00
Jelmer Vernooij
bbe2d30f66 Merge branch 'master' of git://git.samba.org/samba into convenience 2009-03-01 17:29:04 +01:00
Jelmer Vernooij
08b180e40e Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next 2009-03-01 17:13:10 +01:00
Jelmer Vernooij
74293f117b Rerun pidl. 2009-03-01 17:09:45 +01:00
Jelmer Vernooij
e2469e3748 Don't generate array iterators when the length of the array is always 0.
(bug #6140)
2009-03-01 17:09:07 +01:00
Jelmer Vernooij
4903d20c21 Merge branch 'master' of git://git.samba.org/samba into convenience 2009-03-01 16:41:57 +01:00
Jelmer Vernooij
09ac816b36 Merge branch 'master' of git://git.samba.org/samba into teventfix
Conflicts:
	lib/tevent/pytevent.c
2009-03-01 16:39:35 +01:00
Jelmer Vernooij
235244f4cc Avoid using tevent_util.h, which won't be available if we use the system
tevent.
2009-03-01 16:38:07 +01:00
Jelmer Vernooij
54bc27e937 Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next 2009-03-01 16:23:53 +01:00
Jelmer Vernooij
55903e6f91 Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4. 2009-03-01 16:19:38 +01:00
Jelmer Vernooij
d776ac03c3 Move next_token_talloc() to top-level. 2009-03-01 16:16:16 +01:00
Jelmer Vernooij
9f6e2d6485 Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents. 2009-03-01 12:59:58 +01:00
Volker Lendecke
4a35c974e9 Only copy sharename up from rap_to_pjobid
Why?? :-)

Another one of the little micro-optimizations that I just came across: If you
allocate a variable in a sub-block like the "fstring sharename" in
write_file(), gcc even with -O3 will allocate this variable unconditionally on
the stack at the beginning of the routine. So with eliminating this fstring we
cut 256 bytes of stack in a very hot code path writing to a file. It might make
us a bit more cache-friendly.

This would probably not be worth a second look if it involved larger code
changes, but this one was just too simple to let it pass :-)
2009-03-01 12:27:55 +01:00
Jelmer Vernooij
9ffb6d2d9e Add allow_badcharcnv argument to all conversion function, for
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Jelmer Vernooij
79fc0ddaf4 Merge branch 'master' of git://git.samba.org/samba into HEAD 2009-03-01 05:46:15 +01:00
Jelmer Vernooij
e6ec32f3ac Eliminate two duplicate SEC_ACE_TYPE constants already provided by
security.idl.
2009-03-01 04:59:07 +01:00
Jeremy Allison
7b9381fb4f Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
delete file (directory fix).
Jeremy.
2009-02-28 13:14:23 -08:00
Volker Lendecke
5686a6d91a Fix async reading winbindd_response 2009-02-28 12:32:28 +01:00
Volker Lendecke
ddd3da8ab7 Simplify async_connect_send slightly 2009-02-28 12:32:22 +01:00
Jeremy Allison
9569d979de And the prize for the most pain caused in the build farm for a simple
typo goes to.....
Tim Prouty !!!!
Sorry Tim, nice test but you made a typo in passing in
the size of an array so we were reading uninitialized
memory :-).
That took far longer than it should have to track down...
(%$&#ing build system....).
The build farm should now slowly go back to normal.
Jeremy.
2009-02-27 20:57:49 -08:00
Bo Yang
a54520fd4d Initialize the id_map status in idmap_ldap to avoid surprise 2009-02-27 09:28:46 -08:00
Günther Deschner
0025caa9bd s3: re-run make samba3-idl.
Guenther
2009-02-27 13:33:51 +01:00
Günther Deschner
5da7fde31e spoolss: fill in spoolss_SetJobInfo1,2,3,4.
Guenther
2009-02-27 13:33:20 +01:00
Günther Deschner
d0e31f8cfa spoolss: add spoolss_PortInfo3 and spoolss_PortInfoFF.
Guenther
2009-02-27 13:33:20 +01:00
Günther Deschner
670a22852c s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.
Guenther
2009-02-27 13:33:15 +01:00
Volker Lendecke
62db0ea0cf Use talloc_tos() in regkey_access_check() 2009-02-27 11:20:17 +01:00
Steven Danneman
61bedb4263 s3: fix guest auth when winbindd is running
This fix is very subtle.  If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.

This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid().  Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.

This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.
2009-02-26 19:47:43 -08:00
Günther Deschner
b7b287d417 s3-rpcclient: add getjob spoolss command.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
a263d8f430 s3-rpcclient: use is_valid_policy_hnd before closing handles.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
f343ed7319 s3-spoolss: remove old rpccli_spoolss_getjob.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
0445c554d1 s3-spoolss: add rpccli_spoolss_getjob convenience wrapper.
Guenther
2009-02-26 22:02:18 +01:00
Günther Deschner
417f920e07 s3: re-run make samba3-idl.
Guenther
2009-02-26 22:02:18 +01:00
Günther Deschner
d42f833ace spoolss: add 2 new SPOOLSS_JOB_CONTROL values.
Guenther
2009-02-26 22:01:04 +01:00
Günther Deschner
dec1410b10 spoolss: add spoolss_JobInfo2, JobInfo3 and JobInfo4 (new in vista).
Guenther
2009-02-26 22:00:59 +01:00
Björn Jacke
fe8cf69ec6 don't hardcode python path
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 21:28:53 +01:00
Jeremy Allison
3121249243 Make us pass the RAW-RENAME torture test I just added.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.

Jeremy.
2009-02-26 11:42:23 -08:00
Jeremy Allison
bcadb77c18 Add another torture test inspired by George @ Apple.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED. This
is connected to the test case where the close was
failing due to a delayed write on a file not being
able to succeed when Samba allowed the containing
directory to be renamed.

I will fix this in the server shortly (this should be done
across connections also but with will be very hard
in Samba - would need a full scan of the open file
db on every directory rename) - so I will fix for
the local case first (scanning local file opens
inside an smbd is cheap).

Jeremy.
2009-02-26 10:13:57 -08:00
Stefan Metzmacher
b934f509ed lib/torture: fix depency to map_nt_error_from_unix()
This should fix the build on Mac OS 10

metze
2009-02-26 17:47:00 +01:00
Michael Adam
c5e062ed74 s3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ
Günther, please check...

Michael
2009-02-26 14:35:27 +01:00
Stefan Metzmacher
3a1f24f286 tevent: add tevent_queue infrastructure
metze
2009-02-26 14:22:12 +01:00