summaryrefslogtreecommitdiffstats
path: root/source4/param/util.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/param move source4 param code to the top levelAndrew Bartlett2011-10-111-266/+0
| | | | | | | | | | | | This is done so that the lpcfg_ functions are available across the whole build, either with the struct loadparm_context loaded from an smb.conf directly or as a wrapper around the source3 param code. This is not the final, merged loadparm, but simply one step to make it easier to solve other problems while we make our slow progress on this difficult problem. Andrew Bartlett
* lib/util: consolidate module loading into common codeAndrew Bartlett2011-10-061-104/+0
| | | | | | This creates a samba-modules private libary that handles the details. Andrew Bartlett
* lib/util/charset: remove charset module loadingAndrew Bartlett2011-09-201-3/+3
| | | | | | | | | | | | | Now that the 'table' modules are gone, there is no reason for there to be charset modules at all. This builds the macosxfs and weird modules into the binary at the appropriate times, and changes the tests to test instead the difference between the remaining internal handlers and iconv(). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 20 06:27:06 CEST 2011 on sn-devel-104
* s4:param: add "state dir" and "cache dir" optionsStefan Metzmacher2011-07-121-0/+56
| | | | metze
* lib/util/charset: Remove 'display charset'Andrew Bartlett2011-06-231-1/+0
| | | | | | | | | | | | | | | | | As discussed in 'CH_DISPLAY and gettext' on the samba-technical list: http://lists.samba.org/archive/samba-technical/2011-June/078190.html Setting this to a value other than 'unix charset' does not make sense, as any system where the filesytem charset does not equal the terminal charset will already have problems with programs as simple as 'ls'. It also means that our output could not be pasted as our input in interactive programs or onto our command line, as we never did translate in the DISPLAY -> UNIX direction. The d_printf() calls are retained in case we need to revisit this, and to support display_set_stderr(). Andrew Bartlett
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-061-1/+1
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-061-9/+1
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* s4-param make lpcfg_sam_name() cope with PDC and BDC rolesAndrew Bartlett2011-06-061-1/+2
| | | | | | | These roles (ROLE_DOMAIN_CONTROLLER is ROLE_DOMAIN_BDC) will come in from the s3 loadparm. Andrew Bartlett
* s4-messaging Rename messaging -> imessagingAndrew Bartlett2011-05-031-1/+1
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* s4-param Rename private_path() -> lpcfg_private_path()Andrew Bartlett2011-04-291-2/+2
| | | | | | This is consistent with lock_path() Andrew Bartlett
* s4-param Remove config_path() -> lpcfg_config_path()Andrew Bartlett2011-04-291-1/+1
| | | | | | This is consistent with lock_path() Andrew Bartlett
* s4-param Rename lock_path() -> lpcfg_lock_path()Andrew Bartlett2011-04-291-1/+1
| | | | This avoids a conflict with the source3/ lock_path()
* lib/util/charset rename iconv_convenience to iconv_handleAndrew Bartlett2011-03-251-3/+3
| | | | | | This better reflects what this structure is Andrew Bartlett
* lib/util/charcnv Move iconv handle setup in commonAndrew Bartlett2011-02-181-0/+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
* s4-modules: remove LD_SAMBA_MODULE_PATHAndrew Tridgell2010-10-301-2/+1
| | | | | | | this isn't needed now that we automatically get the module path right in our build and install trees Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4 param: change messaging directory name from messaging to msgMatthieu Patou2010-10-151-1/+1
| | | | | | | | | | | | This saves 6 chars and as in some installation users tends to install samba in directory with very long name they have a problem with the sockets. It will also ease the pain on buildfarms as we tend to have very long environnement name (ie. vampire_dc) in path that are already quite long leading also to errors on unix socket manipulation. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Oct 15 08:15:56 UTC 2010 on sn-devel-104
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-21/+21
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell2010-03-181-5/+7
| | | | | | | | | | | 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.
* support config files in the current directoryAndrew Tridgell2009-09-031-2/+7
|
* Don't use crossRef records to find our own domainAndrew Bartlett2009-05-261-0/+17
| | | | | | | | 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
* Allow 'net vampire' to work without an existing smb.confAndrew Bartlett2009-03-041-1/+1
| | | | | | | Now the provision can generate one based on the detected settings from the target domain. Andrew Bartlett
* Fix function name in error message when failing to load module.Jelmer Vernooij2008-12-221-1/+2
|
* Change our module code to not use the special symbol name init_module()Andrew Tridgell2008-06-171-1/+1
| | | | | | | | | | Current glibc libraries include a function called init_module(). If we use the same name, then a dlsym() can find the glibc function if the module doesn't have an initialisation function. In ldb, none of our modules have an init_module(), so we end up calling the libc functions with bogus arguments. (This used to be commit 1b0621068998590e7b1e9528b78744dcd2cd5909)
* Use new dynconfig.h location.Jelmer Vernooij2008-05-271-1/+1
| | | | (This used to be commit c3f556915f09d078253e4c5539910a1cf420eeca)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-11/+11
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r26449: Support configuration without a known configuration dir.Jelmer Vernooij2007-12-211-0/+3
| | | | (This used to be commit d3643c2152a490952e59ee15b7a62ad3ad465462)
* r26434: Remove display charset from iconv convenience context.Jelmer Vernooij2007-12-211-1/+0
| | | | (This used to be commit a76625994abf9906d54ae11f9c171f89063cf508)
* r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij2007-12-211-12/+1
| | | | (This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
* r26427: Avoid global_smb_iconv_convenience.Jelmer Vernooij2007-12-211-0/+5
| | | | (This used to be commit bf072c6fb37b3e6a71c0c747b9fbeaa01480229e)
* r26357: Add separate subsystem for auth_sam_reply parsing.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 2d61e7c96e249d7031b709e9f727626a78e435f1)
* r26315: Avoid using lp_ functions in libcharset.Jelmer Vernooij2007-12-211-0/+16
| | | | (This used to be commit db6dd425e3526c04e96d778a736dbb5cf14ddc56)
* r25547: Convert to standard bool type.Jelmer Vernooij2007-10-101-3/+3
| | | | (This used to be commit 97a241692c4b8dc45e086aa9b959f2cd30b8d6c9)
* r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij2007-10-101-54/+34
| | | | | | | | 2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-7/+7
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-1/+2
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r24814: Fix headers, trim core.h even more.Jelmer Vernooij2007-10-101-0/+87
| | | | (This used to be commit 9647f860bdd5c0a74583e886182bd041a45e7655)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r20988: Call out to Heimdal's krb5.conf processing to configure many aspectsAndrew Bartlett2007-10-101-0/+22
| | | | | | | | | | | | of KDC behaviour. This should allow PKINIT to be turned on and managed with reasonable sanity. This also means that the krb5.conf in the same directory as the smb.conf will always have priority in Samba4, which I think will be useful. Andrew Bartlett (This used to be commit a50bbde81b010bc5d06e3fc3417ade44627eb771)
* r19507: Merge my DSO fixes branch. Building Samba's libraries as shared ↵Jelmer Vernooij2007-10-101-1/+4
| | | | | | | libraries works again now, by specifying --enable-dso to configure. (This used to be commit 7a01235067a4800b07b8919a6a475954bfb0b04c)
* r15573: Fix build of systems that have iconv headers in non-standard locationsJelmer Vernooij2007-10-101-1/+0
| | | | | | | Split of system/locale.h header from system/iconv.h Previously, iconv wasn't being used on these systems (This used to be commit aa6d66fda69779d1c2948a1aca85dbd5208f1cba)
* r14914: Remove printf statement I accidently committed.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit ca4d1b4c0e1a18c2b071f49076251369370a785c)
* r14909: Add lp_modulesdir() smb.conf optionJelmer Vernooij2007-10-101-1/+2
| | | | (This used to be commit eaa68826d34c2bebc3df5e96aed2102debb67964)
* r14575: Move some path-related functions to libsamba-config so libsamba-utilJelmer Vernooij2007-10-101-0/+194
doesn't have to depend on the lp_* functions. (This used to be commit f97df7d90a41b77a9edd2d6bdc47c27bf1b6bb07)