1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00
Commit Graph

43 Commits

Author SHA1 Message Date
Günther Deschner
01690f85bc Set error string when ads_leave_realm() has failed in libnetjoin.
Guenther
2008-01-11 15:10:21 +01:00
Günther Deschner
2e2d058b7e Ignore result of libnet_conf_delete_parameter here, as realm may be not there.
Guenther
2008-01-11 15:09:20 +01:00
Günther Deschner
ed4960bacc Remove some more references to global_myname() in libnet_join.
Guenther
2008-01-11 15:09:01 +01:00
Günther Deschner
9707a5eb00 Use domain_is_ad bool.
Guenther
2008-01-11 15:08:52 +01:00
Michael Adam
829de79051 Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
Michael
2008-01-09 23:15:56 +01:00
Günther Deschner
e73e3da772 Another attempt to fix builds w/o ldap and/or krb5.
Guenther
2008-01-09 12:48:08 +01:00
Günther Deschner
95129a28cf Add libnet_join_derive_salting_principal().
Guenther
2008-01-09 10:20:44 +01:00
Günther Deschner
045a69c59c Fix define check s/WITH_LDAP/HAVE_LDAP/ in libnet_join.
Guenther
2008-01-08 14:07:09 +01:00
Günther Deschner
7f51583f68 When unjoining fails (e.g. missing creds) make sure we still correct config.
Guenther
2008-01-08 11:59:01 +01:00
Günther Deschner
079f2eba81 Trying to make the buildfarm w/o krb5 happy.
Guenther
2008-01-07 20:56:34 +01:00
Günther Deschner
83ed37023c There is no LDAP in some corners of this world. Fix the build...
Guenther
2008-01-07 20:41:55 +01:00
Günther Deschner
1436670854 Finally use libnet_join_set_* functions in libnetjoin.
Guenther
2008-01-07 20:21:02 +01:00
Günther Deschner
3e816d7555 Merge remaining post-AD-join functions from net into libnet_join.
Guenther
2008-01-07 20:17:47 +01:00
Günther Deschner
f550ed02ff Add libnet_join_find_machine_acct().
Guenther
2008-01-07 19:39:35 +01:00
Günther Deschner
ed164b523e Honor the WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag when unjoining from AD.
Guenther
2008-01-07 19:39:21 +01:00
Günther Deschner
18ae858042 Rearrange libnet join code and add support for account pre-creation in AD.
Guenther
2008-01-07 19:39:11 +01:00
Günther Deschner
985d452069 Add ADS_STRUCTs to libnetjoin and -unjoin, with talloc destructors.
Guenther
2008-01-07 19:38:59 +01:00
Günther Deschner
4f9985bb33 Add error_string to libnetjoin and libnetunjoin structures incl. set functions.
Guenther
2008-01-07 19:38:48 +01:00
Günther Deschner
bc025a3860 Only create machine account in libnetjoin when requested to.
Guenther
2008-01-07 12:48:21 +01:00
Günther Deschner
ff5e15b1ba Rename server_name to dc_name in libnet join structures.
Guenther
2008-01-04 17:43:15 +01:00
Günther Deschner
b59ca2d9c3 Separate out storing and removing secrets in libnet_join/unjoin.
Guenther
2008-01-04 17:43:09 +01:00
Günther Deschner
d88bb94f0e In libnet_join finally separate the admin from the machine pwd entirely.
Guenther
2008-01-04 17:43:02 +01:00
Günther Deschner
d7f01d940f Robustness fix for libnet join when unjoining.
Guenther
2008-01-04 11:55:00 +01:00
Michael Adam
4c404d627c Use GLOBAL_NAME constant.
Michael
2008-01-03 14:17:49 +01:00
Michael Adam
a559533c0c Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
Now all functions are converted to the consistent naming scheme.

Michael
2008-01-03 14:17:49 +01:00
Michael Adam
073eeca51e Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().
Michael
2008-01-03 14:17:49 +01:00
Günther Deschner
5b2eec21c2 In libnetjoin don't mix admin password with machine account pwd.
Guenther
2008-01-03 13:17:49 +01:00
Michael Adam
be985d8d0c Remove now unneeded talloc ctx parameter from do_JoinConfig().
Michael
2007-12-25 03:41:34 +01:00
Michael Adam
f8823ae123 Remove now unneeded talloc ctx parameter from do_join_modify_vals_config().
Michael
2007-12-25 03:40:35 +01:00
Michael Adam
92b8e5ea4b Remove now unneeded talloc ctx parameter from do_UnjoinConfig().
Michael
2007-12-25 03:39:31 +01:00
Michael Adam
4f7375a110 Remove now unneeded talloc ctx parameter from do_unjoin_modify_vals_config().
Michael
2007-12-25 03:38:06 +01:00
Michael Adam
16f1373938 Remove talloc context parameter from libnet_smbconf_delparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.

Michael
2007-12-25 03:34:04 +01:00
Michael Adam
efaffefc43 Remove talloc context parameter from libnet_smbconf_setparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.

Michael
2007-12-25 03:29:05 +01:00
Michael Adam
81b9f1301d 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
2007-12-23 04:10:31 +01:00
Michael Adam
415fc0a526 Replace direct deletion of registry value by use of libnet_smbconf_delparm().
Michael
2007-12-23 04:10:31 +01:00
Günther Deschner
c890ebc3ca Fix uninitialized error code in do_unjoin_modify_vals_config().
Guenther
2007-12-22 00:13:24 +01:00
Günther Deschner
bf3ffbb5d2 Until we better understand the WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT make sure we are
not joining as a DC.

Guenther
2007-12-21 23:05:10 +01:00
Günther Deschner
b95801db59 Fix typo.
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
89e8abb116 Add libnet_Unjoin(), libnet_UnjoinCtx and friends.
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
f0e8d744c9 In libnet join code, try lsa query with level 12 first.
Guenther
2007-12-21 15:29:10 +01:00
Günther Deschner
91b8849898 Making do_DomainJoin return NTSTATUS again.
Guenther
2007-12-21 15:29:10 +01:00
Günther Deschner
c818f5505a Make sure we also support non-domain join.
Guenther
2007-12-21 15:29:10 +01:00
Günther Deschner
fb6315b68b Add libnet_Join().
Heavily based on existing code in net_ads_join().

Guenther
2007-12-21 15:29:10 +01:00