Günther Deschner
c8abd25d94
Trying to make the buildfarm w/o krb5 happy.
...
Guenther
(This used to be commit 079f2eba81886707ea4b18f103e097dbac994b2f)
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 83ed37023c2be4c6b4d99d8117ac8438a413112c)
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 1436670854ae635cfa2a69939d3ac31da87c3f66)
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 3e816d7555218192881d79645fca26981a7099c7)
2008-01-07 20:17:47 +01:00
Günther Deschner
d66118629c
Add libnet_join_find_machine_acct().
...
Guenther
(This used to be commit f550ed02ff9e0546c63064ab9dac760eac7e1e16)
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 ed164b523e63c3ebf2c822a00a877ef169738a3a)
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 18ae8580420c37aa4b189eb5ce53cc65a9827d95)
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 985d45206990988894e05ea6fb0aacc7396a6db4)
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 4f9985bb33aa5973e6b685a45039c8e227487db1)
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 bc025a3860483e8cdbd0f61579689c9edadd3af0)
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 ff5e15b1ba0d5c39ceef9f9995c107e510162564)
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 b59ca2d9c3375c0d0b9f585e48d718689586bb92)
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 d88bb94f0ef00ddbb48498797bd11448e0d74645)
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 d7f01d940feb7dfedb6c4b8b88f5443434e03428)
2008-01-04 11:55:00 +01:00
Michael Adam
30829d1bda
Use GLOBAL_NAME constant.
...
Michael
(This used to be commit 4c404d627ccfaf1c17f4b6b1ebab6fce357d9ab1)
2008-01-03 14:17:49 +01:00
Michael Adam
5655ae7a24
Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
...
Now all functions are converted to the consistent naming scheme.
Michael
(This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)
2008-01-03 14:17:49 +01:00
Michael Adam
2476254ccd
Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().
...
Michael
(This used to be commit 073eeca51e46da6a687175aadbfdbb9e029532d6)
2008-01-03 14:17:49 +01:00
Günther Deschner
b0994bead7
In libnetjoin don't mix admin password with machine account pwd.
...
Guenther
(This used to be commit 5b2eec21c27f07653e2dbb75c0f9ab4a60736773)
2008-01-03 13:17:49 +01:00
Michael Adam
a107e8421d
Remove now unneeded talloc ctx parameter from do_JoinConfig().
...
Michael
(This used to be commit be985d8d0ce80d12aa7f0b447b16b14aa0362826)
2007-12-25 03:41:34 +01:00
Michael Adam
8445e820f2
Remove now unneeded talloc ctx parameter from do_join_modify_vals_config().
...
Michael
(This used to be commit f8823ae1232022ed3f7f9be6b8959d413e8aed19)
2007-12-25 03:40:35 +01:00
Michael Adam
d25661a615
Remove now unneeded talloc ctx parameter from do_UnjoinConfig().
...
Michael
(This used to be commit 92b8e5ea4ba26d663ea4e6fb65e4225d8259ea60)
2007-12-25 03:39:31 +01:00
Michael Adam
fc8be9d710
Remove now unneeded talloc ctx parameter from do_unjoin_modify_vals_config().
...
Michael
(This used to be commit 4f7375a110a69530d6ef9781573f45a5bf8391a5)
2007-12-25 03:38:06 +01:00
Michael Adam
44631bfd4d
Remove talloc context parameter from libnet_smbconf_delparm().
...
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.
Michael
(This used to be commit 16f137393881edc78c9322f038ba38e53e3ee07d)
2007-12-25 03:34:04 +01:00
Michael Adam
f3b0469b4a
Remove talloc context parameter from libnet_smbconf_setparm().
...
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.
Michael
(This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
2007-12-25 03:29:05 +01:00
Michael Adam
88a424a4d3
Remove occurrences of registry_key from libnet_join.c
...
Replace duplicated logic by calls of libnet_smbconf_set_global_param()
from libnet_conf.c, pushing logic from do_JoinConfig() and do_UnjoinConfig()
to do_join_modify_vals_config() and do_unjoin_modify_vals_config()
respectively.
Only the net_conf api functions should be exported by libnet_conf.c, not
the lower level registry access functions.
Michael
(This used to be commit 81b9f1301d61f05f9153be61d62c13e82cecf7e2)
2007-12-23 04:10:31 +01:00
Michael Adam
bd2b8f0f7b
Replace direct deletion of registry value by use of libnet_smbconf_delparm().
...
Michael
(This used to be commit 415fc0a5261f4d941027e5d5305fcea882724aef)
2007-12-23 04:10:31 +01:00
Günther Deschner
30a788bd20
Fix uninitialized error code in do_unjoin_modify_vals_config().
...
Guenther
(This used to be commit c890ebc3cad7222007e62227ec1f28d978310cbf)
2007-12-22 00:13:24 +01:00
Günther Deschner
3f5d5bc300
Until we better understand the WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT make sure we are
...
not joining as a DC.
Guenther
(This used to be commit bf3ffbb5d2e8588e0041f0b890b590c58f8fcecf)
2007-12-21 23:05:10 +01:00
Günther Deschner
3537af86c4
Fix typo.
...
Guenther
(This used to be commit b95801db595109e8eade7cf7c344f281c8684249)
2007-12-21 15:29:11 +01:00
Günther Deschner
41467ffc6d
Add libnet_Unjoin(), libnet_UnjoinCtx and friends.
...
Guenther
(This used to be commit 89e8abb1163984eed358a4da9be4699a8e3a43f9)
2007-12-21 15:29:11 +01:00
Günther Deschner
f3476faa36
In libnet join code, try lsa query with level 12 first.
...
Guenther
(This used to be commit f0e8d744c92d2602722e04be6266196941362d63)
2007-12-21 15:29:10 +01:00
Günther Deschner
b6347c0693
Making do_DomainJoin return NTSTATUS again.
...
Guenther
(This used to be commit 91b884989891881b8abea70e11b87c16c574daaa)
2007-12-21 15:29:10 +01:00
Günther Deschner
c5a84374b6
Make sure we also support non-domain join.
...
Guenther
(This used to be commit c818f5505a124a6f0bb9274a1ba4a6147d2f17b3)
2007-12-21 15:29:10 +01:00
Günther Deschner
5bf7319ac4
Add libnet_Join().
...
Heavily based on existing code in net_ads_join().
Guenther
(This used to be commit fb6315b68b16d64625457881302fd191f90defa0)
2007-12-21 15:29:10 +01:00