summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* global change from samba.anu.edu.au to samba.orgAndrew Tridgell1998-11-212-2/+2
|
* Fixed problem with HAVE_NETGROUP being used on platformsJeremy Allison1998-11-181-12/+14
| | | | | that cannot support it. Jeremy.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-1711-60/+116
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* - group database API. oops and oh dear, the threat has been carried out:Luke Leighton1998-11-173-6/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the pre-alpha "domain group" etc parameters have disappeared. - interactive debug detection - re-added mem_man (andrew's memory management, detects memory corruption) - american spellings of "initialise" replaced with english spelling of "initialise". - started on "lookup_name()" and "lookup_sid()" functions. proper ones. - moved lots of functions around. created some modules of commonly used code. e.g the password file locking code, which is used in groupfile.c and aliasfile.c and smbpass.c - moved RID_TYPE_MASK up another bit. this is really unfortunate, but there is no other "fast" way to identify users from groups from aliases. i do not believe that this code saves us anything (the multipliers) and puts us at a disadvantage (reduces the useable rid space). the designers of NT aren't silly: if they can get away with a user- interface-speed LsaLookupNames / LsaLookupSids, then so can we. i spoke with isaac at the cifs conference, the only time for example that they do a security context check is on file create. certainly not on individual file reads / writes, which would drastically hit their performance and ours, too. - renamed myworkgroup to global_sam_name, amongst other things, when used in the rpc code. there is also a global_member_name, as we are always responsible for a SAM database, the scope of which is limited by the role of the machine (e.g if a member of a workgroup, your SAM is for _local_ logins only, and its name is the name of your server. you even still have a SID. see LsaQueryInfoPolicy, levels 3 and 5). - updated functionality of groupname.c to be able to cope with names like DOMAIN\group and SERVER\alias. used this code to be able to do aliases as well as groups. this code may actually be better off being used in username mapping, too. - created a connect to serverlist function in clientgen.c and used it in password.c - initialisation in server.c depends on the role of the server. well, it does now. - rpctorture. smbtorture. EXERCISE EXTREME CAUTION.
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-1/+1
| | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER.
* include/smb.h: Re-added zero pointer protection to ZERO_STRUCTP.Jeremy Allison1998-11-131-2/+2
| | | | | | | lib/util_sock.c: Added strerror() calls to getpeername failures (which seem to be giving IRIX trouble at the moment). rpc_parse/parse_sec.c: Changed use of ZERO_STRUCTPN to ZERO_STRUCTP which again does zero pointer protection. smbd/quotas.c: Fixed typo. Jeremy.
* security descriptors.Luke Leighton1998-11-122-26/+39
| | | | kanji const char* warnings.
* include/kanji.h include/proto.h lib/kanji.c: Added const parameters in ↵Jeremy Allison1998-11-121-34/+34
| | | | | | | string wrappers. printing/printing.c: Added OSF1 fix. Jeremy.
* extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1998-11-121-0/+53
| | | | instead of opening pipes and other horrible stuff.
* largely rewrote smbpasswd so that the code is understandable. ThisAndrew Tridgell1998-11-123-6/+6
| | | | | | | | | | | | | should allow us to call a function in swat rather than piping to smbpasswd. while doing this I also fixed quite a few "const char *" versus "char *" issues that cropped up while using const to track down bugs in the code. This led to changes in several generic functions. The smbpasswd changes should be correct but they have not been extensively tested. At least if I have introduced bugs then we should be able to fix them more easily than before.
* Fix from richard.kettlewell@kewill.com for leapyear bugs.Jeremy Allison1998-11-111-1/+5
| | | | Jeremy.
* changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1998-11-112-13/+86
| | | | sorted lookupsids command
* rpcclient registry commands.Luke Leighton1998-11-103-37/+156
|
* util functions split into relevant modules, first pass.Luke Leighton1998-11-101-1992/+99
|
* Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1998-11-091-1/+1
| | | | | | | | | | | | | client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy.
* split socket util functions into util_sock.c. util.c NOT committedLuke Leighton1998-11-091-0/+851
| | | | | | | | | and util_sock.c NOT included in Makefile.in. registry commands added to rpcclient. waiting for 2_0_0 split before committing modified files. these files are new modules, and are not referenced in the Makefile.in
* lib/charcnv.c: Improved debug comment.Jeremy Allison1998-11-061-1/+1
| | | | | | | | | | | libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast and got a reply. smbd/dfree.c: smbd/noquotas.c: smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota code. utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat. Jeremy.
* util_file.c:Luke Leighton1998-11-052-0/+507
| | | | | | | | | split some routines out of various places (e.g smbpass.c) because they now get used in more than one location. util_sid.c: need sid_copy, compare, split rid, append rid etc etc...
* split string and unicode string routines into these files.Luke Leighton1998-11-052-0/+1162
| | | | | these are *not* going to be added into the Makefile.in yet so they still also exist in util.c.
* added copyright notice from Patrick PowellAndrew Tridgell1998-10-311-8/+5
|
* Just moving things around a bit.Christopher R. Hertel1998-10-281-328/+0
| | | | Chris -)-----
* Fixes to allow this to pass SGI compiler in -fullwarn mode (with oneJeremy Allison1998-10-281-9/+9
| | | | | annoying exception I'm still looking at :-). Jeremy.
* Quick fixes to fix the broken tree. Needed for my morning compiles.Jeremy Allison1998-10-281-2/+8
| | | | | | Chris - feel free to fix these things differently if these fixes don't work for you. Jeremy.
* fixed problem with snprintf.c and mkprotoAndrew Tridgell1998-10-281-4/+4
|
* use abort() instead of exit() in smb_panic()Andrew Tridgell1998-10-281-1/+1
| | | | | the reason we don't return() here is that smb_panic() is used not just for segv but also for detected errors (such as buffer overflows)
* fixed handling of %.0f in replacement snprintf.cAndrew Tridgell1998-10-281-12/+28
|
* add ifdef for "long double"Andrew Tridgell1998-10-271-12/+18
|
* added a vsnprintf() implementation from cvslock. See the notes on theAndrew Tridgell1998-10-262-45/+801
| | | | | | | | license at the top of lib/snprintf.c I've always been slightly uneasy about our half-baked vslprintf() implementation and the risks on platforms that don't have vsnprintf() so when I saw this code in another GPLd package I wanted it for Samba.
* Here is the simple debug parser and the debug2html converter. Still to do:Christopher R. Hertel1998-10-261-0/+322
| | | | | | | | | | | * Debug message filtering. * I need to add all this to Makefile.in (If it looks at all strange I'll ask for help.) If you want to compile debug2html, you'll need to do it by hand until I make the changes to Makefile.in. Sorry. Chris -)-----
* include/smb.h: Added #defines for lots of things - makes our code a *lot* ↵Jeremy Allison1998-10-231-1/+1
| | | | | | | | | | | | | easier to read. lib/util.c: Fixed Luke's set_first_token() function - should return void. smbd/close.c: Move delete_on_close into file_fd_struct structure. smbd/ipc.c: Changed local_machine back to fstring. smbd/nttrans.c: Use defines for mapping share modes. smbd/open.c: Move delete_on_close into file_fd_struct structure, added code for ALLOW_SHARE_DELETE. smbd/reply.c: Use defines for mapping share modes. smbd/trans2.c: Move delete_on_close into file_fd_struct structure. Jeremy.
* rpctorture commandLuke Leighton1998-10-221-0/+5
|
* domain aliases added a bit better: does local aliases if you queryLuke Leighton1998-10-211-1/+22
| | | | | for sid S-1-5-20 and does (nothing at the moment) if you query for your own sid.
* fixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh).Luke Leighton1998-10-211-1/+1
| | | | | | put unicode strings after SAMLOGON query regardless of whether it's an NT mailslot or a non-NT mailslot, after having observed this behaviour out of NT machines.
* Fixed bug found by John Blair where trim_string wasn'tJeremy Allison1998-10-202-193/+303
| | | | | correctly trimming trailing multibyte code page strings. Jeremy.
* some quite important bug-fixes i missed because i transferred the wrongLuke Leighton1998-10-202-5/+7
| | | | | | | | | | | | | | smb.tgz file from my portable. particularly the call to mem_data followed by a realloc of that data in cli_pipe.c's rpc_read() function. smbd responses now use p->rdata_i which is a faked-up pointer into p->rdata's response data. rdata can be very long; rdata_i is limited to point to no more than max_tsize - 0x18 in length. this will make it an almost trivial task to add the encrypted rpc headers after rdata_i, and mem_buf_copy will cope admirably with rhdr chained to rdata_i chained to auth_verifier etc etc...
* removed setenv(), replaced with smbw_setenv()Andrew Tridgell1998-10-201-17/+0
|
* - dce/rpc codeLuke Leighton1998-10-191-16/+4
| | | | | | | | | | | | | | | | | | | - removed debug info in struni2 and unistr2 (security risk) - rpc_pipe function was getting pointer to data then calling realloc *dur* - password check function, the start of "credential checking", user, wks, domain, pass as the credentials (not just user,pass which is incorrect in a domain context) - cli_write needs to return ssize_t not size_t, because total can be -1 if the write fails. - fixed signed / unsigned warnings (how come i don't get those any more when i compile with gcc???) - nt password change added in smbd. yes, jeremy, i verified that the SMBtrans2 version still works.
* removed an incorrect commentAndrew Tridgell1998-10-191-4/+0
|
* Fixed sys_lseek and seek_file calls so all returnsJeremy Allison1998-10-181-2/+3
| | | | | are *checked* :-). Jeremy.
* Small tidyups for gcc in 'preen' mode....Jeremy Allison1998-10-174-6/+10
| | | | Jeremy.
* Re-added code to tell the user how many open files theyJeremy Allison1998-10-161-5/+7
| | | | | have. Needed for server diagnosis purposes... Jeremy.
* second implementation of crc32, used with permission of francesco ferraraLuke Leighton1998-10-151-4/+2
| | | | | <francesco@aerre.it>. thanks! http://www.aerre.it/francesco
* more warnings...Luke Leighton1998-10-141-1/+1
|
* dce/rpcLuke Leighton1998-10-141-58/+58
|
* signed / unsigned issues spotted by herbLuke Leighton1998-10-091-2/+2
|
* dce/rpcLuke Leighton1998-10-081-5/+8
|
* added "permission obtained from John Erickson <jerickson@ddj.com> ...."Luke Leighton1998-10-081-0/+3
|
* crc32 algorithm. obtained from dr dobb's journalLuke Leighton1998-10-061-0/+70
| | | | | http://www.ddj.com/ftp/1992/1992.05/crcman.zip. copyright 1992 mark r nelson.
* remove unused arguments from some static functions.Andrew Tridgell1998-10-061-4/+4
|
* - fixed cast warningsAndrew Tridgell1998-10-052-11/+15
| | | | - ignore *.po32 files