Günther Deschner
46bdaa5d37
Check for mandatory domain name in libnetjoin/unjoin.
...
Guenther
(This used to be commit 95bdf2f23c195cad1b317995e362f153695e793a)
2008-02-28 11:38:01 +01:00
Günther Deschner
4ba6c04d0a
Delete affinity cache entries while unjoining with libnetunjoin.
...
Guenther
(This used to be commit 0315b8e53dca9a836d6bc2282fb1192f40545601)
2008-02-28 11:38:01 +01:00
Günther Deschner
09886976f6
Fill in machine account manipulation flags while unjoining in libnetunjoin.
...
Guenther
(This used to be commit 23ae67158e6506199318025e3dd5fd5c0b099548)
2008-02-28 11:38:01 +01:00
Günther Deschner
1d807c3c29
Add preliminary libnet_join_post_verify call to libnetjoin.
...
Guenther
(This used to be commit f0e319a18d86303aeb73c08841024c27c1b135cd)
2008-02-28 11:38:01 +01:00
Günther Deschner
39ba91fd83
Merge all connect ads calls into libnet_join_post_processing_ads().
...
Guenther
(This used to be commit be96baeffc60d05d8e297034e5253c8b75512ab2)
2008-02-28 11:38:01 +01:00
Günther Deschner
97c2dfc52f
Use W_ERROR_NOT_OK_GOTO_DONE macro in libnetjoin.
...
Guenther
(This used to be commit fec230b28f456469bce051a2b26249d2026a48ea)
2008-02-28 11:38:01 +01:00
Günther Deschner
e2b3aad817
Collect all init_lsa_string varients in one place.
...
Guenther
(This used to be commit f4581e9f4482566fba9436d5ae058b8d840fa394)
2008-02-12 22:05:39 +01:00
Günther Deschner
bc742a06a2
Remove all callers of rpccli_samr_setuserinfo2 and replace with
...
rpccli_samr_SetUserInfo (see the opcode mixup in rpc_samr.h).
Guenther
(This used to be commit bdc49185036060ebb9c727767dce52e4b01bd8b4)
2008-02-12 18:53:59 +01:00
Günther Deschner
b1c6104fa4
Use every
...
(This used to be commit d9cec295bf55b3a7e16f548cc4bf64ce474b41e9)
2008-02-12 18:21:52 +01:00
Günther Deschner
90631dd2c2
Removing unused ACCT_-flags.
...
Guenther
(This used to be commit d1e5a5a7f9dfb5756398e99cf09a4712d2b42682)
2008-02-12 09:48:47 +01:00
Günther Deschner
210a4ab76f
Use rpccli_samr_LookupNames() in libnetjoin.
...
Guenther
(This used to be commit e62bfd2deea81f188cd4b5274218c3df64782aa7)
2008-02-08 15:30:35 +01:00
Günther Deschner
adeb94a9a6
Use rpccli_lsa_QueryInfoPolicy() in libnet_join.
...
Guenther
(This used to be commit 28ef55cbf1662dfe6b64a837ade830f5c864b4b9)
2008-02-08 10:26:51 +01:00
Günther Deschner
3783e6af8a
Use rpccli_lsa_QueryInfoPolicy2 in libnet join.
...
Guenther
(This used to be commit ddc2fc16bf18fe3ab8a0fc0021826253d5f4ed32)
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 bdf8d562621e1a09bf83e2009dec24966e7fdf22)
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 701af69118c9634c7dc0d5c10152ce776787694d)
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 da90eb7653554d242da83ed98adae35ced3a2938)
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 e4e9d72724d547e1405b2ed4cec509d50ec88c8d)
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 64f0889401855ab76953bfae5db4fe4df19ad8a5)
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 fd490d236b1fb73a75c457b75128c9b98719418f)
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 d4a9e46edf7336f673c001c559af96eb0ecf9f6f)
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 7d94f97947b7edfcf3ec52f0125e4593d6d54c05)
2008-01-23 13:54:02 -08:00
Michael Adam
7bfceba4bc
Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
...
Michael
(This used to be commit c5a7d421c512a6221b0300549d7b5de0368d252e)
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 622109895c56ed7cc02dac006f02cac89424b569)
2008-01-16 11:08:05 +01:00
Günther Deschner
1311918d17
Nicen some error strings in libnetjoin.
...
Guenther
(This used to be commit 05cf1413cc92e15bbe7ba0477df282ad31e40412)
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 357a393b106fe88629bf5f6c634d16c0fc47cee9)
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 08c1720509dffa2886ed057e2d14907699122f3c)
2008-01-15 17:00:58 +01:00
Günther Deschner
40222cc8e2
Remove unrequired TALLOC_FREE.
...
Guenther
(This used to be commit 15d0e574386e39a4d2fa61cd268b48dfa5c84dcb)
2008-01-15 15:48:48 +01:00
Günther Deschner
b32d613ed0
No need to re-establish AD connection all the time.
...
Guenther
(This used to be commit f21871c6d60e02ed53f060abbbfb2ef656cdc311)
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 1a5b72daa36073cc0604211248d869bf0d7546c6)
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 99e3e4b0dd0b0755189c1c740f2975bc75a0e28d)
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 aed01fd28c8e896e993239cbe9b2681132ddf980)
2008-01-13 23:20:51 +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
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
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
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
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
Michael Adam
1c4466cedc
Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
...
Michael
(This used to be commit 829de79051cd1d1cc67c4c40fdc8e08c44450a09)
2008-01-09 23:15:56 +01:00
Günther Deschner
fbd9a15996
Another attempt to fix builds w/o ldap and/or krb5.
...
Guenther
(This used to be commit e73e3da772bd024f1d74fc41b832f181ba5c43bd)
2008-01-09 12:48:08 +01:00
Günther Deschner
ba922343db
Add libnet_join_derive_salting_principal().
...
Guenther
(This used to be commit 95129a28cfa57d8e5bd767b92f065abd1d32a569)
2008-01-09 10:20:44 +01:00
Günther Deschner
697208406c
Fix define check s/WITH_LDAP/HAVE_LDAP/ in libnet_join.
...
Guenther
(This used to be commit 045a69c59c3b0732bb12a8b0efc8c9675e811719)
2008-01-08 14:07:09 +01:00
Günther Deschner
c6576503c9
When unjoining fails (e.g. missing creds) make sure we still correct config.
...
Guenther
(This used to be commit 7f51583f681b1acc9bfbab6ee0e2d1c13d2c4ca4)
2008-01-08 11:59:01 +01:00