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

1508 Commits

Author SHA1 Message Date
Kai Blin
572de942c7 net: Split out "net user"
(This used to be commit 4ca08a5acc)
2008-05-20 14:27:27 +02:00
Kai Blin
666292129b net: Move "net join" handling into a separate file.
(This used to be commit d0237a7368)
2008-05-20 14:27:24 +02:00
Kai Blin
45653bd1b1 net: Split out common help functions.
(This used to be commit efc863e375)
2008-05-20 14:27:21 +02:00
Michael Adam
78b8417930 build: remove the proto_exists target - it is not needed anymore.
Michael
(This used to be commit 35f4df7ab8)
2008-05-19 01:23:17 +02:00
Michael Adam
aef2828831 build: remove the "delheaders" target.
Michael
(This used to be commit 0fe47c3c76)
2008-05-19 01:23:06 +02:00
Michael Adam
cf6f4cfefa build: remove "headers" and "proto" make targets.
Replace "proto" target by a message.

Michael
(This used to be commit 16fb26d73a)
2008-05-19 00:51:45 +02:00
Michael Adam
76977cbf6a build: remove reference to mkproto.sh from Makefile
No generated prototypes anymore...

Michael
(This used to be commit 4c7362f2b7)
2008-05-18 23:37:10 +02:00
Michael Adam
04da4453ab libnet: freeze libnet_proto.h from "make proto"
Michael
(This used to be commit b455cd1a61)
2008-05-18 23:35:42 +02:00
Michael Adam
20e9c5bea1 build: freeze passwd_proto.h from "make proto"
Michael
(This used to be commit 00cff30107)
2008-05-18 23:33:20 +02:00
Michael Adam
b189fe9154 net: freeze net_proto.h from "make proto"
Michael
(This used to be commit 673b24052a)
2008-05-18 23:31:42 +02:00
Michael Adam
beca01f402 ntlm_auth: freeze ntlm_auth_proto.h from "make proto"
Michael
(This used to be commit 35a517315b)
2008-05-18 23:29:01 +02:00
Michael Adam
7a1b7a14e4 smbclient: freeze client_proto.h from "make proto"
Michael
(This used to be commit f8c0710165)
2008-05-18 23:26:51 +02:00
Michael Adam
611c96d078 swat: freeze swat_proto.h from "make proto"
Michael
(This used to be commit 372c58cc22)
2008-05-18 23:16:38 +02:00
Michael Adam
03dcad0b27 winbindd: freeze winbindd_proto.h
Michael
(This used to be commit 467b8f0f4d)
2008-05-18 23:09:34 +02:00
Michael Adam
1ef69fcf21 build: freeze proto.h
Michael
(This used to be commit ff7f0cad2e)
2008-05-18 22:58:07 +02:00
Günther Deschner
4bd94c8338 cldap: move out cldap object to fix the build.
Guenther
(This used to be commit 56be9c98d2)
2008-05-09 14:59:19 +02:00
Günther Deschner
fb623c942d pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).
Guenther
(This used to be commit d8372f73b9)
2008-04-30 18:34:29 +02:00
Günther Deschner
a7bd73c786 build: fix make everything.
Guenther
(This used to be commit d2cd011f43)
2008-04-30 16:04:30 +02:00
Volker Lendecke
974643f656 Next round fixing bug 5420, build on IRIX
The IRIX make does not like lines with only whitespace. With LIBNETAPI_LIBS
evaluating to nothing this happens there.
(This used to be commit 225fbe743c)
2008-04-30 12:50:26 +02:00
Günther Deschner
f49474f58a build: fix some build dependencies.
Guenther
(This used to be commit 067a6931a2)
2008-04-30 01:11:51 +02:00
Michael Adam
9188c8e381 libsmbconf: rename text backend smbconf_txt_simple to smbconf_txt.
Michael
(This used to be commit dd9fe5aec4)
2008-04-22 16:11:37 +02:00
Günther Deschner
937091161b winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply.
Guenther
(This used to be commit 2d6a1c5da6)
2008-04-21 11:03:32 +02:00
Michael Adam
3a6ece8c52 build: add missing dependency for libtdb.so to pam_smbpass
Thanks to Andreas Schneider for noticing.

