1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

1091 Commits

Author SHA1 Message Date
Stefan Metzmacher
9e5ad21e67 remove unused print_test.c code
metze
2007-10-13 15:09:24 +02:00
Jelmer Vernooij
754671b8be Merge branch 'v3-2-stable' into my_branch 2007-10-12 19:41:01 +02:00
Jelmer Vernooij
4ac867f558 Fix valgrind window title. 2007-10-12 18:42:45 +02:00
Guenther Deschner
6ae4066bbb Rename krb5 locator plugin to "winbind_krb5_locator".
Guenther
2007-10-11 15:12:12 +02:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Stefan Metzmacher
2dbc168e54 r25570: move code of the locator child into its own file
metze
2007-10-10 12:31:15 -05:00
Stefan Metzmacher
97c63f1b95 r25568: move idmap related functions into their own file.
the final goal is to have 3 child dispatch tables
'domain', 'idmap' and 'locator' instead of one.

metze
2007-10-10 12:31:14 -05:00
Stefan Metzmacher
f5b089370a r25470: use --immediate like in samba4 to get more usefull output
metze
2007-10-10 12:31:06 -05:00
James Peach
ee1eba2855 r25432: Merge module linking changes from SAMBA_3_2 to SAMBA_3_2_0 to reduce
spurious tree differences.
2007-10-10 12:31:05 -05:00
Jelmer Vernooij
bdc831ddb3 r25415: Merge the 3.2-perltest branch that switches Samba 3.2 to use Samba 4's selftest code. See the mailing list for details. 2007-10-10 12:31:03 -05:00
Jeremy Allison
cc19c0ace4 r25406: Make the Linux nss client code thread-safe.
Fix originally inspired from code from boyang <yyyeer.bo@gmail.com>.
Jeremy.
2007-10-10 12:31:03 -05:00
Stefan Metzmacher
3ac7566ae1 r25154: move winbindd code into winbindd/
metze
2007-10-10 12:30:46 -05:00
Jeremy Allison
dee8beba7a r25009: Large patch discussed with Volker. Move unix_convert to a talloc-based
interface. More development will come on top of this. Remove the
"mangled map" parameter.
Jeremy.
2007-10-10 12:30:32 -05:00
Michael Adam
5d94c3dab2 r24955: Reformat some object lists in Makefile.in to minimize the diff. 2007-10-10 12:30:30 -05:00
Günther Deschner
ce7c816083 r24841: The locator has no dependencies to ldap libs anymore. Also fix the build.
Guenther
2007-10-10 12:30:27 -05:00
Günther Deschner
af90c6949c r24833: Move locator to nsswitch (does not belong to libads anymore).
Guenther
2007-10-10 12:30:26 -05:00
Volker Lendecke
6585ea2cb7 r24809: Consolidate the use of temporary talloc contexts.
This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker
2007-10-10 12:30:24 -05:00
Günther Deschner
cd1fccaf8f r24806: Fix the build, sorry...
Guenther
2007-10-10 12:30:23 -05:00
Günther Deschner
91d10fe159 r24805: When we can build the locator, build it.
Guenther
2007-10-10 12:30:23 -05:00
Gerald Carter
ba05dc013f r24788: Cleanup some linking msgs and remove references to libmsrpc
in SAMBA_3_2_0
2007-10-10 12:30:21 -05:00
Günther Deschner
908e7963b8 r24748: Remove all dependencies to samba internals and convert the krb5 locator plugin
into a tiny winbindd DsGetDcName client. This still does not solve the case of
using the locator from within winbindd itself but at least gencache.tdb and
others are no longer corrupted.

Guenther
2007-10-10 12:30:17 -05:00
Gerald Carter
22f2f1e033 r24745: Merge Simo's shared lib build fix from svn r22842 that was lost
somehow.  Don't include the PIE_FLAGS when building shared libs.
2007-10-10 12:30:17 -05:00
Günther Deschner
3263cd680f r24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
grained KDC DNS queries).

Guenther
2007-10-10 12:30:16 -05:00
Günther Deschner
3e240672b4 r24416: Some more minor edits for libgpo, mostly reformatting and moving of functions.
Guenther
2007-10-10 12:29:43 -05:00
Stefan Metzmacher
30f9171cca r24302: add a module that overloads the file_id_create VFS function
and alters the device id depending on the configured algorithm.

