summaryrefslogtreecommitdiff
path: root/source3/param
AgeCommit message (Collapse)AuthorFilesLines
2008-12-05Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.confYasuma Takeda1-1/+15
2008-11-06Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison1-4/+4
talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
2008-11-06Add wrapper str_list_make_v3() to replace the old S3 behavior ofJeremy Allison1-4/+4
str_list_make(). From Dan Sledz <dan.sledz@isilon.com>: In samba 3.2 passing NULL or an empty string returned NULL. In master, it now returns a list of length 1 with the first string set to NULL (an empty list). Jeremy.
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij1-1/+1
2008-11-01Samba3: Include util.h header file rather than having custom prototypes.Jelmer Vernooij1-41/+4
2008-10-18Use str_list_equal() rather than str_list_compare().Jelmer Vernooij1-3/+3
2008-10-18[s3]loadparm: remove param/params.c which is used no more.Michael Adam1-590/+0
Michael
2008-10-18[s3]test_lp_load: fix "no talloc stackframe around" messageMichael Adam1-1/+1
gfree_loadparm() and TALLOC_FREE(frame) were in the wron order. Michael
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-1/+1
2008-10-12Use common util_file code.Jelmer Vernooij2-6/+6
2008-10-12Share data_blob implementation.Jelmer Vernooij1-4/+3
2008-10-10If you have a large number of cups printers, then scanning for print info ↵Jeremy Allison1-1/+1
can cause a client to timeout (it takes longer than 30 seconds to enumerate them). Make scanning for printers async with a callback from the main loop. This fixes a bug that was irritating *me* :-). Jeremy.
2008-09-27[s3]loadparm: refactor freeing of parameter data out and reduce memleak.Michael Adam1-35/+53
Add new functions free_parameter(), free_parameters() and free_global_parameters() and use these in the appropriate places, reducing code duplication. Also, always TALLOC_FREE data of type P_LIST, thus reducing mem-leaks: This had not been done in init_globals before. Michael
2008-09-27[s3]loadparm: in lp_do_parameter() use function lp_local_ptr()Michael Adam1-3/+1
instead of hard coded calculation. Michael
2008-09-27[s3]loadparm: remove superfluous talloc context / talloc_stackframe call.Michael Adam1-5/+0
Michael
2008-09-27[s3]loadparm: refactor setting parametric options in list outMichael Adam1-52/+45
into new function set_param_opt(). This unifies and clarifies two instances of the code. Michael
2008-09-27[s3]loadparm: fix memory error - free the right param_opt->list in copy_service.Michael Adam1-1/+1
Michael
2008-09-27[s3]loadparm: refactor freeing of parametric options into free_param_opts().Michael Adam1-41/+34
This code was there in three places. Michael
2008-09-27[s3]loadparm: rename process_registry_service() to process_smbconf_service().Michael Adam1-3/+3
There is nothing registry-specific in that function. Michael
2008-09-27[s3]loadparm: add a command test_lp_load to test the lp_load function.Michael Adam1-0/+88
This is not like testparm, just a simple tool that runs lp_load_with_registry_shares the requested number of times. Michael
2008-09-24printing: Rename new parameter "cups timeout" to "cups connection timeout".Karolin Seeger1-5/+5
Karolin
2008-09-23printing: Add new parameter "cups timeout".Karolin Seeger1-0/+13
The default timeout for connections to CUPS servers is set to 5 minutes in the CUPS libraries. The smbd hangs on startup until the timeout is reached if the CUPS server is unreachable. This parameter makes the timeout configurable. The default value is set to 30 seconds. Karolin
2008-09-03Fix bug #5729. Explicitly allow "-valid".Jeremy Allison1-1/+1
Jeremy (This used to be commit 4f2de29723bb7e588e6c9440649b57d56d10b587)
2008-08-26Increase the default positive idmap cache time to a weekVolker Lendecke1-1/+1
(This used to be commit 60af63675063ad62c0169b9f2094ecfdaa7ca16d)
2008-08-22loadparm: idmap backend is not depracated any longer.Karolin Seeger1-1/+1
Karolin (This used to be commit fcfab4703628e19902c140a7ad9531d4be0de01d)
2008-08-20Here is a re-working of the winbinddJeremy Allison1-0/+12
reconnect code to cope with rebooting a DC. This replaces the code I asked Volker to revert. The logic is pretty simple. It adds a new parameter, "winbind reconnect delay", set to 30 seconds by default, which determines how long to wait between connection attempts. To avoid overwhelming the box with DC-probe forked children, the code now keeps track of the DC probe child per winbindd_domain struct and only starts a new one if the existing one has died. I also added a little logic to make sure the dc probe child always sends a message whatever the reason for exit so we will always reschedule another connect attempt. Also added documentation. Jeremy. (This used to be commit 8027197635b988b3dcf9d3d00126a024e768fa62)
2008-08-12Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison1-0/+1
Here is a patch to allow many subsystems to be re-initialized. The only functional change I made was to remove the null context tracking, as the memory allocated here is designed to be left for the complete lifetime of the program. Freeing this early (when all smb contexts are destroyed) could crash other users of talloc. Jeremy. (This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
2008-08-12idmap rewriteVolker Lendecke1-14/+4
(This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
2008-08-09loadparm: add two parameters "init logon delay hosts" and "init logon delay"Michael Adam1-0/+24
"init logon delays hosts" takes a list of hosts names or addresses or networks for which the initial SAMLOGON reply should be delayed (so other DCs get preferred by XP workstations if there are any). This option takes the same type of list as "hosts allow" does. "init logon delay" allows one to configure the delay for the hosts configured for delayed initial samlogon with "init logon delayed hosts". The value is interpreted as milliseconds. The default value is 100. This commit only introduces the parameters. They will be activated in a subsequent commit. Michael (This used to be commit f7c1f85438f7e0da2a96e3fc8f774f8c6936370e)
2008-07-30testparm: Display warning if invalid values are used.Michael Adam1-1/+3
This one came up while using "csc policy = disabled" instead of "disable"... ;-) (This used to be commit d01da44de77abbf724389bce924771f2975867f4)
2008-07-16Sequel to c10aad9f13: Ignore whitespaces in parametric optionsVolker Lendecke1-24/+7
It's a bit difficult to explain why idmap config backend:FOO = rid should work while idmap config backend : FOO = rid should not. And I doubt we will ever see domain names with whitespaces... (This used to be commit 0207f99d3f02bd8ff5dadc1574fe13b46c3e09a3)
2008-07-16Tiny logic simplification: Remove an indentation by using an early return;Volker Lendecke1-46/+56
(This used to be commit 37dba0c192ec7d4105465beae0d6e8598c7dbb7a)
2008-07-16Remove a silly "typedef struct _param_opt_struct param_opt_struct"Volker Lendecke1-26/+28
(This used to be commit 78801431c896f1e2007d652b611c2ce1108e1023)
2008-07-15Fix swat. Bug #5613.Jeremy Allison1-9/+0
Jeremy (This used to be commit 15920f838835f5dbbac8712202267c2a99237686)
2008-07-11Revert "Slightly increase the default idmap cache time"Volker Lendecke1-1/+1
This reverts commit 448836d44d0468a74b962ba3c0b7d51de236374f. (This used to be commit a9b29ab6b7503d6d30553a17219603a4f4cd3df9)
2008-07-03Slightly increase the default idmap cache timeVolker Lendecke1-1/+1
(This used to be commit 448836d44d0468a74b962ba3c0b7d51de236374f)
2008-07-03Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp> for bug #5202. Re-activate ↵Jeremy Allison1-1/+1
"acl group control" parameter and make it only apply to owning group. Also added man page fix. Jeremy. (This used to be commit e98e080bad2c8b9f038a8f2dffcfeba1d5f392ce)
2008-06-25Fix the buildVolker Lendecke1-1/+1
(This used to be commit 3bfeae651ff4bd0d777e7bc5980008960d8e5a44)
2008-06-25make parametic options case insensitiveAndrew Tridgell1-1/+1
This is needed as some options are uppercased internally in Samba, such as the idmap config option Without this change it is not possible to set these options via net conf which lowercases options (This used to be commit c10aad9f136b7c2ef4809fd8558013ab2ee40cf6)
2008-06-19loadparm: use the return value of the special handlers in lp_load().Michael Adam1-2/+2
Up to now, the bool return value was silently ignored. Michael (This used to be commit c65d425fec964bc0b8778b596615a8bcce0378aa)
2008-06-19loadparm: don't treat a missing include file as an error in handle_include().Michael Adam1-1/+1
Michael (This used to be commit a8ef8870beb91fcd2745aa59de6c59b49ea00e39)
2008-06-03Always set "registry shares = yes" for "include = registry"Volker Lendecke1-1/+5
This fixes the case where "include = registry" is set in the smb.conf text file and *only* shares (no [global] settings) are present in the registry. Michael, please check! Thanks, Volker (This used to be commit 6c80362e291d8c5e748b987a583e8e32acc36354)
2008-06-03Add ldap connection timeout for OpenLDAP and Netscape LDAP libs. This can be ↵Björn Jacke1-1/+13
controlled via the ldap connection timeout parameter. This fixes fallbacks to secondary LDAP servers in multi LDAP server setups like in #4544 (This used to be commit 8e59a2fedc940b081222b0e8f90fe0c5a0981c06)
2008-05-27loadparm: fix process_registry_shares() when there is only [global] in registry.Michael Adam1-0/+2
This fixes testparm printing "Error loading services." when there is only the global section in registry and no other service definition. Michael (This used to be commit 28d197220038b9a47af177b88a8587f865e45de5)
2008-05-26loadarm: fix testparm with "config backend = registry".Michael Adam1-2/+3
Set the iServiceIndex to "-1" for starup with either config backend (originally only for text backend). Otherwise, process_registry_shares() will fail. Currently, the only user of lp_load_with_registry_shares() is testparm. Michael (This used to be commit 5e2b925367241c41793b2eb7a628e9fc9f3ac8ff)
2008-05-15loadparm: add funcion lp_load_with_registry_shares().Michael Adam1-0/+15
This is like lp_load(), except that it will load the registry shares into the services aarray when registry shares are activated. Michael (This used to be commit b387c614ba8d1d3960f6917f03f0fd433cf2b2ee)
2008-05-15loadparm: add call to do_section() to process_registry_service().Michael Adam1-0/+4
Michael (This used to be commit e1b76cd5d646bb9083cfca0d15a84183cad72882)
2008-05-15loadparm: add parameter allow_registry_shares to lp_load_ex().Michael Adam1-3/+10
This allows for registry shares to be activated, i.e. loaded into the services array at lp_load() time. Michael (This used to be commit b3233ecefd5df745ba7e10511f9ab36064036b10)
2008-05-15loadparm: add a function process_registry_shares()Michael Adam1-0/+37
This loads the shares defined in registry into the services array. Michael (This used to be commit b3a90b72517c2e25d972796908aec4d2b85a030e)
2008-05-15loadparm: refactor processing of service out of process_registry_globals()Michael Adam1-8/+23
into new function process_registry_service(). Michael (This used to be commit 2986e5174e69527465ae7ef8e108110416752b56)