Michael
(This used to be commit db708d4004)
2008-04-17 15:33:29 +02:00
Günther Deschner
6c6c89cde0 IDL: build generated nbt code.
Guenther
(This used to be commit 554dcfdab0)
2008-04-17 14:55:15 +02:00
Günther Deschner
0b8ad44578 IDL: Build nbt.idl always.
Guenther
(This used to be commit 933abaeb32)
2008-04-17 14:47:25 +02:00
Jelmer Vernooij
3db2249886 Add simple implementation of several functions in the Samba 4 RPC
library on top of the Samba 3 RPC library:

 * dcerpc_pipe_connect
 * dcerpc_ndr_request_recv
 * dcerpc_ndr_request_send

These are the main functions used by the generated client calls in Samba
4.
(This used to be commit 3501778242)
2008-04-17 10:58:10 +02:00
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
Derrell Lipman
1363ee9d65 Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context
  structure fields to generate warnings.  This creates a scenario with the
  best of all worlds.  I'm able to move to an organization that more easily
  allows future enhancements, while avoiding any mandatory changes by
  applications.  Thanks, James!

- Updated WHATSNEW.txt so that it accurately reflects the current state of
  affairs.

Derrell
(This used to be commit a67f96fbe9)
2008-03-03 18:13:33 -05:00
Derrell Lipman
257b7b0929 Initial revamp of the libsmbclient interface.
The libsmbclient interface has suffered from difficulty of improvement and
feature enrichment without causing ABI breakage.  Although there were a number
of issues, the primary ones were:

(a) the user of the library would manually manipulate the context structure
    members, meaning that nothing in the context structure could change other
    than adding stuff at the end;

(b) there were three methods of setting options: setting bits in a flags field
    within the context structure, setting explicit options variables within an
    options structure in the context structure, and by calling the
    smbc_option_set() function;

(c) the authentication callback did not traditionally provide enough
    information to the callee which required adding an option for a callback
    with a different signature, and now there are requests for even more
    information at the callback, requiring yet a third signature and option to
    set it (if we implement that feature).

This commit provides a reorganization of the code which fixes (a) and (b).
The context structure is now entirely opaque, and there are setter and getter
functions for manipulating it.  This makes maintaining ABI consistency much,
much easier.

Additionally, the options setting/getting has been unified into a single
mechanism using smbc_option_set() and smbc_option_get().

Yet to be completed is a refactoring of the authentication callback (c).

The test programs in examples/libsmbclient have been modified (if necessary;
some applications require no changes at all) for the new API and a few have
been minimally tested.

Derrell
(This used to be commit d4b4bae8de)
2008-03-01 20:47:22 -05:00
Volker Lendecke
c3cb59ae2b Revert "Add basic infrastructure for general async requests"
This reverts commit ae254cb61f.
(This used to be commit 030bef7f22)
2008-03-01 09:38:14 +01:00
Volker Lendecke
45a877f392 Revert "Add infrastructure to support async SMB requests"
This reverts commit f535682569.
(This used to be commit 5f53a62be8)
2008-03-01 09:38:14 +01:00
Günther Deschner
485b070eb8 Add "registry" Group Policy extension.
Guenther
(This used to be commit 4e93301ca4)
2008-02-29 17:25:28 +01:00
Günther Deschner
41efa5ca45 Add Group Policy extension infrastructure.
Guenther
(This used to be commit 6d543b1a1a)
2008-02-29 17:07:57 +01:00
Günther Deschner
c613bd5d4e Add infrastructure for reading/storing Group Policy state and control data in the registry.
Guenther
(This used to be commit f673bbd300)
2008-02-29 15:48:14 +01:00
Michael Adam
d40b891eb0 Revert "Add libnet_join.idl to the IDL files to be processed by "make idl"."
This reverts commit 9b47a73290.

libnet_join.idl should not be processed along with the other idl files
since it should not produce server and client code, just the header.

Michael
(This used to be commit 2967b29f23)
2008-02-29 13:17:28 +01:00
Michael Adam
4688f2600b Fix linking of smbget when there is no shared library support.
smbget needs libwbclient.

Michael
(This used to be commit 78bc496ecf)
2008-02-29 12:38:29 +01:00
Volker Lendecke
18206a4cb5 Add vfs_aio_fork
This is used for two purposes:

First, I'm using it to test the async I/O code. In the forked process it is
pretty easy to delay a reply for a random amount of time. See the
BUILD_FARM_HACKS snippet.

Second, there are systems around that claim to have Posix AIO but which is
broken. This might be some help for those systems.

Also add tests how to pass file descriptors
(This used to be commit b0e52cecf2)
2008-02-29 09:47:53 +01:00
Michael Adam
bab27a2ff2 Fix creation of replacetort.
Forgot to git add Makefile.in before doing git commit --amend
in previous commit...

