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

1319 Commits

Author SHA1 Message Date
Stefan Metzmacher
2b236c7ace nsswitch: remove unused nsswitch/wb_client.c
metze
2008-04-11 15:59:34 +02:00
Günther Deschner
e9e46cfcbe Add very basic cli_cm_* based connection handler to libnetapi.
Guenther
2008-04-10 21:41:03 +02:00
Michael Adam
9f6c909f46 libsmbconf: testsuite: add support for "--configfile" option.
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
bc8dc8626c libsmbconf: add testsuite to the library.
Currently only the init function is tested, more tests to come...

Michael
2008-04-10 01:28:57 +02:00
Michael Adam
e0f6a9d50c libsmbconf: move utility functions from main module to new smbconf_util.c
Michael
2008-04-10 01:28:55 +02:00
Michael Adam
51026d64b3 net: don't process net_registry_util.c with make proto
it has its own herader net_registry_util.h

Michael
2008-04-09 23:52:35 +02:00
Günther Deschner
cb98996ed2 Add NetUserAdd to libnetapi.
Guenther
2008-04-09 13:23:09 +02:00
Günther Deschner
a4e3bc2bad Restructure inner workings of libnetapi a bit.
Guenther
2008-04-08 03:08:49 +02:00
Günther Deschner
c098714ac4 Build libnetapi.idl.
Guenther
2008-04-08 03:08:49 +02:00
Michael Adam
3bf890783f net_registry: split utility function of common interest out into util module.
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
7b16cb1023 Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
Michael
2008-04-04 16:47:52 +02:00
Michael Adam
3250068eb9 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
2008-03-28 16:19:35 +01:00
Michael Adam
4ea5084385 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
2008-03-26 14:55:05 +01:00
Michael Adam
edf4dbed27 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
2008-03-25 15:55:34 +01:00
Gerald (Jerry) Carter
6e9287c5c3 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.
2008-03-24 17:25:13 -05:00
Michael Adam
10ae8accb4 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
2008-03-22 02:29:40 +01:00
Michael Adam
431b10bfe0 libsmbconf: move registry implementation to a module of its own.
Michael
2008-03-21 16:26:50 +01:00
Günther Deschner
a5f0186f70 Remove remaining old srvsvc client and server rpc code entirely.
Guenther
2008-03-21 04:16:22 +01:00
Günther Deschner
0244734cc5 Remove double RPC_PARSE_OBJ2 from Makefile.
Guenther
2008-03-21 04:16:22 +01:00
Michael Adam
5315ef41f4 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
2008-03-17 18:03:02 +01:00
Günther Deschner
e4b52133d6 Remove rpccli_srvsvc_net_file_enum() and cli_srvsvc.c with it.
Guenther
2008-03-10 17:14:11 +01:00
Simo Sorce
c20c5f0821 Enable use of Relocations Read-Only, if supported, for enhanced security. 2008-03-07 11:33:26 -05:00
Michael Adam
4e584c6e36 Time to confess...
Michael
2008-03-07 14:31:08 +01:00
Günther Deschner
9eaaf17d30 Fix the build of cifs.spnego.
Guenther
2008-03-06 19:49:27 +01:00
Michael Adam
6850dc242b Revert "Build: Add an rpath of $(LIBDIR) to binary targets."
This reverts commit 3a0f781352f364ce625a35ffd78257b27d984c47.

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
2008-03-06 18:03:56 +01:00
Michael Adam
3a0f781352 Build: Add an rpath of $(LIBDIR) to binary targets.
This removes the need of setting LD_LIBRARY_PATH.

Michael
2008-03-06 14:56:24 +01:00
Volker Lendecke
e215330135 Add infrastructure to support async SMB requests 2008-03-06 13:28:23 +01:00
Volker Lendecke
9f8b2a87ee Add basic infrastructure for general async requests 2008-03-06 13:28:23 +01:00
Michael Adam
21a527569b Make test: set LD_LIBRARY_PATH for make test_shlibs and friends.
Michael
2008-03-06 10:26:37 +01:00
Michael Adam
3398403c22 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
2008-03-05 23:47:59 +01:00
Günther Deschner
5159e3dafa Fix build targets for bin/net.
Guenther
2008-03-05 22:21:10 +01:00
Günther Deschner
f6762f9cd0 Another build fix for pam_smbpass: make sure libwbclient is there.
Guenther
2008-03-05 19:56:00 +01:00
Michael Adam
e261338084 Makefile: reformat - break long target lines.
Michael
2008-03-05 15:04:36 +01:00
Michael Adam
237ea62a49 Makefile: untangle -ltalloc from LIBS, making use of libtalloc explicit.
Michael
2008-03-05 15:04:36 +01:00
Michael Adam
7dbc251e1c Makefile: Add explicit dependecies to libtalloc.so.
So as to fix building of isolated targets.

Michael
2008-03-05 12:20:25 +01:00
Günther Deschner
cd582b7705 Fix build of pam_smbpass.
Guenther
2008-03-05 11:31:26 +01:00
Günther Deschner
34caa41fa6 Use pidl for _srvsvc_NetSrvGetInfo().
Guenther
2008-03-05 09:49:15 +01:00
Derrell Lipman
a67f96fbe9 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
2008-03-03 18:13:33 -05:00
Derrell Lipman
d4b4bae8de 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
2008-03-01 20:47:22 -05:00
Volker Lendecke
030bef7f22 Revert "Add basic infrastructure for general async requests"
This reverts commit ae254cb61f4b9331755848c47ebc34e90dd80390.
2008-03-01 09:38:14 +01:00
Volker Lendecke
5f53a62be8 Revert "Add infrastructure to support async SMB requests"
This reverts commit f5356825698a02df2d400b51dd95d1f857c83e81.
2008-03-01 09:38:14 +01:00
Günther Deschner
4e93301ca4 Add "registry" Group Policy extension.
Guenther
2008-02-29 17:25:28 +01:00
Günther Deschner
6d543b1a1a Add Group Policy extension infrastructure.
Guenther
2008-02-29 17:07:57 +01:00
Günther Deschner
f673bbd300 Add infrastructure for reading/storing Group Policy state and control data in the registry.
Guenther
2008-02-29 15:48:14 +01:00
Michael Adam
2967b29f23 Revert "Add libnet_join.idl to the IDL files to be processed by "make idl"."
This reverts commit 9b47a7329091b2bfe7cd9b2112ac8fa652ed9f60.

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
2008-02-29 13:17:28 +01:00
Michael Adam
78bc496ecf Fix linking of smbget when there is no shared library support.
smbget needs libwbclient.

Michael
2008-02-29 12:38:29 +01:00
Volker Lendecke
b0e52cecf2 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
2008-02-29 09:47:53 +01:00
Michael Adam
7cf645cdae Fix creation of replacetort.
Forgot to git add Makefile.in before doing git commit --amend
in previous commit...

Michael
2008-02-29 09:40:09 +01:00
Günther Deschner
a5c6347644 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
2008-02-28 19:54:35 +01:00
Karolin Seeger
5fbd98f706 Remove smbmount.
Karolin
2008-02-28 15:53:43 +01:00