1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

524 Commits

Author SHA1 Message Date
Andrew Bartlett
b422a78df2 Fix 'oplocks' in loadparm.
I forgot one more place where I must specify the new config option.  I
wish this was more templated...

Andrew Bartlett
(This used to be commit 5a740f4daa)
2008-03-28 10:18:06 +11:00
Andrew Bartlett
d554590d33 Fix how we initialise the oplocks parameter.
Andrew Bartlett
(This used to be commit 08ec91958d)
2008-03-27 21:00:04 +11:00
Andrew Bartlett
91ae032c53 Actually call into lp_oplocks() in share_classic backend.
Andrew Bartlett
(This used to be commit 2c18482b19)
2008-03-27 20:50:39 +11:00
Andrew Bartlett
4fc27c9969 Make oplocks a per-share option.
This even goes via the share options system (a very odd layer of indirection).

Andrew Bartlett
(This used to be commit f2c65f9907)
2008-03-27 20:32:02 +11:00
Jelmer Vernooij
fb6fdfce37 Fix the build.
(This used to be commit f2e4974471)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
2bf39edc9d Push SOVERSION and VERSION out of perl code.
(This used to be commit 0ba8ac6a14)
2008-03-08 15:28:12 +01:00
Jelmer Vernooij
fc2cd5ed63 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit e4da851bd7)
2008-03-07 18:03:54 +01:00
Andrew Bartlett
14c5f968e1 Rework provision scripts for more testing
This fixes up some issues with testdir (was not honoured) and
increases test coverage.

We now check all the major provision modes.  In doing so, to make it
possible to call from the multiple layers of 'sh', I have allowed 'dc'
to alias 'domain controller' and 'member' to alias 'member server'.
Fighting shell quoting in the test system was just too hard...

Also fix upgrade.py

Andrew Bartlett
(This used to be commit 0923de1228)
2008-03-07 10:57:52 +11:00
Stefan Metzmacher
3cbe47b2ae libcli/raw: make it possible to not send CAP_LEVEL_II_OPLOCKS
But the keep the default to always send it
when the server supports it too.

metze
(This used to be commit 33caaef2e4)
2008-03-06 16:31:25 +01:00
Jelmer Vernooij
2d1c06c578 Fix includes.
(This used to be commit 99e61dade2)
2008-03-04 00:43:24 +01:00
Jelmer Vernooij
b29d47edcf Move object file lists to the Makefile.
(This used to be commit a7e6d2a183)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
489f66cd42 Change remaining prototype headers to be private.
(This used to be commit 2f7ff409e8)
2008-02-29 14:36:51 +01:00
Jelmer Vernooij
1ada710840 Move public header accumulation out of the perl code.
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.

Conflicts:

	source/auth/config.mk
	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/config_mk.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/lib/charset/config.mk
	source/lib/tdr/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/torture/config.mk
(This used to be commit 6c659689ed)
2008-02-29 14:23:38 +01:00
Jelmer Vernooij
c8011b5d09 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:

	source/scripting/python/config.mk
(This used to be commit 0ac0ea660a)
2008-02-29 12:45:46 +01:00
Jelmer Vernooij
2ba62662f8 Remove sDefault as static variable.
(This used to be commit 16f36ce499)
2008-02-28 20:04:58 +01:00
Jelmer Vernooij
80d1d2a4db Clarify comments.
(This used to be commit 5193b38376)
2008-02-27 19:37:13 +01:00
Jelmer Vernooij
c5d77a1c24 Move public header accumulation out of the perl code.
(This used to be commit 89f7c74924)
2008-02-26 17:17:52 +01:00
Jelmer Vernooij
f112578843 Remove public prototype headers. Generating both public and private prototype headers is tricky with gmake and it's easy to break backwards compatibility for the public API with them.
(This used to be commit dee1cb6b08)
2008-02-25 23:09:56 +01:00
Kai Blin
2ca1aeb59b loadparm: Add configuration settings for idmap.
Default behaviour for "idmap trusted only" is "False", meaning idmap creates
ID mappings for all SIDs.

If set to "True", idmap will create SID mappings for trusted users only.

"idmap database" allows to set the database idmap uses, defaulting to
idmap,ldb
(This used to be commit ed8178b110)
2008-02-21 11:21:54 +01:00
Jelmer Vernooij
80cbff3d01 Fix build with partial linking.
(This used to be commit bfad9610c4)
2008-02-18 16:02:33 +01:00
Kai Blin
c10e0dee34 loadparm: Clean up trailing whitespace
No code change. Couldn't resist.
(This used to be commit abc816b388)
2008-02-14 12:32:29 +01:00
Andrew Bartlett
b3c5fbec47 Remaining changes to implement the prefork process model
To use, run 'smbd -M prefork'

