1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

24925 Commits

Author SHA1 Message Date
Michael Adam
1ee6d3e1ee 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
(This used to be commit c2a9346faa26e79af5948197a1b322e545f0ed09)
2008-01-13 02:14:34 +01:00
Jelmer Vernooij
4add2fe36e idl: Replace non-standard "declare" keyword with typedef and regenerate.
(This used to be commit 7e75acfdd1910b3b5908c02d5f343f014eb77841)
2008-01-13 01:22:23 +01:00
Volker Lendecke
8d464d470a 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.
(This used to be commit 71de4946cf00cf8b7bb2f2d92832166bee12e84a)
2008-01-12 23:57:12 +01:00
Volker Lendecke
5a8bbc64cc Trivial simplification
(This used to be commit 616bc34744487450edd47e212a29c0f57eabb722)
2008-01-12 23:57:11 +01:00
Volker Lendecke
bb2c52ad43 Remove an unused variable
(This used to be commit 24e719a1d432d5de022ab903457df0dd67c24b85)
2008-01-12 23:57:11 +01:00
Volker Lendecke
18083f1d88 Get the inbuf on talloc_tos()
(This used to be commit 883f7415769ad1e714f636e9d6fbd1f075e69d1e)
2008-01-12 21:09:43 +01:00
Volker Lendecke
ec412b60ea Convert OpenDir to talloc, use talloc_tos()
This cuts some mallocs on NtCreate&X
(This used to be commit 8e64107b7846d8f9cce71aabc95b28b7488d01ce)
2008-01-12 21:04:06 +01:00
Volker Lendecke
4af27ec877 Restructure dbwrap_rbt
In this low-level code, play tricks to reduce the number of allocations to the
possible minimum. I would not recommend this for higher-level code, but here it
pays off.
(This used to be commit 71b1e6ff1595fbaa8dd49b996c45541531c7e98c)
2008-01-12 20:11:10 +01:00
Volker Lendecke
2aa12fff43 One more empty line
(This used to be commit 10b6f52910b4d29da4ea74740a174654dd1d8e8e)
2008-01-12 20:11:10 +01:00
Volker Lendecke
b36a78837f delete on close even prevents stat opens
(This used to be commit 85fe7f3f6ed4aae76e5cf31ab689b2dfacfd74de)
2008-01-12 20:11:10 +01:00
Volker Lendecke
4c0ca86051 There's no point in calling FLOCK on a non-existing fd
(This used to be commit 9ff79f231f1206631662b5c521ecddf5df9141c0)
2008-01-12 20:11:10 +01:00
Jeremy Allison
360673e80e CID 458. Don't leak dlopen handles on failing to load
module.
Jeremy.
(This used to be commit 8809eaeb154ea12543455f589e31172dc905d83a)
2008-01-12 00:15:46 -08:00
Jeremy Allison
aa8818bcc3 Fix CID 469. new_acct can't be NULL here.
Jeremy.
(This used to be commit c79e9414c4baed6e61fc6a3f766395b873bcc4ea)
2008-01-12 00:09:35 -08:00
Jeremy Allison
76d904e6d8 Fix CID 470. resolve_order can't be NULL here so simplify code.
Jeremy.
(This used to be commit 2e75f3ecdf9890b9d7d4bd03f3fa15ef74816d5d)
2008-01-12 00:05:07 -08:00
Jeremy Allison
ff98a654d6 Fix CID 475. work should not be checked against NULL
here as it can never be null.
Jeremy.
(This used to be commit ecb52f50fe3ec8beda48b6c88e9a3ae5a6a98d52)
2008-01-11 23:56:48 -08:00
Jeremy Allison
43717a16e2 Fix CID 476. Ensure a valid pac_data pointer is always passed to
ads_verify_ticket as it's always derefed.
Jeremy.
(This used to be commit 0599d57efff0f417f75510e8b08c3cb7b4bcfcd8)
2008-01-11 23:53:27 -08:00
Jeremy Allison
866af9a800 Coverity 512, uninitialized var.
Jeremy.
(This used to be commit 1b7cc80c61ccbf766801080f5a3f0260f40ccc17)
2008-01-11 23:43:33 -08:00
Jeremy Allison
bd317be33b Stop Coverity complaining about uninitialized variables.
Jeremy.
(This used to be commit 041f1d298c1e72adb263b32f454cdf3603e45416)
2008-01-11 23:41:17 -08:00
Jeremy Allison
23aab9dab7 Fix CID 498. Ensure we don't prs_mem_free an uninitialized
prs_struct.
Jeremy.
(This used to be commit 7b9d9fba230b9e61079869a6a2751cda37fb8a9e)
2008-01-11 23:24:13 -08:00
Jeremy Allison
9f75099657 Fix CID 505 - don't copy uninitialized memory.
Jeremy.
(This used to be commit 0d2c77e8d3a83f2c5e78fa076f22919ef9d124b9)
2008-01-11 23:17:23 -08:00
Jeremy Allison
915647da9c Fix CID 523 - wrong null deref check.
Jeremy.
(This used to be commit 05cadffeab38ca9df7ffd46785b536266c4438c4)
2008-01-11 22:50:13 -08:00
Jeremy Allison
d9ee831d0e Fix CID 524 - reference before allocation fail null check.
Jeremy.
(This used to be commit a5cd3c9b65538588a6c982c6d20022e7476cf3de)
2008-01-11 22:47:25 -08:00
Jeremy Allison
6fa81523f8 Ensure we don't access an uninitialized variable
(CID 535 - actually false but easy to shut up :-).
Jeremy.
(This used to be commit 4038bb3a9485943db58d9fe30947e11522ce283d)
2008-01-11 22:44:33 -08:00
Jeremy Allison
05fb367a01 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 08645826817d42c9d4b42ea0fd5e633d7fd08d35)
2008-01-11 22:38:42 -08:00
Günther Deschner
45db92cc72 Fix some indents.
Guenther
(This used to be commit 57368f883fb217b4196858bb2255c0eea59a8917)
2008-01-12 02:26:08 +01:00
Günther Deschner
afb163efb7 Call dsgetdcname when we have no specific dc defined for joining.
Guenther
(This used to be commit 40e8caa2d81168be3e48ececf5746d8f659a96d6)
2008-01-12 02:25:57 +01:00
Günther Deschner
d4e5cadc1a Fix some error strings in libnet_join.
Guenther
(This used to be commit 8af80976a3a8dd9d02a6763e48b2c1d8003ae4dd)
2008-01-12 02:25:47 +01:00
Günther Deschner
21ccb47044 Add appropriate error code when pre-creating accounts in ous isnt supported by DC.
Guenther
(This used to be commit 4a7acf4a2374138b20a5cdebdcc721668bbd865b)
2008-01-12 02:25:37 +01:00
Günther Deschner
bc629c6faf For libnet_join error string functions, make sure not to overwrite last status string.
Guenther
(This used to be commit a9b76c9e2d93c8aa482dbee54f29d7e1503abe4f)
2008-01-12 02:25:25 +01:00
Günther Deschner
e69c82eb44 Merge all ads related calls in libnet_join_post_processing_ads().
Guenther
(This used to be commit b76250f1cf7238613658901b961d68a0da592712)
2008-01-12 02:25:15 +01:00
Günther Deschner
a05edb57e7 Use WITH_ADS define in libnet_join, hopefully not breaking the build.
Guenther
(This used to be commit 48f638a45525c01db9855e3ef809f08ce65da8d8)
2008-01-12 02:10:17 +01:00
Günther Deschner
8921b2222a Auto-add missing shares in libnet_conf_set_parameter().
Michael, please have a look.

