summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* fixed typo in getgroups codeAndrew Tridgell1998-10-051-1/+3
|
* added a function set_maxfiles() to set our file rlimit to the maxAndrew Tridgell1998-10-051-0/+23
| | | | possible and return the max.
* more solaris 2.5 fixups. It now seems to be working pretty well.Andrew Tridgell1998-10-042-0/+19
|
* started basic support for solaris 2.5 in smbwrapper.Andrew Tridgell1998-10-041-1/+1
|
* use *SMBSERVER convention in smbwrapper to allow us to connect toAndrew Tridgell1998-10-041-1/+1
| | | | servers that we don't know the netbios name of.
* added support for printing via smbwrapperAndrew Tridgell1998-10-041-1/+11
| | | | | | You can print using "cp filename /smb/SERVER/PRINTER/jobname" You can list the current printqueue using ls
* use dummy file descriptors opened on /dev/null to ensure that the smbwAndrew Tridgell1998-10-041-1/+1
| | | | file descriptor allocation order is identical to the kernels.
* added simple device/inode number support based on a checksum of theAndrew Tridgell1998-10-031-1/+1
| | | | filename
* fixed a bug in name_len() (thanks to kooros@kooros.netrack.net)Andrew Tridgell1998-10-031-7/+7
|
* added unlink() and rename() support to smbwrapperAndrew Tridgell1998-10-031-1/+1
|
* - ignore *.p filesAndrew Tridgell1998-10-032-1/+2
| | | | - make msleep() non-static
* added sys_getwd()Andrew Tridgell1998-10-021-3/+13
|
* use sys_stat() not file_exist() for codepages. (we don't want dosAndrew Tridgell1998-10-021-2/+2
| | | | translation!)
* Got very strict about the differences and uses ofJeremy Allison1998-09-292-6/+58
| | | | | | | uid_t, gid_t and vuid. Added sys_getgroups() to get around the int * return problem. Set correct datatypes for all uid, gid and vuid variables. Jeremy.
* get away with dummy and .dummy filesAlexandre Oliva1998-09-291-1/+0
|
* got rid of the memcpy() prototype and used includes.h instead.Andrew Tridgell1998-09-291-3/+1
| | | | gcc has a built-in memcpy which conflicts with the prototype.
* Fixed problems found in lint pass over the old code by <cpeterso@microsoft.com>.Jeremy Allison1998-09-282-4/+9
| | | | | These were the problems that still existed in the 2.0 branch. Jeremy.
* Changes to test in configure if capabilities are enabled on a system.Jeremy Allison1998-09-285-5/+10
| | | | | | | | | | Changes to get Samba to compile cleanly with the IRIX compiler with the options : -fullwarn -woff 1209,1174 (the -woff options are to turn off warnings about unused function parameters and controlling loop expressions being constants). Split prototype generation as we hit a limit in IRIX nawk. Removed "." code in smbd/filename.c (yet again :-). Jeremy.
* automated generation of .dummy files for each subdirectory;Alexandre Oliva1998-09-281-1/+0
| | | | | dummy.in files are no longer needed, and new directories will be taken care of automatically, at configure (or config.status --recheck) time
* Makefile.in: Fixed bug with continuation line causing proto to fail.Jeremy Allison1998-09-254-2/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added $(PROGS) $(SPROGS) as targets for make clean. acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES. configure.in: Added sys/capability.h header check. Added function checks for srandom random srand rand. Added HAVE_IRIX_SPECIFIC_CAPABILITIES test. includes.h: Added #include <sys/capability.h>. ntdomain.h: Moved struct acct_info into here from smb.h smb.h: Added KERNEL_OPLOCK_CAPABILITY define. Moved enum action_type into rpcclient.h Moved struct cli_state into client.h Moved struct nt_client_info, struct tar_client_info, struct client_info into rpcclient.h lib/genrand.c: Changed to use sys_random() & friends. lib/smbrun.c: Lose capabilities after fork. lib/system.c: Added set_process_capability(), set_inherited_process_capability() sys_random(), sys_srandom(). lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an 32 bit mounted NFS filesystem. nmbd/nmbd.c: Changed to use sys_random() & friends. nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends. passdb/ldap.c: Missed one pdb_encode_acct_ctrl call. passdb/passdb.c: Changed to Ander's code for ' ' characters. passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ. script/mkproto.awk: Added 'long' to prototypes. smbd/chgpasswd.c: Lose capabilities after fork. smbd/open.c: Do the mmap *after* the kernel oplock. smbd/oplock.c: Removed stub code from kernel oplock path. Added set_process_capability(), set_inherited_process_capability() calls. smbd/reply.c: Initialize count = 0, offset = 0. smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls. tests/summary.c: Ensure we have RANDOM or RAND. utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ. utils/torture.c: Changed to use sys_random() & friends. Jeremy.
* added in samr commands. assistance in returning the missing functions,Luke Leighton1998-09-251-0/+12
| | | | automatically removed because they were "unused", would be appreciated.
* added rpcclient programLuke Leighton1998-09-251-0/+40
|
* First cut at kernel oplocks. This should have no effect unless runninJeremy Allison1998-09-231-218/+0
| | | | | | | | | on a machine that supports them in autoconf. Move various functions out of lib/util.c into smbd/process.c and smbd/oplock.c where they belong. Jeremy.
* major autoconf clean-upAlexandre Oliva1998-09-212-0/+2
| | | | fix problems in builds with srcdir!=builddir
* Remove some byte-copying code in unix_format() that did nothing exceptJeremy Allison1998-09-191-8/+0
| | | | | | slow down my benchmark :-). Jeremy.
* got rid of SMB_STRUCT_STATVFS. I don't think we should be definingAndrew Tridgell1998-09-181-15/+0
| | | | structures that only apply on some platforms.
* got rid of some #ifdef LARGE_XXXX stuff and got rid of non-portable LLAndrew Tridgell1998-09-181-15/+4
| | | | suffix from some constants.
* include/includes.h:Jeremy Allison1998-09-181-1/+3
| | | | | | | lib/system.c: Can't assume every system has a statvfs varient. Return -1 for those that don't. smbd/reply.c: Fixed printf warning. Jeremy.
* configure configure.in: Added checks for statvfs64. Last bit of 64 bit ↵Jeremy Allison1998-09-173-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | widening (I hope :-). include/config.h.in: Added #undef STAT_STATVFS64. include/includes.h: Added SMB_STRUCT_STATVFS type, Changed SMB_BIG_INTEGER to SMB_BIG_UINT and SMB_BIG_INT types. include/smb.h: Added flag defines from CIFS spec. lib/debug.c: Fixed one more mode_t issue. lib/system.c: Added sys_statvfs wrapper. lib/util.c: Changed trim_string to use size_t. param/loadparm.c: Moved "blocking locks" into locking section. Alphabetised locking options. Question - shuld we do this for all options ? passdb/ldap.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/nispass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/smbpass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. smbd/dfree.c: Changed to use 64 bit types if available. Moved to use unsigned types. smbd/dosmode.c: Fixed one more mode_t issue. smbd/negprot.c: Changed literals to be FLAG_ #defines. smbd/nttrans.c: Removed dead code. smbd/open.c: Changed disk_free call. smbd/process.c: Changed literals to be FLAG_ #defines. smbd/reply.c: Changed disk_free call. smbd/trans2.c: Fixed but in SMB_QUERY_FS_VOLUME_INFO call. Was using UNICODE - should use ascii. tests/summary.c: Added STAT_STATVFS64 check. Jeremy.
* configure configure.in: Added tests for fseek64 and ftell64.Jeremy Allison1998-09-172-4/+30
| | | | | | | | | | | | | | | | | | | | | | | config.h.in: Added fseek64 and ftell64. includes.h: Added definition of SMB_BIG_INTEGER. smb.h: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER. access.c: Tidyup of dbug statement. system.c: Added sys_fseek and sys_ftell. Changed mode calls to use mode_t. asyncdns.c: Tidyup of comment. loadparm.c: Tidyup of set_default_server_announce_type() function definition. ldap.c: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER. nispass.c: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER. smbpass.c: Changed (*getsmbpwpos) and (*setsmbpwpos) to use SMB_BIG_INTEGER. smbpassfile.c: Use sys_fseek(). chgpasswd.c: Tidyup of debug statement. dosmode.c: Changed mode calls to use mode_t. ipc.c: Removal of dead code. nttrans.c: Changed mode calls to use mode_t. open.c: Changed mode calls to use mode_t. pipes.c: Removal of dead code. reply.c: Removal of dead code. trans2.c: Removal of dead code. Changed mode calls to use mode_t. Jeremy.