Michael
(This used to be commit 7cf645cdae)
2008-02-29 09:40:09 +01:00
Günther Deschner
27310f0768 Remove original copy of now redundant join code.
Jerry, I checked this very carefully that nothing got lost. The only thing I need to
re-add still is the normalized DN handling for account precreation in "net ads join".

Guenther
(This used to be commit a5c6347644)
2008-02-28 19:54:35 +01:00
Karolin Seeger
e1b32594c7 Remove smbmount.
Karolin
(This used to be commit 5fbd98f706)
2008-02-28 15:53:43 +01:00
Volker Lendecke
1d41b5bd2a Add infrastructure to support async SMB requests
(This used to be commit f535682569)
2008-02-28 15:27:55 +01:00
Volker Lendecke
93e06129ab Add basic infrastructure for general async requests
(This used to be commit ae254cb61f)
2008-02-28 15:27:55 +01:00
Günther Deschner
261671dc95 Remove unused display_ds_domain_controller_info() function.
Guenther
(This used to be commit 24a5098b1c)
2008-02-28 12:47:07 +01:00
Stefan Metzmacher
8c2b6a126c remove unused unixinfo.idl and generated files
The idl in this version uses pidl specific non NDR types...

metze
(This used to be commit 5dd83aaff3)
2008-02-27 20:13:45 +01:00
Michael Adam
75f56b1ad2 Add libnet_join.idl to the IDL files to be processed by "make idl".
Michael
(This used to be commit 9b47a73290)
2008-02-26 16:06:07 +01:00
Michael Adam
e823c9f237 Fix the build on irix: Prevent empty line in TDB_OBJ
This leads to a Makfile syntax error in the prerequisites for
bin/smbd. Wow, irix is really picky!

Michael
(This used to be commit 011f24c6c9)
2008-02-21 10:27:56 +01:00
Michael Adam
ec1576e346 Fix build with static libs: place tdb static lib after tdb-util objects.
Michael
(This used to be commit 39eef8e86c)
2008-02-20 23:44:17 +01:00
Michael Adam
07f4f95b14 build: change selftest_prefix from ./ to ./st .
It was used as ${selftest_prefix}/st anyways...

Michael
(This used to be commit 1f3bfa024d)
2008-02-19 17:39:40 +01:00
Michael Adam
ebdc59ca39 Makefile.in: Rework registry-related object collections.
Group and name objects more sanely.

Michael
(This used to be commit 58626eb602)
2008-02-19 11:01:00 +01:00
Michael Adam
6d963a807d Use linbet_conf code in loadparm's registry handling.
This replaces the original hand-written tdb code, now that the
linking dependencies have been significantly reduced.

Michael
(This used to be commit d08a3a1957)
2008-02-19 09:09:05 +01:00
Günther Deschner
d48f36819f Remove unused marshalling for LSA_LOOKUP_SIDS/2/3.
This also removes parse_lsa.c entirely.

Guenther
(This used to be commit f802ba035c)
2008-02-19 01:29:14 +01:00
Günther Deschner
8db780ac8f Yippie! LSARPC server-side migration to pidl finished.
Guenther
(This used to be commit aa7023b88d)
2008-02-19 01:23:05 +01:00
Michael Adam
5f215d2d94 Create missing link for libnetapi.so.0
Michael
(This used to be commit 1cb2d980d3)
2008-02-18 17:40:36 +01:00
Günther Deschner
e99f740b0a Add very basic ntsvcs client to rpcclient.
Guenther
(This used to be commit 0358ad7e93)
2008-02-17 23:29:56 +01:00
Günther Deschner
d8fcfb1615 Build the generated ntsvcs server (not at all useable yet).
Guenther
(This used to be commit acce1092d9)
2008-02-17 23:03:22 +01:00
Günther Deschner
082392d975 Use pidl for NTSVCS.
Guenther
(This used to be commit 84a9bf0b73)
2008-02-17 22:32:30 +01:00
Günther Deschner
f68ddb1a1a Remove rpc_parse/parse_net.c and some last unused netlogon headers.
Guenther
(This used to be commit b9cc5cfaf9)
2008-02-17 03:00:31 +01:00
Günther Deschner
9f8f9c1483 Finally let our samlogon routines call rpccli_netr_LogonSamLogon internally and
return netr_SamInfo3.

