summaryrefslogtreecommitdiff
path: root/source3/include/local.h
AgeCommit message (Collapse)AuthorFilesLines
2003-01-16Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.Jeremy Allison1-0/+8
Jeremy. (This used to be commit daf179bcd6297b525bfc644efb154734723f4d58)
2002-10-22Fix for systems that allow more than 65536 open files per process.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 947a56ce00e552e8b8d2ed64435eabde6225f044)
2002-10-04Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison1-0/+3
MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit 9fe3c0b90d4bff2217e3cb5a34b4683ca314c06e)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-6/+1
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-08-17sync 3.0 branch with headJelmer Vernooij1-1/+13
(This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-1/+1
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-04-11This split the mangling code up to allow for the possibility of multipleAndrew Tridgell1-0/+6
mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty. (This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-01-14Removed MAXSTATUS which was set incorrectly - thus causing tdb traversalJeremy Allison1-1/+2
of the connections db on smbd startup. This should fix the Solaris large load bug.... (fingers crossed). Jeremy. (This used to be commit 5b2b9c25af28543e67762805d1387524cbb6c39d)
2001-12-06allow a MAX_DEBUG_LEVEL setting in local.h (or the Makefile)Andrew Tridgell1-0/+9
This allows embedded systems to compile out the higher debug levels. It should gain speed as well as reducing the code size. Setting it to 1 saves about 300k of code on my system. (This used to be commit f34cac3b312f273a2363919655ddd1e25cb91305)
2001-11-19LIBDIR and LOCKDIR are dynamically configured too.Martin Pool1-5/+0
(This used to be commit 868999ad3c82ad72f11d5b3208b0e42b1ed95096)
2001-11-12Fixed allocation bug in database prog. Some format fixes.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 9ff6b0c20cc88ef0bcd62a596fcb96f898b5b29d)
2001-10-01- fix handling of 0 last_change_time and must_change_timeAndrew Tridgell1-0/+3
- move the arbitrary 21 day timeout to local.h (This used to be commit 11075f543470c3283accce0246d0b2983420695a)
2001-05-06Patch from David_Tiller@ccnotes.ccity.com finally applied now I've thoughtJeremy Allison1-0/+5
about it to stop account lockouts with "security=server" mode. Sorry for the delay David. Jeremy. (This used to be commit e8819715038ed49b07ed5639b1b88ad12e994b53)
2001-05-02Had to add a "pam password change" parameter (defaults to "off") and inlinedJeremy Allison1-4/+0
the pam password change code to ensure that existing and working password chat scripts don't break with 2.2.1. PAM password changing has to be explicitly requested. Allowed wildcards in pam password change matching (matches password chat script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to stop warnings. Don't worry - the const changes are isolated and don't cause any other warnings :-). Jeremy. (This used to be commit 47b4d82536c09bffe3a0d9917fa31d935f1be7d8)
2001-04-30Ensure correct password change script gets selected --with-pam.Jeremy Allison1-0/+4
Jeremy. (This used to be commit 6703f621ea798bd1877bd3baa523307ee288dccd)
2001-04-18merge from 2.2Andrew Tridgell1-0/+8
(This used to be commit f52a5014ee325f9d91f266f88eac51b6136a75b9)
2001-03-13this patch does a number of things:Andrew Tridgell1-3/+0
- removes SMB_ALIGNMENT. That macro caused all sorts of problems with getting unicode aligned right in sub-protocols (such as SMBtrans and SMBtrans2). I believe the performance reasons for having SMB_ALIGNMENT has gone away with the new variants of the SMB protocol anyway, as newer commands tend to have their own internal alignment. - fix the locations where we set smb_flg2 to absolute values. We must never do this if we want a hope of coping with unicode. - add initial support for unicode on the wire in smbd. Currently enabled using SMBD_USE_UNICODE environment variable. (This used to be commit b98b1435e9d8f8622444c9ff33082977e661f16b)
2000-07-06don't need shmem any moreAndrew Tridgell1-5/+0
(This used to be commit a81371a4fd6f7972b054bea90428d1d2fd6d1d22)
2000-05-04 - use full_name instead of real_nameAndrew Tridgell1-4/+0
- got rid of guest map code in lpq parser (This used to be commit 8e53f781d3cf6a7007764916a0d8e8f1abea1f66)
2000-04-17got rid of some more old configure tests and includesAndrew Tridgell1-5/+0
(This used to be commit f137648504362479143d50477fa38ebf7147968b)
2000-01-03added the unexpected packet database (unexpected.tdb)Andrew Tridgell1-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 :) (This used to be commit 280e6359d36c9bc8dcded302f15c3a1db8e3feeb)
1999-12-29Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 1ba42aca2163c534f6be4e4a733604e3dffe0ed8)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1-24/+25
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1998-11-10include/local.h:Jeremy Allison1-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. (This used to be commit 9668a5ef50be2e6b575f9989e87ee2ff8da5ac1d)
1998-11-09I talked to Dave Miller and he thinks that we should have TCP_NODELAYAndrew Tridgell1-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. (This used to be commit 15016aa024854ca56ef20d1f29f54f9698a1911b)
1998-10-21at the interop Isaac (at least I _think_ it was Isaac) said that if aAndrew Tridgell1-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. (This used to be commit a1c4d8351b9171416693e6d7a9045bdce9217edb)
1998-09-30Upped default MAX_OPEN_FILES to 10000 after conversation with tridge.Jeremy Allison1-1/+1
As we're only using 1 bit per fd when idle it doesn't matter too much.... Jeremy. (This used to be commit dba55b2d3453bd18e1a0cb031d012733e5a214b9)
1998-09-30(Finally) implemented "max open files" as a global smb.conf parameter.Jeremy Allison1-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. (This used to be commit eca24bd24352c688cdf48c1ef14adb8ac353468f)
1998-09-26changed the default filesystem type to NTFS (from Samba)Andrew Tridgell1-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 ? (This used to be commit 410d54fa0dba319e802d7327d89c4c1e61f2db65)
1998-09-20add a define for SMB_SEARCH_BITS and change comment on FSTYPE_STRINGAndrew Tridgell1-2/+2
(This used to be commit 9c275bcd98cbbd9367d9b7a2204889fcefd74638)
1998-09-18gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing aAndrew Tridgell1-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. (This used to be commit 4e784b18899eddd2399a51fa7d8c219560432922)
1998-08-17moved connection_struct handling code into smbd/conn.c and changed itAndrew Tridgell1-6/+0
to a linked list with bitmap format. (This used to be commit b7aaab1b6b2d2f72b2bb7c11f5c7bf081a6093d9)
1998-08-17some cleanups from the conversion of Pipes[] to a linked list. I alsoAndrew Tridgell1-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 used to be commit 8bc2627ff28d340db65bfa017daca2dc291d5ef7)
1998-08-15this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1-8/+7
in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands. (This used to be commit b088c804f98908eb02f05ab2f2e8a61691a0a582)
1998-08-13Added the APPLEDOUBLE macro for the name of the directory containingJohn Blair1-0/+3
a file's Macintosh resource fork (normally .AppleDouble under Netatalk). (This used to be commit 1313451f2161f69d33e7f1d41a1bf5615f61014c)
1998-08-09this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1-0/+5
(This used to be commit d08fa39cec5c71a9034dbf4241fc7e195f1bbaa5)
1998-07-29merge from the autoconf2 branch to the main branchAndrew Tridgell1-6/+0
(This used to be commit 3bda7ac417107a7b01d91805ca71c4330657ed21)
1998-07-27chgpasswd.c: Fixed up debug calls to stop crashes if ptsname failed.Jeremy Allison1-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 (This used to be commit ef1af7fe6d5c58ae57b8e4efff0729e1a315da43)
1998-07-22Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1-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. (This used to be commit 339b10222269d71c7a493cc08b7b1bfd35fd55fc)
1998-07-17Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1-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. (This used to be commit e01ce693f47e75e277f3440d46e32b0bd866b550)
1998-07-17local.h: Added NTFS define if HAVE_NT_SMBS is defined.Jeremy Allison1-1/+4
nttrans.c: Fixed issue with access DELETE on renaming files. Jeremy. (This used to be commit 0fcf167af898a9c7a20fddc0d95c887477a22ed1)
1998-03-21Getting ready for first Red Hat Linux RPMs for 1.9.19 pre-alpha releaseJohn Terpstra1-0/+8
(This used to be commit 4e424d0ba652bf9c5dfd3c44216b6145538cf821)
1998-03-17changed the default MAXSTATUS from 1000 to 100000Andrew Tridgell1-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 ? (This used to be commit bae865da2dca175a8fe25922aeee8e785521e19b)
1998-03-16changed the default "keepalive" value to 300 seconds.Andrew Tridgell1-0/+2
This is more important now that oplocks are being used. (This used to be commit 7bccd2c360a270df227c140aeecb943d8d187855)
1998-02-11Makefile: Added AIX 3.2.5.Jeremy Allison1-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. (This used to be commit adc903bcf59ad1664babd7f1d43675d3a75bfbc9)
1998-02-07A small raft of changes, I will sync up with 1.9.18 also.Jeremy Allison1-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. (This used to be commit a031404623c22d62f8de035be2239f609af08112)
1998-01-29Makefile: Fix for OSF1 typo.Jeremy Allison1-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. (This used to be commit fa5466805685d461564054d7d9947948fc56ae93)
1997-12-03put the default PRINTCAP_NAME def in includes.h not local.h so thatAndrew Tridgell1-17/+0
it can see the SYSV definitions (This used to be commit e439115366804982af6faba75714dbe2626edead)
1997-12-03applied a patch from Norm Jacobs to allow "printcap name = lpstat"Andrew Tridgell1-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. (This used to be commit 6a83de0ae954bb18d3f15382f2b0b3259fedff09)
1997-12-03allow users to disable the NetWkstaUserLogon call in server levelAndrew Tridgell1-0/+10
security by changing a setting in local.h or adding it to their Makefile. See comment in local.h (This used to be commit cc10fdf7583ec644850445ad96afd8b22b71e86f)