summaryrefslogtreecommitdiff
path: root/source4/param/loadparm.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-29s4-param: set a default logfileAndrew Tridgell1-0/+5
setup a logfile for when one is not specified in smb.conf Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-25lib/util/charset rename iconv_convenience to iconv_handleAndrew Bartlett1-8/+8
This better reflects what this structure is Andrew Bartlett
2011-03-22s4:param/loadparm.c - check for OOMMatthias Dieter Wallnöfer1-0/+3
Return NULL if the loadparm context hasn't been allocated Reviewed-by: Jelmer
2011-03-01lib/util: new merged debug systemAndrew Bartlett1-12/+18
This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
2011-02-18lib/util/charcnv Move iconv handle setup in commonAndrew Bartlett1-5/+1
We now use the struct smb_iconv_convenience at the core of all our iconv code, and use global_iconv_convenience for the callers that don't specify one. Andrew Bartlett
2011-02-14s4: load the backupkey endpointMatthieu Patou1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-02-07s4-loadparm: removed "setup directory" optionAndrew Tridgell1-6/+0
the correct setup directory is known at both build time and install time using dyn_SETUPDIR, so we no longer have any need to override it Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-17param: Load web service by default.Jelmer Vernooij1-1/+1
2010-12-12s4:param/loadparm.c - fix a warning by introducing a "const" castMatthias Dieter Wallnöfer1-1/+1
2010-12-09s4-client Use NTLMv2 by default in the Samba4 client.Andrew Bartlett1-0/+1
2010-12-08s4-param Allow +foo syntax in smb.conf list parsingAndrew Bartlett1-10/+49
The idea here is to allow an smb.conf file to work from the defaults, rather than override them. For example, 'server services = +openchange'. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Dec 8 09:39:06 CET 2010 on sn-devel-104
2010-11-29s4-loadparm: added loadparm_init_global()Andrew Tridgell1-0/+27
This ensures we use the same loadparm_context in all our command line tools. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-24s4-dynconfig: override more paths when running from the build directoryAndrew Tridgell1-3/+3
this ensures consistency between binaries and scripts when testing as a developer
2010-11-17s4-loadparm: set debuglevel and logfile in tablesAndrew Tridgell1-0/+5
this allows the debug level and logfile to be queried from python using lp.get(). Otheriwse they are set only in the globals, and not in the tables.
2010-11-17s4-loadparm: fixed a memory leak in handle_realm()Andrew Tridgell1-0/+3
we need to free the lowercase and uppercase varients
2010-11-11s4-loadparm: fix the FLAG_DEFAULT settings on specially handled parametersAndrew Tridgell1-3/+8
parameters with special handlers also need to clear the FLAG_DEFAULT flag when set Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 11 03:39:23 UTC 2010 on sn-devel-104
2010-11-11s4-loadparm: fixed dumping of non-default parms with testparmAndrew Tridgell1-13/+33
when using testparm without -v we should only dump non-default parameters. This patch fixes up the handling of the FLAG_DEFAULT flag in loadparm to correctly mark parameters as default or not, including parametric options Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-11s4-server: move the creation of the IPC$ share into ntvfsAndrew Tridgell1-36/+0
the IPC$ share is only used by the ntvfs backends, and doesn't need to be created on every load of smb.conf. This fixes a problem with testparm showing the ipc$ share when it isn't defined in smb.conf. This also removes the admin$ share, which really shouldn't be on by default. The admin$ share is used for remote software installation, and normally exposes the c:\windows directory on a windows server. That makes no sense on Samba. If for some reason a admin$ share is needed, then the admin can create one as usual. Exposing /tmp via admin$ by default seems like a bad idea. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-23s4/eventlog6: Build and hook EventLog6 RPC endpont mapper and idlAnatoliy Atanasov1-1/+1
2010-09-15s4-auth: when we are a DC enable winbind authAndrew Tridgell1-1/+3
As a RODC we need to forward some auth requests to a writable DC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-11s4-param: removed the lp_ varients of the functionsAndrew Tridgell1-18/+9
these made debugging much harder. We should replace these with generated macros
2010-07-16s4-loadparm: change lp_*() to lpcfg_*() and provide s3 compatibility lp_*()Andrew Tridgell1-380/+408
This patch changes all Samba4 loadparm functions that take a loadparm_context or a loadparm_service structure to use a lpcfg_*() prefix. It then creates lp_*() functions which are wrappers around the lpcfg_*() functions. This should allow us to mix Samba3 and Samba4 code which uses loadparm calls. This first patch just makes the manual changes to the core loadparm code. The tree will not build with just this patch. The next patch replaces all of the callers, and was generated automatically with a perl script. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-05-28s4:param/loadparm.c - fix "asprintf" callMatthias Dieter Wallnöfer1-2/+3
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-2/+1
2010-04-29s4: remove unused references to swatStefan Metzmacher1-4/+0
metze
2010-04-27s4-param: added a "spn update command" optionAndrew Tridgell1-0/+4
used by SPN update code
2010-04-19s4-param: set SMB_CONF_PATH when we load a smb.confAndrew Tridgell1-0/+6
this is inherited by child python processes, to ensure they get the right smb.conf if they don't have one specified. Fixes bug 7301 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-03-18charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell1-4/+8
We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values.
2010-02-26s4-dns: use a loadparm list for samba_runcmd() commandsAndrew Tridgell1-6/+6
This allows commands with multiple arguments and quoting to be used, while still avoiding running a shell (and this having shell expansion problems)
2010-02-26s4-param: added 'nsupdate command' option, default to /usr/bin/nsupdate -gAndrew Tridgell1-0/+4
2010-02-23s4-param: added "dns update command" smb.conf optionAndrew Tridgell1-0/+4
defaults to SBINDIR/samba_dnsupdate This command will do periodic dynamic DNS updates using TSIG-GSS
2010-02-17s4-param: added "rndc command" smb.conf optionAndrew Tridgell1-0/+4
2010-02-13s4:loadparm.c - prevent memory leaksMatthias Dieter Wallnöfer1-0/+3
If a "logfile" was already set, free the content up before setting a new location. This can happen on a loadparm reload.
2010-02-13s4:loadparm.c - the logfile parameter value needs to be duplicatedMatthias Dieter Wallnöfer1-1/+1
Otherwise the "logfile" pointer tracks all changes of "pszParmValue" which content is only temporal. This was the cause of bug #6212.
2010-02-11s4-dns: added a dns update taskAndrew Tridgell1-1/+1
This task watches for changes in the list of DCs, and creates a bind9 formatted file that grants update permission to all DCs, plus to the administration, and machines update for their own names. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-12-14s4-loadparm: call reload_charcnv() also for a missing smb.confAndrew Tridgell1-0/+4
bin/net vampire with a missing smb.conf would segfault as the iconv convenience pointer had not been setup.
2009-11-24s4:param remove reference to private header from source4/param/param.hBrad Hards1-0/+1
source4/param/param.h has a param.h is a public header (and parmlist isn't, even if the relative path could work), so I suggest making it a forward declaration in the header, and including parmlist.h in the implementation. (commit message included from e-mail by Andrew Bartlett) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-02s4 - SID allocation using FDS DNA pluginEndi S. Dewata1-0/+8
2009-10-24s4:loadparm: don't leak the names of all shares in each lp_service() callStefan Metzmacher1-1/+4
metze
2009-10-14s4:loadparm - adapt "realm" handlingMatthias Dieter Wallnöfer1-3/+23
Change "lp_realm" behaviour to return the realm always upcased and add a function "lp_dnsdomain" which returns it always lowcased.
2009-09-27parmlist: Add more tests.Jelmer Vernooij1-12/+12
2009-09-11s4-kcc: add a very simple KCCAndrew Tridgell1-1/+1
A KCC is a 'Knowledge Consistency Checker', a fancy name for a daemon that works out who will replicate with who in a AD domain. This implements an extremely simple KCC task that just wants to replicate with everyone :-)
2009-07-02s4:param use talloc_unlink() to free iconv context holding referencesAndrew Bartlett1-1/+1
2009-05-26Don't use crossRef records to find our own domainAndrew Bartlett1-0/+1
A single AD server can only host a single domain, so don't stuff about with looking up our crossRef record in the cn=Partitions container. We instead trust that lp_realm() and lp_workgroup() works correctly. Andrew Bartlett
2009-05-08s4:loadparm: fix a comment typo. and line wrapping.Michael Adam1-1/+2
Michael
2009-05-08s4:loadparm: fix brace indentation and add brace for clarityMichael Adam1-2/+4
Michael
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-2/+2
2009-02-02s4:loadparm: s/class/pclassStefan Metzmacher1-9/+9
metze
2009-01-16loadparm: Make sure various state variables get initialized even when weJelmer Vernooij1-29/+40
couldn't load a default smb.conf file.
2009-01-16Find default smb.conf path correctly, when it was not specified on theJelmer Vernooij1-4/+10
command-line.