summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-09s3:testparm: add "--option" to testparmMichael Adam1-0/+1
This way one can test the --option feature with testparm. E.g.: testparm -s -v --option="parameter=value" | grep parameter should print "parameter = value"
2010-11-02s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() insteadAndrew Bartlett1-6/+1
By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett
2010-11-02s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett1-2/+1
This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
2010-08-05s3-popt: Only include popt-common.h when needed.Andreas Schneider1-0/+1
2010-05-05s3: Fix bug 5972 -- remove -L testparm parameterVolker Lendecke1-6/+0
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> to point out that this does not work and to agree it's not worth fixing :-)
2010-03-24s3-testparm: Throw warning when 'workgroup' and 'netbios name' are identical.Karolin Seeger1-0/+6
Address bug #7285 (NetBIOS Namespace Clash Handling). Karolin
2009-11-29s3: Move directory_exist_stat to testparm.c, it only looks at the modeVolker Lendecke1-0/+21
2009-06-03Fix bug #2356 - smbclient -t <term code> no longer works.Jeremy Allison1-2/+0
Removed code and docs. Jeremy.
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-3/+3
This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
2009-01-12Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.cSteven Danneman1-0/+20
If they are not explicitely set in either place both will default to LOCKDIR. Signed-off-by: Michael Adam <obnox@samba.org>
2008-10-18[s3]testparm: prevent "no stackframe around" warning.Michael Adam1-1/+1
gfree_loadparm and TALLOC_FREE(frame) were in the wrong order. Michael
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-2/+2
2008-09-27[s3]testparm: give testparm one common exit point and call gfree_loadparm().Michael Adam1-6/+13
Michael
2008-09-27[s3]testparm: free the popt context when it is no longer used.Michael Adam1-0/+2
Michael
2008-07-15testparm: allow the default debug level of 2 to be changed from the command ↵Michael Adam1-1/+8
line. Michael (This used to be commit 5a0883a7f28538fad542293e1d9361e8c4bed1fd)
2008-07-15testparm: refactor the per-share logic checks out into do_per_share_checks().Michael Adam1-58/+67
Just to enhance clearness of the code. Michael (This used to be commit cd5d13dec0153c64d541e85bd13138b738cf50af)
2008-07-15testparm: skip the per-share logic checks when --skip-logic-checks is specified.Michael Adam1-1/+1
Michael (This used to be commit 6cafee7e6ae02a32a9f2ddf313d2a20224fa22fe)
2008-07-15testparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checksMichael Adam1-3/+3
as suggested by Karolin. That is what it really means. And per-share logic tests will be disabled by the same switch, too... Michael (This used to be commit 5b8a4c33482917a1ef7071df224957ba831d853a)
2008-07-15testparm: add a switch --skip-global-checks.Michael Adam1-1/+5
This allows for successfully calling testparm without the need to "make install" before. Without this, testparm fails with the message that the lock directory does not exist... Michael (This used to be commit eeb018fad65c19804a4e96ea949fc2c64883439e)
2008-05-15testparm: list registry shares with testparm.Michael Adam1-1/+1
I.e., use lp_load_with_registry_shares() instead of lp_load(). Michael (This used to be commit 95339c0c1ecc49049f1fc176f72a1dcac639e06d)
2008-03-18testparm: only check for %u und passwd program when passwd program is given.Michael Adam1-5/+10
Michael (This used to be commit af12b24c4f5e3b77d482a011b62a5a3e13be7d67)
2008-03-18testparm: correctly check for empty lp_passwd_prog().Michael Adam1-1/+3
Michael (This used to be commit 0567f506986746173d67172cb610c10bacf0ceb9)
2008-03-18testparm: fix irritating indentation.Michael Adam1-2/+1
Michael (This used to be commit a74f07243d80294167766dfc6bcad02a96afc079)
2008-03-18testparm: fix a segfault triggered by setting "unix password sync = yes".Michael Adam1-1/+0
(introduced by pstring removal 041163551194102ca67fef52c57d87020a1d09bc) Michael (This used to be commit 46a021f27c60dc579c9193606997142f5cbeba9e)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-1/+1
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-03Getting to the home stretch for elimination of pstrings...Jeremy Allison1-10/+12
Jeremy. (This used to be commit 041163551194102ca67fef52c57d87020a1d09bc)
2007-10-19Fix the popt / bool issues. Some places we used BOOLJeremy Allison1-2/+2
where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-4/+4
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r24951: Warn if "os level" > 255Volker Lendecke1-0/+4
Thanks to Karolin Seeger <ks@sernet.de> (This used to be commit 3abf06efc1286090caf380eb685e90ba7f412748)
2007-10-10r24825: Give testparm an initial talloc stackframe, so it does not complainMichael Adam1-0/+3
it is leaking. (This used to be commit 705336ee1098a2c4d6e933dfa3e2f2968fa717ad)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r15549: removing rhosts and 'hosts equiv' authentication featuresGerald Carter1-9/+0
(This used to be commit d19dad88155f985f113c667b6bdad5a1b25eca18)
2007-10-10r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman1-1/+1
lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.) (This used to be commit f2a24de769d1b2266e576597c57a8e3b1e2a2b51)
2007-10-10r13133: patch from Makr Proehl <m.proehl@science-computing.de> for dumping ↵Gerald Carter1-1/+1
server role when calling 'testparm -s' (BUG 1336) (This used to be commit a4c6eceaaeeeaa6f0af2ae0689631710d36dbd59)
2007-10-10r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison1-0/+2
What I'd give for a global constructor... Jeremy. (This used to be commit c970d7d0a5ba225465dfb0980989b8817b17c643)
2007-10-10r12415: Forgot newlines.Günther Deschner1-1/+1
Guenther (This used to be commit c727a1a330e50b0919ff705d9ebc55c72d8fdee4)
2007-10-10r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the roleGünther Deschner1-18/+1
translation elsewhere. Guenther (This used to be commit 6c4a6da3dc7cecce09890a0da7d97b9d1bb47827)
2007-10-10r11999: Re-add "passdb expand explicit".Volker Lendecke1-0/+5
We came to the conclusion that changing the default is something that has to wait one or two more releases, but it will happen one way or the other. Volker (This used to be commit 30fcdf84d8943e630af78a96320607c42e4d15aa)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-1/+1
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r7511: Add three new command line switches to testparm:Lars Müller1-1/+40
--show-all-parameters Enumerates all available parameters, grouped in to sections [local] and [global] by the class of the parameter. Each line is formated name=type[,enum values],flags --parameter-name Display the setting of the named parameter. The global section is assumed if no other is set with --section-name --section-name Limit the view of testparm to the named section. Use 'global' to only view the settings of the global section. This fixes bug #2767. Lars (This used to be commit a1b82624d739b1066c356dd4b689233f3c36814e)
2007-10-10r5176: Warn the user that print command is ignored when using cups librariesSimo Sorce1-0/+7
(This used to be commit 142461204718d489bbeff451878a52208b9891bc)
2007-10-10r3683: BUG 2017: fix testparm reporting for the passwd program stringGerald Carter1-1/+1
(This used to be commit 23422aeec04dfb72a0ad5b0a67622cec69ca502d)
2007-10-10r2826: Complain if 'password chat' doesn't contain the %u variable. based on ↵Jelmer Vernooij1-1/+8
a patch by Ronan Waide (This used to be commit a48b3b291cfe5883da1a36b368ddf725b5ff9375)
2004-03-09Added strstr_m() function. Use in all places where we might run into mbJeremy Allison1-1/+1
(should fix the mb service name problem, can't remember the bugid). Jeremy. (This used to be commit 94a272b9a881ec0004c5da2a7242b0a818da5630)
2003-10-20Changed output so all debug output goes to stderr, and all file processingJohn Terpstra1-40/+40
goes to stdout. Note: This change permits use of testparm processing of smb.conf to be redirected into a file that can be used as an smb.conf file. ie: All information that should not be in smb.conf will be on stderr, all pertinent smb.conf info will go to stdout. Example of use: A fully documented smb.conf.master file can be maintained. To create smb.conf do: testparm -s > smb.conf (This used to be commit 0450dc97731d95c7cd3b2c8a54721991fd6165df)
2003-09-29Testparm fixes:Jelmer Vernooij1-3/+9
- Also check global 'hosts allow'/'hosts deny' when checking access to share - Warn when user specifies 2 arguments instead of 1 or 3. Patch from Jay Fenlason <fenlason@redhat.com> (This used to be commit 2690c185f01b8fb4307dc803fb90c00400f2da69)
2003-09-15Fixed test and wording for long share names.Christopher R. Hertel1-3/+4
The RAP NetShareEnum() call has a length limit of 12 characters (not 8, as previously tested). Took DaveCB's suggested and added a note listing some of the client systems that might be affected. (This used to be commit be06e52ce05e88f3872563a61ae29f62afd614fc)
2003-09-08Fix for incorrect error message - found by Alex Davis <alex14641@yahoo.com>.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 28631ef23f855ce91740fd144e3dc235a3ae7af6)
2003-08-12Test invalid map system, map hidden, create mask, force create maskJeremy Allison1-0/+21
parameters. Fix return code for Samba 4 torture tester. Jeremy. (This used to be commit c043835c878ff062cb6eede02334f9e0ebb01050)