1
0
mirror of https://github.com/samba-team/samba.git synced 2025-05-22 22:50:19 +03:00

1324 Commits

Author SHA1 Message Date
Michael Adam
63e4a96253 build: move SECRETS_OBJ into LIBSMB_OBJ
LIBSMB_OBJ is not used without SECRETS_OBJ

Michael
(This used to be commit bea66f07b4b8071348fc4d7dc4d13306466af171)
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 310fd52ea4d05cdc83a798fda447879e3ebb2bc3)
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 27c7441145190eee7b61bec76edf1d4987a5be8d)
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 ddc2292c159700018911c85bcb2b8243b78f4e5c)
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 05f7f77135ab997b92b2454871f21543ecbde0ed)
2008-04-11 15:59:34 +02:00
Stefan Metzmacher
4313d7b6c2 nsswitch: remove unused nsswitch/wb_client.c
metze
(This used to be commit 2b236c7ace15b4408c31ed918b449d5a22e1769f)
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 e9e46cfcbe25366121f680a6d81fe08c128bf00a)
2008-04-10 21:41:03 +02:00
Michael Adam
e251327b5b libsmbconf: testsuite: add support for "--configfile" option.
Michael
(This used to be commit 9f6c909f465df5fc64e2bec88acf272be9cd574e)
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 bc8dc8626c5fb296edbd193a7cc293317c7a29ca)
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 e0f6a9d50c9b72ec33d4323d1a6c5bdf44d011e7)
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 51026d64b3e19626b51bee73fb257a75a6455355)
2008-04-09 23:52:35 +02:00
Günther Deschner
6b2ae8e9ff Add NetUserAdd to libnetapi.
Guenther
(This used to be commit cb98996ed2ac93a0e15838048405772d2043021a)
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 a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)
2008-04-08 03:08:49 +02:00
Günther Deschner
ec0a34864e Build libnetapi.idl.
Guenther
(This used to be commit c098714ac4bac8a7e27be761979a96190b77de1f)
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 3bf890783fadd245c59280173627a6caca2dbefe)
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 7b16cb1023abd4fb2b2f08cf723d38c8c6ae68a0)
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 3250068eb980bd0489f814f702401cdc9c925a8d)
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 4ea50843852b335a9bd4c0535a5b684134ad8326)
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 edf4dbed27a3c63c04e8110e75cdb76e31627eb6)
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 6e9287c5c3a6bbd15ec495593978c1a76e64ee60)
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 10ae8accb486956ebb1638cee540868a11623b11)
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 431b10bfe0dba0a49e50bebfb3f8ad1a00955837)
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 a5f0186f70abe8dba650265219e69ce5ca2fb642)
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 0244734cc5c682a73f84e2fe0a52a15090063d93)
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 5315ef41f403b96715dd68b512e9e74662e2910a)
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 e4b52133d6109ae6cc0378285e2d46f7077812f1)
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 c20c5f082162ff6c0c2931f456897334aa002e83)
2008-03-07 11:33:26 -05:00
Michael Adam
156c42fd4f Time to confess...
Michael
(This used to be commit 4e584c6e3699d8c05b163cc5674af04d106692ba)
2008-03-07 14:31:08 +01:00
Günther Deschner
266af5887e Fix the build of cifs.spnego.
Guenther
(This used to be commit 9eaaf17d30388ef9446fb18e69197baa699b7eac)
2008-03-06 19:49:27 +01:00
Michael Adam
bdee4a5cb3 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
(This used to be commit 6850dc242b010bdcef5e427e51be04201f55b7f3)
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 3a0f781352f364ce625a35ffd78257b27d984c47)
2008-03-06 14:56:24 +01:00
Volker Lendecke
1ea0a5d0cd Add infrastructure to support async SMB requests
(This used to be commit e2153301351559f30f2714345f4c1ca6c5f1a45f)
2008-03-06 13:28:23 +01:00
Volker Lendecke
f05bc40389 Add basic infrastructure for general async requests
(This used to be commit 9f8b2a87ee8bba930b776dcfda608a5639f6d55a)
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 21a527569bccff8e8cb6e751c9f3fce6ff598204)
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 3398403c22c0f39b0d91621d81e31004fc8d28bc)
2008-03-05 23:47:59 +01:00
Günther Deschner
9f133a602f Fix build targets for bin/net.
Guenther
(This used to be commit 5159e3dafa9f9bb85cde6681052d8f54b8bf8a2e)
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 f6762f9cd0b2ace46e16d246adf2e386749650f9)
2008-03-05 19:56:00 +01:00
Michael Adam
0a15d8a3bd Makefile: reformat - break long target lines.
Michael
(This used to be commit e26133808469cb7e9acc41cb15219d7b736d228a)
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 237ea62a49fbf47634b55795c1065250d5148600)
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 7dbc251e1cd28abf28342529607fa4b5f579a9c4)
2008-03-05 12:20:25 +01:00
Günther Deschner
3bda36d637 Fix build of pam_smbpass.
Guenther
(This used to be commit cd582b7705dca40b3c688c9e23d8375dab43b4d0)
2008-03-05 11:31:26 +01:00
Günther Deschner
2c3dc9baa5 Use pidl for _srvsvc_NetSrvGetInfo().
Guenther
(This used to be commit 34caa41fa6d44165b470508261c2bde124fc4955)
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 a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
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 d4b4bae8ded824d06ad5ab0e219f71187ee5c771)
2008-03-01 20:47:22 -05:00
Volker Lendecke
c3cb59ae2b Revert "Add basic infrastructure for general async requests"
This reverts commit ae254cb61f4b9331755848c47ebc34e90dd80390.
(This used to be commit 030bef7f22f7a73466204b7860f397dbca9f2ab0)
2008-03-01 09:38:14 +01:00
Volker Lendecke
45a877f392 Revert "Add infrastructure to support async SMB requests"
This reverts commit f5356825698a02df2d400b51dd95d1f857c83e81.
(This used to be commit 5f53a62be8a21b8d92ac44b18d202882500356e8)
2008-03-01 09:38:14 +01:00
Günther Deschner
485b070eb8 Add "registry" Group Policy extension.
Guenther
(This used to be commit 4e93301ca4931908a7d1994be45c57002f8c6fea)
2008-02-29 17:25:28 +01:00
Günther Deschner
41efa5ca45 Add Group Policy extension infrastructure.
Guenther
(This used to be commit 6d543b1a1a5a7af98affc9aea2edf650cb476379)
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 f673bbd300d972dd7ae2d092b3b1e642ed29cfd2)
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 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
(This used to be commit 2967b29f23e04f24a62ea576b0b6c948055689d0)
2008-02-29 13:17:28 +01:00