1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

18298 Commits

Author SHA1 Message Date
Jeremy Allison
7f5fefb7bb r20165: Change messaging subsystem to only allow one message
per type - this is all we use right now and makes
re-entrancy problems with deleting handlers with
a message dispatch loop go away.
Jeremy.
(This used to be commit 2e9b6faeae1474d65a5c12f5a19b0ae045d47c2e)
2007-10-10 12:16:28 -05:00
Jeremy Allison
25f8970539 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.
(This used to be commit 27a4c1121404e346432d90b97b518861e038e9f2)
2007-10-10 12:16:28 -05:00
Simo Sorce
1da72a1c3f r20155: revert, I misread
(This used to be commit 20aa6322efe617f928c5cf2224a7660ca6525297)
2007-10-10 12:16:28 -05:00
Simo Sorce
7c5dba63a0 r20154: Fix nasty typo, hunting another bug
(This used to be commit bf8dc44cc2892a784ec3a118abc0abb1018fbde4)
2007-10-10 12:16:28 -05:00
Simo Sorce
9b5354bea4 r20151: remove meaningless checks
(This used to be commit 33a55f0cfc0c5eb3f3cfa8276fa258349ad42f8d)
2007-10-10 12:16:28 -05:00
Simo Sorce
25fe484101 r20150: better memory handling for some functions, make sure we don't
leak memory by using the wrong(long lived)  mem context
(This used to be commit a28cdd6e742cb72a728bd337546ee95fd4160ed8)
2007-10-10 12:16:27 -05:00
Jeremy Allison
050534827f r20148: Forgot to merge. Ensure open_any_socket_out()
is safe from signals.
Jeremy.
(This used to be commit c264a0aa4a83a3d47db33446b16a8766bc14824f)
2007-10-10 12:16:27 -05:00
Jeremy Allison
6b232e8c1f r20146: Now online checks are fully async we can do them
every cache timeout times.
Jeremy.
(This used to be commit 5d364bc5ccc45b8d7bf3e484d16b37ac9e06b5cf)
2007-10-10 12:16:27 -05:00
Jeremy Allison
ebb8161e1c 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.
(This used to be commit d0add5f946cf63ea43067e8e935876b5346d11de)
2007-10-10 12:16:27 -05:00
Jim McDonough
86a11183f7 r20136: Fix #4290. Properly compute time to password expiration in message from
pam_winbind.  Thanks to Andrew Benham <andrew.benham@thus.net>
(This used to be commit 0d03f5137936546253a8b3334995f536f3621d57)
2007-10-10 12:16:27 -05:00
Herb Lewis
8b4669c3c5 r20133: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_NATIVE_ICONV
(This used to be commit 43ab1d2ba5eb24fc22f8d53c650bf39e95fb133b)
2007-10-10 12:16:27 -05:00
Herb Lewis
dc06fda6c7 r20132: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_KRB5
(This used to be commit c6cdf76c5809b4a4b145acb7dd4a695aaf7fcd28)
2007-10-10 12:16:26 -05:00
Herb Lewis
6914b29daa r20131: get rid of a few no previous prototype warnings
(This used to be commit e710a7d39a662a1a339f3f71c4b051fde1bb5a16)
2007-10-10 12:16:26 -05:00
Herb Lewis
791f48f167 r20124: clean up nested extern declaration warnings
(This used to be commit ac3eb7813e33b9a2e78c9158433f7ed62c3b62bb)
2007-10-10 12:16:26 -05:00
Jim McDonough
243b462b09 r20119: Update help info indicating how to use separators (forward slash only)
and properly use backslashes in "net ads join computername="
(This used to be commit cc26e2f9a155529b8ac2122bd2bec401bb516264)
2007-10-10 12:16:26 -05:00
Simo Sorce
7165944469 r20118: Fix some more warnings
(This used to be commit b6db21ff65139f45a1789105241e4018b61ca472)
2007-10-10 12:16:26 -05:00
Simo Sorce
79416a5226 r20117: 1st Error in the merge
(This used to be commit 5e46c43a2e4b9a3ee8f1f219c96a6b132bb09322)
2007-10-10 12:16:25 -05:00
Simo Sorce
4225f9a4bd r20116: Start merging in the work done to create the new idmap subsystem.
Simo.
(This used to be commit 50cd8bffeeed2cac755f75fc3d76fe41c451976b)
2007-10-10 12:16:25 -05:00
Jeremy Allison
18f9156d96 r20110: Fix interaction between paranoid malloc checker
and lib/replace. Found by Herb - thanks !
Jeremy.
(This used to be commit 67c4d5e73fe066910f7b1ca4624541a9bbbf7750)
2007-10-10 12:16:25 -05:00
Jeremy Allison
25d6eaae8d 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.
(This used to be commit f83b6de44f1058811ff94ac72a8a71bd8e49e4e8)
2007-10-10 12:16:24 -05:00
Jeremy Allison
af0f14e3a7 r20097: Ensure found_username is freed correctly when
talloced on the null context.
Jeremy.
(This used to be commit 2c59c4dddceb9cb12848d7ee48257c5e93ea2667)
2007-10-10 12:16:24 -05:00
Jeremy Allison
63609fbb04 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.
(This used to be commit 0ffca7559e07500bd09a64b775e230d448ce5c24)
2007-10-10 12:16:24 -05:00
Jim McDonough
19ddef3dd9 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.
(This used to be commit 3d6f387783467bbd7ea88d6a853b41572badf1ef)
2007-10-10 12:16:24 -05:00
Jeremy Allison
5ce139751b r20087: Ensure we clean up any random pending events we
may have inherited from our parent in the winbindd
forked child.
Jeremy.
(This used to be commit 0a1352f440a9d9b974ad8d571b2e48a43a15b6cc)
2007-10-10 12:16:23 -05:00
Jeremy Allison
5be92d0d18 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.
(This used to be commit 8d815ec4c103a83ef7cea0ae5fc64681f6bcb48a)
2007-10-10 12:16:23 -05:00
Volker Lendecke
ff61853fb3 r20069: Fix logic bug I introduced
(This used to be commit d935ecec98747dfd9f35ab81760ef95a0d983ed7)
2007-10-10 12:16:23 -05:00
Volker Lendecke
97a00e7df8 r20063: Fix a missing protoype warning in freelistcheck.c
(This used to be commit 2fdfc54e7eebc68c81ad5f3fa8d0607bd3b579c5)
2007-10-10 12:16:23 -05:00
Jeremy Allison
1c6de687f1 r20060: Fix the timout calculation.
Jeremy.
(This used to be commit 017be792f3c41aba2cbda10b53d80aad91c5d666)
2007-10-10 12:16:23 -05:00
Jeremy Allison
b59412e6bf r20058: Ensure we actually do the increasing time
calculation when in offline mode.
Jeremy.
(This used to be commit b7dc67ab2a78aba8dc8324430798ef56325d3cd6)
2007-10-10 12:16:23 -05:00
Jeremy Allison
155083547a 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.
(This used to be commit 369c9e4138b93f7cfb6680f0beb541f58554e856)
2007-10-10 12:16:23 -05:00
Volker Lendecke
4a1efb1abe r20054: Revert my changes, Simo promised to work on it :-)
(This used to be commit 4b5cf0c9cffe9903c86ac7e8b41c303fdbde5bac)
2007-10-10 12:16:22 -05:00
Volker Lendecke
c0d74d11bc r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string
(This used to be commit f64866a43fbc21666e919cafdf3002a8e43c60af)
2007-10-10 12:16:22 -05:00
Volker Lendecke
8a20dd0ff1 r20049: Reformatting
(This used to be commit 75555ae1c8039b7bbca796dd16609de08230265a)
2007-10-10 12:16:22 -05:00
Volker Lendecke
66cd8c3078 r20048: Fix vfs_full_audit after Jims kernel_flock addition
(This used to be commit 4fe19e741fcb384f0cec59d3ec742d5bd173d41f)
2007-10-10 12:16:22 -05:00
Volker Lendecke
91adcd0bae r20046: Add ldb_search_exp_fmt and port comment to 4
(This used to be commit 1fe41c96f53b0d83e8779050e2149a5e70b5dad0)
2007-10-10 12:16:22 -05:00
Volker Lendecke
5b1f85a832 r20037: Reduce code size slightly by shuffling stuff around
(This used to be commit 0742faaacd496f9cc4581a1fad74217024383661)
2007-10-10 12:16:22 -05:00
Volker Lendecke
1710dd1fe2 r20036: Merge ldb_search_exp_fmt -- Thanks simo
(This used to be commit fa6fa1268b33334d17869d0f096cf7600e88f993)
2007-10-10 12:16:21 -05:00
Jeremy Allison
490e3205bc r20035: Fix obvious horrible bug in falling back to MS-RPC
methods.
Jeremy.
(This used to be commit 7ac4ae4b517a18e97673e95d862a5b18175252c1)
2007-10-10 12:16:21 -05:00
Volker Lendecke
2494868ffb r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
stuff. Revert the last change.

