1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

22736 Commits

Author SHA1 Message Date
Stefan Metzmacher
07c034f7c4 r23945: add infrastructure to select plain, sign or seal LDAP connection
metze
(This used to be commit 2075c05b3d8baa7d6d8510cd962471a5781740a6)
2007-10-10 12:28:48 -05:00
Stefan Metzmacher
e0c4034393 r23943: - always provide ads_setup_sasl_wrapping() function
- read/write returning 0 means EOF and we need to return direct

metze
(This used to be commit 885d557ae746c318df0aabc0a03dce1587918cce)
2007-10-10 12:28:48 -05:00
Jeremy Allison
e6c6c0438d r23942: Fix issue found by Shlomi Yaakobovich <Shlomi@exanet.com> where
invalid names sent as a resume name were incorrectly mapped into
. and .. Ensure they really *are . and ..
Jeremy.
(This used to be commit 78d0c5194fe42ad4f096657e2210a15541303a2a)
2007-10-10 12:28:47 -05:00
Jeremy Allison
921ac7da4f r23941: Don't use "False" when you mean "MARSHALL".
Jeremy.
(This used to be commit 57d4d5f2cd1ad7bae28f40478f4c2f9b6a475ce6)
2007-10-10 12:28:47 -05:00
Jeremy Allison
cf09627894 r23940: Added missing line that was deleted accidently.
Should fix the build.
Jeremy.
(This used to be commit b085366d5b982b635561f1d3211a6f3197258e6f)
2007-10-10 12:28:47 -05:00
Jeremy Allison
ed9e0d9a3a r23939: Fixes for notify returns. Returned param value must fix inside
max_param or return NT_STATUS_OK.
Jeremy.
(This used to be commit ab4af60d1ab4583fd27deb63b3f7baa1ede3473d)
2007-10-10 12:28:47 -05:00
Michael Adam
f932dccd5d r23938: Add a debug message.
(This used to be commit 6bd2c48921dd8dbf2885a8135ba01a1324e020c8)
2007-10-10 12:28:47 -05:00
Günther Deschner
9e0c550922 r23937: Use ads_config_path() when we need to know the configration context.
Guenther
(This used to be commit 1a62c731c6259bf4285d3735bff8b191002553f7)
2007-10-10 12:28:46 -05:00
Jeremy Allison
14826b0a79 r23935: We were lying to the client in the case of POSIX_UNLINK
if a Windows client had the file open. We were setting
delete on close and returning "ok". The POSIX client then
believed the file was gone (and it wasn't). Fix this to
return SHARING_VIOLATION if there is an existing NTcreateX
open on the file and someone calls POSIX_UNLINK. Still one
more Cthon test to fix but getting closer now. Should
be in 3.0.25c also.
Jeremy.
(This used to be commit 24e625a615447c025b73fed2d3db03c1f11ae596)
2007-10-10 12:28:46 -05:00
Stefan Metzmacher
00b27d2d69 r23933: - implement ctrl SASL wrapping hook
- pass down sign or seal hooks
- some sasl wrapping fixes

metze
(This used to be commit 8c64ca3394489b28034310fe64d6998e49827196)
2007-10-10 12:28:46 -05:00
Michael Adam
dc278f2d8f r23932: Fill extended status with information in case the validation traverse
functions did not do so but returned an error. (This is the case when
error occurred deeper than at the level of the content checking done by
the per entry validate_fn.)

Michael
(This used to be commit e56be59947a29d0a5692f3f3bc6c089dd8b4b5d9)
2007-10-10 12:28:46 -05:00
Michael Adam
b82060b88f r23931: Use the new tdb_validate_and_backup function instead of pure tdb_validate
in winbindd cache validation.

Michael
(This used to be commit 2c2a1ff2c27861ca87afbd8bab39d257a69e9565)
2007-10-10 12:28:46 -05:00
Michael Adam
7291251efb r23930: Introduce tdb_validate_and_backup:
This is a wrapper around tdb_validate, that does backup handling:

* if the given tdb is valid, a backup is created (name.bak)
* if the tdb is invalid, if a valid bakup is found (validated
  with the same validation function) under the name "name.bak"
  the orignal tdb is moved to name.corrupt and the backup
  is restored.

For the backup handling, a variant of the backup_tdb function
from lib/tdb/tools/tdbbackup.c is included in lib/util_tdb.c.
The copy function for the traverse action eliminates the need
to maintain a global success state by using a struct wrapping
the target tdb and a success flag as the private data.

Michael
(This used to be commit ca63a99b6188c0976603dc2852e478cc7a6b2f8b)
2007-10-10 12:28:46 -05:00
Günther Deschner
d9c902cb59 r23929: Deleting gpo_sd_check_trustee_in_sid_token() as nt_token_check_sid() is what we
need here.

Guenther
(This used to be commit 465c89ee4a0c287203121037052c875b1c6ca41e)
2007-10-10 12:28:45 -05:00
Günther Deschner
4b4a3c7df1 r23928: Merge all "copy-info3-groups-to-sid-array" blocks to a sid_array_from_info3()
function.

Guenther
(This used to be commit 1e1e480115e37b3f4c85f979ddd800b8de0b9c57)
2007-10-10 12:28:45 -05:00
Stefan Metzmacher
307e51ed14 r23926: implement output buffer handling for the SASL write wrapper
metze
(This used to be commit 65ce6fa21adec704b3cde30c57001e5620f048e4)
2007-10-10 12:28:45 -05:00
Michael Adam
4e23e4bd18 r23925: Use NULL instead of 0 for a void * argument.
(This used to be commit 864b3d260f3b099b1f24edf4ed0a7ed52b05f6cc)
2007-10-10 12:28:45 -05:00
Stefan Metzmacher
7bef162aeb r23922: implement input buffer handling for the SASL read wrapper
metze
(This used to be commit 7d8518ebd9470062b499b7074a940e14520e99f2)
2007-10-10 12:28:42 -05:00
Günther Deschner
db4099884a r23921: Remove GPO_SID_TOKEN struct and use nt_user_token instead, that already has
S-1-5-11 in the token.

Guenther
(This used to be commit 83c734690ab09a0fe103ee9fdb855fbdd31db39c)
2007-10-10 12:28:42 -05:00
Günther Deschner
95d5042803 r23920: Fix debug statement.
Guenther
(This used to be commit 7317eb408de8798ce6160907b59aad96acf983b6)
2007-10-10 12:28:42 -05:00
Stefan Metzmacher
8cd89a20ce r23918: not all ldap libraries support debugging
metze
(This used to be commit 3f68189c9a319ac9cae76f6d2b586cbde6d31e3c)
2007-10-10 12:28:41 -05:00
Stefan Metzmacher
d48dbc8bad r23916: use the correct io operations for debugging
metze
(This used to be commit d745a1a71991f306c29b3c62f43d619177f79725)
2007-10-10 12:28:41 -05:00
Stefan Metzmacher
63e93ad012 r23914: try to fix the build on Tru64
/usr/include/sys/acl.h:#define acl_type acl_common.entry_type
was the problem...

metze
(This used to be commit 8557b8b570ac8f8d3d14aaeb894c8b3532558736)
2007-10-10 12:28:41 -05:00
Jeremy Allison
1ffa14ff92 r23913: Revert back to Volker's original logic to fix the
RAW-SFILEINFO-RENAME until I can figure out what
is different from the way CIFSFS drives this in
the cthon tests and the way smbtorture drives it.
Jeremy.
(This used to be commit 99f72dd9af82921de4827b9b9d90d75127332295)
2007-10-10 12:28:41 -05:00
Jeremy Allison
02730aa86c r23911: Revert r23910 to try and fix the build farm. I
need to look at this more closely tomorrow.
Stevef's cthon tests definately show we're not
matching Windows behaviour (as his tests pass
against Windows but not SAMBA_3_2) but this isn't
the fix.
Jeremy.
(This used to be commit 90bbc077e15de0493dccda50be9bcdf6e2649137)
2007-10-10 12:28:41 -05:00
Jeremy Allison
cfb7c04696 r23910: We used to deny renames on the
source open for non-delete open.
Turns out this is not the case.
VL please test but this matches
Windows behaviour. (I'll add a
torture test tomorrow).
Jeremy.
(This used to be commit 03e3d587468ce66044814a8a58308b2fe9ab5499)
2007-10-10 12:28:41 -05:00
Jeremy Allison
5e3e15f754 r23909: Get closer to passing the cthon tests for delete open file.
It matters how the target is open.
Jeremy.
(This used to be commit 0989877fd191f7c9e195dc6e45dda5fd026f09dd)
2007-10-10 12:28:40 -05:00
Jeremy Allison
44b9493418 r23908: Fix bug with interaction of optimization with
POSIX locking. We can't do lock counts with POSIX,
so stop counting if we get a POSIX lock request.
Jeremy.
(This used to be commit a48e4a29e6774e5e72b9b361a17207b053474521)
2007-10-10 12:28:40 -05:00
Jeremy Allison
b3d471d367 r23906: Fix POSIX unlink bug found by Steve. If we
used lstat during the open (which we always
do for POSIX) then use lstat for the unlink.
Jeremy.
(This used to be commit 4aad77c27cc277e3d937f674ee620729411e3eaf)
2007-10-10 12:28:40 -05:00
Volker Lendecke
f798837c23 r23904: Remove an unused variable reference
(This used to be commit 7f4ceb1bf0c7aad50d93bb963c49dbc405e9524a)
2007-10-10 12:28:40 -05:00
Volker Lendecke
5e8590753c r23903: Fix a potential reason for the segfault Steve found
(This used to be commit c06bc91085c24bf6cc4491448ba12c5c2f1c7937)
2007-10-10 12:28:40 -05:00
Jeremy Allison
b4366f6c37 r23902: Fix uninitialized read in devicetype noticed by Volker.
Jeremy
(This used to be commit 98c23939731654440d2f008e44e11371eaddf014)
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
164f75efea r23900: LDAP_OPT_SOCKBUF doesn't exists on all platforms
metze
(This used to be commit 8455c65be34186e73283bb60b1ef3441d0338d55)
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
77619f37a0 r23898: rename HAVE_ADS_SASL_WRAPPING -> HAVE_LDAP_SASL_WRAPPING
metze
(This used to be commit 873eaff8febb50f00f9dac64c57b2a22c16f4f9b)
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
fc3f3c655b r23896: hopefully fix the build on most systems
metze
(This used to be commit d5512da62a6ae38321709611b04f419cc6c3b190)
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
57dd25cccb r23893: add dummy callbacks for LDAP SASL wrapping,
they're not used yet...

metze
(This used to be commit a3b97cdce719d9d5e82f26096c0e8c3a86ff3965)
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
0f0e847e39 r23891: fix compiler warning
metze
(This used to be commit 6dcbc0b6055998d77bd7bb6acfb622bc1423964b)
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
809c9d4d31 r23888: move elements belonging to the current ldap connection to a
substructure.

metze
(This used to be commit 00909194a6c1ed193dfdb296f50f58a53450583c)
2007-10-10 12:28:38 -05:00
Stefan Metzmacher
2fc53c947b r23886: add ads_disconnect() function
metze
(This used to be commit ba70737b7043cae89dd90f8668a24881212ac6fb)
2007-10-10 12:28:38 -05:00
Volker Lendecke
476c30b9ce r23885: Fix make test on opi.
(This used to be commit b2adb28808fe25d420bc12834ca8bc70779bb653)
2007-10-10 12:28:38 -05:00
Volker Lendecke
ffd2b4e4cd r23884: Fix Coverity ID 379
(This used to be commit 86476efc7a6adfe70c0437c2ff1bbd4b2b4ade5e)
2007-10-10 12:28:38 -05:00
Volker Lendecke
7ba884db5d r23883: Fix Coverity ID 380
(This used to be commit 5eda562f2b7a08f57fb2a7082d18e2983bfdc864)
2007-10-10 12:28:38 -05:00
Volker Lendecke
c9da49790e r23882: Fix Coverity id 389 -- finally (I hope)
(This used to be commit 9b8f2d8bd144700306819480bcb260d2c20969ae)
2007-10-10 12:28:38 -05:00
Volker Lendecke
d537225c4c r23879: Fix two memleaks, found by the IBM checker
(This used to be commit 4d1b33f51308c95293fa2494b47ba1255af8d216)
2007-10-10 12:28:37 -05:00
Volker Lendecke
e84f8662e6 r23878: Fix an error return, found by the IBM checker
(This used to be commit a369c67f6678bdcc0689929238bc96f45cdeeb25)
2007-10-10 12:28:37 -05:00
Volker Lendecke
3912eebdc9 r23877: Fix two segfaults in (very unlikely) error paths, found by the IBM
checker.
(This used to be commit 33068885e62f3681644c128e381822d48298ea05)
2007-10-10 12:28:37 -05:00
Günther Deschner
2e6b56061d r23874: Some more minor edits for net ads gpo.
Guenther
(This used to be commit cc41b3b60f5e0c604a764bc5bb1f8ecfe13a36f6)
2007-10-10 12:28:37 -05:00
Günther Deschner
a1def4de32 r23873: Make use of ads_find_samaccount().
Guenther
(This used to be commit 94d11806fd5384cbdd6c12b230985991b9e6473d)
2007-10-10 12:28:36 -05:00
Günther Deschner
e997cf9fe2 r23872: Dump all GPFLAGS in dump_gpo().
Guenther
(This used to be commit 4b5c4b4fffbd62917894432c9bb6946f181668c4)
2007-10-10 12:28:36 -05:00
Günther Deschner
3488299232 r23871: The snapin handler needs to have the full struct GROUP_POLICY_OBJECT.
Guenther
(This used to be commit 9dc8ec0e193ad4aa85293c334ebbca5d0618f0d2)
2007-10-10 12:28:36 -05:00