1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source3
Andrew Bartlett dbee612f71 Change the passdb interface to use allocated strings.
These strings are allocated using talloc(), either using its own memory context
stored on the SAM_ACCOUNT or one supplied by the caller.

The pdb_init_sam() and pdb_free_sam() function have been modifed so that a call
to pdb_free_sam() will either clean up (remove hashes from memory) and destroy
the TALLOC_CTX or just clean up depending on who supplied it.

The pdb_init_sam and pdb_free_sam functions now also return an NTSTATUS, and I
have modified the 3 places that actually checked these returns.

The only nasty thing about this patch is the small measure needed to maintin
interface compatability - strings set to NULL are actually set to "".

This is becouse there are too many places in Samba that do strlen() on these
strings without checking if they are NULL pointers.

A supp patch will follow to set all strings to "" in pdb_default_sam().

Andrew Bartlett
(This used to be commit 144345b41d)
2002-01-15 01:02:13 +00:00
..
aparser replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down 2001-09-10 11:08:57 +00:00
auth Fix a segfault in auth/auth_domain.c error cases. 2002-01-14 21:52:25 +00:00
bin Add a very trivial talloc torture program, bin/talloctort. Not built 2001-12-19 04:46:35 +00:00
client browse_fn: FIXME: If the remote machine returns non-ascii characters 2002-01-10 03:53:06 +00:00
codepages removed old unused files 2001-10-03 13:05:59 +00:00
groupdb don't try to allocate zero bytes 2002-01-13 11:46:04 +00:00
include Change the passdb interface to use allocated strings. 2002-01-15 01:02:13 +00:00
intl Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endian 2002-01-09 04:13:30 +00:00
lib FIXME We should turn the global list off when using Insure++, 2002-01-14 06:51:34 +00:00
libads Move local variable to avoid warning when compiled without GSSAPI. 2002-01-14 06:34:53 +00:00
libsmb Removed fprintf(stderr, ...); calls which should not be present in library 2002-01-14 02:22:31 +00:00
locking Debugs that print out a share mode table in debug level 10. This code 2002-01-08 00:52:36 +00:00
msdfs get rid of compiler warnings (casts and delete unused variables) 2001-10-23 19:10:30 +00:00
nmbd Same fix as went into 2.2 (I'm waiting for jerry to finish some code). 2002-01-11 19:10:25 +00:00
nsswitch Initialise cli variables and try not to do a cli_shutdown() of uninitialsed 2002-01-14 22:08:47 +00:00
pam_smbpass updates from 2.2 2002-01-12 23:12:13 +00:00
param For hysterical raisins you must use string_set() to set the value of a 2002-01-09 04:17:24 +00:00
passdb Change the passdb interface to use allocated strings. 2002-01-15 01:02:13 +00:00
po added fr.msg from Fanch 2001-12-09 17:06:45 +00:00
popt stop popt from doing its own intl stuff 2001-11-25 00:10:28 +00:00
printing Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal 2002-01-14 19:34:28 +00:00
profile Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 2001-10-02 04:29:50 +00:00
rpc_client Add prs_dump_before to dump everything from the start of the prs 2002-01-02 07:48:07 +00:00
rpc_parse Added PRINTER_INFO_4/PRINTER_INFO_5, we're seeing level 5 requested on the wire... so. 2002-01-12 02:37:54 +00:00
rpc_server Change the passdb interface to use allocated strings. 2002-01-15 01:02:13 +00:00
rpcclient Converted getprinterdriver to WERROR - it always returns dos error 6 2002-01-07 03:33:46 +00:00
script much better ADS error handling system 2001-12-19 12:21:12 +00:00
smbd Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal 2002-01-14 19:34:28 +00:00
smbwrapper Got medieval on another pointless extern. Removed extern struct ipzero 2001-11-26 03:11:44 +00:00
tdb Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace. 2002-01-09 18:26:39 +00:00
tests added a simple test to see whether building shared libraries actually 2001-12-31 22:10:24 +00:00
torture Update the NT_STATUS -> DOS error table. 2002-01-03 08:36:47 +00:00
ubiqx Again, just syncronizing. The a function name was changed in the sll 2000-06-08 17:42:20 +00:00
utils Change the passdb interface to use allocated strings. 2002-01-15 01:02:13 +00:00
web Store some path names in global variables initialized to configure 2001-11-19 02:49:53 +00:00
.cvsignore Ignore dmalloc.log. 2002-01-03 03:47:09 +00:00
.dmallocrc Sample configuration for dmalloc. 2002-01-09 06:35:45 +00:00
acconfig.h We need to test for major/minor macros. 2002-01-10 01:49:09 +00:00
aclocal.m4 Added SWAT i18n feature: 2001-09-24 15:55:09 +00:00
architecture.doc first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 1999-12-13 13:27:58 +00:00
change-log global change from samba.anu.edu.au to samba.org 1998-11-21 13:20:31 +00:00
CodingSuggestions added "net join" command 2001-11-24 14:16:41 +00:00
config.guess By popular demand: a new config.guess and config.sub 2001-12-08 17:37:59 +00:00
config.sub By popular demand: a new config.guess and config.sub 2001-12-08 17:37:59 +00:00
configure rerun autoconf 2002-01-14 22:11:44 +00:00
configure.developer Change ./configure.developer to stay in effect across a 2001-09-25 05:08:05 +00:00
configure.in I like --enable-developer, but I find it rather usless when all it gets me is a 2002-01-14 22:11:01 +00:00
configure.nodebug.developer computer too slow to compile with debug info (100mins), but i need all the 2000-03-09 22:22:38 +00:00
Doxyfile Make CodingSuggestions show up in the Doxygen pages. 2001-11-16 07:28:23 +00:00
dynconfig.c Move all other paths into dynconfig 2001-11-19 05:49:20 +00:00
install-sh
internals.doc The big character set handling changeover! 2001-07-04 07:15:53 +00:00
mainpage.dox Make CodingSuggestions show up in the Doxygen pages. 2001-11-16 07:28:23 +00:00
Makefile.in Many thanks to Alexander Bokovoy <a.bokovoy@sam-solutions.net>. 2002-01-12 23:57:10 +00:00
parsing.doc Added info about parsing debug messages. 1998-10-27 21:07:52 +00:00
smbadduser