1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-12 21:58:10 +03:00

18097 Commits

Author SHA1 Message Date
Jeremy Allison
27a4c11214 r20160: Fix long-standing (ie. from initial code I think) bug
in tdb message processing. If we're inside a dispatch
function and we delete our own handler we'd walk onto
the next pointer from a deleted memory block. Fixes
crash bug in winbindd (and goodness knows where else).
Jeremy.
2007-10-10 12:16:28 -05:00
Simo Sorce
20aa6322ef r20155: revert, I misread 2007-10-10 12:16:28 -05:00
Simo Sorce
bf8dc44cc2 r20154: Fix nasty typo, hunting another bug 2007-10-10 12:16:28 -05:00
Simo Sorce
33a55f0cfc r20151: remove meaningless checks 2007-10-10 12:16:28 -05:00
Simo Sorce
a28cdd6e74 r20150: better memory handling for some functions, make sure we don't
leak memory by using the wrong(long lived)  mem context
2007-10-10 12:16:27 -05:00
Jeremy Allison
c264a0aa4a r20148: Forgot to merge. Ensure open_any_socket_out()
is safe from signals.
Jeremy.
2007-10-10 12:16:27 -05:00
Jeremy Allison
5d364bc5cc r20146: Now online checks are fully async we can do them
every cache timeout times.
Jeremy.
2007-10-10 12:16:27 -05:00
Jeremy Allison
d0add5f946 r20140: Make online/offline detection completely asynchronous.
Now I've done this I might be able to reduce the probe
timeout and reduce the backoff algorithm, going back
to checking every cache time seconds (5 mins by default),
as the parent or forked domain child will never block.
Jeremy.
2007-10-10 12:16:27 -05:00
Jim McDonough
0d03f51379 r20136: Fix #4290. Properly compute time to password expiration in message from
pam_winbind.  Thanks to Andrew Benham <andrew.benham@thus.net>
2007-10-10 12:16:27 -05:00
Herb Lewis
43ab1d2ba5 r20133: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_NATIVE_ICONV
2007-10-10 12:16:27 -05:00
Herb Lewis
c6cdf76c58 r20132: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_KRB5
2007-10-10 12:16:26 -05:00
Herb Lewis
e710a7d39a r20131: get rid of a few no previous prototype warnings 2007-10-10 12:16:26 -05:00
Herb Lewis
ac3eb7813e r20124: clean up nested extern declaration warnings 2007-10-10 12:16:26 -05:00
Jim McDonough
cc26e2f9a1 r20119: Update help info indicating how to use separators (forward slash only)
and properly use backslashes in "net ads join computername="
2007-10-10 12:16:26 -05:00
Simo Sorce
b6db21ff65 r20118: Fix some more warnings 2007-10-10 12:16:26 -05:00
Simo Sorce
5e46c43a2e r20117: 1st Error in the merge 2007-10-10 12:16:25 -05:00
Simo Sorce
50cd8bffee r20116: Start merging in the work done to create the new idmap subsystem.
Simo.
2007-10-10 12:16:25 -05:00
Jeremy Allison
67c4d5e73f r20110: Fix interaction between paranoid malloc checker
and lib/replace. Found by Herb - thanks !
Jeremy.
2007-10-10 12:16:25 -05:00
Jeremy Allison
f83b6de44f r20098: Properly fix issues with create_token_from_username()
reported by James. Ensure that this function allocates
everything on the temporary context except the return
memory. Never call this with a null mem context, and
now use conn->mem_ctx instead in smbd/service.c.
Remove separate free functions for conn->ngroups
and conn->nt_user_token as they are now always
talloc'ed off the conn->mem_ctx. Future optimization
will be to remove conn->mem_ctx and make all objects
pointed to in the conn struct talloc'ed off conn itself.
Easy to free then :-).
Jeremy.
2007-10-10 12:16:24 -05:00
Jeremy Allison
2c59c4dddc r20097: Ensure found_username is freed correctly when
talloced on the null context.
Jeremy.
2007-10-10 12:16:24 -05:00
Jeremy Allison
0ffca7559e r20090: Fix a class of bugs found by James Peach. Ensure
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.
2007-10-10 12:16:24 -05:00
Jim McDonough
3d6f387783 r20089: Put gpfs acl function into vfs_gpfs module. Thanks to Gomati Mohanan
<gomati.mohanan@in.ibm.com>.

