summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed vi on smbwrappper (it was a problem in cli_read())Andrew Tridgell1998-10-031-2/+2
|
* added simple device/inode number support based on a checksum of theAndrew Tridgell1998-10-031-2/+2
| | | | filename
* added lseek() support for directoriesAndrew Tridgell1998-10-031-1/+1
|
* updated prototypesAndrew Tridgell1998-10-031-2/+2
|
* define O_ACCMODE if not definedAndrew Tridgell1998-10-031-0/+4
|
* added unlink() and rename() support to smbwrapperAndrew Tridgell1998-10-031-3/+3
|
* updated prototypesAndrew Tridgell1998-10-031-3/+7
|
* added capabilities ab win95 fields to client structure. Used forAndrew Tridgell1998-10-031-0/+2
| | | | detecting win95 server for bug handling
* Makefile.in :Luke Leighton1998-10-021-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added srvsvc client files clientgen.c : - replaced cli_error(cli, int *cls, int *err) with cli_error(cli, uint8 cls, uint32 *err). this version detects 32 bit status messages. the DOS error "MORE_DATA", the equivalent of the 32 bit *warning* 0x8000 0005 (STATUS_BUFFER_OVERFLOW), was being processed as an error, terminating the cli_receive_trans() call. cli_pipe.c : - replaced calls that had been incorrectly modified from 32 bit warnings (0x8000 0005 - STATUS_BUFFER_OVERFLOW) to 8 bit DOS errors (0x01 0xEA - MORE_DATA). the use of the old version of cli_error (DOS only) instead of the new one (DOS and 32 bit) caused the dce/rpc client code to fail. - replaced 2 space indentation with tab indentation in all functions. cli_srvsvc.c : cmd_srvsvc.c : - added these files back in, fixing them up to use jeremy's modified versions of the dce/rpc client functions. parse_srv.c : - added back in some "unused" functions required by dce/rpc client-side code. it would be helpful if all such "unused" functions could be added back in. rpcclient.c : - added "session", "file", "share", "connection" enumeration functions back in. these are equivalent to nt's "NetXXXXXEnum" Win32 (MSDN) functions. - added "srvinfo" function back in. this is equivalent to nt's NetServerGetInfo Win32 (MSDN) function.
* - static function "create_new_hashes" was identical to "nt_lm_owf_gen".Luke Leighton1998-10-021-2/+2
| | | | | | | | | | create_new_hashes didn't zero the buffer for the md4hash: nt_lm_owf_gen did, because jeremy sorted this out a couple of days ago. call nt_lm_owf_gen instead. - call SMBOWFencrypt from SMBencrypt and SMBNTencrypt. - added #ifdef DEBUG_PASSWORD debug password calls.
* a couple of mode for smbwrapperAndrew Tridgell1998-10-022-3/+7
|
* lsa_lookup_sids command added. severe debugging needed on lookup_sidsLuke Leighton1998-09-302-23/+58
| | | | | | | | | code. added "quality of service" capability to lsa_open_policy code. different lsa_open_policy queries are *not* dealt with in the server code. answers like "0xC000 0022" - access denied - will have to be made to lsa_lookup_sids calls when a "quality of service" request is *not* specified in the lsa_open_policy call.
* Upped default MAX_OPEN_FILES to 10000 after conversation with tridge.Jeremy Allison1998-09-301-1/+1
| | | | | As we're only using 1 bit per fd when idle it doesn't matter too much.... Jeremy.
* (Finally) implemented "max open files" as a global smb.conf parameter.Jeremy Allison1998-09-302-1/+14
| | | | | | Sets up the files array correctly - limited by the smb.conf parameter and by the max fd's per process as found by getrlimit(). Jeremy.
* Got very strict about the differences and uses ofJeremy Allison1998-09-294-32/+34
| | | | | | | 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.
* missed the pdb_sam_to_smb function needed by nispass.cLuke Leighton1998-09-291-0/+1
|
* added in some pdb_xxx routines that are needed by nispass.cLuke Leighton1998-09-292-12/+21
|
* added stamp-hAlexandre Oliva1998-09-291-0/+1
|
* get away with dummy and .dummy filesAlexandre Oliva1998-09-291-1/+0
|
* added WITH_SMBMOUNTAlexandre Oliva1998-09-292-1/+2
|
* Changes to test in configure if capabilities are enabled on a system.Jeremy Allison1998-09-283-39/+37
| | | | | | | | | | 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-282-3/+1
| | | | | dummy.in files are no longer needed, and new directories will be taken care of automatically, at configure (or config.status --recheck) time
* changed the default filesystem type to NTFS (from Samba)Andrew Tridgell1998-09-261-1/+1
| | | | | | | | | | | I've finally changed this because I've found a real effect that this has. Win95 shows long filenames in a directory listing in a dos box only if this is set to NTFS or HPFS (only ones I've found so far anyway). If NTFS poses problems of some kind then we should try HPFS I wonder if this change will trigger any attempts to use ACLs ?
* Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>Jeremy Allison1998-09-261-0/+4
| | | | Jeremy.
* Makefile.in: Fixed bug with continuation line causing proto to fail.Jeremy Allison1998-09-255-148/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 missing display enum.Jeremy Allison1998-09-251-0/+2
| | | | Jeremy.
* rpcclient: got samr command "enumusers -g -u" workingLuke Leighton1998-09-251-1/+1
|
* Moved the extra struct definitions Luke added to smb.h into rpcclient.hJeremy Allison1998-09-252-0/+197
| | | | | | | and client.h. They are still included from smb.h so nothing should change (or break) but this keeps the new definitions easier to maintain. This is similar to what I did with ntdomain.h Jeremy.
* added in samr commands. assistance in returning the missing functions,Luke Leighton1998-09-252-0/+146
| | | | automatically removed because they were "unused", would be appreciated.
* added wksinfo command to rpcclient, which don't work too good.Luke Leighton1998-09-251-0/+12
|
* added rpcclient programLuke Leighton1998-09-254-52/+219
|
* Integration of Anders Blomdell <anders.blomdell@control.lth.se>'sJeremy Allison1998-09-242-1/+7
| | | | | | smbpasswd changes. Not exactly the same as his code - several changes. Jeremy.
* nttrans.c:Luke Leighton1998-09-231-2/+6
| | | | | | | | | | | | | | | | | | winreg was missing from the list of pipes. advise using the array already defined in... rpc_parse/parse_rpc.c's pipe_names[], but writing code to strip "\PIPE\" from the front when making the check. one location to update when adding new pipes, not two. srv_pipe_hnd.c: moved the ZERO_STRUCT(p) macro to _before_ the DLIST_ADD(Pipes, p) macro. dlinklist.h: added { }s around the code inserted by DLIST_ADD and DLIST_REMOVE macros
* First cut at kernel oplocks. This should have no effect unless runninJeremy Allison1998-09-233-12/+30
| | | | | | | | | 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.
* replace getpass() with getsmbpass() if getsmbpass.c compilesAlexandre Oliva1998-09-214-9/+9
|
* major autoconf clean-upAlexandre Oliva1998-09-213-6/+14
| | | | fix problems in builds with srcdir!=builddir
* lp_fstype() protoAndrew Tridgell1998-09-201-0/+1
|
* add a define for SMB_SEARCH_BITS and change comment on FSTYPE_STRINGAndrew Tridgell1998-09-202-2/+5
|
* Now that Alexandre Oliva has explained the use of acconfig.h toJeremy Allison1998-09-181-4/+5
| | | | | | | | me, I'm adding the HAVE_LIBREADLINE and other stuff correctly. Thanks Alexandre :-). Jeremy.
* Fixed position of LARGE_SMB_OFF_T definition. The SOFF_T define wasJeremy Allison1998-09-181-8/+6
| | | | | | | | | being done *before* the LARGE_SMB_OFF_T was being defined, but SOFF_T depended on it :-). This broke 64 bit file reporting. Jeremy.
* Fixed problems with premature kernel oplock checkin code.Jeremy Allison1998-09-181-1/+1
| | | | | | The ./configure & build now seem to work ok. Jeremy.
* configure configure.in include/config.h.in include/includes.hJeremy Allison1998-09-183-9/+25
| | | | | | | | | | Fixed bugs in readline autoconf. param/loadparm.c smbd/open.c smbd/oplock.c: Started on kernel oplock code - checking forced by above issue. Should not be used currently. Jeremy.
* Adding rewritten restore code ... Old code is still thereRichard Sharpe1998-09-181-0/+25
| | | | surrounded by a OLD_DOTARPUT.
* got rid of SMB_STRUCT_STATVFS. I don't think we should be definingAndrew Tridgell1998-09-182-18/+0
| | | | structures that only apply on some platforms.
* gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing aAndrew Tridgell1998-09-182-0/+13
| | | | | | | SOFF_T() macro for setting an SMB_OFF_T variable also limited mmap based reads to MAX_MMAP_SIZE. We really can't mmap 2^50 bytes due to virtual address space problems.
* added a SMB_OFF_T_BITS define, allowing us to get rid of most of theAndrew Tridgell1998-09-181-0/+2
| | | | #ifdefs for LARGE_OFF_T.
* include/includes.h:Jeremy Allison1998-09-181-1/+6
| | | | | | | 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.
* nmbd/nmbd_winsserver.c: Fixed printf style warning.Jeremy Allison1998-09-181-0/+1
| | | | | script/mkproto.awk: Added SMB_BIG_UINT. Jeremy.
* configure configure.in: Added checks for statvfs64. Last bit of 64 bit ↵Jeremy Allison1998-09-174-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-174-6/+20
| | | | | | | | | | | | | | | | | | | | | | | 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.