Guenther
(This used to be commit 9e5b732d45)
2008-02-17 02:12:01 +01:00
Günther Deschner
f47d642ca7 Add krb5pac IDL from samba4.
Guenther
(This used to be commit dc2e563e1f)
2008-02-17 01:13:05 +01:00
Michael Adam
c013ff7902 Add missing dependency to libtdb to libnss_wins.so
Michael
(This used to be commit 05e6399318)
2008-02-17 01:09:15 +01:00
Günther Deschner
b4989afbab YES! NETLOGON rpc server side migration to pidl finished.
Guenther
(This used to be commit 7845a0d9a8)
2008-02-16 14:53:45 +01:00
Günther Deschner
c164f1dd80 Add init_netr_SamInfo3 routine.
Guenther
(This used to be commit bf598744c5)
2008-02-16 13:44:33 +01:00
Michael Adam
355faf2e3d Move the implementation of _winreg_RestoreKey to reg_api.c
This removes the internals of reg_api from srv_winreg_nt.c entirely,
only reg_api is used there, now. This enlarges the dependencies of
reg_api somewhat now since it adds regfio. But this can be separated
out later. The current goal is to achieve a complete use of reg_api.

Michael
(This used to be commit 2222acbac9)
2008-02-15 16:23:10 +01:00
Michael Adam
6fe7ed0b12 Add libtdb dependency to libsmbclient, libsmbsharemodes and libnetapi.
Michael
(This used to be commit 94d9d5023e)
2008-02-15 15:59:55 +01:00
Michael Adam
71c34ad4e0 Use -ltdb instead of bin/libtdb.so for linking.
Michael
(This used to be commit 47b952b9a5)
2008-02-15 13:40:28 +01:00
Michael Adam
66ad7e82dc Fix the build on IRIX by placing the object files before the shared libs in linking.
Michael
(This used to be commit f2c6585329)
2008-02-15 13:39:24 +01:00
Michael Adam
6b88ba1761 Remove libwbclient.a from standard (static) libsmbclient object list.
Michael
(This used to be commit 8e57df2886)
2008-02-15 12:20:02 +01:00
Michael Adam
f4c8b85532 Add orphaned target smbiconv to "make everything" targets.
Michael
(This used to be commit 92cc5d88bb)
2008-02-15 11:52:15 +01:00
Michael Adam
a4b93e2063 Fix linkage of bin/smbiconv by adding needed libs and objects.
Michael
(This used to be commit fc08bf5a46)
2008-02-15 11:42:31 +01:00
Michael Adam
a3e38fd921 Remove useless build-target bin/samtest. (The objects exist no more.)
Michael
(This used to be commit e78831cf59)
2008-02-15 11:27:01 +01:00
Michael Adam
9aa1c9f7fe Fix build of cifs.spnego with libtdb.
Michael
(This used to be commit e5e621681d)
2008-02-15 11:15:13 +01:00
Michael Adam
895ab0368a Use -ltdb instead of bin/libtdb.so for linking.
Michael
(This used to be commit c470051896)
2008-02-15 11:11:46 +01:00
Michael Adam
3756759f21 Fix build of smbumount with shared libtdb.
Michael
(This used to be commit 61fb01f17b)
2008-02-15 11:10:53 +01:00
Michael Adam
48f3c385bc Fix building smbmount with shared libtdb.
Michael
(This used to be commit 7f2c4b1a33)
2008-02-15 11:08:56 +01:00
Michael Adam
769d6eb7eb Remove the regfio objects from the ldb commandlin tools object list - unused.
Michael
(This used to be commit 047c5ba740)
2008-02-14 16:32:40 +01:00
Michael Adam
b2b0a42fb8 Clean up LIBTDB-related Makefile variables a bit
(removing commented out stuff).

Michael
(This used to be commit 0755785d80)
2008-02-14 16:32:29 +01:00
Michael Adam
b09b3ac8f8 Create symbols to export in libtdb dynamically from tdb.h.
This adds a general mechanism to create version-scripts for
linking shared libraries from one or several header files,
similar to mkproto.sh/awk.

Michael
(This used to be commit 65817703c4)
2008-02-14 14:17:57 +01:00
Michael Adam
8e3ae7baaf Add support for building and using shared and static libtdb library.
This should work with m4_include(lib/tdb/libtdb.m4) like already
done with talloc, but currently this does not work (yet) - tdb
code has to be merged from s4 before that.

Michael
(This used to be commit e92fdf6b20)
2008-02-14 14:17:57 +01:00
Michael Adam
574dce7c0e Link in libnetapi as shared or static library (same mechanism as talloc).
This, too, can be turned to static linking by providing the configure
parameter --with-static-libs=netapi.

