1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

7503 Commits

Author SHA1 Message Date
Jeremy Allison
a0cdec3acc Fixed nasty cast of tdb_delete in traversals.
Jeremy.
-
John Terpstra
72bda5e821 Note: This does NOT work yet. More work is in progress - please wait before using. -
Jeremy Allison
8aee8211cd Don't use static memory, malloc it...
Jeremy.
-
Jeremy Allison
73cf9d04f6 Fix the fix.... (sigh).
Jeremy.
-
Jeremy Allison
fb1ab02553 Ensure modtime is set correctly on destination files in copy command.
Jeremy.
-
Jeremy Allison
b52c3219d6 Fixed embarressing 16k strack trashing bug :-(.
Jeremy.
-
Andrew Tridgell
f383e19e09 added nTSecurityDescriptor field to host acct dump -
Andrew Bartlett
a855dfb2e0 Update the NT_STATUS -> DOS error table.
This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
-
Martin Pool
269a7d3c9b Clarify doc for SAFE_FREE. -
Andrew Bartlett
8f343beae7 Make a couple more of the warnings also be C comments -
Andrew Bartlett
d879d2ffff A few changes to always output the erorr mapping even when the error was
'squashed' or the session setup succeeded.  (How the latter occurs I don't know).
-
Andrew Bartlett
d47e61eb46 Workaround some 'smarts' in Win2k.
Win2k kills off connections that have issued a negprot but havn't yet issued
a session setup when a second connection appears from the same host.
-
Andrew Bartlett
da9444d98f Re-add bail on failure. -
Martin Pool
9a473ecf96 Fix talloc msg registration -
Martin Pool
4721217494 Put a name on lp_talloc pool -
Martin Pool
4877501da9 Make talloctort call talloc_describe_all before exiting -
Martin Pool
86abefc172 Cope nicely with pools with no name. -
Andrew Tridgell
27143900e7 fixed ERRMAPEXTRACT torture to work with win2k -
Martin Pool
b46d874f47 smbd children should also register for POOL_USAGE -
Martin Pool
a9b9ae47e1 Cleanup format. -
Martin Pool
cd25d01e42 talloc accounting now includes number of chunks and bytes allocated. -
Martin Pool
7cb8e95f93 Send back talloc allocation information when POOL_USAGE is received. -
Martin Pool
53723e8748 Add talloc_asprintf_append, which grows an existing string buffer to
contain new print-formatted information.  (Also
talloc_vasprintf_append.)  Idea borrowed from glib.
-
Martin Pool
9b217dce7f smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
-
Martin Pool
830a126a44 smbd should register to receive MSG_REQ_POOL_USAGE. Response should
be information about memory usage, but this is not done yet.
-
Tim Potter
b70f870cd9 Fixed crash bug in display_print_info_2() -
Martin Pool
cfa89169e0 Ignore dmalloc.log. -
Martin Pool
53dd8b4539 If we receive a message that is not handled then emit a gentle warning
to the log.
-
Martin Pool
6bd5b7ce8e debug output on receipt of message. -
Martin Pool
73743c2ec9 Oops, rerun autoconf after last change. -
Tim Potter
aae8cc6e45 Welcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE to
stop smb_macros.h and tdb.h from fighting with each other.

I tried to rearrange the #include file order but that breaks other stuff.
Aargh!
-
Martin Pool
ee6d33a8db Add instructions on using dmalloc. -
Tim Potter
d1564fbf1f Fixed crash bug in display_print_info_1() -
Tim Potter
fe1fb6589a Initialise result on success in cli_spoolss_enum_printers() so we don't get
stuck in an infinite loop.
-
Tim Potter
6c950db05a The werror<->nt status code map has changed and has broken all the spoolss
commands in rpcclient.  Replacing ERROR_INSUFFICIENT_BUFFER with
NT_STATUS_BUFFER_TOO_SMALL fixes it.  Yay!

I always thought the caller (i.e cmd_spoolss.c) should take care of the
whole requested/needed buffer size thingy though...
-
Tim Potter
ab1bd916cf Removed unused #define -
Jeremy Allison
eb66074665 debug statement fixups.
Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix.
Jeremy.
-
Gerald Carter
27ffce157a removed stuff I wasn't using -
Gerald Carter
59174310d4 sync up ldap defaults with 2.2 -
Gerald Carter
501f3f3a8f ooops./ forgot one -
Gerald Carter
999a2f5c84 fixing compile error -
Jeremy Allison
676eea502a We should be SHLD not LINK when creating shared libraries.
Tidyup in passdb.c
Jeremy.
-
Andrew Bartlett
673ece2841 We go to a lot of effort to avoid strcpy() in Samba, but its not much use if
people start doing using strlen(src) in strncpy() :-)

This occured when the talloc based passdb was reverted in favor of a pstring
based one.  In the talloc version this was fine, becouse the buffer was
strlen(src) bytes long.  This no longer applies...

This doesn't seem to have broken anything, but I'm chasing up an oddity with NT
password changing from the last merge.

Test & MERGE for 2.2.3

Andrew Bartlett
-
Martin Pool
92a3ab274e Add prs_dump_before to dump everything from the start of the prs
buffer up to the current position, and use this to dump pipe buffers
just before parsing.
-
Andrew Bartlett
d3dd28f6c4 Actually enforce the passdb API.
Thou shalt not reference SAM_ACCOUNT members directly - always use
pdb_get/pdb_set.

This is achived by making the whole of SAM_ACCOUNT have a .private member,
where the real members live.  This caught a pile of examples, and these have
beeen fixed.

The pdb_get..() functions are 'const' (have been for some time) and this
required a few small changes to constify other functions.

I've also added some debugs to the pdb get and set, they can be removed if
requested.

I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb
interface, but I need the flags info to do it properly.

The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such
I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result.

Finally, any and all testing is always appriciated - but the basics seem to
work.

Andrew Bartlett
-
Jeremy Allison
f6592628eb Make user enumeration work for w2k and win9x.
This means different return sizes depending on client bugs. This sucks :-(.
Jeremy.
-
Andrew Bartlett
3d812aacff Another touch of 'const' -
Martin Pool
b354163834 Doc. -
Martin Pool
93fadcd111 Also capture received data -
Martin Pool
9973b22b34 struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.

Call prs_dump to dump out requests sent by the client at sufficiently
high debug levels.
-