summaryrefslogtreecommitdiff
path: root/source3/libnet/libnet_join.c
AgeCommit message (Collapse)AuthorFilesLines
2008-01-13Introduce a libnet_conf context created by libnet_conf_open().Michael Adam1-17/+41
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-12Fix some indents.Günther Deschner1-2/+3
Guenther (This used to be commit 57368f883fb217b4196858bb2255c0eea59a8917)
2008-01-12Call dsgetdcname when we have no specific dc defined for joining.Günther Deschner1-0/+27
Guenther (This used to be commit 40e8caa2d81168be3e48ececf5746d8f659a96d6)
2008-01-12Fix some error strings in libnet_join.Günther Deschner1-1/+6
Guenther (This used to be commit 8af80976a3a8dd9d02a6763e48b2c1d8003ae4dd)
2008-01-12Add appropriate error code when pre-creating accounts in ous isnt supported ↵Günther Deschner1-2/+2
by DC. Guenther (This used to be commit 4a7acf4a2374138b20a5cdebdcc721668bbd865b)
2008-01-12For libnet_join error string functions, make sure not to overwrite last ↵Günther Deschner1-10/+10
status string. Guenther (This used to be commit a9b76c9e2d93c8aa482dbee54f29d7e1503abe4f)
2008-01-12Merge all ads related calls in libnet_join_post_processing_ads().Günther Deschner1-32/+49
Guenther (This used to be commit b76250f1cf7238613658901b961d68a0da592712)
2008-01-12Use WITH_ADS define in libnet_join, hopefully not breaking the build.Günther Deschner1-16/+11
Guenther (This used to be commit 48f638a45525c01db9855e3ef809f08ce65da8d8)
2008-01-12Use domain_is_ad one more time in libnetjoin.Günther Deschner1-3/+2
Guenther (This used to be commit 82bd6322b691506ddea2b274973e614fa8c6ee5e)
2008-01-11Remove '\n' from error strings in libnet_join context.Günther Deschner1-12/+12
Guenther (This used to be commit 9cc0d874f6c064e8752d36e72fcc85bf4c85e656)
2008-01-11Set error string when ads_leave_realm() has failed in libnetjoin.Günther Deschner1-1/+9
Guenther (This used to be commit 01690f85bc7d052d4c57181d74aef27d1776169c)
2008-01-11Ignore result of libnet_conf_delete_parameter here, as realm may be not there.Günther Deschner1-1/+1
Guenther (This used to be commit 2e2d058b7e90a158612af4b0a489578431f748e5)
2008-01-11Remove some more references to global_myname() in libnet_join.Günther Deschner1-2/+2
Guenther (This used to be commit ed4960baccf687b77c2b0f4ee64cbce2005f3abb)
2008-01-11Use domain_is_ad bool.Günther Deschner1-6/+5
Guenther (This used to be commit 9707a5eb008788460937104575b7afd733a9f741)
2008-01-09Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.Michael Adam1-0/+3
Michael (This used to be commit 829de79051cd1d1cc67c4c40fdc8e08c44450a09)
2008-01-09Another attempt to fix builds w/o ldap and/or krb5.Günther Deschner1-9/+9
Guenther (This used to be commit e73e3da772bd024f1d74fc41b832f181ba5c43bd)
2008-01-09Add libnet_join_derive_salting_principal().Günther Deschner1-0/+55
Guenther (This used to be commit 95129a28cfa57d8e5bd767b92f065abd1d32a569)
2008-01-08Fix define check s/WITH_LDAP/HAVE_LDAP/ in libnet_join.Günther Deschner1-4/+4
Guenther (This used to be commit 045a69c59c3b0732bb12a8b0efc8c9675e811719)
2008-01-08When unjoining fails (e.g. missing creds) make sure we still correct config.Günther Deschner1-0/+4
Guenther (This used to be commit 7f51583f681b1acc9bfbab6ee0e2d1c13d2c4ca4)
2008-01-07Trying to make the buildfarm w/o krb5 happy.Günther Deschner1-1/+1
Guenther (This used to be commit 079f2eba81886707ea4b18f103e097dbac994b2f)
2008-01-07There is no LDAP in some corners of this world. Fix the build...Günther Deschner1-4/+12
Guenther (This used to be commit 83ed37023c2be4c6b4d99d8117ac8438a413112c)
2008-01-07Finally use libnet_join_set_* functions in libnetjoin.Günther Deschner1-0/+30
Guenther (This used to be commit 1436670854ae635cfa2a69939d3ac31da87c3f66)
2008-01-07Merge remaining post-AD-join functions from net into libnet_join.Günther Deschner1-0/+184
Guenther (This used to be commit 3e816d7555218192881d79645fca26981a7099c7)
2008-01-07Add libnet_join_find_machine_acct().Günther Deschner1-0/+46
Guenther (This used to be commit f550ed02ff9e0546c63064ab9dac760eac7e1e16)
2008-01-07Honor the WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag when unjoining from AD.Günther Deschner1-10/+56
Guenther (This used to be commit ed164b523e63c3ebf2c822a00a877ef169738a3a)
2008-01-07Rearrange libnet join code and add support for account pre-creation in AD.Günther Deschner1-12/+100
Guenther (This used to be commit 18ae8580420c37aa4b189eb5ce53cc65a9827d95)
2008-01-07Add ADS_STRUCTs to libnetjoin and -unjoin, with talloc destructors.Günther Deschner1-0/+137
Guenther (This used to be commit 985d45206990988894e05ea6fb0aacc7396a6db4)
2008-01-07Add error_string to libnetjoin and libnetunjoin structures incl. set functions.Günther Deschner1-0/+36
Guenther (This used to be commit 4f9985bb33aa5973e6b685a45039c8e227487db1)
2008-01-07Only create machine account in libnetjoin when requested to.Günther Deschner1-9/+13
Guenther (This used to be commit bc025a3860483e8cdbd0f61579689c9edadd3af0)
2008-01-04Rename server_name to dc_name in libnet join structures.Günther Deschner1-2/+4
Guenther (This used to be commit ff5e15b1ba0d5c39ceef9f9995c107e510162564)
2008-01-04Separate out storing and removing secrets in libnet_join/unjoin.Günther Deschner1-31/+45
Guenther (This used to be commit b59ca2d9c3375c0d0b9f585e48d718689586bb92)
2008-01-04In libnet_join finally separate the admin from the machine pwd entirely.Günther Deschner1-13/+15
Guenther (This used to be commit d88bb94f0ef00ddbb48498797bd11448e0d74645)
2008-01-04Robustness fix for libnet join when unjoining.Günther Deschner1-4/+5
Guenther (This used to be commit d7f01d940feb7dfedb6c4b8b88f5443434e03428)
2008-01-03Use GLOBAL_NAME constant.Michael Adam1-1/+1
Michael (This used to be commit 4c404d627ccfaf1c17f4b6b1ebab6fce357d9ab1)
2008-01-03Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().Michael Adam1-9/+9
Now all functions are converted to the consistent naming scheme. Michael (This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)
2008-01-03Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().Michael Adam1-1/+1
Michael (This used to be commit 073eeca51e46da6a687175aadbfdbb9e029532d6)
2008-01-03In libnetjoin don't mix admin password with machine account pwd.Günther Deschner1-2/+2
Guenther (This used to be commit 5b2eec21c27f07653e2dbb75c0f9ab4a60736773)
2007-12-25Remove now unneeded talloc ctx parameter from do_JoinConfig().Michael Adam1-3/+2
Michael (This used to be commit be985d8d0ce80d12aa7f0b447b16b14aa0362826)
2007-12-25Remove now unneeded talloc ctx parameter from do_join_modify_vals_config().Michael Adam1-3/+2
Michael (This used to be commit f8823ae1232022ed3f7f9be6b8959d413e8aed19)
2007-12-25Remove now unneeded talloc ctx parameter from do_UnjoinConfig().Michael Adam1-3/+2
Michael (This used to be commit 92b8e5ea4ba26d663ea4e6fb65e4225d8259ea60)
2007-12-25Remove now unneeded talloc ctx parameter from do_unjoin_modify_vals_config().Michael Adam1-3/+2
Michael (This used to be commit 4f7375a110a69530d6ef9781573f45a5bf8391a5)
2007-12-25Remove talloc context parameter from libnet_smbconf_delparm().Michael Adam1-1/+1
Make use of talloc stackframe internally. This removes talloc contxt from net_conf_delparm. Michael (This used to be commit 16f137393881edc78c9322f038ba38e53e3ee07d)
2007-12-25Remove talloc context parameter from libnet_smbconf_setparm().Michael Adam1-10/+7
Make use of talloc stackframe internally. This removes talloc contxt from net_conf_setparm. Michael (This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
2007-12-23Remove occurrences of registry_key from libnet_join.cMichael Adam1-65/+17
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-23Replace direct deletion of registry value by use of libnet_smbconf_delparm().Michael Adam1-1/+1
Michael (This used to be commit 415fc0a5261f4d941027e5d5305fcea882724aef)
2007-12-22Fix uninitialized error code in do_unjoin_modify_vals_config().Günther Deschner1-1/+1
Guenther (This used to be commit c890ebc3cad7222007e62227ec1f28d978310cbf)
2007-12-21Until we better understand the WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT make sure ↵Günther Deschner1-0/+4
we are not joining as a DC. Guenther (This used to be commit bf3ffbb5d2e8588e0041f0b890b590c58f8fcecf)
2007-12-21Fix typo.Günther Deschner1-2/+0
Guenther (This used to be commit b95801db595109e8eade7cf7c344f281c8684249)
2007-12-21Add libnet_Unjoin(), libnet_UnjoinCtx and friends.Günther Deschner1-4/+222
Guenther (This used to be commit 89e8abb1163984eed358a4da9be4699a8e3a43f9)
2007-12-21In libnet join code, try lsa query with level 12 first.Günther Deschner1-8/+10
Guenther (This used to be commit f0e8d744c92d2602722e04be6266196941362d63)