Michael
(This used to be commit a4c773de0f)
2008-02-13 14:45:13 +01:00
Michael Adam
4b18f4f222 Only use the needed objects for libnetapi.a
Michael
(This used to be commit 4ffc73d908)
2008-02-13 14:10:06 +01:00
Stefan Metzmacher
b397b5cb8f auth_winbind: use wbcAuthenticateUserEx()
smbd doesn't need $(WBCOMMON_OBJ) anymore,
it works with any libwbclient.so now
and may talk to an older winbindd.

metze
(This used to be commit e3435930a3)
2008-02-13 13:30:16 +01:00
Michael Adam
4cd4ff474e Add libreplace objects to libtalloc.so.
Michael
(This used to be commit a84bf0786f)
2008-02-13 11:54:41 +01:00
Günther Deschner
be4ca67316 Goodbye parse_samr.c, rest in peace - but never come back!
Guenther
(This used to be commit 8a8c5826e7)
2008-02-13 11:36:17 +01:00
Michael Adam
c3d7358994 Fix build: Add missing prerequisites for libwbclient.so
Michael
(This used to be commit fa3a78b815)
2008-02-13 10:52:21 +01:00
Stefan Metzmacher
f724a8ff58 libwbclient: include wb_common.o in libwbclient.a
And only link in wb_common.o directly into binaries
which really need it.

Note: It's important that $(WBCOMMON_OBJ) comes before
      @LIBWBCLIENT_STATIC@ overwise we may try to
      link in wb_common.o twice.

metze
(This used to be commit 135d9dd6d8)
2008-02-13 10:44:52 +01:00
Michael Adam
29bf356f26 Fix install: Add creation of include dir to installlibtalloc target.
Michael
(This used to be commit 26d012dd3d)
2008-02-13 10:36:48 +01:00
Michael Adam
85e3c091d4 Add linking -ltalloc to libwbclient.so. Noted by Metze.
Michael
(This used to be commit e904a3dd53)
2008-02-13 10:11:43 +01:00
Michael Adam
62c94e0acc Remove some unneded variables: we always build and install some talloc libs.
LIBTALLOC, INSTALL_LIBTALLOC, UNINSTALL_LIBTALLOC

Michael
(This used to be commit 97a60565ad)
2008-02-13 09:25:31 +01:00
Michael Adam
cb69724050 Put talloc lib targets into variables and uses these.
LIBTALLOC_STATIC_TARGET and LIBTALLOC_SHARED_TARGET.

Michael
(This used to be commit d1bec38829)
2008-02-13 09:25:31 +01:00
Michael Adam
ea22f75493 Add support for linking talloc library statically or dynamically into samba.
This also establishes a general configure mechanism to control static vs
dynamic linking of internal subsystems built as libraries:
This first simple approach is as follows.

* It applies only to "subsystems" that we build as libraries and for
  that linking samba against the libraries (as opposed to linking in
  the plain object files) has been configured in Makefile.in.

* If we do build the shared library, then we link dynamically by default.

* We only link statically if we don't build shared or if the library
  appears in the new --with-static-libs configure option
  (comma-separated list).

Example (currently only one):
  --with-static-libs=talloc makes use of libtalloc.a instead
  of linking the dynamic variant with -ltalloc.

A possilble way to setup linking against libraries in Makefile.in is this:
For a subsystem, "mylib" say, we build bin/libmylib.a and bin/libmylib.so.
The subsystem usually has a MYLIB_OBJ definition in Makefile.in.  Define
LIBMYLIB_STATIC=bin/libmylib.a and and LIBMYLIB_LIBS=-lmylib in configure.in
as controlled by presence of "mylib" in the list given to --with-static-libs
and change uses of $(MYLIB_OBJ) to @LIBMYLIB_STATIC@ in Makefile.in and
add @LIBMYLIB_LIBS@ to the link targets as needed.

In the example of talloc, which is needed everywhere, I have simply
added @LIBTALLOC_LIBS@ to the definition of "LIBS" in Makefile.in.
For other subsystems, one will have to be more careful.

Michael
(This used to be commit 71b990d9d6)
2008-02-13 09:25:31 +01:00
Michael Adam
2a9cbe3c13 Use data from lib/talloc/libtalloc.m4 instead of hard coded data.
Michael
(This used to be commit 880238c65c)
2008-02-13 09:25:31 +01:00
Michael Adam
c7e80b0c20 Add support for building libtalloc.a and libtalloc.so.
Michael
(This used to be commit cb7f42bcbc)
2008-02-13 09:25:31 +01:00
Günther Deschner
e2b3aad817 Collect all init_lsa_string varients in one place.
Guenther
(This used to be commit f4581e9f44)
2008-02-12 22:05:39 +01:00
Günther Deschner
80d20d8e54 w00t! SAMR server-side conversion to pidl is finished.
Guenther
(This used to be commit c6d9650930)
2008-02-12 14:55:20 +01:00
Günther Deschner
6aa84ad8c5 Move some samr init functions around (to allow easier identification of new
calls).

