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

24735 Commits

Author SHA1 Message Date
Michael Adam
a6bf13ce97 Add explicit creation of shares to net conf import function.
It has been removed from libnet_conf_set_parameter().

Michael
(This used to be commit b5c533b06cba9a8ffd28a1fb3bc56ab248340775)
2008-01-13 23:30:08 +01:00
Michael Adam
3910dd2e1b Make use of the new libnet_conf_delete_global_parameter() function.
Michael
(This used to be commit aed01fd28c8e896e993239cbe9b2681132ddf980)
2008-01-13 23:20:51 +01:00
Michael Adam
864fc10a27 Add a function libnet_conf_delete_global_parameter() to libnet_conf.c
Create the [global] section if it does not yet exist.

Michael
(This used to be commit 90fa2981c949e21f66a44d634ebe9d661819f0a3)
2008-01-13 23:16:42 +01:00
Michael Adam
c4899fec9f Add a function libnet_conf_get_global_parameter() to libnet_conf.c
It creates the [global] section if it does not yet exist.

Michael
(This used to be commit 627a29b690c30f1096a4746186089cd9a1c92407)
2008-01-13 23:16:42 +01:00
Michael Adam
d042a64092 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
(This used to be commit fd99c1804ae04b7c2a2b0a605e83ba88fa362edb)
2008-01-13 23:16:41 +01:00
Michael Adam
ecc53ab371 Add a comment header to libnet_conf_set_global_parameter().
Michael
(This used to be commit c050b148d00c79571ef0e85c6e7c86d551ca6efd)
2008-01-13 23:16:41 +01:00
Michael Adam
8fc2db5070 Add auto-adding of [global] to libnet_conf_set_global_parameter().
Michael
(This used to be commit ad2497cfac90b2e91be6995931629453fd6ed5fa)
2008-01-13 23:16:41 +01:00
Michael Adam
89fb79ada6 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
(This used to be commit e2b34e9c028d712c7c8b22aade2c11d347ae176d)
2008-01-13 23:16:41 +01:00
Volker Lendecke
5b6520044b Fix the max_dead_record calculations
(This used to be commit 4aaf4e7e73a5c7fa97ef730fbff5c7cb12df2d6c)
2008-01-13 22:58:41 +01:00
Michael Adam
58d2f1ff81 Fix Compiler warnings by including the proper header.
Michael
(This used to be commit edaf52a301a38824c8beb30c49fba27c8fb0461a)
2008-01-13 12:52:25 +01:00
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