By default, only the smb service is preforked.  4 children are
created, and all listen for new connections.  The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept.  We need to look into the ideal number of worker children, as
well as load balancing behaviours.

To change, set:

prefork children : smb = 6

valid service names (smb in this example) match those in 'server services'.

Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3)
2008-02-04 17:59:16 +11:00
Jelmer Vernooij
00cb710fbc Add bindings for lp_load_default().
(This used to be commit ffd793bbde)
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
a259547786 build: Remove support for DESCRIPTION setting that is now unused.
(This used to be commit 91d7ba5202)
2008-01-22 18:49:51 +01:00
Jelmer Vernooij
f254d53202 param: Use manually written .pc file.
(This used to be commit c0165aab47)
2008-01-22 18:41:30 +01:00
Jelmer Vernooij
03023c4f7d build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
to migrate to a new build system.
(This used to be commit 77b400764e)
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
251457264b python: Accept loadparm filename rather than loadparm object, too.
(This used to be commit 7e583a7ec4)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
3b16c532f2 pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
(This used to be commit 4c87af9531)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
dcc282590b r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
(This used to be commit 8a97886e24)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
7d5f0e0893 r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
(This used to be commit 2f29f80e07)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
ac65321a46 r26627: param: Provide a call for loading the system smb.conf.
(This used to be commit 2596b479ab)
2007-12-29 12:21:04 -06:00
Jelmer Vernooij
533cc583ed r26596: Fixed upgrade.py.
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
(This used to be commit 2227fb6df6)
2007-12-26 11:57:08 -06:00
Jelmer Vernooij
cc30cb5e24 r26592: Finish fixing the samba3dump script.
(This used to be commit 85679f3fc9)
2007-12-26 11:57:06 -06:00
Kai Blin
3c744ddd2c r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.
Also rename the corresponding wrap_ functions.
(This used to be commit e59c2eaf68)
2007-12-26 11:57:05 -06:00
Jelmer Vernooij
c13ae70731 r26580: Include sentinel in build.h, in case the list is empty.
(This used to be commit f1997dabed)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
be33f4c611 r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
d0ba9f0014 r26572: Fix warnings in the Python code.
(This used to be commit 15038d9586)
2007-12-24 01:51:04 -06:00
Jelmer Vernooij
aa0a06f13c r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
57b8a8fd42 r26517: Add functions for setting and getting parameters on a LoadParm.
Pass loadparm context along to Ldb contexts.
Other minor Python improvements.
(This used to be commit 7a15b486ba)
2007-12-21 05:51:23 +01:00
Jelmer Vernooij
f89c7a6e5e r26505: Add python bindings for some samdb-related functions, improve provisioning in python.
(This used to be commit d240225166)
2007-12-21 05:51:09 +01:00
Jelmer Vernooij
32f439bfa4 r26503: Change order of arguments in param interface so it's easier to make the
section name optional. Fix several smaller bits and pieces in the Python code.
(This used to be commit 1b89311e5f)
2007-12-21 05:51:06 +01:00
Jelmer Vernooij
01b96e47cd r26498: Fix memory leak in iconv code.
(This used to be commit 8795697db5)
2007-12-21 05:50:54 +01:00
Jelmer Vernooij
1bc38f9fb3 r26464: Tighten dependencies.
(This used to be commit 2b7cfa5d9a)
2007-12-21 05:50:29 +01:00
Jelmer Vernooij
b04bae8715 r26461: Tighten dependencies.
(This used to be commit a07050be33)
2007-12-21 05:50:27 +01:00
Jelmer Vernooij
a94142487a r26456: Provide default config object, fix typo.
(This used to be commit 2b59df2af9)
2007-12-21 05:50:24 +01:00
Jelmer Vernooij
df8c7da800 r26454: Add simple SWIG macro for wrapping talloced types.
(This used to be commit 760fcc8bfa)
2007-12-21 05:50:22 +01:00
Jelmer Vernooij
bf6d40f271 r26449: Support configuration without a known configuration dir.
(This used to be commit d3643c2152)
2007-12-21 05:50:14 +01:00
Jelmer Vernooij
864218b6be r26448: Add basic tests for param python module.
(This used to be commit ccfab20dcc)
2007-12-21 05:50:14 +01:00
Jelmer Vernooij
c39c94b499 r26447: Forgot to add param.i file.
(This used to be commit 44098e6a40)
2007-12-21 05:50:13 +01:00
Jelmer Vernooij
55f90f1166 r26446: Convert param module to SWIG.
(This used to be commit 94e5f9c92f)
2007-12-21 05:50:13 +01:00
Jelmer Vernooij
e31abef15f r26440: Remove more uses of global_loadparm.
(This used to be commit 8858cf3972)
2007-12-21 05:50:08 +01:00
Jelmer Vernooij
1167c9d9c6 r26436: Remove default of 0 for integer parameters when a lp_ctx of NULL is specified
(This used to be commit f3395db91a)
2007-12-21 05:50:04 +01:00
Jelmer Vernooij
2bf0cdd01c r26434: Remove display charset from iconv convenience context.
(This used to be commit a76625994a)
2007-12-21 05:50:04 +01:00
Jelmer Vernooij
83f9ee5860 r26433: Don't crash when a NULL lp_ctx is specified to a lp_parm_* function.
(This used to be commit 7f28b53b57)
2007-12-21 05:50:03 +01:00
Jelmer Vernooij
d891c0c74a r26429: Avoid use of global_smb_iconv_convenience.
(This used to be commit d37136b7ab)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
a5b8999f23 r26427: Avoid global_smb_iconv_convenience.
(This used to be commit bf072c6fb3)
2007-12-21 05:49:53 +01:00
Stefan Metzmacher
45d349eb80 r26425: fix crash bug, sorry I should have tested that...
metze
(This used to be commit 61d2f1a03b)
2007-12-21 05:49:51 +01:00
Stefan Metzmacher
21b024aa82 r26423: try to fix the build on solaris
metze
(This used to be commit 5b62180946)
2007-12-21 05:49:51 +01:00
Stefan Metzmacher
69e61fc153 r26415: LIBSAMBA-CONFIG used dlopen(), so it has to depend on LIBREPLACE_EXT for -ldl
This fixes the pidl/ndr_string test.