Guenther
(This used to be commit c51c126049)
2008-02-12 12:30:51 +01:00
Michael Adam
03ccbd47d4 Fix building with "make -j2" or greater by building shared libs first.
Also build libwbclient before the other shared libs so
building libsmbclient (e.g.) won't fail.

Michael
(This used to be commit 09184e774b)
2008-02-08 00:56:39 +01:00
Michael Adam
7183e5811e Add support for LDAP debug output in Samba log file.
Logging of the ldap libraries appears with a [LDAP] prefix
inside the samba logs. This is controlled by two new parameters:

* "ldap debug level" sets the debug level of the ldap libraries.
  It is the bit-field as understood by the openldap server.

* "ldap debug threshold" is the samba debug level at which ldap
  logging appears inside the samba logs.

This probably needs some configure tests since it makes
use of the LBER_OPT_LOG_PRINT_FN option to redirect the
debug output of the ldap libraries.

Michael
(This used to be commit 15c25990bd)
2008-02-06 18:16:22 +01:00
Günther Deschner
09454362cf Enable build of pidl generated netlogon server.
Guenther
(This used to be commit cb0fad1c97)
2008-01-31 13:46:54 +01:00
Günther Deschner
3d507a2fca Let _samr_Close() use pidl generated server code.
Guenther
(This used to be commit 2df3408079)
2008-01-31 11:20:13 +01:00
Günther Deschner
80b2e330f9 Remove include/rpc_ds.h and all references to it completly.
Jerry, please have a look if you're fine with that.

Guenther
(This used to be commit beae25c808)
2008-01-29 17:51:05 +01:00
Günther Deschner
1a7583dd0b Remove unused rpc_ds marshalling code that is unused now.
Guenther
(This used to be commit 153253e14f)
2008-01-29 15:51:19 +01:00
Günther Deschner
5a89a4674e Finally delete rpccli_ds_enum_domain_trusts() completly.
Guenther
(This used to be commit c420e42adf)
2008-01-29 15:23:38 +01:00
Günther Deschner
7cab0f5c0c Fix the build. Avoid unrequired ndr_print_ads_struct dependencies.
Guenther
(This used to be commit c832882e49)
2008-01-29 15:17:02 +01:00
Günther Deschner
05ff7fd46e Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
(This used to be commit d5ebfccebb)
2008-01-25 15:30:43 +01:00
Günther Deschner
d7d4f1c132 Add generated dssetup code after make idl.
Guenther
(This used to be commit 4b3d96be80)
2008-01-25 15:25:12 +01:00
Günther Deschner
af7f24d979 Add winbindd debugging ndr_print helpers.
Guenther
(This used to be commit 4389e4dadb)
2008-01-24 16:21:59 +01:00
Günther Deschner
df5b03a780 Re-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).
Guenther
(This used to be commit 1781a57b18)
2008-01-24 13:54:45 +01:00
Michael Adam
99dfd66488 Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.c
This actually is a counterpart to reg_init_full, in that is does
open and initialize the registry too, but only registeres the backends
necessary to access the SMBCONF key.

Michael
(This used to be commit 01bda3ab35)
2008-01-21 08:49:12 +01:00
Michael Adam
1b4dfc2e7d Move reg_frontend_hilvl.c to reg_dispatcher.c
This is actually the dispatcher to the registered registry backends.

Michael
(This used to be commit 39d65d11f8)
2008-01-21 08:49:12 +01:00
Michael Adam
42641d6321 Extend/fix comments.
Michael
(This used to be commit 4952417fca)
2008-01-21 08:49:12 +01:00
Michael Adam
99186bf726 Extract regkey_open_internal() from reg_frontend.c to new reg_util_legacy.c
reg_openpath should be used instead of this function (along with the
reg_api interface). Last callers of this function are in services_db.c

