1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

183 Commits

Author SHA1 Message Date
Günther Deschner
3783e6af8a Use rpccli_lsa_QueryInfoPolicy2 in libnet join.
Guenther
(This used to be commit ddc2fc16bf)
2008-02-08 10:16:00 +01:00
Günther Deschner
270ba9c238 Use rpccli_samr_Connect2() all over the place.
Guenther
(This used to be commit bdf8d56262)
2008-02-04 22:12:40 +01:00
Günther Deschner
ddbe4ea6b7 Use rpccli_samr_CreateUser2() all over the place.
Guenther
(This used to be commit 701af69118)
2008-02-01 16:29:20 +01:00
Günther Deschner
37b56c0113 Use rpccli_samr_OpenUser() all over the place.
Guenther
(This used to be commit da90eb7653)
2008-02-01 12:30:15 +01:00
Günther Deschner
42960f817a Use rpccli_samr_OpenDomain() all over the place.
Guenther
(This used to be commit e4e9d72724)
2008-02-01 12:29:10 +01:00
Günther Deschner
5334b364c2 Remove rpccli_samr_close and use pidl generated function instead.
Guenther
(This used to be commit 64f0889401)
2008-01-31 11:09:11 +01:00
Günther Deschner
5ab43ae0d8 Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
(This used to be commit fd490d236b)
2008-01-29 15:09:56 +01:00
Günther Deschner
92183450f1 Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.

Guenther
(This used to be commit d4a9e46edf)
2008-01-25 01:04:30 +01:00
Jeremy Allison
a0186fb78d Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947)
2008-01-23 13:54:02 -08:00
Michael Adam
feb77c978b Add another check for talloc failure to libnet_conf
Michael
(This used to be commit 196e4ce8c5)
2008-01-21 22:49:45 +01:00
Michael Adam
c5c38d6227 Fix formatting of multi_sz registry values.
Don't print only the last component.

Michael
(This used to be commit 654e96208e)
2008-01-21 22:49:45 +01:00
Michael Adam
7f2e253efb Use talloc_stackframe() for temporary contexts throughout libnet_conf.c
Michael
(This used to be commit 4d734106b7)
2008-01-21 22:49:45 +01:00
Michael Adam
188bfbc192 Add a check for talloc failure. - Pointed out by Volker.
Michael
(This used to be commit bdc49b07cc)
2008-01-21 22:49:45 +01:00
Michael Adam
7bfceba4bc Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
(This used to be commit c5a7d421c5)
2008-01-16 17:10:02 +01:00
Günther Deschner
168e122682 Autofetch domain_sid while unjoining in libnetjoin.
Guenther
(This used to be commit 622109895c)
2008-01-16 11:08:05 +01:00
Günther Deschner
1311918d17 Nicen some error strings in libnetjoin.
Guenther
(This used to be commit 05cf1413cc)
2008-01-16 11:08:05 +01:00
Günther Deschner
1bb220174f Avoid use of NDR_PRINT_X_DEBUG (that debugs with level 0) in libnetjoin.
Guenther
(This used to be commit 357a393b10)
2008-01-16 11:08:05 +01:00
Günther Deschner
fe165e4a9f Use autogenerated debugging functions in libnetjoin when requested.
Guenther
(This used to be commit 08c1720509)
2008-01-15 17:00:58 +01:00
Günther Deschner
40222cc8e2 Remove unrequired TALLOC_FREE.
Guenther
(This used to be commit 15d0e57438)
2008-01-15 15:48:48 +01:00
Günther Deschner
b239612fcf Use autogenerated libnet_join header.
Guenther
(This used to be commit d94bd3a03b)
2008-01-15 15:29:50 +01:00
Günther Deschner
b32d613ed0 No need to re-establish AD connection all the time.
Guenther
(This used to be commit f21871c6d6)
2008-01-15 11:02:56 +01:00
Günther Deschner
f41cd6c8e4 Use dsgetdcname() to find a dc when unjoining in libnetjoin.
Guenther
(This used to be commit 1a5b72daa3)
2008-01-15 11:02:56 +01:00
Günther Deschner
0e8240f5a5 Re-arrange pre- and postprocessing code in libnetjoin.
Guenther
(This used to be commit 99e3e4b0dd)
2008-01-15 11:02:56 +01:00
Michael Adam
3910dd2e1b Make use of the new libnet_conf_delete_global_parameter() function.
Michael
(This used to be commit aed01fd28c)
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 90fa2981c9)
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 627a29b690)
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 fd99c1804a)
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 c050b148d0)
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 ad2497cfac)
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 e2b34e9c02)
2008-01-13 23:16:41 +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 c2a9346faa)
2008-01-13 02:14:34 +01:00
Günther Deschner
45db92cc72 Fix some indents.
Guenther
(This used to be commit 57368f883f)
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 40e8caa2d8)
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 8af80976a3)
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 4a7acf4a23)
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 a9b76c9e2d)
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 b76250f1cf)
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 48f638a455)
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 9f4506e5e2)
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 9308448795)
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 82bd6322b6)
2008-01-12 01:35:51 +01:00
Michael Adam
9cd7430347 Remove code accidentially submittet with last commit 83aed537c1.
This is ist still in preparation and will follow soon. Soory!

Michael
(This used to be commit 75acdb54a4)
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 83aed537c1)
2008-01-11 18:55:26 +01:00
Günther Deschner
026b2a8d0a Remove '\n' from error strings in libnet_join context.
Guenther
(This used to be commit 9cc0d874f6)
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 01690f85bc)
2008-01-11 15:10:21 +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 2e2d058b7e)
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 ed4960bacc)
2008-01-11 15:09:01 +01:00
Günther Deschner
136b02de5e Use domain_is_ad bool.
Guenther
(This used to be commit 9707a5eb00)
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 16ca8d2746)
2008-01-11 15:08:41 +01:00
Michael Adam
1c4466cedc Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
Michael
(This used to be commit 829de79051)
2008-01-09 23:15:56 +01:00