metze
(This used to be commit 7c6d9edffb)
2007-12-21 05:49:46 +01:00
Stefan Metzmacher
6a56c111d7 r26391: samba4 doesn't support 'lmhosts' as resolve module
metze
(This used to be commit cdb64b4101)
2007-12-21 05:49:21 +01:00
Jelmer Vernooij
f055893ca5 r26382: Remove more uses of global_loadparm.
(This used to be commit 6d4c598534)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
038c75c0cb r26357: Add separate subsystem for auth_sam_reply parsing.
(This used to be commit 2d61e7c96e)
2007-12-21 05:49:02 +01:00
Jelmer Vernooij
b65dba2245 r26355: Eliminate global_loadparm in more places.
(This used to be commit 5d589a0d94)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
dd7e5ed88c r26352: Don't make lp_load create a new context.
(This used to be commit d0d5c1a823)
2007-12-21 05:48:56 +01:00
Jelmer Vernooij
75ac6cd318 r26351: Fix handling of flags when there are multiple loadparm contexts around.
(This used to be commit c6da76b614)
2007-12-21 05:48:55 +01:00
Jelmer Vernooij
5c6eacdb04 r26350: More tests.
(This used to be commit 87799f55d5)
2007-12-21 05:48:55 +01:00
Jelmer Vernooij
5991108c81 r26349: More tests.
(This used to be commit c440b130a9)
2007-12-21 05:48:54 +01:00
Jelmer Vernooij
fd88c3ca24 r26348: Avoid use of autofree context.
(This used to be commit eebcf7e1b0)
2007-12-21 05:48:53 +01:00
Jelmer Vernooij
5f9aeca0d6 r26347: More tests.
(This used to be commit 5d927b5ca7)
2007-12-21 05:48:53 +01:00
Jelmer Vernooij
3c12ad6a95 r26346: Add tests for loadparm.
(This used to be commit 064a2329e1)
2007-12-21 05:48:52 +01:00
Jelmer Vernooij
fe77606ecc r26345: Fix dumping an individual parameter.
(This used to be commit e8065a7f8f)
2007-12-21 05:48:52 +01:00
Jelmer Vernooij
b0eec88131 r26344: Fix memory access.
(This used to be commit 966248108f)
2007-12-21 05:48:51 +01:00
Jelmer Vernooij
f2cd9f6633 r26343: Remove bLoaded global variable.
(This used to be commit 6c3ca6aa81)
2007-12-21 05:48:51 +01:00
Jelmer Vernooij
1cdc55f5ec r26342: Fix initialization.
(This used to be commit 2c9e17cb96)
2007-12-21 05:48:50 +01:00
Jelmer Vernooij
b10f731a27 r26340: Add special handlers for debuglevel and logfile.
(This used to be commit 2be4e8a444)
2007-12-21 05:48:50 +01:00
Jelmer Vernooij
a48fdda5fe r26339: Make loadparm talloc-allocated.
(This used to be commit 1e02cd8db1)
2007-12-21 05:48:49 +01:00
Jelmer Vernooij
6dc73da601 r26336: use offsets inside loadparm rather than pointers (allows multiple contexts to exist at the same time).
(This used to be commit 9c87c46c69)
2007-12-21 05:48:47 +01:00
Jelmer Vernooij
01d2acfdb4 r26335: Specify name_resolve_order to socket code.
(This used to be commit b03e5d0011)
2007-12-21 05:48:46 +01:00
Jelmer Vernooij
090d251c19 r26318: Don't rely on SAMDB functions in secrets database.
(This used to be commit 791285f66c)
2007-12-21 05:48:31 +01:00
Jelmer Vernooij
39ee38d9c1 r26316: Use contexts for conversion functions.
(This used to be commit f6420d933b)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
b440ed3df3 r26315: Avoid using lp_ functions in libcharset.
(This used to be commit db6dd425e3)
2007-12-21 05:48:27 +01:00
Jelmer Vernooij
6901b3c64a r26278: Tallocify convenience table for iconv handles.
(This used to be commit ad64b3baa4)
2007-12-21 05:48:04 +01:00
Jelmer Vernooij
b038240ac7 r26275: return loadparm context in lp_load.
(This used to be commit d01f0f4c20)
2007-12-21 05:48:01 +01:00
Jelmer Vernooij
509e82e402 r26272: Remove global_loadparm in some more places.
(This used to be commit 1ab76ecc53)
2007-12-21 05:47:55 +01:00
Jelmer Vernooij
ecea5ce245 r26260: Store loadparm context in gensec context.
(This used to be commit b9e3a4862e)
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e941)
2007-12-21 05:47:29 +01:00
Jelmer Vernooij
ab69eb8d89 r26250: Avoid global_loadparm in a couple more places.
(This used to be commit 2c6b755309)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
6c999cd123 r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
(This used to be commit 5b29ef7c03)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
f4a1083cf9 r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
(This used to be commit 0721a07aad)
2007-12-21 05:47:04 +01:00
Jelmer Vernooij
991ee1aff0 r26205: Pass loadparm_context to secrets_db_connect() rather than using global context.
(This used to be commit 5718b6cfee)
2007-12-21 05:46:51 +01:00
Jelmer Vernooij
cef98aaf27 r26203: Avoid using ldb_wrap for secrets database.
(This used to be commit b45093f01f)
2007-12-21 05:46:49 +01:00
Andrew Bartlett
a17c0a5a1a r26183: The idea of a self-seeding secrets.ldb is nice, but in practice we do
this with the provision, which sets up a very different database.
Removing this ensures we are consistant.

