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

22732 Commits

Author SHA1 Message Date
Jeremy Allison
b085366d5b r23940: Added missing line that was deleted accidently.
Should fix the build.
Jeremy.
2007-10-10 12:28:47 -05:00
Jeremy Allison
ab4af60d1a r23939: Fixes for notify returns. Returned param value must fix inside
max_param or return NT_STATUS_OK.
Jeremy.
2007-10-10 12:28:47 -05:00
Michael Adam
6bd2c48921 r23938: Add a debug message. 2007-10-10 12:28:47 -05:00
Günther Deschner
1a62c731c6 r23937: Use ads_config_path() when we need to know the configration context.
Guenther
2007-10-10 12:28:46 -05:00
Jeremy Allison
24e625a615 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.
2007-10-10 12:28:46 -05:00
Stefan Metzmacher
8c64ca3394 r23933: - implement ctrl SASL wrapping hook
- pass down sign or seal hooks
- some sasl wrapping fixes

metze
2007-10-10 12:28:46 -05:00
Michael Adam
e56be59947 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
2007-10-10 12:28:46 -05:00
Michael Adam
2c2a1ff2c2 r23931: Use the new tdb_validate_and_backup function instead of pure tdb_validate
in winbindd cache validation.

Michael
2007-10-10 12:28:46 -05:00
Michael Adam
ca63a99b61 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
2007-10-10 12:28:46 -05:00
Günther Deschner
465c89ee4a r23929: Deleting gpo_sd_check_trustee_in_sid_token() as nt_token_check_sid() is what we
need here.

Guenther
2007-10-10 12:28:45 -05:00
Günther Deschner
1e1e480115 r23928: Merge all "copy-info3-groups-to-sid-array" blocks to a sid_array_from_info3()
function.

Guenther
2007-10-10 12:28:45 -05:00
Stefan Metzmacher
65ce6fa21a r23926: implement output buffer handling for the SASL write wrapper
metze
2007-10-10 12:28:45 -05:00
Michael Adam
864b3d260f r23925: Use NULL instead of 0 for a void * argument. 2007-10-10 12:28:45 -05:00
Stefan Metzmacher
7d8518ebd9 r23922: implement input buffer handling for the SASL read wrapper
metze
2007-10-10 12:28:42 -05:00
Günther Deschner
83c734690a r23921: Remove GPO_SID_TOKEN struct and use nt_user_token instead, that already has
S-1-5-11 in the token.

Guenther
2007-10-10 12:28:42 -05:00
Günther Deschner
7317eb408d r23920: Fix debug statement.
Guenther
2007-10-10 12:28:42 -05:00
Stefan Metzmacher
3f68189c9a r23918: not all ldap libraries support debugging
metze
2007-10-10 12:28:41 -05:00
Stefan Metzmacher
d745a1a719 r23916: use the correct io operations for debugging
metze
2007-10-10 12:28:41 -05:00
Stefan Metzmacher
8557b8b570 r23914: try to fix the build on Tru64
/usr/include/sys/acl.h:#define acl_type acl_common.entry_type
was the problem...

metze
2007-10-10 12:28:41 -05:00
Jeremy Allison
99f72dd9af 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.
2007-10-10 12:28:41 -05:00
Jeremy Allison
90bbc077e1 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.
2007-10-10 12:28:41 -05:00
Jeremy Allison
03e3d58746 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.
2007-10-10 12:28:41 -05:00
Jeremy Allison
0989877fd1 r23909: Get closer to passing the cthon tests for delete open file.
It matters how the target is open.
Jeremy.
2007-10-10 12:28:40 -05:00
Jeremy Allison
a48e4a29e6 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.
2007-10-10 12:28:40 -05:00
Jeremy Allison
4aad77c27c 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.
2007-10-10 12:28:40 -05:00
Volker Lendecke
7f4ceb1bf0 r23904: Remove an unused variable reference 2007-10-10 12:28:40 -05:00
Volker Lendecke
c06bc91085 r23903: Fix a potential reason for the segfault Steve found 2007-10-10 12:28:40 -05:00
Jeremy Allison
98c2393973 r23902: Fix uninitialized read in devicetype noticed by Volker.
Jeremy
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
8455c65be3 r23900: LDAP_OPT_SOCKBUF doesn't exists on all platforms
metze
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
873eaff8fe r23898: rename HAVE_ADS_SASL_WRAPPING -> HAVE_LDAP_SASL_WRAPPING
metze
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
d5512da62a r23896: hopefully fix the build on most systems
metze
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
a3b97cdce7 r23893: add dummy callbacks for LDAP SASL wrapping,
they're not used yet...

metze
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
6dcbc0b605 r23891: fix compiler warning
metze
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
00909194a6 r23888: move elements belonging to the current ldap connection to a
substructure.

metze
2007-10-10 12:28:38 -05:00
Stefan Metzmacher
ba70737b70 r23886: add ads_disconnect() function
metze
2007-10-10 12:28:38 -05:00
Volker Lendecke
b2adb28808 r23885: Fix make test on opi. 2007-10-10 12:28:38 -05:00
Volker Lendecke
86476efc7a r23884: Fix Coverity ID 379 2007-10-10 12:28:38 -05:00
Volker Lendecke
5eda562f2b r23883: Fix Coverity ID 380 2007-10-10 12:28:38 -05:00
Volker Lendecke
9b8f2d8bd1 r23882: Fix Coverity id 389 -- finally (I hope) 2007-10-10 12:28:38 -05:00
Volker Lendecke
4d1b33f513 r23879: Fix two memleaks, found by the IBM checker 2007-10-10 12:28:37 -05:00
Volker Lendecke
a369c67f66 r23878: Fix an error return, found by the IBM checker 2007-10-10 12:28:37 -05:00
Volker Lendecke
33068885e6 r23877: Fix two segfaults in (very unlikely) error paths, found by the IBM
checker.
2007-10-10 12:28:37 -05:00
Günther Deschner
cc41b3b60f r23874: Some more minor edits for net ads gpo.
Guenther
2007-10-10 12:28:37 -05:00
Günther Deschner
94d11806fd r23873: Make use of ads_find_samaccount().
Guenther
2007-10-10 12:28:36 -05:00
Günther Deschner
4b5c4b4fff r23872: Dump all GPFLAGS in dump_gpo().
Guenther
2007-10-10 12:28:36 -05:00
Günther Deschner
9dc8ec0e19 r23871: The snapin handler needs to have the full struct GROUP_POLICY_OBJECT.
Guenther
2007-10-10 12:28:36 -05:00
Günther Deschner
f60ad2ccff r23870: Use GPO_LINK_TYPE in GROUP_POLICY_OBJECT struct.
Guenther
2007-10-10 12:28:36 -05:00
Günther Deschner
0a96a11f01 r23869: Protect against partial security descriptors.
Guenther
2007-10-10 12:28:36 -05:00
Volker Lendecke
2ed83d36fe r23866: Fix a 1-byte buffer overrun 2007-10-10 12:28:36 -05:00
Volker Lendecke
a40d3a566a r23865: Fix a type-punned error 2007-10-10 12:28:35 -05:00