1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

50092 Commits

Author SHA1 Message Date
Kai Blin
dd8d4b6fd1 s4 winbind: Avoid a "discards const" compiler warning. 2008-12-29 12:52:26 +01:00
Kai Blin
181d4fd31a s4 libnet: Add group_name member to struct libnet_GroupInfo's out struct. 2008-12-29 12:52:26 +01:00
Stefan Metzmacher
f271469931 s4:kdc: pass down event_context explicit
metze
2008-12-29 09:46:38 +01:00
Stefan Metzmacher
37b6950961 s4:libnet_samdump_keytab: pass down event_context explicit
metze
2008-12-29 09:46:38 +01:00
Stefan Metzmacher
a255f9ce71 s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
All callers expect 0 an success and -1 on error.

metze
2008-12-29 09:05:15 +01:00
Stefan Metzmacher
b719595fd6 pyglue: fix the build with automatic dependecies
metze
2008-12-29 08:42:03 +01:00
Stefan Metzmacher
7bf5768a52 lib/tevent: rename event_* => tevent_* in the header file
We have compat macros to keep the callers happy.

metze
2008-12-29 08:42:00 +01:00
Steven Danneman
9a90e4cecb Add -D option to sharesec util to delete the entire security descriptor.
* also modified --usage descriptions to be more accurate
2008-12-28 17:45:41 -08:00
Steven Danneman
fd84ef938b Change error messages in sharesec util to go to stderr instead of stdout 2008-12-28 17:45:33 -08:00
Steven Danneman
9affa82ac2 Make sure share_info.tdb is open before attempting to delete an entry 2008-12-28 17:45:26 -08:00
Steven Danneman
8f84d42f72 Make sharesec utility part of the default binary install. 2008-12-28 17:45:21 -08:00
Steven Danneman
04959a00e4 Cleaned up whitespace issues in sharesec.c 2008-12-28 17:45:16 -08:00
Jelmer Vernooij
f308c2f9da Fix Samba 3 merged build - include tevent. 2008-12-28 04:12:46 +01:00
Kai Blin
ef1e9ed941 Fix some tevent includes, trying to fix the build 2008-12-26 14:11:10 +01:00
Kai Blin
daaa2c8231 Try to fix the build by fixing some typos in the vfs code 2008-12-26 14:10:38 +01:00
Jeremy Allison
5184baa959 Fix bug #5990 - strict allocate should be checked before ftruncate
reported by and based on a patch by Yasuma Takeda
<yasuma@osstech.co.jp>.
Jeremy.
2008-12-25 12:13:12 -08:00
Michael Adam
45db33e732 s3:idmap: Remove passd check from idmap_backends_unixid_to_sid().
As noted by Metzy, it makes no sense here to check id->sid.
What is worse, this might even be passed in uninitialized.

This still fixes the bug for me (of course), but we might need
to check, if another special handling of passdb is needed
(possibly changing from constant return code NT_STATUS_OK...)

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-25 12:14:03 +01:00
Michael Adam
9a9b64dbdf s:Fix uid_to_sid mapping when the idmap cache is empty.
This failed for backends other than passed, since
idmap_backends_unixid_to_sid() always asked passdb first,
which returned Success no matter whether a mapping was
found or not.

One effect wast that getpwuid failed after "net cache flush".
Only after filling the cache with a getpwnam call it succeeded.

