summaryrefslogtreecommitdiff
path: root/source3/libnet
AgeCommit message (Collapse)AuthorFilesLines
2008-01-13Make use of the new libnet_conf_delete_global_parameter() function.Michael Adam1-1/+1
Michael (This used to be commit aed01fd28c8e896e993239cbe9b2681132ddf980)
2008-01-13Add a function libnet_conf_delete_global_parameter() to libnet_conf.cMichael Adam1-0/+21
Create the [global] section if it does not yet exist. Michael (This used to be commit 90fa2981c949e21f66a44d634ebe9d661819f0a3)
2008-01-13Add a function libnet_conf_get_global_parameter() to libnet_conf.cMichael Adam1-0/+25
It creates the [global] section if it does not yet exist. Michael (This used to be commit 627a29b690c30f1096a4746186089cd9a1c92407)
2008-01-13Move libnet_conf_set_global_parameter() inside libnet_conf.cMichael Adam1-30/+23
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 fd99c1804ae04b7c2a2b0a605e83ba88fa362edb)
2008-01-13Add a comment header to libnet_conf_set_global_parameter().Michael Adam1-0/+6
Michael (This used to be commit c050b148d00c79571ef0e85c6e7c86d551ca6efd)
2008-01-13Add auto-adding of [global] to libnet_conf_set_global_parameter().Michael Adam1-1/+12
Michael (This used to be commit ad2497cfac90b2e91be6995931629453fd6ed5fa)
2008-01-13Remove auto-generation of missing share from libnet_conf_set_parameter().Michael Adam1-4/+2
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 e2b34e9c028d712c7c8b22aade2c11d347ae176d)
2008-01-13Introduce a libnet_conf context created by libnet_conf_open().Michael Adam4-92/+205
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-12Auto-add missing shares in libnet_conf_set_parameter().Günther Deschner1-2/+4
Michael, please have a look. Guenther (This used to be commit 9f4506e5e2828e0f23bc37586770995c3424b208)
2008-01-12Add debug bool flag for libnetjoin ctx.Günther Deschner1-0/+1
Guenther (This used to be commit 93084487952f4ef23209401d689b3be3af6c9e6e)
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 code accidentially submittet with last commit 83aed537c16f63.Michael Adam1-42/+0
This is ist still in preparation and will follow soon. Soory! Michael (This used to be commit 75acdb54a454ffda9d422fcafb573c8f5581d2e8)
2008-01-11Fix panic in "net conf": Fix logic in error condition.Michael Adam1-1/+43
Michael (This used to be commit 83aed537c16f632599484f60c5ccebc3ab713801)
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-11Add domain_is_ad bool to libnetjoin ctx.Günther Deschner1-0/+1
Guenther (This used to be commit 16ca8d2746a5c2fc7a583d1cf2ebb4d3aa003842)
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-09Change registry_create_admin_token() to return NTSTATUS.Michael Adam1-5/+3
Michael (This used to be commit 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
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 Deschner2-1/+186
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 Deschner2-0/+140
Guenther (This used to be commit 985d45206990988894e05ea6fb0aacc7396a6db4)
2008-01-07Add error_string to libnetjoin and libnetunjoin structures incl. set functions.Günther Deschner2-0/+38
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 Deschner2-4/+7
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 Deschner2-16/+19
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 different error code for libnet_conf initialization failure.Günther Deschner1-2/+1
Guenther (This used to be commit 65537eae842065a1dd68d8e532e61502b61e1dbe)
2008-01-03Make libnet_conf handle opening/initialization of the registry.Michael Adam1-0/+32
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 77713e776405800ac54c692a77cd4efd153042cb)
2008-01-03Add a comment header and do some slight reformatting.Michael Adam1-5/+7
Michael (This used to be commit 5d557e3f95b8d53114c25ba7fa3e564a50be9e05)
2008-01-03Use GLOBAL_NAME constant.Michael Adam1-1/+1
Michael (This used to be commit 4c404d627ccfaf1c17f4b6b1ebab6fce357d9ab1)