Andrew Bartlett
(This used to be commit 6d4d20ebaf)
2007-12-21 05:46:38 +01:00
Jelmer Vernooij
7f7bc26445 r26128: Some formatting fixes in secrets.c, fix free of filename, update ignores for source/..
(This used to be commit 2d0bd4b367)
2007-12-21 05:46:14 +01:00
Jelmer Vernooij
ed41cdb646 r26123: Use utility function for secrets.tdb path.
(This used to be commit 48b03ceeff)
2007-12-21 05:46:13 +01:00
Jelmer Vernooij
6357fb802a r26095: Add function for import a generic configuration file in a loadparm context.
(This used to be commit d74018d055)
2007-12-21 05:46:00 +01:00
Jelmer Vernooij
dc2273ba37 r26006: Improve some dependencies.
(This used to be commit 28f05bb5ef)
2007-12-21 05:45:41 +01:00
Jelmer Vernooij
ca0b72a1fd r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
(This used to be commit 56dfcb4f2f)
2007-12-21 05:45:40 +01:00
Jelmer Vernooij
6ee570c327 r25927: Move share tests to param directory.
(This used to be commit f12f623da5)
2007-12-21 05:45:05 +01:00
Jelmer Vernooij
d5a93dfcb9 r25547: Convert to standard bool type.
(This used to be commit 97a241692c)
2007-10-10 15:07:52 -05:00
Jelmer Vernooij
9b1fd7f52d r25471: Use macros for loadparm field names, should make migration to offsets rather than pointers easier later on.
(This used to be commit 3f98a97ac3)
2007-10-10 15:07:43 -05:00
Jelmer Vernooij
650abae845 r25463: revert accidently committed type changes for now, broke the build.
(This used to be commit ce4fbb4f44)
2007-10-10 15:07:41 -05:00
Jelmer Vernooij
8ffc4c1f97 r25462: Remove refernece to categories from js as well.
(This used to be commit 12d7cccd7c)
2007-10-10 15:07:40 -05:00
Jelmer Vernooij
f5f6d6d2ab r25461: Remove section headers in loadparm - trying to keep data and metadata separate and this should help when refactoring loadparm later on.
(This used to be commit e15fd412f9)
2007-10-10 15:07:40 -05:00
Jelmer Vernooij
30047a9543 r25460: use common structure in param/generic.c
(This used to be commit 01ce5448f4)
2007-10-10 15:07:40 -05:00
Jelmer Vernooij
5ecd526d1c r25456: Avoid externs for charsets for now - it breaks openchange.
(This used to be commit 836431af83)
2007-10-10 15:07:38 -05:00
Jelmer Vernooij
ce7bccef5f r25449: Add convenience function for opening the default smb.conf for openchange.
(This used to be commit 5f023ef7a4)
2007-10-10 15:07:36 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
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 3468952e77)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
95157091e3 r25410: Use C99 struct initialization.
(This used to be commit ad1513bc1b)
2007-10-10 15:07:29 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
3048e9ad65 r25392: Add loadparm context as argument in a couple more places.
(This used to be commit c62f51cc28)
2007-10-10 15:07:24 -05:00
Jelmer Vernooij
5e2f9cd8e2 r25379: Use loadparm context parameter in a lot more places.
(This used to be commit 091961b13b)
2007-10-10 15:07:22 -05:00
Jelmer Vernooij
dce6620a9e r25308: Remove use of pstring.
(This used to be commit 586246137c)
2007-10-10 15:07:12 -05:00
Andrew Bartlett
15c1801a5c r25051: Move SWAT back to the old-style form-submit modal.
The Web 2.0, async client tools were really interesting, but without
developer backing they remain impossible to support into a release.

