summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert to NTSTATUS.Tim Potter2001-08-276-166/+165
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-277-43/+43
|
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-275-53/+902
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-274-51/+32
| | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night
* get rid of compiler warningsHerb Lewis2001-08-241-8/+8
|
* Re-added readbraw call to test with smbtorture. This code not yetJeremy Allison2001-08-241-1/+88
| | | | | tested... Jeremy.
* fixed handling of 139/445 in clientsAndrew Tridgell2001-08-242-5/+3
|
* Fixed debug in cli_establish_connection() - print out the called name onTim Potter2001-08-241-1/+1
| | | | connection failure rather than the calling name.
* Make domain_client_validate return a status code instead of a boolean.Tim Potter2001-08-241-9/+13
|
* fixed shortname length in trans2 listAndrew Tridgell2001-08-241-1/+2
|
* use 32 bit locking if client doesn't do 64 bitAndrew Tridgell2001-08-231-0/+8
|
* better error reporting for servers that don't do port 445Andrew Tridgell2001-08-231-1/+4
|
* added port 445 support to our client codeAndrew Tridgell2001-08-221-5/+19
|
* a fix for directory listing with the dave/thursby clientAndrew Tridgell2001-08-221-1/+1
|
* string terminate in mkdirAndrew Tridgell2001-08-211-1/+1
|
* Added cli_lsa_open_policy2()Tim Potter2001-08-211-0/+58
|
* Distinguish between NT informational and error codes.Tim Potter2001-08-211-4/+10
|
* allow for the NULL in make_nmb_name()Andrew Tridgell2001-08-201-1/+1
|
* a bunch of fixes from the sflight to seattleAndrew Tridgell2001-08-203-9/+11
| | | | | | in particular: - fixed NT status code for a bunch of ops - fixed handling of protocol levels in ms_fnmatch
* Realloc fix.Jeremy Allison2001-08-191-3/+13
| | | | Jeremy.
* Use tparam not tdata when reallocing params to make clearer.Jeremy Allison2001-08-171-12/+15
| | | | Jeremy.
* more useful debug messages and check if the size are non null.Jean-François Micouleau2001-08-171-10/+17
| | | | | | that fix the notification backend channel for spoolss. J.F.
* Fixed crash bug when attempting to list contents of non-existentTim Potter2001-08-121-0/+3
| | | | directory.
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-122-11/+38
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* This patch does a number of things, mostly smaller than they look :-)Andrew Bartlett2001-08-121-0/+363
| | | | | | | | | | | | | | | In particuar, it moves the domain_client_validate stuff out of auth_domain.c to somwhere where they (I hope) they can be shared with winbind better. (This may need some work) The main purpose of this patch was however to improve some of the internal documentation and to correctly place become_root()/unbecome_root() calls within the code. Finally this patch moves some more of auth.c into other files, auth_unix.c in this case. Andrew Bartlett
* - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce2001-08-101-0/+116
| | | | | | | - ported two rpc back from TNG (WINREG: shutdown and abort shutdown) - some optimizations and changed some DEBUG statement in loadparm.c - changed rpcclient a bit moved from non reentrant next_token_nr to next_token - in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
* Debug cleanups.Tim Potter2001-08-101-3/+3
|
* Had the test for cli_is_error() reversed. You idiot Stimpy!Tim Potter2001-08-101-1/+1
|
* Fixes for new client error api.Tim Potter2001-08-101-2/+2
|
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-1013-182/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Changed the order of arguments in make_oem_passwd_hash(). All the otherTim Potter2001-08-102-2/+3
| | | | encryption functions have outputs as the last arguments.
* Factored out common rpc pipe initialisation and shutdown code.Tim Potter2001-08-087-300/+86
|
* Fixed another possible memleak in cli_initialise()Tim Potter2001-08-061-0/+6
|
* Cleaned up error handling in cli_initialise() to fix a memleak found byTim Potter2001-08-061-10/+14
| | | | Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
* Changed lone malloc() call to talloc(). Spotted byTim Potter2001-08-061-1/+1
| | | | Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* Throw out crappy (non-ascii unaware) mbtows stuff and use proper unicodeJeremy Allison2001-07-301-57/+6
| | | | | push calls. If this breaks authentication then good, it needed fixing anyway :-). Jeremy.
* cli_samr_query_dispinfo() can return STATUS_MORE_ENTRIES which isn't anTim Potter2001-07-231-1/+4
| | | | entry.
* Added a warning debug if cli_samr_lookup_rids is called with more than 1000Tim Potter2001-07-231-1/+7
| | | | rids as this seems to crash LSASS.EXE more often than not.
* In cli_lsa_lookup_sids() don't append a separator character between domainTim Potter2001-07-201-1/+2
| | | | and name if there is no name.
* Changed the cli_lsa_lookup_sids() function to unpack the domain and user orTim Potter2001-07-201-3/+7
| | | | group using rpcstr_pull_unistr2_fstring rather than pull_ascii_fstring (!!)
* formatting fixAndrew Tridgell2001-07-081-1/+1
|
* fixed some unicode and LANMAN2 bugs in trans2 find firstAndrew Tridgell2001-07-071-103/+77
|
* Add backend encryption support for NTLMv2.Andrew Bartlett2001-07-072-5/+100
| | | | | | | | | | | | The leg-work for this was done by the folks at samba-tng.org, I'm just bringing it accross to HEAD. The MD5 implementation is seperatly derived, and does not have the copyright problems that the one in TNG has. Also add const to a few places where it makes sence. Andrew Bartlett
* Renamed formal parameter fd to fnum because we're talking about SMB fileTim Potter2001-07-051-10/+7
| | | | handles, not unix ones.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-044-9/+9
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-0415-266/+94
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Fixed incorrect comment for cli_NetServerEnum()Tim Potter2001-07-031-4/+4
|
* Insure caught the fact that PTRDIFFs were being done between two unrelatedJeremy Allison2001-07-022-5/+17
| | | | | pointers. Jeremy.
* cli_read() was reading too many bytes.Andrew Tridgell2001-07-011-2/+1
|