The algorithm is configured via "fileid:algorithm":
- "fsname" (default) uses a uint64 hash over the mount point
- "fsid" uses the fsid returned from statfs()

This is needed for "clustering = yes" on some clusterfilesystems

metze
2007-10-10 12:29:25 -05:00
Volker Lendecke
d05f7aefdf r24007: Attempt to fix the build on host "gwen". The Makefile ended up with an
empty line.
2007-10-10 12:28:55 -05:00
Günther Deschner
3544d19d54 r23976: Move authdata.o to LIBADS_SERVER_OBJ.
Guenther
2007-10-10 12:28:51 -05:00
Günther Deschner
83c734690a r23921: Remove GPO_SID_TOKEN struct and use nt_user_token instead, that already has
S-1-5-11 in the token.

Guenther
2007-10-10 12:28:42 -05:00
Stefan Metzmacher
a3b97cdce7 r23893: add dummy callbacks for LDAP SASL wrapping,
they're not used yet...

metze
2007-10-10 12:28:39 -05:00
Günther Deschner
07bce67121 r23840: Fix the build.
Guenther
2007-10-10 12:28:33 -05:00
Gerald Carter
c85311b3a8 r23694: Make sure that when builddir != srcdir, we can still find the exports
files and library-versions file.

Also move the "-o $@" from the individual targets and into the SHLD_DSO
command.
2007-10-10 12:23:46 -05:00
Gerald Carter
c42cf731b4 r23689: Squashed commit of the following:
commit 0d4bbd197198a94bf4e29e0ccd175a40a60097f3
Author: Gerald (Jerry) Carter <jerry@samba.org>
Date:   Mon Jul 2 20:08:19 2007 -0500

    Introduce GNU ld linker export-script for hiding non-public symbols
    in shared libraries.

    Based on initial patch from Julien Cristau <jcristau@debian.org>
    and suggestions from James Peach <jpeach@samba.org>.  Currently
    the libsmbsharemodes libraries still exports *.  Signed off on
    my Derrell as well.
2007-10-10 12:23:46 -05:00
Volker Lendecke
c195eccefe r23662: According to simo, check_dos_char is needed 2007-10-10 12:23:43 -05:00
Volker Lendecke
7e9a4c39a5 r23660: Anybody know what check_dos_char() was used for? It wasn't called at
all, so it's gone. With it 8k bss went away.
2007-10-10 12:23:43 -05:00
Günther Deschner
11b390309b r23607: Add legacy support for Services for Unix (SFU) 2.0.
Guenther
2007-10-10 12:23:35 -05:00
James Peach
1d941961e0 r23541: Linking the LSA pipe module only once is probably enough. 2007-10-10 12:23:27 -05:00
Michael Adam
24b0cbcb37 r23509: This activates the global options from the registry in loadparm.
The global options are stored as values in the subkey "global"
of the SMBCONF registry key.

The activation is accomplished in smb.conf though a new special
semantic of the "include" parameter: "include = registry" triggers
the processing of the registry global options exactly at the
position of the include statement. Options read from the registry
take the same precedence as parameters loaded from a file via
include. Need to reload the registry globals is detected by
watching the tdb sequence number.

Registry shares are automatically activated when the registry
globals are processed.

So a "registry only" configuration can be realized by an
smb.conf that looks as follows:

================================
[global]
include = registry
================================

The global options and registry shares can be conveniently
edited with the "net conf" utility.

Caveat:

A possible pitfall consists in using "include = registry"
together with the "lock directory" directive in the registry.
This problem will be addressed in the next time.

Note on the code:

Processing of the registry options is accomplished by a function
process_registry_globals() in loadparm.c The current version is
only an interim solution: It is handcoded instead of using the
infrastructure of reg_api.c. The reason for this is that using
reg_api still has too large linker dependencies, bloating virtually
all targets by PASSDB_OBJ, SMBLDAP_OBJ, GROUPDB_OBJ and LDB stuff.
A version of process_registry_globals that uses reg_api is
included but commented out. The goal is to eventually refactor
and restructure the registry code so that one can use the reg_api
to access only the registry tdb and not link all the dynamic
backends with all their linking implications.
2007-10-10 12:23:23 -05:00
Michael Adam
2041c35a30 r23495: Replace literal occurrences of libsmb/errormap.o by $(ERRORMAP_OBJ). 2007-10-10 12:23:21 -05:00
Michael Adam
02685358d1 r23494: Synchronize some occurrences of BINARY_PREREQS and bin/.dummy.
Further reduce the diff between 3_0 and 3_0_26 by some reformatting
and rearrangements.