Michael
(This used to be commit 0005b88d74)
2008-01-21 08:49:12 +01:00
Michael Adam
b5666ceefb Rename reg_db.c to reg_backend_db.c
Michael
(This used to be commit c3f695d3b1)
2008-01-21 08:49:12 +01:00
Michael Adam
e7520f3ad8 Rename reg_shares.c to reg_backend_shares.c
Michael
(This used to be commit aaf33ae5b8)
2008-01-21 08:49:12 +01:00
Michael Adam
4ccee0dc0c Rename reg_smbconf.c to reg_backend_smbconf.c
Michael
(This used to be commit b85e5ee450)
2008-01-21 08:49:12 +01:00
Michael Adam
1e68e24c8e Rename reg_printing.c to reg_backend_printing.c
Start making naming of source files more systematic
to facilitate understanding of the structures.

Michael
(This used to be commit b3c2fb17a4)
2008-01-21 08:49:12 +01:00
Michael Adam
625c17e670 Makefile.in: Group together registry related object variables.
Michael
(This used to be commit cf485273f6)
2008-01-21 08:49:12 +01:00
Michael Adam
8f290dccc9 Makefile.in: extract registry backend objects to common variable.
Michael
(This used to be commit 562c3eb37e)
2008-01-21 08:49:12 +01:00
Michael Adam
ea725473b3 reg_eventlog.o and reg_perfcount.o are no longer neede for reg_smbconf.
This is an effect of the removal of the dynamic registry overlay.
This is the beginning of a restructuring of registry linkage in Makefile.in.

Michael
(This used to be commit 7453e78a8e)
2008-01-21 08:49:11 +01:00
Michael Adam
e45dacce89 Remove the dynamic registry overlay.
It is unnecessary now the dynamic functions have been made
registry backends of their own.

Michael
(This used to be commit e327953bd6)
2008-01-20 03:47:37 +01:00
Michael Adam
c16b74cc86 Add a registry backend perflib that replaces the former dynamic overlay.
Michael
(This used to be commit c3fba41595)
2008-01-20 03:47:37 +01:00
Michael Adam
2925d83573 Add a registry backend current_version that replaces the former dynamic overlay.
Make sure to only respond to the exact current version key since subkeys
are registered by other backends (printing and - soon - perflib).

Michael
(This used to be commit 2c650bf63c)
2008-01-20 03:47:36 +01:00
Michael Adam
949a88ee2f Add a registry backend hkpt_params that replaces the former dynamic overlay.
Michael
(This used to be commit 8e8bb6ba12)
2008-01-20 02:03:40 +01:00
Michael Adam
c5a5b404b4 Add a registry backend tcpip_params that replaces the former dynamic overlay.
Michael
(This used to be commit a8a743b693)
2008-01-20 02:03:40 +01:00
Michael Adam
663815ec2b Add a registry backend prod_options that replaces the former dynamic overlay.
Michael
(This used to be commit d9b89e9d30)
2008-01-20 02:03:39 +01:00
Volker Lendecke
dfd05b9b65 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
(This used to be commit 5f5fc72b01)
2008-01-19 23:36:34 +01:00
Volker Lendecke
4ba64fce49 vfs_streams_xattr module
Store streams in posix xattrs. A kludge, as xattrs are limited in many ways,
but it might be a help for some situations.
(This used to be commit 83a805220e)
2008-01-19 23:34:22 +01:00
Volker Lendecke
7b73ad2755 Link ndr_xattr.o with LIBNDR_GEN_OBJ
It will be used elsewhere (net xattr for example)
(This used to be commit 924c4ede2a)
2008-01-19 12:54:46 +01:00
Michael Adam
60fbc7e4f0 Add a registry backend netlogon_params that replaces the former dynamic overlay.
This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.

Michael
(This used to be commit e8a0524961)
2008-01-18 09:40:57 +01:00
Günther Deschner
a92eb76688 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
(This used to be commit f7100156a7)
2008-01-17 16:54:46 +01:00
Günther Deschner
7faee16966 Re-run make idl to generate SAMR output.
Guenther
(This used to be commit b4c1904022)
2008-01-17 16:54:46 +01:00
Günther Deschner
101f275b98 Use pidl generated data from misc.idl.
Guenther
(This used to be commit 5d8e5cbc3b)
2008-01-17 16:54:46 +01:00
Alexander Bokovoy
80f1cc3879 Enable building of VFS modules: vfs_tsmsm, vfs_shadowcopy2 and IDMAP module idmap_tdb2
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 136c024c9a)
2008-01-16 12:28:28 +03:00
Volker Lendecke
c2acec43ae rename vfs_ea_tdb to vfs_xattr_tdb
(This used to be commit 151b42a150)
2008-01-15 17:30:29 +01:00
Stefan Metzmacher
bd8f1f71ac libwbclient: don't link talloc.o into libwbclient.a
hopefully fix the build...(and hopefully the correct fix)

