summaryrefslogtreecommitdiffstats
path: root/source/include/local.h
Commit message (Collapse)AuthorAgeFilesLines
* don't need shmem any moreAndrew Tridgell2000-07-061-5/+0
|
* - use full_name instead of real_nameAndrew Tridgell2000-05-041-4/+0
| | | | - got rid of guest map code in lpq parser
* got rid of some more old configure tests and includesAndrew Tridgell2000-04-171-5/+0
|
* added the unexpected packet database (unexpected.tdb)Andrew Tridgell2000-01-031-0/+1
| | | | | | | | | | | | this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :)
* Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1999-12-291-0/+3
| | | | Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-24/+25
|
* include/local.h:Jeremy Allison1998-11-101-23/+0
| | | | | | | | | | | | | include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy.
* I talked to Dave Miller and he thinks that we should have TCP_NODELAYAndrew Tridgell1998-11-091-0/+8
| | | | | on by default on OSes that support it, given the network IO pattern that Samba uses. He doesn't think it will cause problems.
* at the interop Isaac (at least I _think_ it was Isaac) said that if aAndrew Tridgell1998-10-211-0/+4
| | | | | | | | | | | | | | | MS client doesn't respond to a oplock break request then we might try resending the request. This morning Sues Win95 machine had this problem (thus forcing me to do something about it!). When starting winword her box refused to answer an oplock break request. I have added code to resend the oplock break request up to 3 times at 10 second intervals before killing the socket. of course, as soon as I did this her box started to behave again so I haven't been able to tell if this fix actually works, but it can't be worse than dropping the socket immediately.
* 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-301-0/+11
| | | | | | 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.
* 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 ?
* add a define for SMB_SEARCH_BITS and change comment on FSTYPE_STRINGAndrew Tridgell1998-09-201-2/+2
|
* gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing aAndrew Tridgell1998-09-181-0/+5
| | | | | | | 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.
* moved connection_struct handling code into smbd/conn.c and changed itAndrew Tridgell1998-08-171-6/+0
| | | | to a linked list with bitmap format.
* some cleanups from the conversion of Pipes[] to a linked list. I alsoAndrew Tridgell1998-08-171-3/+0
| | | | | | | | removed most cases where a pnum is used and substituted a pipes_struct*. in files.c I added a offset of 0x1000 to all file handles on the wire. This makes it much less likely that bad parsing will give us the wrong field.
* this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1998-08-151-8/+7
| | | | | | | in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands.
* Added the APPLEDOUBLE macro for the name of the directory containingJohn Blair1998-08-131-0/+3
| | | | a file's Macintosh resource fork (normally .AppleDouble under Netatalk).
* this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1998-08-091-0/+5
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-6/+0
|
* chgpasswd.c: Fixed up debug calls to stop crashes if ptsname failed.Jeremy Allison1998-07-271-4/+0
| | | | | | | | | | | | local.h: Kept FSTYPE_STRING as Samba for now. nmbd_browsesync.c: Added bugfix from Matt Chapman mattyc@cyberdude.com - lmb_browserlist is now a struct ubi_dlList not a struct browse_cache_record *. server.c: smb.h: uid.c: password.c: Removed attrs code - it is not used anywhere. Jeremy
* Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1998-07-221-0/+2
| | | | | | | | | MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy.
* Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1998-07-171-6/+6
| | | | | | | | | | | | | | | | local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this. dir.c: Use MAX_OPEN_DIRECTORIES. nttrans.c: Allow opening of a directory to succeed. Doesn't actually open a file descriptor but takes a files_struct slot marked as an fd. reply.c: Changed to close any outstanding is_directory files. reply_close changed to understand directory files. server.c: Added open_directory(), close_directory() calls. smb.h: Added is_directory to files_struct. Changed OPEN_FNUM to check that target is !is_directory (this prevents the normal file calls from processing a directory files_struct. Jeremy.
* local.h: Added NTFS define if HAVE_NT_SMBS is defined.Jeremy Allison1998-07-171-1/+4
| | | | | nttrans.c: Fixed issue with access DELETE on renaming files. Jeremy.
* Getting ready for first Red Hat Linux RPMs for 1.9.19 pre-alpha releaseJohn Terpstra1998-03-211-0/+8
|
* changed the default MAXSTATUS from 1000 to 100000Andrew Tridgell1998-03-171-2/+2
| | | | | | | | | This number limits the number of simultaneous connections to the server. The 1000 limit is from a looong time ago when I couldn't imagine anyone wanting to have 1000 simultaneous clients. Now I hear that people are testing with such numbers. I wonder when I'll change it from 100k ?
* changed the default "keepalive" value to 300 seconds.Andrew Tridgell1998-03-161-0/+2
| | | | This is more important now that oplocks are being used.
* Makefile: Added AIX 3.2.5.Jeremy Allison1998-02-111-1/+1
| | | | | | | | | | | | | | | | loadparm.c: Added "win95 bug compatibility" parameter. local.h: Replaced MAX_OPEN_FILES back to 100 from 10 (oops). reply.c: Fixed ulogoff check against uid - changed to vuid. server.c: Changed file struct save of uid - changed to vuid. smb.h: Changed id in struct current_user to vuid. Changed file struct uid to vuid. time.c: Added "win95 bug compatibility" atime -> mtime return. trans2.c: Added "win95 bug compatibility" fixes. uid.c: Changed id in struct current_user to vuid - added checks to set/reset it. util.c: Added code to expand environment variables. version.h : still at 1.9.18 (head branch doesn't matter too much at present). Jeremy.
* A small raft of changes, I will sync up with 1.9.18 also.Jeremy Allison1998-02-071-11/+1
| | | | | | | | | | | | | | | | | chgpasswd.c: Fixed typo in debug message. includes.h: Fix include for aix. kanji.c: Added cap_to_sj as inverse of sj_to_cap. loadparm.c: local.h: password.c: Added code for "networkstation user login" parameter. - patch from Rob Nielsen <ran@adc.com>. printing.c: Added further aix printing fixes. reply.c: Changed access time fetch to a function. trans2.c: Changed access time fetch to a function. time.c: Changed access time fetch to a function. server.c: Made NT redirector workaround final. util.c: Added debug for write_socket failing. Jeremy.
* Makefile: Fix for OSF1 typo.Jeremy Allison1998-01-291-0/+5
| | | | | | | | | | | | asyncdns.c: Fixes that went into 1.9.18p2 - allow unclocking of sigterm. chgpasswd.c: char -> unsigned char fixes. includes.h: AIX fix to get prototype for inet_ntoa. local.h: Tune size of shared memory based on MAX_OPEN_FILES. nmbd_mynames.c: Fix for nmbd repeated refresh bug. nmbd_responserecordsdb.c: Fix for nmbd repeated refresh bug. nmbd_winsserver.c: Fix for multi-homed registration optimisation. smb.h: Moved default shared memory size to local.h Jeremy.
* put the default PRINTCAP_NAME def in includes.h not local.h so thatAndrew Tridgell1997-12-031-17/+0
| | | | it can see the SYSV definitions
* applied a patch from Norm Jacobs to allow "printcap name = lpstat"Andrew Tridgell1997-12-031-0/+9
| | | | | | | | | | to use lpstat to obtain the printer list on systemV systems. I've now made this the default on all SYSV systems. Jeremy, you were a little worried about the security of this patch. I believe it's OK as the user has no control over the options given to popen() and the pipe is only open for reading.
* allow users to disable the NetWkstaUserLogon call in server levelAndrew Tridgell1997-12-031-0/+10
| | | | | security by changing a setting in local.h or adding it to their Makefile. See comment in local.h
* I'm slowly getting though the todo list :-)Andrew Tridgell1997-12-031-0/+5
| | | | | This change allows people to select the SYSLOG_FACILITY in local.h, or add it to the Makefile if they want to.
* the default GUEST_ACCOUNT should be here not in smb.hAndrew Tridgell1997-12-021-0/+6
|
* local.h: Added OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR.Jeremy Allison1997-11-061-1/+5
| | | | | | | | proto.h: The usual. server.c: Added timestring() messages to oplock logs. Added fix to allow file open processing to continue is an oplock break message times out. Jeremy.
* also disable read prediction in 1.9.18Andrew Tridgell1997-10-271-0/+5
|
* get rid of the KEEP_PASSWORD_SERVER_OPEN defineAndrew Tridgell1997-10-211-4/+0
|
* local.h: Fix spelling mistake :-).Jeremy Allison1997-10-091-1/+1
| | | | | | | | namedbsubnet.c: Stop registering 1x name unless we can be a local master. reply.c: Remove ERRbaddirectory code. server.c: Remove abort() - use exit_server() instead. trans2.c: Remove ERRbaddirectory code. Jeremy (jallison@whistle.com)
* bracket some macrosAndrew Tridgell1997-10-091-1/+1
| | | | | | | | change MAX_PASSWORD_LENGTH to MAX_PASS_LEN to prevent conflict on some systems add #ifdef around soft link dependent code (for systems that don't have soft links)
* OPLOCK CHECK-IN - oplocks are now *OPERATIONAL* !!!!Jeremy Allison1997-10-011-1/+1
| | | | | | | | | | | | | | | Yipeee. At least as far as I can check in a short time :-). local.h: Changed OPLOCK_BREAK_TIMEOUT to 30 seconds. locking.c: Big changes to delete oplocks on a share mode entry. proto.h: updated. reply.c: Added oplock break code in lockingX reply & readbraw reply. server.c: Add batch oplock code. Force server shutdown if client fails to respond to oplock break. smb.h: Fix silly slow share mode oplock define bug. status.c: Add oplock status info. Jeremy (jallison@whistle.com)
* dir.c: more pstrcpys.Jeremy Allison1997-09-301-0/+5
| | | | | | | | | | | local.h: Add OPLOCK_BREAK_TIMEOUT. password.c: Fix for paranoia password server security bug. proto.h: Updated. reply.c: Oplock changes. server.c: Massive oplock changes - nearly there.... smb.h: oplock definitions. util.c: Add local message processing queues for oplocks. Jeremy (jallison@whistle.com)
* Adding Andrews buffer overflow fixes into the main branch.Jeremy Allison1997-09-261-0/+2
| | | | Jeremy (jallison@whistle.com)
* local.h: Removed ununsed SHARE_MODES_XXX defines. Upped SMBD_RELOAD_CHECKSamba Release Account1997-07-141-3/+1
| | | | | | | | | from 10 to 60. server.c: Removed unused code (was If 0'ed out). trans2.c: Backed out Luke's ctime->mtime change. I don't think it is correct. Left the other fixes, though. util.c: Changed veto/hide files separator back to '/'. Jeremy (jallison@whistle.com)
* - added support for TMPDIR env variableAndrew Tridgell1996-10-241-0/+1
| | | | | | - fixed fault.c for linux 2.1 - put back in the FIND_SELF failing code - cleaned up casts in encryption
* - revert to old idle dir code (marty pointed out a problem with theAndrew Tridgell1996-10-071-1/+1
| | | | | | | new code) - handle server level security in the new "detect NT password length stuffups" code
* - changed the default nmbd loop timout to 10 seconds (2 seconds was muchAndrew Tridgell1996-10-071-1/+1
| | | | | | | | too short) - got rid of many unnecessary calls to time(NULL) in nmbd. They were causing it to chew too much CPU time when idle. Now we pass a time value in from the top level.
* - changed the umask handling. We now set the umask to 0 and explicitlyAndrew Tridgell1996-10-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | set the mode on all created files. I think this is a better policy. - change the debug levels on some items - fix a charset handling bug which affected foreign and extended charset users - no longer switch back to the original directory when idle, instead switch to / as the original directory may not be readable by ordinary users. - fix some bugs where the create mode of files was not being explicitly set (it was relying on the umask and using fopen). Not a big bug as it only affected obscure commands like the messaging ops. - got rid of the lock code in the lpq cache as its no longer needed - rewrote smbrun to be faster and to remove the security hole. We now don't actually need a external smbrun binary, its all done by smbd. - add a more explicit warning about uids and gids of -1 or 65535
* - add timeouts to connect() for password server connections. ThisAndrew Tridgell1996-08-221-0/+4
| | | | makes multiple password servers practical.
* - sequent-ptx support from bressler@iftccu.ca.boeing.com (RickAndrew Tridgell1996-08-131-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bressler) - machten support from Trevor Strohman (trev@figment.tenon.com) - added qinfo command to client as part of drag-and-drop printer support for win95 from David Chappell <chappell@mouse.cc.trincoll.edu> He also added the "printer driver" option - use sigblock() on more systems and use sigsetmask(0) instead of sigunblock() as its more portable. This beats a problem with zombies on heavilily loaded systems. - added internals.doc written by David Chappell into the source tree - get rid of PRINT_COMMAND options from local.h as they are no longer relevent - new kanji code from Fujita - don't set the recursion_available flag on queries in nmbd - fix a potential bug with pointer subtraction in printing.c - got rid of error_count code as the real fix (the EOF problem) is now in