The most interesting app was the LDB browser, and I intend to replace
this with phpLdapAdmin, preconfigured for Apache during provision.

This also removes the need to 'compile' SWAT on SVN checkouts.

Andrew Bartlett
(This used to be commit cda965e908)
2007-10-10 15:05:50 -05:00
Jelmer Vernooij
7e297ecfa4 r25047: Fix more warnings.
(This used to be commit 69de86d2d2)
2007-10-10 15:05:49 -05:00
Jelmer Vernooij
e44d8bc87f r25042: Avoid direct references to global loadparm context.
(This used to be commit 256532ab4b)
2007-10-10 15:05:46 -05:00
Jelmer Vernooij
46d16c0131 r25041: Use context in more places, fix warnings.
(This used to be commit 9bb8738945)
2007-10-10 15:05:46 -05:00
Jelmer Vernooij
9fd1b1c130 r25039: Rename service -> loadparm_service, use context more.
(This used to be commit ab417cb32b)
2007-10-10 15:05:45 -05:00
Jelmer Vernooij
e25545dbb6 r25038: Pass context in more places.
(This used to be commit 8df36c1535)
2007-10-10 15:05:45 -05:00
Jelmer Vernooij
2461a4f14b r25037: Start passing the context around.
(This used to be commit 88c72ac75f)
2007-10-10 15:05:44 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
5def5048ca r25031: Use pointers to services rather than service numbers when possible.
(This used to be commit dde12060ea)
2007-10-10 15:05:42 -05:00
Jelmer Vernooij
7a287e0704 r25028: Fix more warnings.
(This used to be commit 3aa7ee4a0d)
2007-10-10 15:05:41 -05:00
Jelmer Vernooij
dccf3f99e4 r25027: Fix more warnings.
(This used to be commit 5085c53fcf)
2007-10-10 15:05:41 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
b9c829b7d9 r25016: Create context for loadparm variables.
(This used to be commit a5e7631a36)
2007-10-10 15:05:36 -05:00
Jelmer Vernooij
d24e96619d r25015: Use talloc for all allocations in loadparm.
(This used to be commit 92b54faf99)
2007-10-10 15:05:36 -05:00
Jelmer Vernooij
e73df517c8 r25014: Use talloc for allocating values as well.
(This used to be commit 43f0e2622e)
2007-10-10 15:05:35 -05:00
Jelmer Vernooij
ee2ef3e5f0 r25013: Use talloc to allocate services in loadparm, use pointer to indicate validity.
(This used to be commit b8fc4435f8)
2007-10-10 15:05:34 -05:00
Jelmer Vernooij
482579bc5f r25012: Avoid use of pstring, fix coding style a bit.
(This used to be commit 66c53801dd)
2007-10-10 15:05:34 -05:00
Andrew Bartlett
b93a941214 r24915: Try to quiet down this warning - the 'classic' share code doesn't
support passwords for share-mode security (we don't even support share
mode security, and are unlikely ever to).

