summaryrefslogtreecommitdiff
path: root/source3/param
AgeCommit message (Collapse)AuthorFilesLines
1999-07-22Support for arbitrary VFS options in smb.conf. Options are of theTim Potter1-1/+69
format 'vfs option = name = value'. It would be nice to get rid of the first equals sign, but that would involve modifications to the smb.conf parser. There are a couple of naughties here - I've added a P_PTR enum as the VFS options are parsed in param/loadparm.c and stored as a linked list of structures. I couldn't for the life of me write a FN_LOCAL_PTR() macro to generate a lp_vfsoptions() function that actually worked so for the moment it is coded by hand. (This used to be commit 89ad85f0a3dfa233f6370ac6e3c97a1a645cfdfe)
1999-07-14code from bertl to allow remap of default built-in names to anything.Luke Leighton1-1/+4
parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at> (This used to be commit 80d36778432d42eb265ed9428f27a27250ba5e08)
1999-07-12Jean-Francois Micouleau's rewritten DFS patch, originally written byLuke Leighton1-1/+3
Nigel Williams. despite the data format being *exactly* the same as NT's, this still doesn't work yet. more work needed. (This used to be commit 270981960bb5aab52d2f8e494827101ece6729c4)
1999-06-29improving authentication code (tidyup).Luke Leighton1-2/+6
(This used to be commit ab1a6aa42db5217f025941fb5107436556bc23b7)
1999-05-01added server ntlmv2 false/auto/true parameter, defaults to off.Luke Leighton1-1/+12
(This used to be commit 209944dabc764c6ea0c471e7868306c7d8d020d4)
1999-04-27rpc_parse/parse_misc.c : defined a new BUFFER5 structJean-François Micouleau1-1/+18
include/ntdomain.h : added rpc_spoolss.h include statement include/proto.h include/rpc_dce.h : added definition of RPC_ALTER_CONTEXT request & reply param/loadparm.c : 2 new options for NT printing support and some changes to initial values in the LPRNG case. rpc_parse/parse_prs.c : added prs_uint16s() rpc_parse/parse_rpc.c : added SYNT_SPOOLSS_V1 and code for the alter-context support. rpc_server/srv_pipe.c : alter-context support smbd/nttrans.c smbd/server.c include/rpc_misc.h Makefile.in include/smb.h Jean Francois (This used to be commit 4c515804b70254248e378a3f90f47e4c32639d29)
1999-04-11Allow "Yes" and "No" as well as "True" and "False" in the three-stateMatthew Chapman1-1/+1
enumeration. (This used to be commit 4ed67ccf1cdfd064cf2b2949020feb5afcb76b9d)
1999-04-11Trying to improve DC location & browsing performance for the average userMatthew Chapman1-43/+81
who doesn't know what an LMB or DMB is. * check_master_browser_exists now performs the check the first time around, so if there is indeed no master browser then Samba takes up the job much faster. * Upped default OS level to 32. There is no reason why some stupid little Windows box should become LMB instead of a Samba *server*. * "domain master" now defaults to "auto". Currently this attempts to become DMB iff Samba is the PDC (ala Windows NT). "preferred master" also defaults to "auto", which enables preferred master iff Samba is DMB. * lp_server_role now just returns the predetermined role, rather than working it out each time, since the server role is becoming very heavily used (esp for the BDC code). (This used to be commit 4a23a358b5ad8873acb7db11f27b87d2a016bec1)
1999-04-04Added configuration parameter 'vfs object' to specify loadable objectTim Potter1-0/+20
file containing a VFS implementation. (This used to be commit a7af7193e3c38d1303919b31a73eea77d0dfa92f)
1999-03-03Benjamin Kuit's latest mysql mods. issue with "make proto" needs to beLuke Leighton1-5/+5
resolved. (This used to be commit d59a2e669aed7ee33fdca8b8ec126b1c0a984981)
1999-03-01Benjamin Kuit's MYSQL SAM Database implementation.Luke Leighton1-0/+30
Copyright (C) Benjamin Kuit <bj@mcs.uts.edu.au> 1999. (This used to be commit fdf61e1dabc2c977ee5cf1e9d60e3380f19840da)
1999-02-02server type announcements modified to include the "role" of the server:Luke Leighton1-9/+58
domain member, pdc, bdc. (This used to be commit d95bb252f838b3612f5eba5d2b61d7b38b01f5ef)
1999-01-24Adding first of the fixes for SSL.Richard Sharpe1-9/+14
A whole bunch of string variables in loadparm.c were not being initialized properly. Programs crashed as a result. This set of code not tested, but same code tested elsewhere, and all this guarded by #ifdef HAVE_SSL (This used to be commit fb6048bb8655e8bd87cc69b48c99219d6701a907)
1998-12-07matthew chapman's ldap code, to date. plus docs!Luke Leighton1-9/+8
(This used to be commit 2c438c86cbb38833b3abd4fbead6324687633b25)
1998-11-29weekend work. user / group database API.Luke Leighton1-0/+18
- split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API... (This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-24jean-francois pointed out problem with "lp_domain_role()" code, youLuke Leighton1-2/+2
could never be a PDC. (This used to be commit 2bcc540af80c37b8032a23d6d0045160a7c40e32)
1998-11-23unix instance of group database APILuke Leighton1-0/+40
(This used to be commit e76f593b3572ac881f1aa1fb3326d8b7169b0078)
1998-11-17Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1-1/+1
Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy. (This used to be commit 18ff93a9abbf68ee8c59c0af3e57c63e4a015dac)
1998-11-17- group database API. oops and oh dear, the threat has been carried out:Luke Leighton1-26/+30
the pre-alpha "domain group" etc parameters have disappeared. - interactive debug detection - re-added mem_man (andrew's memory management, detects memory corruption) - american spellings of "initialise" replaced with english spelling of "initialise". - started on "lookup_name()" and "lookup_sid()" functions. proper ones. - moved lots of functions around. created some modules of commonly used code. e.g the password file locking code, which is used in groupfile.c and aliasfile.c and smbpass.c - moved RID_TYPE_MASK up another bit. this is really unfortunate, but there is no other "fast" way to identify users from groups from aliases. i do not believe that this code saves us anything (the multipliers) and puts us at a disadvantage (reduces the useable rid space). the designers of NT aren't silly: if they can get away with a user- interface-speed LsaLookupNames / LsaLookupSids, then so can we. i spoke with isaac at the cifs conference, the only time for example that they do a security context check is on file create. certainly not on individual file reads / writes, which would drastically hit their performance and ours, too. - renamed myworkgroup to global_sam_name, amongst other things, when used in the rpc code. there is also a global_member_name, as we are always responsible for a SAM database, the scope of which is limited by the role of the machine (e.g if a member of a workgroup, your SAM is for _local_ logins only, and its name is the name of your server. you even still have a SID. see LsaQueryInfoPolicy, levels 3 and 5). - updated functionality of groupname.c to be able to cope with names like DOMAIN\group and SERVER\alias. used this code to be able to do aliases as well as groups. this code may actually be better off being used in username mapping, too. - created a connect to serverlist function in clientgen.c and used it in password.c - initialisation in server.c depends on the role of the server. well, it does now. - rpctorture. smbtorture. EXERCISE EXTREME CAUTION. (This used to be commit 0d21e1e6090b933f396c764af535ca3388a562db)
1998-11-10include/local.h:Jeremy Allison1-0/+27
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-10Default for SMB_PASSWD program was set to smbpasswd ! This explained the ↵Jeremy Allison1-1/+1
problems John & Andrew were having with smbpasswd. This would cause the smbpasswd to be changed *twice* - this the second decrypt would fail. Changed it to be "/bin/passwd" and changed the name of the macro to PASSWORD_PROGRAM to make it clear this is not an smb password changer. Jeremy. (This used to be commit 8c1625365479f12fa544d83e1a9f72a548398108)
1998-11-09I talked to Dave Miller and he thinks that we should have TCP_NODELAYAndrew Tridgell1-0/+2
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-11-07codepages/codepage_def.936: Updated comment.Jeremy Allison1-11/+0
param/loadparm.c: Removed "networkstation user login", "domain controller", and "domain sid" parameters. passdb/passdb.c: Removed "networkstation user login" code and changed bug test code to only check once for a bad password server. This will stop the complaints of many "bad login" audit records in NT PDC logs. utils/smbpasswd.c: Removed check for "domain controller". Jeremy. (This used to be commit d6e6e936b5dd90dd8fc38d9404efbe5c546c15e5)
1998-10-18add an option to enable/disable nt pipesAndrew Tridgell1-0/+4
(This used to be commit c161b2f850f124ac5f24968e7865a7d0eb68e23e)
1998-10-07somehow "in_client" got included twice in two places.Andrew Tridgell1-1/+0
(This used to be commit 378290bfe1dc4965679495aab58be55e81ecf192)
1998-10-06Added capability for smbclient to use the local WINS server on the sameRichard Sharpe1-4/+5
machine if WINSsupport configured (This used to be commit 1398feebbcb65a9e78b7084811bf9727b6d89682)
1998-10-05ignore *.po32 filesAndrew Tridgell1-0/+2
(This used to be commit 01de9a50e030da722076c67c235801c36c90bb66)
1998-10-05removed requirement of having a smb.conf for smbwrapper to work.Andrew Tridgell1-2/+4
(This used to be commit af58bf2ff8ddbf974dbafa36cf1b679226371e09)
1998-10-04started basic support for solaris 2.5 in smbwrapper.Andrew Tridgell1-1/+1
(This used to be commit e5c7cabae4826bde819b94a48bc4674dcd69da21)
1998-10-03- ignore *.p filesAndrew Tridgell1-0/+1
(This used to be commit 5328ecbc41daa3fe1adbf8dbe9db8180ae55da3d)
1998-09-30set the default fstype for IPC$ to "IPC". I'm not sure if this willAndrew Tridgell1-0/+1
make any difference, but it is the right thing to do. (This used to be commit a655a8a0510b0277727205394b093c580280eb55)
1998-09-30(Finally) implemented "max open files" as a global smb.conf parameter.Jeremy Allison1-0/+4
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-30libsmb/clientgen.c: Fixed signed/unsigned compile warnings spotted by Herb.Jeremy Allison1-6/+27
param/loadparm.c: smbd/oplock.c: Allow kernel oplocks to be turned off in the smb.conf file. smbd/server.c: Move init_structs() to after the smb.conf file is loaded - preparation for making a "max open files" parameter. Jeremy. (This used to be commit 6a261517a09b005f502a37941431308fa8bf2c5c)
1998-09-29get away with dummy and .dummy filesAlexandre Oliva1-1/+0
(This used to be commit 90a8a02484a0897b053fd6531b7fec5d23098b6f)
1998-09-29Now have a better solution to the need to have smblcient findRichard Sharpe1-0/+10
a WINS server if running on the WINS server. As suggested by Andrew, we have a flag, in_client=False by default, and set it to True in the client. loadparam.c checks this and sets szWINSserver to 127.0.0.1 when in_client && bWINSsupport. BTW, we seem to have picked up and unused value in some of Luke's new code. (This used to be commit b665756bfc813b229ad50b0d5f53e8b779537a3f)
1998-09-28made bad boolean values stand out a little betterAndrew Tridgell1-1/+1
(This used to be commit 270f4b0f84167e378b4615af8aedb85970320b1d)
1998-09-28Backed out that just as ill-considered change :-(Richard Sharpe1-9/+0
A more careful change will be needed in the name lookup code. (This used to be commit edfc3ab99b4c2441e765d49a7aa73ca2f3ec8de3)
1998-09-28The previous fix for WINS on the WINS server was wrong. ItRichard Sharpe1-3/+10
caused nmbd to exit :-( We now set the variable szWINSserver after the smb.conf file has been processed, but only of we are a WINS server. (This used to be commit 17212991cf0f49c5afc77cbd82dc6ce8a13f1405)
1998-09-28Make sure that WINS Server = 127.0.0.1 in case weRichard Sharpe1-1/+3
do not set a value in smb.conf. This will be the case if we are a WINS server, or if we don't know what we are doing. The result is that smbclient can access a WINS server if it is running on the same machine as the WINS server (This used to be commit a3439986666c33f352c863a8baae766323aea7b1)
1998-09-28automated generation of .dummy files for each subdirectory;Alexandre Oliva1-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 (This used to be commit 237a8e5fe62d757c04b8207cbbee4df1470cfe4e)
1998-09-23First cut at kernel oplocks. This should have no effect unless runninJeremy Allison1-1/+1
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. (This used to be commit c3c5e13f85c97939746070132dad941e79c546fb)
1998-09-21major autoconf clean-upAlexandre Oliva1-0/+1
fix problems in builds with srcdir!=builddir (This used to be commit 1ffc3b807a3f80644c974b454ff5e6f68e89b546)
1998-09-20added a per-share parameter "fstype" that allows you to select theAndrew Tridgell1-0/+5
filesystem type that will be reported to the client. If unspecified then it defaults to FSTYPE_STRING (currently "Samba"). This is useful for cdroms where you want to set the fs type to CDFS. (This used to be commit 4332e2c93d69c6ea4035c456cc88d1e69de1e735)
1998-09-18configure configure.in include/config.h.in include/includes.hJeremy Allison1-0/+18
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. (This used to be commit f939efac9e6c45331b17e3d3aa6bc2235e886c1a)
1998-09-17configure configure.in: Added checks for statvfs64. Last bit of 64 bit ↵Jeremy Allison1-5/+5
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. (This used to be commit c512b1b91fb7f2a7a93b9033a33e06d966daadb4)
1998-09-17configure configure.in: Added tests for fseek64 and ftell64.Jeremy Allison1-1/+1
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. (This used to be commit c381d32e3dc23fe887408016cae821aceb30da2c)
1998-09-08Added back groupname map stuff removed by Andrew's "slash 'n' burn"Jeremy Allison1-0/+12
tactics :-). Protected by #ifdef until used. Fixed bug in fd_attempt_close() where a pointer to potentially free'd memory was returned. I hate that. Added "blocking locks" as a per-share option for performance testing. Changed is_mangled() so it will return true if called with a pathname and any component of the pathname was mangled (it was already attempting to do this, but not checking for a '/' as end-of-mangle). This should be a better fix for the wierd stat cache bug Andrew identified. Jeremy. (This used to be commit 0de01f45980c7bc261248a9cead972a8d8cbd594)
1998-09-06add a "stat cache" boolean smb.conf option. (defaults to on)Andrew Tridgell1-0/+4
I think we need this so we can rule out stat cache bugs when dealing with bug reports. If we ask a user to disable the stat cache and the problem persists then we know it isn't a stat cache bug. The stat cache code is sufficiently complicated that it can be pretty hard to tell if it is causing problems or not. (This used to be commit c83f3775cd8a7aad13571926cdd5949a07538771)
1998-09-05tridge the destroyer returns!Andrew Tridgell1-24/+5
prompted by the interpret_security() dead code that Jean-Francois pointed out I added a make target "finddead" that finds potentially dead (ie. unused) code. It spat out 304 function names ... I went through these are deleted many of them, making others static (finddead also reports functions that are used only in the local file). in doing this I have almost certainly deleted some useful code. I may have even prevented compilation with some compile options. I apologise. I decided it was better to get rid of this code now and add back the one or two functions that are needed than to keep all this baggage. So, if I have done a bit too much "destroying" then let me know. Keep the swearing to a minimum :) One bit I didn't do is the ubibt code. Chris, can you look at that? Heaps of unused functions there. Can they be made static? (This used to be commit 2204475c87f3024ea8fd1fbd7385b2def617a46f)
1998-09-05Bugfix for leak in reference counted file struct.Jeremy Allison1-0/+4
Added "nt smb support" parameter to allow NT SMB's to be turned off. Jeremy. (This used to be commit 63f65f5027d5022153fa2757b49c56829db1725b)