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

7430 Commits

Author SHA1 Message Date
Tim Potter
6c42bf2089 Check for winbind separator in user name for cli_session_setup()
Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
-
Tim Potter
248d114f85 spoolss rpc client cleanup:
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS
 - doc
-
Tim Potter
87bc0a71ec Define a rpc_client doc group. -
Tim Potter
5c8f6be290 Minor doc cleanups. -
Tim Potter
f4535721d3 Added a get_dos_error_msg() function to mirror the get_nt_error_msg()
One day I'll get around to refactoring the DOS error handling so it mirrors
the NT error handling code.
-
Tim Potter
950d8e3656 Display nicer message when server name could not be resolved. -
Tim Potter
9c968fbb01 DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalent
to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map.
-
Andrew Bartlett
08a5c5bf94 Get this code back to where it belongs...
Apparently (and I will doublecheck) its legal to do an annoymous session setup
when we negoitiated SPNEGO, but we can't do an authenticated one becouse we
didn't give a challange.

Andrew Bartlett
-
Andrew Bartlett
0e564cb32a Some more SPNEGO fixes. -
Andrew Tridgell
c6affae4bf fixed another DATA_BLOB constructor -
Andrew Tridgell
08bb2dfec2 simple fix for creating blank data blobs -
Gerald Carter
67c6a24344 merge from 2.2 -
Andrew Bartlett
17b1c83dd0 Fix up the SPNEGO segfault. -
Gerald Carter
9713bce035 yeah! I think I figured it out now -
Andrew Bartlett
12f5515f55 I've decided to move the auth code around a bit more...
The auth_authsupplied_info typedef is now just a plain struct - auth_context,
but it has been modified to contain the function pointers to the rest
of the auth subsystem's components.

(Who needs non-static functions anyway?)

In working all this mess out, I fixed a number of memory leaks and moved the
entire auth subsystem over to talloc().

Note that the TALLOC_CTX attached to the auth_context can be rather long-lived,
it is provided for things that are intended to live as long.  (The
global_negprot_auth_context lasts the whole life of the smbd).

I've also adjusted a few things in auth_domain.c, mainly passing the domain as
a paramater to a few functions instead of looking up lp_workgroup().  I'm
hopign to make this entire thing a bit more trusted domains (as PDC) freindly
in the near future.

Other than that, I moved a bit of the code around, hence the rather messy diff.

Andrew Bartlett
-
Andrew Bartlett
207ee8aac4 Add a talloc varient of the data_blob functions.
Also change the structure so it has its own (optional) 'free' pointer - so we
don't free() a talloc'ed version.

also split out the data_blob_clear() functionaility.

Andrew Bartlett
-
Andrew Bartlett
323dd422bd Add a comment on how this error map was derrived.
This applies only to the NT->Dos map, I'm still trying to come up with a way to
do the reverse.
-
Gerald Carter
9844ec3399 forgot a few files -
Gerald Carter
f7d900873c merge from 2.2 and regenerate docs -
Andrew Bartlett
2c09907b53 One line fix to get smbmount working again.
This just turns of SPNGO becouse Win2k breaks if you attempt this and DOS
errors at the same time.

Andrew Bartlett
-
Jeremy Allison
32f4f3a45d Added DEBUG in set_share_mode to track down logic insanity.
Jeremy.
-
Andrew Bartlett
b2af4372b1 Add a touch of const -
Andrew Tridgell
faa1b222f1 print the timezone in the same format as 'date +%z' - much better for scripting -
Jeremy Allison
2db99fa49b Missed error return is can_rename fails.
Jeremy.
-
Jeremy Allison
e6b27f3d80 Re-wrote the guts of the rename_internals code to cope with a reported
bug (renaming name -> name was failing, on W2K it succeeds). Simplified
the common case, did a lot of work to ensure NT error codes are correctly
reported back to client.
Jeremy.
-
Gerald Carter
9e3b432c57 sync with 2.2 -
Jeremy Allison
6c51d90f13 Added WERROR for non local domain.
Jeremy.
-
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.
-