This fix makes the behaviour of idmap_backends_unixid_to_sid()
exactly the same as that of idmap_backends_sid_to_unixid()

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-25 12:14:02 +01:00
Stefan Metzmacher
83bcc4e027 lib/tevent: libtevent will change a lot until it's version 1.0.0
metze
2008-12-24 13:59:00 +01:00
Jelmer Vernooij
479b4b09e1 Fix accidental condition inversion. 2008-12-24 05:39:29 +01:00
Jelmer Vernooij
1feab85be6 Rename samba-socket -> samba_socket to fix a couple more compiler
warnings.
2008-12-24 00:15:43 +01:00
Jelmer Vernooij
30bdb68c9e Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-23 23:26:32 +01:00
Jelmer Vernooij
e94e7f8279 s4: Fix make clean to remove gen_ndr objects. 2008-12-23 23:24:12 +01:00
Jelmer Vernooij
dcc4081f75 Fix more compiler warnings. 2008-12-23 23:22:57 +01:00
Jelmer Vernooij
8df6af213a Use 32-bit smbpid in interface as required by SMB2, in line with
1bdd08227e7d046305705050f21f0f1b6dd6994a.
2008-12-23 23:02:54 +01:00
Jelmer Vernooij
bd64688c6a Fix more compiler warnings in various places. 2008-12-23 22:57:11 +01:00
Jelmer Vernooij
32e03f9fa5 Install tevent_internal.h, as Samba 4 needs it. 2008-12-23 22:57:00 +01:00
Jelmer Vernooij
5c75b65ca1 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-23 22:12:23 +01:00
Jelmer Vernooij
ff26cb4b1c Fix compiler warnings in libnet. 2008-12-23 22:11:21 +01:00
Jelmer Vernooij
ef80d1b794 Fix use of "time offset" parameter, and add test to make sure I don't break it again :-) 2008-12-23 22:10:34 +01:00
Jeremy Allison
d0eeb9aa8d Fix more asprintf warnings and some error path errors.
Jeremy.
2008-12-23 12:11:12 -08:00
Jeremy Allison
1966a947d3 More asprintf warning fixes.
Jeremy.
2008-12-23 11:56:48 -08:00
Jeremy Allison
94df767f21 More asprintf warning fixes.
Jeremy.
2008-12-23 11:45:26 -08:00
Jeremy Allison
b143938b8a Fix more asprintf errors and error code paths.
Jeremy.
2008-12-23 11:27:19 -08:00
Matthias Dieter Wallnöfer
7c6a20a439 Add missing includes, required for use of gensec by 3rd-party
applications.
2008-12-23 20:17:59 +01:00
Jelmer Vernooij
31dc07ee28 pytevent: Add missing file. 2008-12-23 20:13:17 +01:00
Jelmer Vernooij
8b24da201b Allow using external libtevent. 2008-12-23 19:59:57 +01:00
Jelmer Vernooij
22703bf3ff standalone: Use more variables, preparing to include these files from main
Samba 4 makefile.
2008-12-23 19:44:11 +01:00
Jeremy Allison
7e1f0e272c Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2008-12-23 10:43:02 -08:00
Jeremy Allison
aa4abac6b7 Fix more ‘asprintf’, declared with attribute warn_unused_result.
Jeremy.
2008-12-23 10:42:25 -08:00
Jelmer Vernooij
5dce4148a3 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-23 19:30:16 +01:00
Jelmer Vernooij
465f78021e Move Samba4-specific file out of common libtevent. 2008-12-23 19:28:22 +01:00
Jeremy Allison
7fd114bab7 Fix more "warning: ignoring return value of ‘asprintf’, declared with
attribute warn_unused_result"
Jeremy.
2008-12-23 10:27:24 -08:00
Jeremy Allison
cb7d7beb99 Fix another "format not a string literal and no format arguments" warning.
Jeremy
2008-12-23 09:50:10 -08:00
Jelmer Vernooij
227c8000df Fix silly typo. 2008-12-23 12:14:25 +01:00
Jelmer Vernooij
4bbd2cbab7 pyldb: Provide replacement for sizeargfunc, not available before Python2.5. 2008-12-23 11:48:14 +01:00
Jelmer Vernooij
00b61ff2cf samba.tests.samdb: Fix test after merger of samba.security and
samba.dcerpc.security
2008-12-23 11:44:10 +01:00
Jelmer Vernooij
58cfb1a9e1 python: Define Py_ssize_t if the Python library doesn't. 2008-12-23 11:26:31 +01:00
Tim Prouty
4d02bbbfb4 s3: Fix stream marshalling to return the correct streaminfo status
When there are enough streams on a file to fill up the max_data_count
when responding to a trans2 streaminfo, samba is returning
NT_STATUS_BUFFER_TOO_SMALL.  Windows handles this by returning
NT_STATUS_BUFFER_OVERFLOW while still sending as much of the data that
it can fit into the buffer.  When the windows client sees
BUFFER_OVERFLOW, it retries the streaminfo with a larger buffer (2x).
The windows client starts at 2K and will continue increasing the
buffer size by two until it reaches 64K.  If the streams don't fit in
64K the windows client seems to give up.

This patch fixes marshall_stream_info to overfill the buffer by 1
stream so that send_trans2_replies can properly detect the overflow
and return the correct status.
2008-12-23 00:28:00 -08:00
Jelmer Vernooij
8ce77a57cc pyldb: Fix segfault because of incorrect reference counting. 2008-12-23 05:36:27 +01:00