Michael
2007-10-10 12:23:21 -05:00
Michael Adam
efd3e2bfb7 r23485: This checkin consists mostly of refactorings in preparation of the
activation of global registry options in loadparm.c, mainly to
extract functionality from net_conf.c to be made availabel elsewhere
and to minimize linker dependencies.

In detail:

* move functions registry_push/pull_value from lib/util_reg.c to new file
  lib/util_reg_api.c

* create a fake user token consisting of builtin administrators sid and
  se_disk_operators privilege by hand instead of using get_root_nt_token()
  to minimize linker deps for bin/net.

  + new function registry_create_admin_token() in new lib/util_reg_smbconf.c
  + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c
  + adapt net_conf.c and Makefile.in accordingly.

* split lib/profiles.c into two parts: new file lib/profiles_basic.c
  takes all the low level mask manipulation and format conversion functions
  (se_priv, privset, luid). the privs array is completely hidden from
  profiles.c by adding some access-functions. some mask-functions are not
  static anymore.

  Generally, SID- and LUID-related stuff that has more dependencies
  is kept in lib/profiles.c

* Move initialization of regdb from net_conf.c into a function
  registry_init_regdb() in lib/util_reg_smbconf.c.

Michael
2007-10-10 12:23:21 -05:00
James Peach
4b392a76eb r23478: Change the handling of the developer CFLAGS so that they are always
emited to the Makefile in the DEVELOPER_CFLAGS variable. This makes
it easy to turn developer mode on and off without waiting for
configure to run. The developer flags are only added to CFLAGS for
the --enable-developer and --enable-krb5developer cases.
2007-10-10 12:23:20 -05:00
Volker Lendecke
15553d6327 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
2007-10-10 12:23:14 -05:00
James Peach
d47d1a44e7 r23352: Don't generate stamp-h. AFAICT it is never used. 2007-10-10 12:23:09 -05:00
Andrew Tridgell
7c9a5c2a3f r23323: merged ldb changes from 3.0.26 2007-10-10 12:23:06 -05:00
Gerald Carter
1b68302e34 r23321: remove unused variable (due to mad merge from Centeris patches) 2007-10-10 12:23:06 -05:00
Michael Adam
114a80dd2e r23317: Fix the build: r23315 was a little overeager in removing the
INIPARSER_OBJ from the bin/net target altogether. I re-add it
in the guise of @BUILD_INIPARSER@ (to NET_OBJ). This also
eliminates the need to have @BUILD_INIPARSER@ in the deps for
the bin/net target.
Same procedure for the pam_winbindd module.

Michael
2007-10-10 12:23:06 -05:00
Stefan Metzmacher
1f30ac2905 r23315: - don't use the builtin and -liniparser together in bin/net
- unify handling on @BUILD_INIPARSER@

btw: nsswitch/pam_winbind.c doesn't compile anymore on SuSE 10.2!
     I think we should build pam modules by default to notice things
     like this in the build-farm...

metze
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
43d390d186 r23314: For some systems it's needed to inject replace.h into
the iniparser source code, I do it in a way we can still have
a unmodified copy of iniparser in source/iniparser/
and have the wrapper stuff in source/iniparser_build/.

If the build-farm is happy with this I'll merge it to 3_0_26
tomorrow...

metze
2007-10-10 12:23:05 -05:00
James Peach
07fa76c6c7 r23295: Apply proto_exists and bin/.dummy dependencies consistently for all
binaries.  Fix vfs_zfsacl build rule in SAMBA_3_0.
2007-10-10 12:23:03 -05:00
Gerald Carter
ebcae48ec1 r23274: merge CloseEventlog() pidl conversion from 3.0.26 && fix a few init call renames for svcctl in the previous commit 2007-10-10 12:23:02 -05:00