Andrew Bartlett
(This used to be commit 0d56ab59c5)
2007-10-10 15:03:38 -05:00
Jelmer Vernooij
8d182d881d r24816: Move the rest of the contents of core.h to more appropriate places.
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
(This used to be commit 6890a01dbf)
2007-10-10 15:03:15 -05:00
Jelmer Vernooij
82037a75ea r24814: Fix headers, trim core.h even more.
(This used to be commit 9647f860bd)
2007-10-10 15:03:14 -05:00
Jelmer Vernooij
0b91f39164 r24780: More work allowing libutil to be used by external users.
(This used to be commit 31993cf67b)
2007-10-10 15:03:10 -05:00
Jelmer Vernooij
61ffa08f4c r24712: No longer expose the 'BOOL' data type in any interfaces.
(This used to be commit 1ce32673d9)
2007-10-10 15:02:54 -05:00
Kai Blin
ae00e7e9b0 r24363: Add template shell and template homedir settings to smb.conf
(This used to be commit c7a44fcdc8)
2007-10-10 15:01:43 -05:00
Andrew Bartlett
a21ea3351a r23848: Thanks to derrell for pointing out that I had not finished my patch to
split out the auth methods.

This caused all SWAT logins to fail, except when using local system
authentication.

Andrew Bartlett
(This used to be commit b5a9d507a3)
2007-10-10 14:59:24 -05:00
Andrew Tridgell
cd1217ff5f r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 5c9b19271e)
2007-10-10 14:59:18 -05:00
Andrew Tridgell
4b71c210d5 r23796: main COPYING file for samba4, plus some formatting varients
(This used to be commit 76c6bfdeb5)
2007-10-10 14:59:14 -05:00
Andrew Tridgell
b8d69a7ea2 r23795: more v2->v3 conversion
(This used to be commit 84b468b2f8)
2007-10-10 14:59:14 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
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 fcf38a38ac)
2007-10-10 14:59:12 -05:00
Andrew Tridgell
b540bc85ff r23696: added the create mask and related share permissions options to Samba4,
using the new share_int_option() code from Simo

speaking of which, this is the first time I've looked closely at the
share_classic.c code. It is absolutely and completely braindead and
broken. Whatever drugs Simo was on at the time, he better not try to
cross a border with them on him!

Problems with it:

 - if you actually set a value, it gets ignored, and the defvalue gets
   used instead ('ret' is never returned). If you don't set a value,
   then defvalue gets returned too. Sound useful?

 - it means we now have to list parameters in source/param/ in lots
   and lots of places, all of which have to match exactly. code like
   this is supposed to reduce the likelyhood of errors, not increase
   it!

 - code which has a long line of if() statements with strcmp() should
   cause your fingers to burn on the keyboard when you type it
   in. That's what structure lists are for. Strangely enough, we have
   all the info in loadparm.c in a structure list, but instead it gets
   replicated in share_classic.c in this strange if() strcmp() form

expect some changes to this code shortly. I'll need a calming cup of
tea first though :-)
(This used to be commit 19a9fc2f44)
2007-10-10 14:59:03 -05:00
Andrew Bartlett
222c6dd781 r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
(This used to be commit b7e727186e)
2007-10-10 14:59:00 -05:00
Andrew Tridgell
fdbc8e29c7 r23532: added lp_parm_double()
(This used to be commit 524ba04b1f)
2007-10-10 14:53:24 -05:00
Jelmer Vernooij
cc26fe9b74 r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
(This used to be commit a90202abca)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
5b1a01a9c0 r22546: use the same error codes in both share backends
metze
(This used to be commit e0fae01e4c)
2007-10-10 14:51:41 -05:00
Stefan Metzmacher
344cde462e r22406: this dependencies should also be private
metze
(This used to be commit 7f07895cac)
2007-10-10 14:51:15 -05:00
Jelmer Vernooij
0fe8434b3b r22336: Add some more share tests.
(This used to be commit dfc88ad698)
2007-10-10 14:51:05 -05:00
Jelmer Vernooij
f40244af7b r22328: Add initial testsuite for share code.
(This used to be commit 3d079732a9)
2007-10-10 14:51:03 -05:00
Andrew Bartlett
d5bbd817fe r20988: Call out to Heimdal's krb5.conf processing to configure many aspects
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 a50bbde81b)
2007-10-10 14:44:18 -05:00
Stefan Metzmacher
9142a00cb7 r20977: start the 'drepl' service, which currently does nothing by default,
but make it less verbose

