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

1332 Commits

Author SHA1 Message Date
Gerald W. Carter
72556d4c8c Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
(This used to be commit 359921acd4)
2008-04-16 15:48:00 +02:00
Günther Deschner
4101068505 IDL: For the fun of it, build drsuapi.idl.
Guenther
(This used to be commit 192645f639)
2008-04-15 22:04:59 +02:00
Michael Adam
4eab3d3cf0 libsmbconf: add a smbconf init dispatcher smbconf_init().
The dispatcher takes a config source argument in the form
of "backend:path" where backend can (currently) be one of
"txt" (aka "file") or "reg" (aka "registry").

When the path is omitted, it is up to the backend to provide
a default path.

When there is no separator ":" and the string is not a recognized
backend, then file backend is assumed and the string is passed
in as the path argument.

Michael
(This used to be commit cc613a60eb)
2008-04-13 20:04:44 +02:00
Günther Deschner
de013be0b6 gpo: add scripts plugin.
Guenther
(This used to be commit cd6388f040)
2008-04-13 17:52:11 +02:00
Stefan Metzmacher
e21b283d67 dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
metze
(This used to be commit 64450cc1e4)
2008-04-12 09:14:10 +02:00
Stefan Metzmacher
dfb181ab73 dbwrap: add dbwrap_tdb2 backend
This backend can be used untill ctdb knows about real
transactions.

It stores a master tdb in a shared location and a readonly copy
on the local harddisk. Reads are always on the local tdb
and writes always on both. Change notify messages are send
to all message context, which ask for them. With the notifies
it's possible to just update the changed records, instead of
copying all records (which is the fallback).

You need to configure:

dbwrap:use_tdb2=yes
dbwrap_tdb2:master directory=/some/shared/path
dbwrap_tdb2:local directory=/var/lib/samba

metze
(This used to be commit aa6230de0d)
2008-04-12 09:14:09 +02:00
Michael Adam
85dc216ecb build: smbconftort only needs LIBSMB_ERR_OBJ, not LIBSAMBA_OBJ
Michael
(This used to be commit 27fea343d2)
2008-04-12 02:41:21 +02:00
Michael Adam
3b32275d48 build: move SECRETS_OBJ into LIBSMB_ERR_OBJ.
LIBSMB_ERR_OBJ depends on SECRETS_OBJ

Michael
(This used to be commit 79b5a0c7a8)
2008-04-12 02:41:21 +02:00
Michael Adam
63e4a96253 build: move SECRETS_OBJ into LIBSMB_OBJ
LIBSMB_OBJ is not used without SECRETS_OBJ

Michael
(This used to be commit bea66f07b4)
2008-04-12 02:41:20 +02:00
Michael Adam
ae51385dfb build: regroup LIBSMB objects to for a smallest linkable uint (LIBSMB_ERR_OBJ)
Michael
(This used to be commit 310fd52ea4)
2008-04-12 02:41:20 +02:00
Michael Adam
41fa859f90 build: group RPC_PARSE_OBJ1 with LIBSAMBA_OBJ
it is only ever used together

Michael
(This used to be commit 27c7441145)
2008-04-12 02:41:20 +02:00
Michael Adam
27d76acb8f build: group NTERR/DOSERR/ERRORMAP and LIBSAMBA object differently
Michael
(This used to be commit ddc2292c15)
2008-04-12 02:41:20 +02:00
Stefan Metzmacher
94df47318f net: 'net' doesn't need wb_common.o anymore.
metze
(This used to be commit 05f7f77135)
2008-04-11 15:59:34 +02:00
Stefan Metzmacher
4313d7b6c2 nsswitch: remove unused nsswitch/wb_client.c
metze
(This used to be commit 2b236c7ace)
2008-04-11 15:59:34 +02:00
Günther Deschner
4968ce2555 Add very basic cli_cm_* based connection handler to libnetapi.
Guenther
(This used to be commit e9e46cfcbe)
2008-04-10 21:41:03 +02:00
Michael Adam
e251327b5b libsmbconf: testsuite: add support for "--configfile" option.
Michael
(This used to be commit 9f6c909f46)
2008-04-10 01:28:57 +02:00
Michael Adam
b7377c33a3 libsmbconf: add testsuite to the library.
Currently only the init function is tested, more tests to come...