Also fix fields for sec_desc differences between 3.0 and 3.0.24 in
nfs4_acls.c.
2007-10-10 12:16:24 -05:00
Jeremy Allison
0a1352f440 r20087: Ensure we clean up any random pending events we
may have inherited from our parent in the winbindd
forked child.
Jeremy.
2007-10-10 12:16:23 -05:00
Jeremy Allison
8d815ec4c1 r20082: When fork_domain_child is forked when we're offline
the child inherits *all* active check_online timout handlers.
This is bad when it's not our domain (ie. BUILTIN).
Jeremy.
2007-10-10 12:16:23 -05:00
Volker Lendecke
d935ecec98 r20069: Fix logic bug I introduced 2007-10-10 12:16:23 -05:00
Volker Lendecke
2fdfc54e7e r20063: Fix a missing protoype warning in freelistcheck.c 2007-10-10 12:16:23 -05:00
Jeremy Allison
017be792f3 r20060: Fix the timout calculation.
Jeremy.
2007-10-10 12:16:23 -05:00
Jeremy Allison
b7dc67ab2a r20058: Ensure we actually do the increasing time
calculation when in offline mode.
Jeremy.
2007-10-10 12:16:23 -05:00
Jeremy Allison
369c9e4138 r20057: Attempt to fix connect timeouts when connected on
a network but not one on which any home DC's can
be found (hotel network problem). Still testing
but this is getting close.
Jeremy.
2007-10-10 12:16:23 -05:00
Volker Lendecke
4b5cf0c9cf r20054: Revert my changes, Simo promised to work on it :-) 2007-10-10 12:16:22 -05:00
Volker Lendecke
f64866a43f r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string 2007-10-10 12:16:22 -05:00
Volker Lendecke
75555ae1c8 r20049: Reformatting 2007-10-10 12:16:22 -05:00
Volker Lendecke
4fe19e741f r20048: Fix vfs_full_audit after Jims kernel_flock addition 2007-10-10 12:16:22 -05:00
Volker Lendecke
1fe41c96f5 r20046: Add ldb_search_exp_fmt and port comment to 4 2007-10-10 12:16:22 -05:00
Volker Lendecke
0742faaacd r20037: Reduce code size slightly by shuffling stuff around 2007-10-10 12:16:22 -05:00
Volker Lendecke
fa6fa1268b r20036: Merge ldb_search_exp_fmt -- Thanks simo 2007-10-10 12:16:21 -05:00
Jeremy Allison
7ac4ae4b51 r20035: Fix obvious horrible bug in falling back to MS-RPC
methods.
Jeremy.
2007-10-10 12:16:21 -05:00
Volker Lendecke
ad1e00430b r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
stuff. Revert the last change.

This needs better fixing.

Volker
2007-10-10 12:16:21 -05:00
Volker Lendecke
cab5ccbbe4 r20019: Replace one set of tricky code by calls to another set of tricky code:
Initializing the reg_db now uses reg_createkey and reg_setvalue.

Volker
2007-10-10 12:16:21 -05:00
Volker Lendecke
281640823b r20018: Fix a memleak in reg_createkey 2007-10-10 12:16:21 -05:00
Volker Lendecke
fc29a283cc r20017: Make srvsvc_NetShareAdd & friends take care of registry shares 2007-10-10 12:16:21 -05:00
Volker Lendecke
ad22a46718 r20016: Add two utility functions for easy opening/creating registry keys 2007-10-10 12:16:20 -05:00
Volker Lendecke
0afd696f88 r20015: We have to zero out handle on key_close, otherwise the NT4 regedit will re-use the handle 2007-10-10 12:16:20 -05:00
Volker Lendecke
a4862f48d0 r20014: Ouch.... "res" is not a flag here, it is the service number... 2007-10-10 12:16:20 -05:00
Volker Lendecke
0104371dd6 r20013: Fix segfaults: parm_error is a unique in/out ptr 2007-10-10 12:16:20 -05:00
Volker Lendecke
b32c65cb62 r20012: Reformatting 2007-10-10 12:16:20 -05:00
Volker Lendecke
3da37287ca r20007: Fix a const warning just introduced 2007-10-10 12:16:19 -05:00
Volker Lendecke
66e889bbab r20006: Convert the registry shares to use the new API 2007-10-10 12:16:19 -05:00
Volker Lendecke
a6039eb46c r20005: reg_open_path should become the replacement for regkey_open_internal. 2007-10-10 12:16:19 -05:00
Volker Lendecke
dc0300ec70 r20004: Remove a const, "name" is allocated anyway 2007-10-10 12:16:19 -05:00