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
Günther Deschner
fbd9a15996
Another attempt to fix builds w/o ldap and/or krb5.
...
Guenther
(This used to be commit e73e3da772
)
2008-01-09 12:48:08 +01:00
Günther Deschner
ba922343db
Add libnet_join_derive_salting_principal().
...
Guenther
(This used to be commit 95129a28cf
)
2008-01-09 10:20:44 +01:00
Michael Adam
22068a0c16
Change registry_create_admin_token() to return NTSTATUS.
...
Michael
(This used to be commit 9cd30fb25c
)
2008-01-09 01:47:10 +01:00
Günther Deschner
697208406c
Fix define check s/WITH_LDAP/HAVE_LDAP/ in libnet_join.
...
Guenther
(This used to be commit 045a69c59c
)
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 7f51583f68
)
2008-01-08 11:59:01 +01:00
Günther Deschner
c8abd25d94
Trying to make the buildfarm w/o krb5 happy.
...
Guenther
(This used to be commit 079f2eba81
)
2008-01-07 20:56:34 +01:00
Günther Deschner
d5dec33904
There is no LDAP in some corners of this world. Fix the build...
...
Guenther
(This used to be commit 83ed37023c
)
2008-01-07 20:41:55 +01:00
Günther Deschner
ec75d53dfc
Finally use libnet_join_set_* functions in libnetjoin.
...
Guenther
(This used to be commit 1436670854
)
2008-01-07 20:21:02 +01:00
Günther Deschner
60eb92478c
Merge remaining post-AD-join functions from net into libnet_join.
...
Guenther
(This used to be commit 3e816d7555
)
2008-01-07 20:17:47 +01:00
Günther Deschner
d66118629c
Add libnet_join_find_machine_acct().
...
Guenther
(This used to be commit f550ed02ff
)
2008-01-07 19:39:35 +01:00
Günther Deschner
5b5f17a81d
Honor the WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag when unjoining from AD.
...
Guenther
(This used to be commit ed164b523e
)
2008-01-07 19:39:21 +01:00
Günther Deschner
0bbc04d516
Rearrange libnet join code and add support for account pre-creation in AD.
...
Guenther
(This used to be commit 18ae858042
)
2008-01-07 19:39:11 +01:00
Günther Deschner
60555e66dd
Add ADS_STRUCTs to libnetjoin and -unjoin, with talloc destructors.
...
Guenther
(This used to be commit 985d452069
)
2008-01-07 19:38:59 +01:00
Günther Deschner
077eaafed5
Add error_string to libnetjoin and libnetunjoin structures incl. set functions.
...
Guenther
(This used to be commit 4f9985bb33
)
2008-01-07 19:38:48 +01:00
Günther Deschner
6345220151
Only create machine account in libnetjoin when requested to.
...
Guenther
(This used to be commit bc025a3860
)
2008-01-07 12:48:21 +01:00
Günther Deschner
28ef4878d9
Rename server_name to dc_name in libnet join structures.
...
Guenther
(This used to be commit ff5e15b1ba
)
2008-01-04 17:43:15 +01:00
Günther Deschner
6f84ea9cd7
Separate out storing and removing secrets in libnet_join/unjoin.
...
Guenther
(This used to be commit b59ca2d9c3
)
2008-01-04 17:43:09 +01:00
Günther Deschner
0399df22f0
In libnet_join finally separate the admin from the machine pwd entirely.
...
Guenther
(This used to be commit d88bb94f0e
)
2008-01-04 17:43:02 +01:00
Günther Deschner
8dc1bf89a7
Robustness fix for libnet join when unjoining.
...
Guenther
(This used to be commit d7f01d940f
)
2008-01-04 11:55:00 +01:00
Günther Deschner
192700bd08
Use different error code for libnet_conf initialization failure.
...
Guenther
(This used to be commit 65537eae84
)
2008-01-03 18:15:28 +01:00
Michael Adam
5470f8f638
Make libnet_conf handle opening/initialization of the registry.
...
Open state is currently tracked by a global variable
to avoid double initialization.
Later, this can possibly be replaced by a conf-context
created by an initialization function and passed around
to the other api functions.
Michael
(This used to be commit 77713e7764
)
2008-01-03 15:33:09 +01:00
Michael Adam
6dce6ba0a6
Add a comment header and do some slight reformatting.
...
Michael
(This used to be commit 5d557e3f95
)
2008-01-03 14:34:31 +01:00
Michael Adam
30829d1bda
Use GLOBAL_NAME constant.
...
Michael
(This used to be commit 4c404d627c
)
2008-01-03 14:17:49 +01:00