Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Converted enumprinters and enumports cmd functions to use WERROR | Tim Potter | 2002-01-06 | 1 | -32/+39 | |
| | | | | | | | | values returned from cli functions. They are converted to NTSTATUS codes using the error map functions. Do buffer size loop checks by setting offered = 0 and using the return value of needed in the next call. | |||||
* | Converted enumprinters and enumports cli functions to return WERRORs. | Tim Potter | 2002-01-06 | 1 | -106/+129 | |
| | | | | Make the offered and needed buffer size into parameters. | |||||
* | Check for winbind separator in user name for cli_session_setup() | Tim Potter | 2002-01-06 | 1 | -1/+2 | |
| | | | | Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net> | |||||
* | spoolss rpc client cleanup: | Tim Potter | 2002-01-06 | 2 | -91/+122 | |
| | | | | | - converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS - doc | |||||
* | Define a rpc_client doc group. | Tim Potter | 2002-01-06 | 1 | -0/+3 | |
| | ||||||
* | Minor doc cleanups. | Tim Potter | 2002-01-06 | 1 | -2/+2 | |
| | ||||||
* | Added a get_dos_error_msg() function to mirror the get_nt_error_msg() | Tim Potter | 2002-01-06 | 1 | -0/+11 | |
| | | | | | One day I'll get around to refactoring the DOS error handling so it mirrors the NT error handling code. | |||||
* | Display nicer message when server name could not be resolved. | Tim Potter | 2002-01-06 | 1 | -3/+3 | |
| | ||||||
* | DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalent | Tim Potter | 2002-01-06 | 2 | -1/+2 | |
| | | | | to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map. | |||||
* | Get this code back to where it belongs... | Andrew Bartlett | 2002-01-06 | 1 | -7/+7 | |
| | | | | | | | | 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 | |||||
* | Some more SPNEGO fixes. | Andrew Bartlett | 2002-01-06 | 1 | -1/+1 | |
| | ||||||
* | fixed another DATA_BLOB constructor | Andrew Tridgell | 2002-01-05 | 1 | -6/+1 | |
| | ||||||
* | simple fix for creating blank data blobs | Andrew Tridgell | 2002-01-05 | 2 | -5/+8 | |
| | ||||||
* | Fix up the SPNEGO segfault. | Andrew Bartlett | 2002-01-05 | 1 | -2/+2 | |
| | ||||||
* | I've decided to move the auth code around a bit more... | Andrew Bartlett | 2002-01-05 | 19 | -653/+690 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
* | Add a talloc varient of the data_blob functions. | Andrew Bartlett | 2002-01-05 | 2 | -4/+50 | |
| | | | | | | | | | 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 | |||||
* | Add a comment on how this error map was derrived. | Andrew Bartlett | 2002-01-05 | 1 | -0/+22 | |
| | | | | | This applies only to the NT->Dos map, I'm still trying to come up with a way to do the reverse. | |||||
* | One line fix to get smbmount working again. | Andrew Bartlett | 2002-01-05 | 1 | -0/+3 | |
| | | | | | | | This just turns of SPNGO becouse Win2k breaks if you attempt this and DOS errors at the same time. Andrew Bartlett | |||||
* | Added DEBUG in set_share_mode to track down logic insanity. | Jeremy Allison | 2002-01-05 | 1 | -0/+8 | |
| | | | | Jeremy. | |||||
* | Add a touch of const | Andrew Bartlett | 2002-01-05 | 1 | -1/+1 | |
| | ||||||
* | print the timezone in the same format as 'date +%z' - much better for scripting | Andrew Tridgell | 2002-01-04 | 1 | -5/+8 | |
| | ||||||
* | Missed error return is can_rename fails. | Jeremy Allison | 2002-01-04 | 1 | -0/+1 | |
| | | | | Jeremy. | |||||
* | Re-wrote the guts of the rename_internals code to cope with a reported | Jeremy Allison | 2002-01-04 | 3 | -41/+102 | |
| | | | | | | | 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. | |||||
* | Added WERROR for non local domain. | Jeremy Allison | 2002-01-03 | 1 | -0/+1 | |
| | | | | Jeremy. | |||||
* | Fixed nasty cast of tdb_delete in traversals. | Jeremy Allison | 2002-01-03 | 7 | -6/+17 | |
| | | | | Jeremy. | |||||
* | Don't use static memory, malloc it... | Jeremy Allison | 2002-01-03 | 1 | -2/+12 | |
| | | | | Jeremy. | |||||
* | Fix the fix.... (sigh). | Jeremy Allison | 2002-01-03 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | Ensure modtime is set correctly on destination files in copy command. | Jeremy Allison | 2002-01-03 | 1 | -0/+4 | |
| | | | | Jeremy. | |||||
* | Fixed embarressing 16k strack trashing bug :-(. | Jeremy Allison | 2002-01-03 | 1 | -8/+9 | |
| | | | | Jeremy. | |||||
* | added nTSecurityDescriptor field to host acct dump | Andrew Tridgell | 2002-01-03 | 1 | -1/+3 | |
| | ||||||
* | Update the NT_STATUS -> DOS error table. | Andrew Bartlett | 2002-01-03 | 4 | -410/+435 | |
| | | | | | | | | | | | | | | | | | | | | 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 | |||||
* | Clarify doc for SAFE_FREE. | Martin Pool | 2002-01-03 | 1 | -3/+7 | |
| | ||||||
* | Make a couple more of the warnings also be C comments | Andrew Bartlett | 2002-01-03 | 1 | -2/+2 | |
| | ||||||
* | A few changes to always output the erorr mapping even when the error was | Andrew Bartlett | 2002-01-03 | 1 | -27/+34 | |
| | | | | 'squashed' or the session setup succeeded. (How the latter occurs I don't know). | |||||
* | Workaround some 'smarts' in Win2k. | Andrew Bartlett | 2002-01-03 | 1 | -0/+20 | |
| | | | | | 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. | |||||
* | Re-add bail on failure. | Andrew Bartlett | 2002-01-03 | 1 | -2/+8 | |
| | ||||||
* | Fix talloc msg registration | Martin Pool | 2002-01-03 | 1 | -1/+1 | |
| | ||||||
* | Put a name on lp_talloc pool | Martin Pool | 2002-01-03 | 1 | -1/+1 | |
| | ||||||
* | Make talloctort call talloc_describe_all before exiting | Martin Pool | 2002-01-03 | 1 | -0/+2 | |
| | ||||||
* | Cope nicely with pools with no name. | Martin Pool | 2002-01-03 | 1 | -1/+10 | |
| | ||||||
* | fixed ERRMAPEXTRACT torture to work with win2k | Andrew Tridgell | 2002-01-03 | 1 | -11/+5 | |
| | ||||||
* | smbd children should also register for POOL_USAGE | Martin Pool | 2002-01-03 | 1 | -0/+1 | |
| | ||||||
* | Cleanup format. | Martin Pool | 2002-01-03 | 1 | -1/+1 | |
| | ||||||
* | talloc accounting now includes number of chunks and bytes allocated. | Martin Pool | 2002-01-03 | 1 | -9/+42 | |
| | ||||||
* | Send back talloc allocation information when POOL_USAGE is received. | Martin Pool | 2002-01-03 | 1 | -2/+8 | |
| | ||||||
* | Add talloc_asprintf_append, which grows an existing string buffer to | Martin Pool | 2002-01-03 | 2 | -4/+82 | |
| | | | | | contain new print-formatted information. (Also talloc_vasprintf_append.) Idea borrowed from glib. | |||||
* | smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty | Martin Pool | 2002-01-03 | 2 | -2/+7 | |
| | | | | boring so far. | |||||
* | smbd should register to receive MSG_REQ_POOL_USAGE. Response should | Martin Pool | 2002-01-03 | 4 | -2/+47 | |
| | | | | be information about memory usage, but this is not done yet. | |||||
* | Fixed crash bug in display_print_info_2() | Tim Potter | 2002-01-03 | 1 | -65/+87 | |
| | ||||||
* | Ignore dmalloc.log. | Martin Pool | 2002-01-03 | 1 | -2/+3 | |
| |