1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

24772 Commits

Author SHA1 Message Date
Stefan Metzmacher
40aeb43160 nsswitch/: we don't need socket or nss wrapper in the winbind client code
As we don't need socket wrapper of nss wrapper in the winbind client code
we disable the function macros so that we don't endup with swrap_close()
or similar functions.

metze
2008-01-15 13:58:32 +01:00
Günther Deschner
f21871c6d6 No need to re-establish AD connection all the time.
Guenther
2008-01-15 11:02:56 +01:00
Günther Deschner
1a5b72daa3 Use dsgetdcname() to find a dc when unjoining in libnetjoin.
Guenther
2008-01-15 11:02:56 +01:00
Günther Deschner
99e3e4b0dd Re-arrange pre- and postprocessing code in libnetjoin.
Guenther
2008-01-15 11:02:56 +01:00
Volker Lendecke
b66ac8567c Fix some warnings -- Jeremy, please check 2008-01-15 11:01:18 +01:00
Volker Lendecke
2036b4c5ad 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
2008-01-15 11:01:18 +01:00
Stefan Metzmacher
e6bd1395f2 libwbclient: add wbclient.pc.in
metze
2008-01-15 10:43:43 +01:00
Stefan Metzmacher
7cb81bfc6b libwbclient: install wbclient.h into the same path as smbclient.h
metze
2008-01-15 10:43:43 +01:00
Stefan Metzmacher
7dd65599a1 libwbclient: move wbc_err.h into wbclient.h as we only install one header
This makes the installed wbclient.h header usable.

metze
2008-01-15 10:43:42 +01:00
Günther Deschner
9f05d2eae7 Add True/False bool cleanup script.
Guenther
2008-01-15 10:35:10 +01:00
Jeremy Allison
ef9b278b62 Windows insists on write sizes < max_xmit on signed connections.
Jeremy.
2008-01-14 13:46:06 -08:00
Alexander Bokovoy
a861ff2091 Fix crash in winbind clients: instead of talloc-based pointer we passed address of a local variable. 2008-01-14 13:03:49 -06:00
Michael Adam
3f081ebead Add detection for need of update to the registry db.
This only detects if the tdb sequence number has changed
since the data has last been read.

Michael
2008-01-14 19:38:01 +01:00
Günther Deschner
558ce4ec3e Some more minor cleanup for "net rpc audit".
Guenther
2008-01-14 18:39:15 +01:00
Günther Deschner
44d67e8462 Print principal in debug statement in kerberos_kinit_password() as well.
Guenther
2008-01-14 18:39:08 +01:00
Günther Deschner
94693755a2 Re-run make idl to update lsa idl.
Guenther
2008-01-14 17:39:33 +01:00
Günther Deschner
8b63a16657 Use lsa_PolicyInfo enum in lsa policy info calls.
Guenther
2008-01-14 17:37:35 +01:00
Günther Deschner
be8071779f Fix all callers of old rpccli_lsa_set_info_policy() call.
Guenther
2008-01-14 17:17:20 +01:00
Günther Deschner
33f6eff92b Fix prototypes for lsa set info policy calls.
Guenther
2008-01-14 17:16:31 +01:00
Günther Deschner
b37b2b77ed Remove old lsa set info policy call.
Guenther
2008-01-14 17:16:06 +01:00
Günther Deschner
add28753b2 Re-run make idl for new lsa calls.
Guenther
2008-01-14 17:13:17 +01:00
Günther Deschner
dceb9a4c80 Fill in IDL for lsa_SetInfoPolicy and lsa_SetInfoPolicy2.
Guenther
2008-01-14 17:10:31 +01:00
Günther Deschner
99dd28da84 Remove more redundant lsa parsing functions.
Guenther
2008-01-14 15:51:50 +01:00
Michael Adam
dcb5034acd Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>
Michael
2008-01-14 15:46:01 +01:00
Günther Deschner
54bdd22a07 Fix rpcclient display_trust_dom_info().
Guenther
2008-01-14 15:39:51 +01:00
Günther Deschner
aa3de6f9f5 Use pidl generated rpccli_lsa_QueryTrustedDomainInfoBySid when vampiring trusted
domain secrets.

Guenther
2008-01-14 15:33:42 +01:00
Günther Deschner
5bfb33f1c5 Remove some more hand written LSA rpc.
(rpccli_lsa_open_trusted_domain,
rpccli_lsa_query_trusted_domain_info,
cli_lsa_query_domain_info_policy).

Guenther
2008-01-14 15:29:52 +01:00
Günther Deschner
f2fb347345 Start removing hand-written lsa marshalling code (namely
rpccli_lsa_open_trusted_domain_by_name,
rpccli_lsa_query_trusted_domain_info_by_sid and
rpccli_lsa_query_trusted_domain_info_by_name).

