summaryrefslogtreecommitdiffstats
path: root/source/libsmb/nterr.c
Commit message (Collapse)AuthorAgeFilesLines
* adding more descriptions for nt status codesGerald Carter2003-02-121-1/+66
|
* Fixed typo.Tim Potter2003-01-231-1/+1
|
* fix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLEGerald Carter2003-01-221-0/+1
|
* BIG patch...Andrew Bartlett2003-01-021-4/+4
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* app_head merge for get_friendly_nt_err()Gerald Carter2002-12-171-2/+2
|
* cleaning up some friendly error messagesGerald Carter2002-12-041-22/+26
|
* get_nt_error_msg from APPLIANCE_HEAD is called nt_errstr in HEAD. This ↵Jim McDonough2002-11-211-1/+1
| | | | should fix the build.
* merge get_friendly_nt_err_msg() from app_headGerald Carter2002-11-211-0/+50
|
* Add a dash of static.Andrew Bartlett2002-08-311-1/+1
|
* A few more trusted domains updates from mimir.Andrew Bartlett2002-05-171-0/+1
| | | | | | | I think we may still need to look at our server enumeration code, but other than that, its much better in the tree than out. Andrew Bartlett
* Added error string for STATUS_SOME_UNMAPPEDTim Potter2002-04-141-0/+1
|
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-1/+1
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Add a function to convert 'NT_STATUS...' strings back into their actual errorAndrew Bartlett2002-01-011-0/+16
| | | | | | code. Andrew Bartlett
* Add a new torture test to extract a NT->DOS error map from an NT member of aAndrew Bartlett2001-11-251-0/+21
| | | | | | | | | samba domain. The PDC must be running a special authenticaion module that spits out NT errors based on username. Andrew Bartlett
* Finally worked out why a enumerate trusted domains was returning aTim Potter2001-11-231-2/+3
| | | | | | | | | | NT_STATUS_UNABLE_TO_FREE_VM error. This error code was mis-defined as 0x8000001a instead of 0xc000001a. The former is actually a NT_STATUS_NO_MORE_ENTRIES warning which is what we see in the status code. Removed the & 0xffffff from the loop in get_nt_error_msg() as all the error constants now have the correct high bits set.
* This patch applied, except without the structure changes to nmblib.cAndrew Bartlett2001-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Andrew Bartlett. From kai@cmail.ru Mon Oct 29 18:50:42 2001 Date: Fri, 19 Oct 2001 17:26:06 +0300 From: Andrew V. Samoilov <kai@cmail.ru> To: samba-technical@lists.samba.org Subject: [patch]: makes some arrays const to be shared between processes Hi! This patch makes some arrays const. So these arrays go to text/rodata segment and are shared between all of the processes which use shared library with these arrays. Regards, Andrew V. Samoilov. P.S. Please cc your answer to kai@cmail.ru, I don't subscribed to this list. ChangeLog: * cliconnect.c (prots): Make const. * clierror.c (rap_errmap): Likewise. * nmblib.c (nmb_header_opcode_names): Likewise. (lookup_opcode_name): Make opcode_namep const. Eliminate i. * nterr.c (nt_err_code_struct): Typedef const. * smberr.c (err_code_struct): Make const. (err_classes): Likewise.
* Added a string for NT_STATUS_OK, m'kay?Tim Potter2001-09-111-0/+1
|
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-7/+6
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-101-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | out the error handling into a bunch of separate functions rather than all being handled in one big function. Fetch error codes from the last received packet: void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num); uint32 cli_nt_error(struct cli_state *); Convert errors to UNIX errno values: int cli_errno_from_dos(uint8 eclass, uint32 num); int cli_errno_from_nt(uint32 status); int cli_errno(struct cli_state *cli); Detect different kinds of errors: BOOL cli_is_dos_error(struct cli_state *cli); BOOL cli_is_nt_error(struct cli_state *cli); BOOL cli_is_error(struct cli_state *cli); This also means we now support CAP_STATUS32 as we can decode and understand NT errors instead of just DOS errors. Yay! Ported a whole bunch of files in libsmb to use this new API instead of the just the DOS error.
* Put an 0x in front of a hex number.Tim Potter2001-06-261-1/+1
|
* Removed compiler warning.Tim Potter2000-12-081-1/+2
|
* first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter2000-07-031-6/+16
| | | | | | | | | | semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. These files changed only with the addition of some support functions from TNG --jerry
* more mergingAndrew Tridgell2000-05-101-3/+1
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-251-1/+0
|
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-14/+6
|
* safe string error reporting functions (found a potential buffer overflowLuke Leighton1999-06-241-6/+13
| | | | of a pstrcpy into an fstring).
* Adding scheduler control pipe (\atsvc), client-side routines, and rpcclientMatthew Chapman1999-04-231-1/+2
| | | | | command "at" (compatible with NT's "at" command - see rpcclient commit) - useful for remote NT administration.
* This is a security audit change of the main source.Jeremy Allison1998-05-121-2/+2
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* This is the checkin that adds the security=domain functionality.Jeremy Allison1998-04-291-1/+3
| | | | | | | | | | | WARNING - so far this has only been tested against a Samba PDC (still waiting for IS to add me the machine accounts :-). Still missing is the code in smbpasswd that will add a machine account password and change it on the domain controller, but this is not hard, and I will check it in soon. Jeremy.
* We will need this new nterr.c for the DOMAIN_CLIENT code.Jeremy Allison1998-04-231-3/+30
| | | | Jeremy.
* Rolled back tree state to 11:59pm 8th November 1997 EST toJeremy Allison1997-11-101-28/+2
| | | | | remove problems. Jeremy
* attempting to mark up 32 bit error codes, needed for NT domains.Luke Leighton1997-11-091-2/+28
| | | | | | | | | | | | separated out smb server-mode password validation into a separate file. added called and calling netbios names to client gen state: referenced section in rfc1002.txt. created workstation trust account checking code in ntclient.c there might be a bug in reply_session_setup_andX. i indented and added { } around single-line if statements: the lm password checking code now doesn't look right (around the GUEST_SESSSETUP bits). *no code semantics have been changed by the indentation process*.
* nterr.c :Luke Leighton1997-10-241-0/+514
added a structure that wraps nt errors as strings and enums, so we can do a smb_nt_error() function. Makefile ntclient.c : added ntclient.c, broken out nt domain stuff into a separate file. getting fed up of compile-times and size of client.c. fixed the do_lsa_req_chal() function. made it read the response, and return the challenge credentials received from the server. next stop: do_lsa_auth_2(). client.c : removed nt domain logon functions into a separate file. pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c : i'd broken the offsets of the RPC_HDR while trying to sort out the nt client code. fixed it again. added some robustness stuff. util.c : the unistrn2() function was null-terminating the string at one character too many.