Michael
(This used to be commit bc8dc8626c)
2008-04-10 01:28:57 +02:00
Michael Adam
36ede8ae54 libsmbconf: move utility functions from main module to new smbconf_util.c
Michael
(This used to be commit e0f6a9d50c)
2008-04-10 01:28:55 +02:00
Michael Adam
98f3462df2 net: don't process net_registry_util.c with make proto
it has its own herader net_registry_util.h

Michael
(This used to be commit 51026d64b3)
2008-04-09 23:52:35 +02:00
Günther Deschner
6b2ae8e9ff Add NetUserAdd to libnetapi.
Guenther
(This used to be commit cb98996ed2)
2008-04-09 13:23:09 +02:00
Günther Deschner
ba35a8c8dd Restructure inner workings of libnetapi a bit.
Guenther
(This used to be commit a4e3bc2bad)
2008-04-08 03:08:49 +02:00
Günther Deschner
ec0a34864e Build libnetapi.idl.
Guenther
(This used to be commit c098714ac4)
2008-04-08 03:08:49 +02:00
Michael Adam
06466de5e9 net_registry: split utility function of common interest out into util module.
Michael
(This used to be commit 3bf890783f)
2008-04-04 17:05:00 +02:00
Michael Adam
eab99a9eee Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
Michael
(This used to be commit 7b16cb1023)
2008-04-04 16:47:52 +02:00
Michael Adam
fb6fb69966 net: add a "net registry" subcommand to locally access the registry.
The interface is like that of net rpc registry.
Access is direct local access to the registry tdb through reg_api.

Michael
(This used to be commit 3250068eb9)
2008-03-28 16:19:35 +01:00
Michael Adam
2e83818b3b libsmbconf: add a text backend to libsmbconf based on the params.c parser.
This is a simple implementation of text backend for libsmbconf.
It is read only. It uses the parser from params.c. It loads the
given config file and holds the parsed lists of strings in memory.
Config is only re-read if the time stamp of the config file has changed.
Brilliant performance on large files is not to be expected since the
string lists are not hashed. This might be added in the future.

Michael
(This used to be commit 4ea5084385)
2008-03-26 14:55:05 +01:00
Michael Adam
32691a7022 build: don't autogenerate prototypes for util_tdb and dbwrap anymore.
Stick to hand-written headers (that are there anyways).
Add some missing prototypes to util_tdb.h and dbwrap.h.

I did not bother to add a header for each single dbwrap backend
open function but put the prototypes for the open functions into
the central dbwrap.h.

Michael
(This used to be commit edf4dbed27)
2008-03-25 15:55:34 +01:00
Gerald (Jerry) Carter
eeeb4aa931 Fix libtdb some to move back towards allowing out of tree builds
Remaining problem is that not all *.syms linker scripts are generated
so the LD command needs to look in a single place.  Out of tree
builds now work but report write access to the source tree in order
to create the $(srcdir)/expotrs/libtdb.sysms file.
(This used to be commit 6e9287c5c3)
2008-03-24 17:25:13 -05:00
Michael Adam
5ea7faef3d libgpo: replace hand-crafted registry initialization by registry_init_basic.
IMO there is no need to imitate a custom registry backend.
Only default regdb hooks are used here, so a plain initialization
of regdb should suffice.

This way, only reg_api is used in libgpo, and no registry
backend code is visible.

Michael
(This used to be commit 10ae8accb4)
2008-03-22 02:29:40 +01:00
Michael Adam
890d1d8f78 libsmbconf: move registry implementation to a module of its own.
Michael
(This used to be commit 431b10bfe0)
2008-03-21 16:26:50 +01:00
Günther Deschner
5fdf4b8f4a Remove remaining old srvsvc client and server rpc code entirely.
Guenther
(This used to be commit a5f0186f70)
2008-03-21 04:16:22 +01:00
Günther Deschner
bbd6120c0d Remove double RPC_PARSE_OBJ2 from Makefile.
Guenther
(This used to be commit 0244734cc5)
2008-03-21 04:16:22 +01:00
Michael Adam
670418c116 Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.
The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.