metze
(This used to be commit 561e529a71)
2008-01-15 16:00:40 +01:00
Stefan Metzmacher
0a21a1ab09 Revert "libwbclient: don't link talloc.o into libwbclient.a"
This reverts commit 9a4b6fd3e2.

Sorry...

metze
(This used to be commit 58c806dbf8)
2008-01-15 15:56:58 +01:00
Günther Deschner
b239612fcf Use autogenerated libnet_join header.
Guenther
(This used to be commit d94bd3a03b)
2008-01-15 15:29:50 +01:00
Stefan Metzmacher
97f61b542c libwbclient: don't link talloc.o into libwbclient.a
hopefully fix the build...

metze
(This used to be commit 9a4b6fd3e2)
2008-01-15 15:02:01 +01:00
Stefan Metzmacher
ab10557a68 krb5_locator: winbind_krb5_locator.o doesn't need socket wrapper any more
metze
(This used to be commit a5fb8b443a)
2008-01-15 13:58:35 +01:00
Stefan Metzmacher
11fb5f39fe nss_winbind: nss_winbind.so doesn't need socket wrapper any more
metze
(This used to be commit ed559b4a59)
2008-01-15 13:58:34 +01:00
Stefan Metzmacher
b5aa1a3c24 pam_winbind: pam_winbind.so doesn't need soecket wrapper any more
metze
(This used to be commit e37859164c)
2008-01-15 13:58:33 +01:00
Stefan Metzmacher
84d73ff78b libwbclient: libwbclient.so doesn't need socket nor nss wrapper any more
metze
(This used to be commit 4f05b50d4c)
2008-01-15 13:58:33 +01:00
Volker Lendecke
57cc992e0f Implement vfs_ea_tdb
This is an option for file systems that do not implement xattrs: in
lockdir/eas.tdb an array of xatts per inode is stored.

It can not solve the problem that xattrs might reappear if a posix-level
process deletes a file and happens to re-create it under the same name. On file
systems with birthtime we might have a chance to detect this, but not with
standard posix. A future version might put relief on file systems that do have
xattrs but where these are severely limited in size/speed/whatever: We can put
a simple marker as a native xattr, but the xattrs proper are stored in the tdb.

Volker
(This used to be commit 2036b4c5ad)
2008-01-15 11:01:18 +01:00
Stefan Metzmacher
1e9c289d84 libwbclient: install wbclient.h into the same path as smbclient.h
metze
(This used to be commit 7cb81bfc6b)
2008-01-15 10:43:43 +01:00
Michael Adam
ff256b4284 Fix "make test_shlibs": it showed unresolved symbols for -lwbclient.
Michael
(This used to be commit 9a435b510f)
2008-01-14 14:57:30 +01:00
Günther Deschner
43d7bb53ad Revert ""make test_shlibs" shows unresolved symbols for -lwbclient."
This reverts commit 0093f618e9.
(This used to be commit ad6cb9afc9)
2008-01-14 12:01:06 +01:00
Günther Deschner
e41fe768b6 "make test_shlibs" shows unresolved symbols for -lwbclient.
Guenther
(This used to be commit 0093f618e9)
2008-01-14 10:43:49 +01:00
Volker Lendecke
2aa12fff43 One more empty line
(This used to be commit 10b6f52910)
2008-01-12 20:11:10 +01:00
Volker Lendecke
0bfa867159 --enable-libwbclient-shared
This patch adds the configure option --enable-libwbclient-shared that defaults
to yes. If you set --enable-developer=yes, then you can say
--enable-libwbclient-shared=no to avoid problems you might have with the wrong
shared libaries.

Jerry, is this acceptable to you? If yes, please push.

Thanks!

Volker
(This used to be commit 7a88cd61e0)
2008-01-10 22:15:19 +01:00
Michael Adam
ba2a255282 Move transfer_file and transfer_file_internal to a module of their own.
Also, don't auto-generate prototypes of the (two) exported functions
but make a start in having handwritten prototypes in dedicated header
files (not in includes.h ... :-)

Michael
(This used to be commit 395f29d8b7)
2008-01-10 14:31:25 +01:00
Volker Lendecke
e8909e2840 Fix suspicious Makefile line
If @WINBIND_KRB5_LOCATOR@ is not defined, this leads to a line with just one
tab in.
(This used to be commit af07adaf42)
2008-01-10 10:55:38 +01:00
Jelmer Vernooij
bfab6ab14b Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit ea36c3add5)
2008-01-08 15:43:11 +01:00