Guenther
2008-01-14 15:29:43 +01:00
Günther Deschner
153e4dd162 Use some more pidl generated LSA rpc in rpcclient.
Guenther
2008-01-14 15:29:36 +01:00
Michael Adam
9a435b510f Fix "make test_shlibs": it showed unresolved symbols for -lwbclient.
Michael
2008-01-14 14:57:30 +01:00
Günther Deschner
ad6cb9afc9 Revert ""make test_shlibs" shows unresolved symbols for -lwbclient."
This reverts commit 0093f618e91f7dcc69d57dbd09d23acc614999aa.
2008-01-14 12:01:06 +01:00
Günther Deschner
0093f618e9 "make test_shlibs" shows unresolved symbols for -lwbclient.
Guenther
2008-01-14 10:43:49 +01:00
Andrew Tridgell
9f002eeff9 samba3 already has tdb_validate() 2008-01-14 16:26:52 +11:00
Andrew Tridgell
c91e9c785b merged tdb fix from ctdb tree 2008-01-14 15:38:43 +11:00
Michael Adam
3eedb89284 Reset the failed counter in test_wbinfo_s3.sh.
Michael
2008-01-14 00:23:11 +01:00
Michael Adam
50f65c3c55 Fix a syntax error in script/tests/test_local_s3.sh .
This will reveal the currently breaking tdbtorture to the build farm...

Michael
2008-01-13 23:54:48 +01:00
Michael Adam
b3afc8391d Add and modify comments in net_conf.c
Michael
2008-01-13 23:45:57 +01:00
Michael Adam
b5c533b06c Add explicit creation of shares to net conf import function.
It has been removed from libnet_conf_set_parameter().

Michael
2008-01-13 23:30:08 +01:00
Michael Adam
aed01fd28c Make use of the new libnet_conf_delete_global_parameter() function.
Michael
2008-01-13 23:20:51 +01:00
Michael Adam
90fa2981c9 Add a function libnet_conf_delete_global_parameter() to libnet_conf.c
Create the [global] section if it does not yet exist.

Michael
2008-01-13 23:16:42 +01:00
Michael Adam
627a29b690 Add a function libnet_conf_get_global_parameter() to libnet_conf.c
It creates the [global] section if it does not yet exist.

Michael
2008-01-13 23:16:42 +01:00
Michael Adam
fd99c1804a Move libnet_conf_set_global_parameter() inside libnet_conf.c
Also remove the "convenience function" section comment.
The set_global_parameter function now has a right to exist
in the api.

Michael
2008-01-13 23:16:41 +01:00
Michael Adam
c050b148d0 Add a comment header to libnet_conf_set_global_parameter().
Michael
2008-01-13 23:16:41 +01:00
Michael Adam
ad2497cfac Add auto-adding of [global] to libnet_conf_set_global_parameter().
Michael
2008-01-13 23:16:41 +01:00
Michael Adam
e2b34e9c02 Remove auto-generation of missing share from libnet_conf_set_parameter().
Günther, I wanted to have this as atomic as possible.
I will add this behaviour to libnet_conf_set_global_parameter() next
with the justification that [global] should exist transparently.

Michael
2008-01-13 23:16:41 +01:00
Volker Lendecke
4aaf4e7e73 Fix the max_dead_record calculations 2008-01-13 22:58:41 +01:00
Michael Adam
edaf52a301 Fix Compiler warnings by including the proper header.
Michael
2008-01-13 12:52:25 +01:00
Michael Adam
c2a9346faa Introduce a libnet_conf context created by libnet_conf_open().
The libnet_conf_ctx stores the information necessary to interoperate
with the configuration. It is created by calling libnet_conf_open()
and destroyed by calling libnet_conf_close(). The context is passed
to all the libnet_conf functions. It currently stores the token to
access the registry. Later, it could store more data, e.g. the server
to connect to, credentials, and so on. For support of other backends
than registry or support of remote configuration, only the open
function will have to be changed.

In net_conf, the calls to the actual net_conf functions is wrapped
into a function that calls libnet_conf_open()/_close(). Thus an
individual variant of net_conf_runfunction2() and functable2 is
used to cope with functions being called by the wrapper with the
additional libnet_conf_ctx argument.

Michael
2008-01-13 02:14:34 +01:00
Jelmer Vernooij
7e75acfdd1 idl: Replace non-standard "declare" keyword with typedef and regenerate. 2008-01-13 01:22:23 +01:00
Volker Lendecke
71de4946cf Don't early delete the share mode tdb data
We now refer directly to the file name in the tdb data, so don't delete it.
2008-01-12 23:57:12 +01:00