In the same breath, the api is fixed (not generated by make proto anymore).

Michael
(This used to be commit 5315ef41f4)
2008-03-17 18:03:02 +01:00
Günther Deschner
7e652a254f Remove rpccli_srvsvc_net_file_enum() and cli_srvsvc.c with it.
Guenther
(This used to be commit e4b52133d6)
2008-03-10 17:14:11 +01:00
Simo Sorce
9e83c9159e Enable use of Relocations Read-Only, if supported, for enhanced security.
(This used to be commit c20c5f0821)
2008-03-07 11:33:26 -05:00
Michael Adam
156c42fd4f Time to confess...
Michael
(This used to be commit 4e584c6e36)
2008-03-07 14:31:08 +01:00
Günther Deschner
266af5887e Fix the build of cifs.spnego.
Guenther
(This used to be commit 9eaaf17d30)
2008-03-06 19:49:27 +01:00
Michael Adam
bdee4a5cb3 Revert "Build: Add an rpath of $(LIBDIR) to binary targets."
This reverts commit 3a0f781352.

This needs more thought.

Setting RPATH like this does not work on all supported
platforms (Linux, Solaris and AIX seem to work, HP-UX,
Tru64 and MacOS don't, MacOS doesn't even seem to have
an rpath at all prior to 10.4).

What is more, rpath also has some bad effects (when
updating libraries, e.g.), so it should not be set
unconditionally.

I will come up with a confiugure mechanism to control this.

For now, just use the LDFLAGS environment variable if
you want to use an rpath.

Sorry for any inconveniences.

Michael
(This used to be commit 6850dc242b)
2008-03-06 18:03:56 +01:00
Michael Adam
a521f39c89 Build: Add an rpath of $(LIBDIR) to binary targets.
This removes the need of setting LD_LIBRARY_PATH.

Michael
(This used to be commit 3a0f781352)
2008-03-06 14:56:24 +01:00
Volker Lendecke
1ea0a5d0cd Add infrastructure to support async SMB requests
(This used to be commit e215330135)
2008-03-06 13:28:23 +01:00
Volker Lendecke
f05bc40389 Add basic infrastructure for general async requests
(This used to be commit 9f8b2a87ee)
2008-03-06 13:28:23 +01:00
Michael Adam
26537251a3 Make test: set LD_LIBRARY_PATH for make test_shlibs and friends.
Michael
(This used to be commit 21a527569b)
2008-03-06 10:26:37 +01:00
Michael Adam
04afd3d5ac Build: fix bin/net on Solaris - use -ltdb instead of bin/libtdb.so
Reported by Christian McHugh <christian.mchugh@nau.edu> on the samba ML.

Michael
(This used to be commit 3398403c22)
2008-03-05 23:47:59 +01:00
Günther Deschner
9f133a602f Fix build targets for bin/net.
Guenther
(This used to be commit 5159e3dafa)
2008-03-05 22:21:10 +01:00
Günther Deschner
2b0281a847 Another build fix for pam_smbpass: make sure libwbclient is there.
Guenther
(This used to be commit f6762f9cd0)
2008-03-05 19:56:00 +01:00
Michael Adam
0a15d8a3bd Makefile: reformat - break long target lines.
Michael
(This used to be commit e261338084)
2008-03-05 15:04:36 +01:00
Michael Adam
b428ccdf26 Makefile: untangle -ltalloc from LIBS, making use of libtalloc explicit.
Michael
(This used to be commit 237ea62a49)
2008-03-05 15:04:36 +01:00
Michael Adam
6543c5928c Makefile: Add explicit dependecies to libtalloc.so.
So as to fix building of isolated targets.

Michael
(This used to be commit 7dbc251e1c)
2008-03-05 12:20:25 +01:00
Günther Deschner
3bda36d637 Fix build of pam_smbpass.
Guenther
(This used to be commit cd582b7705)
2008-03-05 11:31:26 +01:00
Günther Deschner
2c3dc9baa5 Use pidl for _srvsvc_NetSrvGetInfo().
Guenther
(This used to be commit 34caa41fa6)
2008-03-05 09:49:15 +01:00