summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
1998-11-13Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1-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. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
1998-11-13include/smb.h: Re-added zero pointer protection to ZERO_STRUCTP.Jeremy Allison1-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. (This used to be commit b62f008974c96e0302d6c146cf49bc2045bef005)
1998-11-12security descriptors.Luke Leighton2-26/+39
kanji const char* warnings. (This used to be commit 06abdfd68e1d7fa8741afc3f56ec7a13b5fa4ccc)
1998-11-12include/kanji.h include/proto.h lib/kanji.c: Added const parameters in ↵Jeremy Allison1-34/+34
string wrappers. printing/printing.c: Added OSF1 fix. Jeremy. (This used to be commit 9d05d80f811426f83a975d28e64c5d6b10574c25)
1998-11-12extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1-0/+53
instead of opening pipes and other horrible stuff. (This used to be commit 49bf19710345a59a2d17cd449be1a132885ed821)
1998-11-12largely rewrote smbpasswd so that the code is understandable. ThisAndrew Tridgell3-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. (This used to be commit 713864dd0322ae2ae2d83e333d85be35a7eed4ec)
1998-11-11Fix from richard.kettlewell@kewill.com for leapyear bugs.Jeremy Allison1-1/+5
Jeremy. (This used to be commit 751856a09d4fa112ce2fedd963b42ae5f63c89c1)
1998-11-11changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton2-13/+86
sorted lookupsids command (This used to be commit 13a0ee851fe0ce9acddfe57f9aba19fc78085c39)
1998-11-10rpcclient registry commands.Luke Leighton3-37/+156
(This used to be commit 36fcb4a6e643a05d06a2a273d74318fee7f2c647)
1998-11-10util functions split into relevant modules, first pass.Luke Leighton1-1992/+99
(This used to be commit d448906e68cec5019fa83f7d31b862efff41e2da)
1998-11-09Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1-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. (This used to be commit bacd3e9d2036a804e73644a28fc498f229c8446c)
1998-11-09split socket util functions into util_sock.c. util.c NOT committedLuke Leighton1-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 (This used to be commit 373f60256fc6dc800f73d88ea9a302933a4a3246)
1998-11-06lib/charcnv.c: Improved debug comment.Jeremy Allison1-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. (This used to be commit b5981c0149ad8c6f13ea87db450080616538b5d5)
1998-11-05util_file.c:Luke Leighton2-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... (This used to be commit 71dfaa307ec954041c09ed157594a46503fb6db8)
1998-11-05split string and unicode string routines into these files.Luke Leighton2-0/+1162
these are *not* going to be added into the Makefile.in yet so they still also exist in util.c. (This used to be commit 3f5feda6749dace6bc51fb0e02b16d2b72a930b8)
1998-10-31added copyright notice from Patrick PowellAndrew Tridgell1-8/+5
(This used to be commit d398ae487a3edbfefb980fe0abddca1e95f6f3d5)
1998-10-28Just moving things around a bit.Christopher R. Hertel1-328/+0
Chris -)----- (This used to be commit a1aa808d5b85d150ec21d09e301aa0211658e021)
1998-10-28Fixes to allow this to pass SGI compiler in -fullwarn mode (with oneJeremy Allison1-9/+9
annoying exception I'm still looking at :-). Jeremy. (This used to be commit 9cade656e2db743cb6ee67bbb8b0f50e8e4c39f9)
1998-10-28Quick fixes to fix the broken tree. Needed for my morning compiles.Jeremy Allison1-2/+8
Chris - feel free to fix these things differently if these fixes don't work for you. Jeremy. (This used to be commit 1f225abfbe6b021b589711c2e4c599a63050c5b2)
1998-10-28fixed problem with snprintf.c and mkprotoAndrew Tridgell1-4/+4
(This used to be commit 99430ce899c02b95ab3c577afff7f28c6d5c6c45)
1998-10-28use abort() instead of exit() in smb_panic()Andrew Tridgell1-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) (This used to be commit 7a50ca81a5842f7139e67c0ff9de79518599f445)
1998-10-28fixed handling of %.0f in replacement snprintf.cAndrew Tridgell1-12/+28
(This used to be commit 177b7b6b190c78ab59e19187d3221d23bb280911)
1998-10-27add ifdef for "long double"Andrew Tridgell1-12/+18
(This used to be commit ae1888529b00f1a98d2b76fec7f19684efca90c7)
1998-10-26added a vsnprintf() implementation from cvslock. See the notes on theAndrew Tridgell2-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. (This used to be commit e2cb50af45be6683d02ab48a6648816ee3d52ab1)
1998-10-26Here is the simple debug parser and the debug2html converter. Still to do:Christopher R. Hertel1-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 -)----- (This used to be commit fae161b9051c3ea8aa129bdb3df11d215007723d)
1998-10-23include/smb.h: Added #defines for lots of things - makes our code a *lot* ↵Jeremy Allison1-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. (This used to be commit 8e1ce307bd6a9056b4a95fe6f52ff42dc6e03a08)
1998-10-22rpctorture commandLuke Leighton1-0/+5
(This used to be commit b4ae65e2d0582274d67d02ea190f6d3d83b48594)
1998-10-21domain aliases added a bit better: does local aliases if you queryLuke Leighton1-1/+22
for sid S-1-5-20 and does (nothing at the moment) if you query for your own sid. (This used to be commit da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6)
1998-10-21fixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh).Luke Leighton1-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. (This used to be commit c101113ec20ed0ba633e78e4ee45596cdccaf1b5)
1998-10-20Fixed bug found by John Blair where trim_string wasn'tJeremy Allison2-193/+303
correctly trimming trailing multibyte code page strings. Jeremy. (This used to be commit dbdbce29f56d03f6abf1ee3d96ca2032e688dcbc)
1998-10-20some quite important bug-fixes i missed because i transferred the wrongLuke Leighton2-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... (This used to be commit 05a297e3a98c14360782af4ad0d851638fb5da9a)
1998-10-20removed setenv(), replaced with smbw_setenv()Andrew Tridgell1-17/+0
(This used to be commit 72bce217ef474f056d8f6675667ec78d1772ff37)
1998-10-19- dce/rpc codeLuke Leighton1-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. (This used to be commit fcfb40d2b0fc565ee4f66b3a3761c246366a2ef3)
1998-10-19removed an incorrect commentAndrew Tridgell1-4/+0
(This used to be commit 5abdb70e2a5cda2df444dfe5a9cdcb751be75ca8)
1998-10-18Fixed sys_lseek and seek_file calls so all returnsJeremy Allison1-2/+3
are *checked* :-). Jeremy. (This used to be commit b8b781191dd7d28944d87eec5fa0fbef798e289b)
1998-10-17Small tidyups for gcc in 'preen' mode....Jeremy Allison4-6/+10
Jeremy. (This used to be commit 60dc1a4a00a22088d33369588b0d5eb292cf084a)
1998-10-16Re-added code to tell the user how many open files theyJeremy Allison1-5/+7
have. Needed for server diagnosis purposes... Jeremy. (This used to be commit 04d79a9ae515e7259277f9980552f1d61df239f1)
1998-10-15second implementation of crc32, used with permission of francesco ferraraLuke Leighton1-4/+2
<francesco@aerre.it>. thanks! http://www.aerre.it/francesco (This used to be commit c48ee2bfbaec8a29b6c5da2a4e3d28937c9fb8e2)
1998-10-14more warnings...Luke Leighton1-1/+1
(This used to be commit 8b9c0bad889d4f26987d87c54b4d8bf102af1744)
1998-10-14dce/rpcLuke Leighton1-58/+58
(This used to be commit 69f5f9f88935de1f63ffc9aa19c0629b395e66e6)
1998-10-09signed / unsigned issues spotted by herbLuke Leighton1-2/+2
(This used to be commit 0b90442021aa3adb5ae7f09c53c9e54c7655d8c5)
1998-10-08dce/rpcLuke Leighton1-5/+8
(This used to be commit 62fdeef1b79c5c4c9bf0e860881651711bb80b9a)
1998-10-08added "permission obtained from John Erickson <jerickson@ddj.com> ...."Luke Leighton1-0/+3
(This used to be commit 0067e45d4194bd14549aac6e8f40a2ef19305716)
1998-10-06crc32 algorithm. obtained from dr dobb's journalLuke Leighton1-0/+70
http://www.ddj.com/ftp/1992/1992.05/crcman.zip. copyright 1992 mark r nelson. (This used to be commit 73667141af2f707fe306a0fda4853d160e55bd97)
1998-10-06remove unused arguments from some static functions.Andrew Tridgell1-4/+4
(This used to be commit a9e0e5895a671910f315d9e45eca4fe419d815e5)
1998-10-05- fixed cast warningsAndrew Tridgell2-11/+15
- ignore *.po32 files (This used to be commit 469474803d39ceec7155792d364787318708fb91)
1998-10-05fixed typo in getgroups codeAndrew Tridgell1-1/+3
(This used to be commit 046e8a50219ca69ab326fa672c5fcb1ab3689b3b)
1998-10-05added a function set_maxfiles() to set our file rlimit to the maxAndrew Tridgell1-0/+23
possible and return the max. (This used to be commit 7a7b5ee1689b6be57752d176c7b77a2f1b453486)
1998-10-04more solaris 2.5 fixups. It now seems to be working pretty well.Andrew Tridgell2-0/+19
(This used to be commit c4e450817886b40474cebdfc50c0c16fb4646baf)
1998-10-04started basic support for solaris 2.5 in smbwrapper.Andrew Tridgell1-1/+1
(This used to be commit e5c7cabae4826bde819b94a48bc4674dcd69da21)