metze
(This used to be commit f7e82a0c94)
2007-10-10 14:44:16 -05:00
Stefan Metzmacher
9f802707d8 r20806: make it possible to configure the secrets.ldb url
via "secrets database = my_secrets.ldb"

metze
(This used to be commit a096a97415)
2007-10-10 14:43:33 -05:00
Derrell Lipman
43470b5ec3 r20444: WEB Application framework / SWAT.
We're now at the stage where the web application framework should build and
install automatically.

Derrell
(This used to be commit 0201baef46)
2007-10-10 14:30:39 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e83)
2007-10-10 14:29:15 -05:00
Simo Sorce
ea212eb00f r20034: Start using ldb_search_exp_fmt()
(This used to be commit 4f07542143)
2007-10-10 14:28:51 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3)
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f)
2007-10-10 14:25:29 -05:00
Jelmer Vernooij
5a6e2bc9ae r19573: Move secrets.o into param/ (subsystems haven't been integrated yet).
(This used to be commit 8143de855c)
2007-10-10 14:24:55 -05:00
Jelmer Vernooij
3c9a28f85e r19543: Make dynconfig less special.
(This used to be commit 2780274e6f)
2007-10-10 14:24:47 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Simo Sorce
7f833458ca r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit 0fa5d4bc22)
2007-10-10 14:24:38 -05:00
Derrell Lipman
68453d1da2 r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.

With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:

  JSON/qooxdoo -> ldb browser

Derrell
(This used to be commit 2406af1079)
2007-10-10 14:21:33 -05:00
Jelmer Vernooij
c554e2168b r19358: Use subunit tests from the right location (from
$src/bin/torture when developing, $LIBDIR/torture when installed)
(This used to be commit 4ae6380e6b)
2007-10-10 14:21:16 -05:00
Simo Sorce
59b66744f7 r19299: Fix possible memleaks
(This used to be commit 6fad80bb09)
2007-10-10 14:21:04 -05:00
Derrell Lipman
c5718959e6 r18880: JSON-RPC work in progress
(This used to be commit 34bffbaebf)
2007-10-10 14:20:17 -05:00
Simo Sorce
9dd6cac44a r18591: Better defaults for share creation
Fix logic error in paged_results
(This used to be commit 34ce1f8e1b)
2007-10-10 14:18:53 -05:00
Simo Sorce
c4d45aac9d r18590: Some more work on the srvsvc pipe
(This used to be commit 2c035787d4)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
7c017f9015 r18579: fixed boolean parameters on big endian hosts which have
sizeof(BOOL) != sizeof(int)

this broke with the conversion to a real BOOL type
(This used to be commit 75dab73ac6)
2007-10-10 14:18:50 -05:00
Simo Sorce
fa257e78b5 r18558: Fix ShareCheck which was assuming all paths are "C:\"
Also cope with the fact that we define the FSTYPE as NTFS by default.
We never use this anywhere else, so we may just change it, but just
detect the fact and return DISK in share_classic for now.
(This used to be commit 4daf5f7764)
2007-10-10 14:18:46 -05:00
Simo Sorce
b0fb34fd24 r18542: Some late nite work.
Now we can add and remove a share from the "Computer Management"
console (not yet modify!) usinf share backend = ldb
(This used to be commit ae2f6d4a5a)
2007-10-10 14:18:44 -05:00
Stefan Metzmacher
89fbfd7460 r18386: start the unixinfo pipe by default
metze
(This used to be commit ea44cdfc6f)
2007-10-10 14:18:22 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
12e2e43ca3 r17777: these macros are unused...
metze
(This used to be commit 45baef570d)
2007-10-10 14:16:40 -05:00
Andrew Tridgell
a1bc3fb02e r17647: the init fns should not take a mem_ctx
(This used to be commit e32fdc7e68)
2007-10-10 14:16:19 -05:00
Stefan Metzmacher
c46648b397 r17533: add missing include, so that "socket options = TCP_NODELY" as
default can work...

