1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-11 17:58:16 +03:00

384 Commits

Author SHA1 Message Date
Michael Adam
1c4466cedc Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
Michael
(This used to be commit 829de79051cd1d1cc67c4c40fdc8e08c44450a09)
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 e73e3da772bd024f1d74fc41b832f181ba5c43bd)
2008-01-09 12:48:08 +01:00
Günther Deschner
ba922343db Add libnet_join_derive_salting_principal().
Guenther
(This used to be commit 95129a28cfa57d8e5bd767b92f065abd1d32a569)
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 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
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 045a69c59c3b0732bb12a8b0efc8c9675e811719)
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 7f51583f681b1acc9bfbab6ee0e2d1c13d2c4ca4)
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 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
Günther Deschner
192700bd08 Use different error code for libnet_conf initialization failure.
Guenther
(This used to be commit 65537eae842065a1dd68d8e532e61502b61e1dbe)
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 77713e776405800ac54c692a77cd4efd153042cb)
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 5d557e3f95b8d53114c25ba7fa3e564a50be9e05)
2008-01-03 14:34:31 +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
Michael Adam
55771b356d Rename libnet_smbconf_getparm() to libnet_conf_get_parameter().
Michael
(This used to be commit d08556dbc7071933feaeec538f01ac8f6a637b1d)
2008-01-03 14:17:49 +01:00
Michael Adam
b9f904b59d Rename libnet_smbconf_setparm() to libnet_conf_set_parameter().
Michael
(This used to be commit e00cb415d30b3e72ccfb7e5c366c95ec0f9c6247)
2008-01-03 14:17:49 +01:00
Michael Adam
e89411effd Rename libnet_smbconf_delshare() to libnet_conf_delete_share().
Michael
(This used to be commit 2075baf551ca7fc6bcee6b93f63fd7fbf75f9a50)
2008-01-03 14:17:49 +01:00
Michael Adam
e1aa474a32 Rename libnet_smbconf_getshare() to libnet_conf_get_share().
Michael
(This used to be commit 1575612f1936312125e7778a9a4227e444ea36cf)
2008-01-03 14:17:49 +01:00
Michael Adam
3f3a29ed50 Rename libnet_smbconf_create_share() to libnet_conf_create_share().
Michael
(This used to be commit 6bc4ee210855dbfbee9e86b59e90b08ecb3a9df9)
2008-01-03 14:17:49 +01:00
Michael Adam
630de5f555 Rename libnet_smbconf_share_exists() to libnet_conf_share_exists().
Michael
(This used to be commit 3258758e5c8dfc2c681e1285cb34aaacae697a55)
2008-01-03 14:17:49 +01:00
Michael Adam
daf1a460c8 Rename libnet_smbconf_get_share_names() to libnet_conf_get_share_names().
Michael
(This used to be commit 2e4beee66b3672c3259b312aca3d482598731119)
2008-01-03 14:17:49 +01:00
Michael Adam
90837d048b Rename libnet_smbconf_get_config() to libnet_conf_get_config().
Michael
(This used to be commit e8f7c07699b5b93acd81b24bca908769f0b5e8d8)
2008-01-03 14:17:49 +01:00
Michael Adam
05ff62cf78 Rename libnet_smbconf_drop() to libnet_conf_drop().
Michael
(This used to be commit 42ae33a96228e916d7d530d844be6937a80d4fea)
2008-01-03 14:17:49 +01:00
Michael Adam
12a0cd5310 Rename libnet_smbconf_reg_get_values() to libnet_conf_reg_get_values().
Now all internal helper functions are converted to the consistent
naming scheme.

Michael
(This used to be commit c23e6636a886d93b98c9439ba081def0385f67ac)
2008-01-03 14:17:49 +01:00
Michael Adam
6ab11e5f98 Rename libnet_smbconf_format_registry_value() to libnet_conf_format_registry_value().
Michael
(This used to be commit 3f9f35335127a673639fa30c88cdea6c79f04b92)
2008-01-03 14:17:49 +01:00
Michael Adam
547c3583e4 Rename libnet_smbconf_reg_set_value() to libnet_conf_reg_set_value().
Michael
(This used to be commit 96b2923bc3c57700352869627c38609529d53cd2)
2008-01-03 14:17:48 +01:00
Michael Adam
340cb434db Rename libnet_smbconf_reg_create_service_key() to libnet_conf_reg_create_service_key().
Michael
(This used to be commit cd1846943cbcc02ea9fa3b9237bd02e667a475db)
2008-01-03 14:17:48 +01:00
Michael Adam
d3e54d913c Rename libnet_smbconf_value_exists() to libnet_conf_value_exists().
Michael
(This used to be commit 49f740797bb7fc5edacbd4c3e8b1eb1aab131ea4)
2008-01-03 14:17:48 +01:00
Michael Adam
cd84256866 Rename libnet_smbconf_reg_open_basekey() to libnet_conf_reg_open_base_key().
Michael
(This used to be commit c2ba52b2c34abc42b4ff7945715dc36e08a2f112)
2008-01-03 14:17:48 +01:00
Michael Adam
dde8701b85 Rename libnet_smbconf_reg_open_service_key() to libnet_conf_reg_open_service_key().
Michael
(This used to be commit 4d86d2dd6f0a577e446ccb4b362b3cd80f819600)
2008-01-03 14:17:48 +01:00
Michael Adam
e598b93d2f Rename libnet_smbconf_reg_open_path() to libnet_conf_reg_open_path().
Michael
(This used to be commit 9868364e2c7827ac7914bee711a65d4456a5e366)
2008-01-03 14:17:48 +01:00
Michael Adam
4612391850 Rename libnet_smbconf_add_string_to_array() to libnet_conf_add_string_to_array().
This is the start of making nomenclature more consistent
(functions in libnet_conf.c should be called libnet_conf_*,
not libnet_smbconf_* ...

Michael
(This used to be commit 0dd3967bfd88a4d90941e80134c549f5ade63ad0)
2008-01-03 14:17:48 +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
984aa7a156 Rename libnet_smbconf_reg_setvalue_internal() to libnet_smbconf_reg_set_value().
Michael
(This used to be commit 3fc3fee88afd9e8b6232afc140a07090b4215c23)
2008-01-03 11:35:21 +01:00
Michael Adam
e0ea759807 Fix a comment.
Michael
(This used to be commit 2d0c7fe44f075205db1713ef2d69006f7192c490)
2008-01-03 11:33:17 +01:00
Michael Adam
a750e223b3 Rename libnet_smbconf_reg_createkey_internal to libnet_smbconf_reg_create_service_key.
Michael
(This used to be commit 08056a2c8160a44d27744467da467faea9ba0686)
2008-01-03 11:32:00 +01:00
Michael Adam
fd597c7e6d Add libnet_conf API function libnet_smbconf_create_share().
And make libnet_smbconf_setparm() return error if the share
does not already exist. Adapt net_conf_addshare to this new
situation.

Michael
(This used to be commit de349bd26db3341815f6d8f6c18a5ca1fd664dca)
2008-01-03 11:30:14 +01:00
Günther Deschner
40079c4eb4 Remove unused vars.
Guenther
(This used to be commit ff3f0006d167a9bca85919bf6115d73413554909)
2008-01-03 10:49:39 +01:00