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

34 Commits

Author SHA1 Message Date
Stefan Metzmacher
3a28443079 r22009: change TDB_DATA from char * to unsigned char *
and fix all compiler warnings in the users

metze
2007-10-10 12:19:00 -05:00
Stefan Metzmacher
c22b86595a r21976: make use of tdb_*_bystring() and string_term_tdb_data() in lib/
to avoid creating the TDB_DATA struct from strings "by hand"

metze
2007-10-10 12:18:54 -05:00
Günther Deschner
bdd2e0361c r19415: oh la la, always compile before commit, I'm very sorry.
Guenther
2007-10-10 12:15:33 -05:00
Günther Deschner
e5ed286125 r19414: gencache is getting really important now, make sure that lp_lockdir
always exists so that the gencache.tdb can get created there.

Guenther
2007-10-10 12:15:33 -05:00
Jeremy Allison
ec526e1b88 r19054: Callers of gencache may not have the rights to
open read/write. Allow them to fallback to read-only.
Jeremy
2007-10-10 12:15:06 -05:00
Volker Lendecke
554e68887b r18312: Change gencache_get slightly: Delete expired keys, and only strdup the value
if a valid entry was found. The newer calls got the latter one wrong, change
the older calls.

Volker
2007-10-10 11:51:19 -05:00
Volker Lendecke
f6497adac6 r18311: Simplify gencache_get by using strtol instead of sscanf 2007-10-10 11:51:19 -05:00
Volker Lendecke
651e7e44e2 r18310: Add a little test for some gencache routines
Remove unused gencache_set_only
Use CONST_DISCARD instead of SMB_STRDUP

Volker
2007-10-10 11:51:19 -05:00
Jeremy Allison
ab3f0c5b1e r17928: Implement the basic store for CLDAP sitename
support when looking up DC's. On every CLDAP
call store the returned client sitename (if
present, delete store if not) in gencache with
infinate timeout. On AD DNS DC lookup, try looking
for sitename DC's first, only try generic if
sitename DNS lookup failed.
I still haven't figured out yet how to ensure
we fetch the sitename with a CLDAP query before
doing the generic DC list lookup. This code is
difficult to understand. I'll do some experiments
and backtraces tomorrow to try and work out where
to force a CLDAP site query first.
Jeremy.
2007-10-10 11:38:59 -05:00
Volker Lendecke
8ae7ed1f3c r17334: Some C++ warnings 2007-10-10 11:38:26 -05:00
Volker Lendecke
b96808bb62 r16290: Fix Coverity bugs 298 and 298 2007-10-10 11:17:31 -05:00
Jeremy Allison
81731e1f68 r16267: Fix Klocwork #401, #402 - ensure format specifier
limited. Fix memleak in printing gencache contents.
Jeremy.
2007-10-10 11:17:28 -05:00
Volker Lendecke
b9c6e3f556 r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring does not
have the timeout argument in Samba4. Add a new routine
tdb_lock_bystring_with_timeout.

Volker
2007-10-10 11:16:23 -05:00
Gerald Carter
6c3480f9ae r13310: first round of server affinity patches for winbindd & net ads join 2007-10-10 11:06:23 -05:00
Gerald Carter
68399ce04c r12912: patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access to gencache.tdb after fork() in smbmount 2007-10-10 11:06:06 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Jeremy Allison
620f2e608f r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Andrew Bartlett
379368b0be Always call the auto-init funciton - this avoids tdb segfaulting under
us if we failed to open it earlier.

Andrew Bartlett
-
Tim Potter
3aab7a3bc7 Reformat debug. -
Volker Lendecke
0f3822c8e7 Different fix for memleak just committed. This belongs into
tdb_search_list_free.

Volker
-
Volker Lendecke
0f8933ae77 Fix two memory leaks. tdb_search_keys allocates space for the key
strings.

Running 'net cache list' or secrets_get_trusted_domains through
valgrind gives a *huge* amount of invalid reads of one byte beyond the
indicated string length in libc's strncpy. Annoying...

Volker
-
Volker Lendecke
f036368efd Fix a segfault found by metze & valgrind...
Don't overwrite past the end of a string.

Volker
-
Gerald Carter
7bc4b65b91 * fix the trustdom_cache to work when winbindd is not running.
smbd will update the trustdom_cache periodically after locking
  the timestamp key
-
Tim Potter
6d7baad38f Merge of doxygen updates from HEAD. -
Andrew Bartlett
8315b9c311 (merge from HEAD) Valgrind found some memory leaks! -
Andrew Bartlett
c91e76bddb (merge from HEAD)
Small clenaup patches:
 - safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

 - connection.c - use safe_strcpy()
Andrew Bartlett
-
Tim Potter
bae354a20c Merge cleanups of return values. -
Tim Potter
23ca540005 Merge of nicer error message for gencache open error from HEAD. -
Gerald Carter
305f167db2 sync with tpot's change to gencache_get() in HEAD -
Gerald Carter
607bc0b4fc masking an assert error in Tim's wins server checking code; needs a proper fix after I talk to tpot -
Andrew Bartlett
5fc90b6cf4 Merge from HEAD - whitespace :-) -
Andrew Bartlett
f79324f730 Merge from HEAD - mimir's new gencache based namecache code.
Andrew Bartlett
-
Jeremy Allison
5d5762d178 Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
-
Andrew Tridgell
05a202c287 added gencache implementation from mimir - thanks! -