metze
(This used to be commit bec738c2a3)
2007-10-10 14:15:34 -05:00
Simo Sorce
a23b63a8e5 r17516: Change helper function names to make more clear what they are meant to do
(This used to be commit ad75cf8695)
2007-10-10 14:15:31 -05:00
Andrew Bartlett
adefa4404c r17379: Pre-generate DH parameters, to avoid doing this at runtime in our testsuite.
Andrew Bartlett
(This used to be commit 23314c3953)
2007-10-10 14:15:20 -05:00
Simo Sorce
830b03d7e8 r17210: I wonder how I missed this, build farm caught it.
(This used to be commit e0af5cf51d)
2007-10-10 14:10:19 -05:00
Simo Sorce
151fc74006 r17207: Add the ldb based shares configuration module
(This used to be commit df1da91d4f)
2007-10-10 14:10:19 -05:00
Simo Sorce
9c66f601f1 r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
(This used to be commit a89cc346b9)
2007-10-10 14:10:18 -05:00
Stefan Metzmacher
54fba07f01 r16923: remove unused substitude code
metze
(This used to be commit ea88c8c99e)
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
7bf085571e r16464: split client and server min/max protocol settings
metze
(This used to be commit 6164d1e22e)
2007-10-10 14:09:29 -05:00
Andrew Tridgell
574daba795 r15851: the conversion of loadparm to BOOL broke all big-endian platforms as
the service and global declarations were left as int. I tried to fix
this initially by fixing the service declarations, but it didn't
work. While I investigate why, this patch at least gets the use of int
right, and should give big-endian platforms a chance
(This used to be commit e12ae809ea)
2007-10-10 14:08:32 -05:00
Stefan Metzmacher
e0dcbe8dd1 r15769: this functions belong to params/ so move it.
metze
(This used to be commit 9c4c40772b)
2007-10-10 14:08:16 -05:00
Jelmer Vernooij
172a83d724 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6)
2007-10-10 14:05:58 -05:00
Jelmer Vernooij
8bab932282 r15387: Fix installation of dcerpc headers, remove more instances of uint_t
(This used to be commit 9e9bfd04c6)
2007-10-10 14:05:31 -05:00
Jelmer Vernooij
eaaae31d11 r15302: Remove strangely named function "StrnCpy" - strlcpy is available as a
replacement.
(This used to be commit 72237344cf)
2007-10-10 14:05:08 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6)
2007-10-10 14:04:18 -05:00
James Peach
9d9e5abdce r15187: Introduce new param type P_BYTES. This lets config options which specify
byte counts be given in convenient units.
(This used to be commit 1b8891a2f3)
2007-10-10 14:04:14 -05:00
Jelmer Vernooij
1385cd968b r14914: Remove printf statement I accidently committed.
(This used to be commit ca4d1b4c0e)
2007-10-10 14:00:15 -05:00
Jelmer Vernooij
97fe71c1f5 r14909: Add lp_modulesdir() smb.conf option
(This used to be commit eaa68826d3)
2007-10-10 14:00:14 -05:00
Jelmer Vernooij
25853252e5 r14850: Don't assume that sizeof(BOOL) == sizeof(int)
(This used to be commit 1557e1ba6f)
2007-10-10 13:59:42 -05:00
Jelmer Vernooij
c50125f6ef r14844: Support a stdbool.h replacement in lib/replace/
(This used to be commit bccfddcafa)
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
18cddd580e r14575: Move some path-related functions to libsamba-config so libsamba-util
doesn't have to depend on the lp_* functions.
(This used to be commit f97df7d90a)
2007-10-10 13:58:52 -05:00
Jelmer Vernooij
679a993329 r14573: Install samba-config and headers
(This used to be commit 29d63edbd7)
2007-10-10 13:58:51 -05:00
Jelmer Vernooij
184955ffd7 r14572: Give libraries saner names, remove some .pc files, make some things
subsystems in case a library doesn't make sense.
(This used to be commit ed382873fd)
2007-10-10 13:58:49 -05:00
Jelmer Vernooij
36b56d64b2 r14499: Remove dynconfig hack for now - it caused a recompile of the
asn1 compiler every time a .mk file changed, thus causing the
recompilation of the files generated from ASN1.
(This used to be commit 4cd1e017e3)
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Andrew Tridgell
cd95328183 r14420: arrgh, make sure I test compile even little patches ....
(This used to be commit 749a93c7c0)
2007-10-10 13:57:21 -05:00
Andrew Tridgell
eb6e6c0c14 r14415: remove an unusued var
(This used to be commit b4172b53f3)
2007-10-10 13:57:21 -05:00