This needs better fixing.

Volker
(This used to be commit ad1e00430bf5c4130023d30e9c8266ecdc640d2b)
2007-10-10 12:16:21 -05:00
Volker Lendecke
61bd0c8e45 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
(This used to be commit cab5ccbbe484795f13531726d68b978073262e33)
2007-10-10 12:16:21 -05:00
Volker Lendecke
b0a6049391 r20018: Fix a memleak in reg_createkey
(This used to be commit 281640823bfe25f513f44f6c6d7022a11b957fa5)
2007-10-10 12:16:21 -05:00
Volker Lendecke
b676097927 r20017: Make srvsvc_NetShareAdd & friends take care of registry shares
(This used to be commit fc29a283cc9c2458375aa4fe2ecef82e6a3847df)
2007-10-10 12:16:21 -05:00
Volker Lendecke
4a272ef0a8 r20016: Add two utility functions for easy opening/creating registry keys
(This used to be commit ad22a467185e871d893e8133741b525889c2aa6f)
2007-10-10 12:16:20 -05:00
Volker Lendecke
fe34827ffd r20015: We have to zero out handle on key_close, otherwise the NT4 regedit will re-use the handle
(This used to be commit 0afd696f88ed04f562ef64201ac2e58cef372a90)
2007-10-10 12:16:20 -05:00
Volker Lendecke
7299dc8b54 r20014: Ouch.... "res" is not a flag here, it is the service number...
(This used to be commit a4862f48d085d1f518389f86a410722e91449755)
2007-10-10 12:16:20 -05:00
Volker Lendecke
c6597384ba r20013: Fix segfaults: parm_error is a unique in/out ptr
(This used to be commit 0104371dd648204c9e8102cdc399539857be4a63)
2007-10-10 12:16:20 -05:00
Volker Lendecke
3f1978c059 r20012: Reformatting
(This used to be commit b32c65cb6243f939247bcfb0f14e4e49dc5ee13e)
2007-10-10 12:16:20 -05:00
Volker Lendecke
760056ec8d r20007: Fix a const warning just introduced
(This used to be commit 3da37287cadfe251491bcefea4ca9d407048868b)
2007-10-10 12:16:19 -05:00
Volker Lendecke
fc030c313f r20006: Convert the registry shares to use the new API
(This used to be commit 66e889bbabde6dfd05df46937635a6d3e606cb27)
2007-10-10 12:16:19 -05:00
Volker Lendecke
9690500e57 r20005: reg_open_path should become the replacement for regkey_open_internal.
(This used to be commit a6039eb46c6506b4e55e816d50edb618e800007f)
2007-10-10 12:16:19 -05:00