Guenther
(This used to be commit 9f4506e5e2828e0f23bc37586770995c3424b208)
2008-01-12 01:36:04 +01:00
Günther Deschner
9d164c4094 Add debug bool flag for libnetjoin ctx.
Guenther
(This used to be commit 93084487952f4ef23209401d689b3be3af6c9e6e)
2008-01-12 01:35:57 +01:00
Günther Deschner
fbd6d14fc8 Use domain_is_ad one more time in libnetjoin.
Guenther
(This used to be commit 82bd6322b691506ddea2b274973e614fa8c6ee5e)
2008-01-12 01:35:51 +01:00
Jeremy Allison
2ec41571a3 Sync tdb with the tdb changes in ctdb. Spoke to tridge about
this. Fixes insidious problem with order n^2 freelist merging.
Jeremy.
(This used to be commit c6609c042b128e7d63eb64cfdfb0f6b65cb59d76)
2008-01-11 15:08:37 -08:00
Michael Adam
9cd7430347 Remove code accidentially submittet with last commit 83aed537c16f63.
This is ist still in preparation and will follow soon. Soory!

Michael
(This used to be commit 75acdb54a454ffda9d422fcafb573c8f5581d2e8)
2008-01-11 19:02:26 +01:00
Michael Adam
618f9a60cc Fix panic in "net conf": Fix logic in error condition.
Michael
(This used to be commit 83aed537c16f632599484f60c5ccebc3ab713801)
2008-01-11 18:55:26 +01:00
Günther Deschner
2539cf0739 Fix a build warning.
Guenther
(This used to be commit 88874a501d0c086f796e4838af8c9399d3cccc1f)
2008-01-11 18:47:03 +01:00
Günther Deschner
c79ce2ffa3 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
(This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-11 15:32:20 +01:00
Günther Deschner
efcf285e27 Fix libnetapi error string callers.
Guenther
(This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)
2008-01-11 15:28:24 +01:00
Günther Deschner
026b2a8d0a Remove '\n' from error strings in libnet_join context.
Guenther
(This used to be commit 9cc0d874f6c064e8752d36e72fcc85bf4c85e656)
2008-01-11 15:10:29 +01:00
Günther Deschner
55b642c312 Set error string when ads_leave_realm() has failed in libnetjoin.
Guenther
(This used to be commit 01690f85bc7d052d4c57181d74aef27d1776169c)
2008-01-11 15:10:21 +01:00
Günther Deschner
7a87256cd1 Include some basic headers in netapi.h.
Guenther
(This used to be commit 23b92a6fa57858c8a23c737a9cd00c076ef5dadd)
2008-01-11 15:10:15 +01:00
Günther Deschner
4eed7883bb Refactor libnetapi error string functions a bit.
Guenther
(This used to be commit 3b450a8bcc97b6d03c4b7b9373a3a382c0fcea30)
2008-01-11 15:09:54 +01:00
Günther Deschner
2bcba87572 Ignore result of libnet_conf_delete_parameter here, as realm may be not there.
Guenther
(This used to be commit 2e2d058b7e90a158612af4b0a489578431f748e5)
2008-01-11 15:09:20 +01:00
Günther Deschner
2c591e05c9 Remove some more references to global_myname() in libnet_join.
Guenther
(This used to be commit ed4960baccf687b77c2b0f4ee64cbce2005f3abb)
2008-01-11 15:09:01 +01:00
Günther Deschner
136b02de5e Use domain_is_ad bool.
Guenther
(This used to be commit 9707a5eb008788460937104575b7afd733a9f741)
2008-01-11 15:08:52 +01:00
Günther Deschner
28b852a893 Add domain_is_ad bool to libnetjoin ctx.
Guenther
(This used to be commit 16ca8d2746a5c2fc7a583d1cf2ebb4d3aa003842)
2008-01-11 15:08:41 +01:00
Jeremy Allison
6a8fad084c Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 767e0164adf8803df50b0b7bd8e81d25af72bb78)
2008-01-10 16:36:05 -08:00
Jeremy Allison
f33f4ef4a2 Don't switch user contexts unless you have to. Saves
a bunch of syscalls on close. Noticed by Volker.
Jeremy.
(This used to be commit 3caeeaea162e2083a087c242b850c107a3be1bf9)
2008-01-10 16:35:54 -08:00