Günther Deschner
fec230b28f
Use W_ERROR_NOT_OK_GOTO_DONE macro in libnetjoin.
...
Guenther
2008-02-28 11:38:01 +01:00
Günther Deschner
f4581e9f44
Collect all init_lsa_string varients in one place.
...
Guenther
2008-02-12 22:05:39 +01:00
Günther Deschner
bdc4918503
Remove all callers of rpccli_samr_setuserinfo2 and replace with
...
rpccli_samr_SetUserInfo (see the opcode mixup in rpc_samr.h).
Guenther
2008-02-12 18:53:59 +01:00
Günther Deschner
d9cec295bf
Use every
2008-02-12 18:21:52 +01:00
Günther Deschner
d1e5a5a7f9
Removing unused ACCT_-flags.
...
Guenther
2008-02-12 09:48:47 +01:00
Günther Deschner
e62bfd2dee
Use rpccli_samr_LookupNames() in libnetjoin.
...
Guenther
2008-02-08 15:30:35 +01:00
Günther Deschner
28ef55cbf1
Use rpccli_lsa_QueryInfoPolicy() in libnet_join.
...
Guenther
2008-02-08 10:26:51 +01:00
Günther Deschner
ddc2fc16bf
Use rpccli_lsa_QueryInfoPolicy2 in libnet join.
...
Guenther
2008-02-08 10:16:00 +01:00
Günther Deschner
bdf8d56262
Use rpccli_samr_Connect2() all over the place.
...
Guenther
2008-02-04 22:12:40 +01:00
Günther Deschner
701af69118
Use rpccli_samr_CreateUser2() all over the place.
...
Guenther
2008-02-01 16:29:20 +01:00
Günther Deschner
da90eb7653
Use rpccli_samr_OpenUser() all over the place.
...
Guenther
2008-02-01 12:30:15 +01:00
Günther Deschner
e4e9d72724
Use rpccli_samr_OpenDomain() all over the place.
...
Guenther
2008-02-01 12:29:10 +01:00
Günther Deschner
64f0889401
Remove rpccli_samr_close and use pidl generated function instead.
...
Guenther
2008-01-31 11:09:11 +01:00
Günther Deschner
fd490d236b
Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
...
Guenther
2008-01-29 15:09:56 +01:00
Günther Deschner
d4a9e46edf
Trying to avoid defining new SAMR acct creation flags when we already have them with different
...
names. Matt, Jeremy, please check.
Guenther
2008-01-25 01:04:30 +01:00
Jeremy Allison
7d94f97947
Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
...
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
2008-01-23 13:54:02 -08:00
Michael Adam
c5a7d421c5
Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
...
Michael
2008-01-16 17:10:02 +01:00
Günther Deschner
622109895c
Autofetch domain_sid while unjoining in libnetjoin.
...
Guenther
2008-01-16 11:08:05 +01:00
Günther Deschner
05cf1413cc
Nicen some error strings in libnetjoin.
...
Guenther
2008-01-16 11:08:05 +01:00
Günther Deschner
357a393b10
Avoid use of NDR_PRINT_X_DEBUG (that debugs with level 0) in libnetjoin.
...
Guenther
2008-01-16 11:08:05 +01:00
Günther Deschner
08c1720509
Use autogenerated debugging functions in libnetjoin when requested.
...
Guenther
2008-01-15 17:00:58 +01:00
Günther Deschner
15d0e57438
Remove unrequired TALLOC_FREE.
...
Guenther
2008-01-15 15:48:48 +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
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
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
Günther Deschner
57368f883f
Fix some indents.
...
Guenther
2008-01-12 02:26:08 +01:00
Günther Deschner
40e8caa2d8
Call dsgetdcname when we have no specific dc defined for joining.
...
Guenther
2008-01-12 02:25:57 +01:00
Günther Deschner
8af80976a3
Fix some error strings in libnet_join.
...
Guenther
2008-01-12 02:25:47 +01:00
Günther Deschner
4a7acf4a23
Add appropriate error code when pre-creating accounts in ous isnt supported by DC.
...
Guenther
2008-01-12 02:25:37 +01:00
Günther Deschner
a9b76c9e2d
For libnet_join error string functions, make sure not to overwrite last status string.
...
Guenther
2008-01-12 02:25:25 +01:00
Günther Deschner
b76250f1cf
Merge all ads related calls in libnet_join_post_processing_ads().
...
Guenther
2008-01-12 02:25:15 +01:00
Günther Deschner
48f638a455
Use WITH_ADS define in libnet_join, hopefully not breaking the build.
...
Guenther
2008-01-12 02:10:17 +01:00
Günther Deschner
82bd6322b6
Use domain_is_ad one more time in libnetjoin.
...
Guenther
2008-01-12 01:35:51 +01:00
Günther Deschner
9cc0d874f6
Remove '\n' from error strings in libnet_join context.
...
Guenther
2008-01-11 15:10:29 +01:00
Günther Deschner
01690f85bc
Set error string when ads_leave_realm() has failed in libnetjoin.
...
Guenther
2008-01-11 15:10:21 +01:00
Günther Deschner
2e2d058b7e
Ignore result of libnet_conf_delete_parameter here, as realm may be not there.
...
Guenther
2008-01-11 15:09:20 +01:00
Günther Deschner
ed4960bacc
Remove some more references to global_myname() in libnet_join.
...
Guenther
2008-01-11 15:09:01 +01:00
Günther Deschner
9707a5eb00
Use domain_is_ad bool.
...
Guenther
2008-01-11 15:08:52 +01:00
Michael Adam
829de79051
Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
...
Michael
2008-01-09 23:15:56 +01:00
Günther Deschner
e73e3da772
Another attempt to fix builds w/o ldap and/or krb5.
...
Guenther
2008-01-09 12:48:08 +01:00
Günther Deschner
95129a28cf
Add libnet_join_derive_salting_principal().
...
Guenther
2008-01-09 10:20:44 +01:00
Günther Deschner
045a69c59c
Fix define check s/WITH_LDAP/HAVE_LDAP/ in libnet_join.
...
Guenther
2008-01-08 14:07:09 +01:00
Günther Deschner
7f51583f68
When unjoining fails (e.g. missing creds) make sure we still correct config.
...
Guenther
2008-01-08 11:59:01 +01:00
Günther Deschner
079f2eba81
Trying to make the buildfarm w/o krb5 happy.
...
Guenther
2008-01-07 20:56:34 +01:00
Günther Deschner
83ed37023c
There is no LDAP in some corners of this world. Fix the build...
...
Guenther
2008-01-07 20:41:55 +01:00
Günther Deschner
1436670854
Finally use libnet_join_set_* functions in libnetjoin.
...
Guenther
2008-01-07 20:21:02 +01:00
Günther Deschner
3e816d7555
Merge remaining post-AD-join functions from net into libnet_join.
...
Guenther
2008-01-07 20:17:47 +01:00
Günther Deschner
f550ed02ff
Add libnet_join_find_machine_acct().
...
Guenther
2008-01-07 19:39:35 +01:00