1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00
samba-mirror/source3/librpc/idl/libnet_join.idl
Noel Power a5d383cbd5 allow net ads join accept new osServicePack parameter
osServicePack paramater allows the default behaviour ( which is to use
the samba version string as the operatingSystemServicePack attribute )
to be overridden
Additionally make sure if blank string is passed that it is treated
as attribute deletion. This is necessary as values for the os attributes
are eventually passed to ads_modlist_add if the value is "" then the
attempt to add this attribute fails in the underlying ldap
'ldap_modfiy_ext_s' function. In this case we need to pass NULL as the
value to force deletion of the ldap attribute

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan  8 00:18:05 CET 2015 on sn-devel-104
2015-01-08 00:18:05 +01:00

76 lines
2.0 KiB
Plaintext

#include "idl_types.h"
import "wkssvc.idl", "security.idl", "misc.idl";
/*
libnetjoin interface definition
*/
[
pointer_default(unique),
helper("ads.h")
]
interface libnetjoin
{
typedef bitmap wkssvc_joinflags wkssvc_joinflags;
typedef enum netr_SchannelType netr_SchannelType;
[nopush,nopull,noopnum] WERROR libnet_JoinCtx(
[in] string dc_name,
[in] string machine_name,
[in,ref] string *domain_name,
[in] string account_ou,
[in] string admin_account,
[in] string admin_domain,
[in,noprint] string admin_password,
[in] string machine_password,
[in] wkssvc_joinflags join_flags,
[in] string os_version,
[in] string os_name,
[in] string os_servicepack,
[in] boolean8 create_upn,
[in] string upn,
[in] boolean8 modify_config,
[in,unique] ads_struct *ads,
[in] boolean8 debug,
[in] boolean8 use_kerberos,
[in] netr_SchannelType secure_channel_type,
[in,noprint] messaging_context *msg_ctx,
[out] string account_name,
[out] string netbios_domain_name,
[out] string dns_domain_name,
[out] string forest_name,
[out] string dn,
[out] dom_sid *domain_sid,
[out] boolean8 modified_config,
[out] string error_string,
[out] boolean8 domain_is_ad
);
[nopush,nopull,noopnum] WERROR libnet_UnjoinCtx(
[in] string dc_name,
[in] string machine_name,
[in] string domain_name,
[in] string account_ou,
[in] string admin_account,
[in] string admin_domain,
[in,noprint] string admin_password,
[in] string machine_password,
[in] wkssvc_joinflags unjoin_flags,
[in] boolean8 delete_machine_account,
[in] boolean8 modify_config,
[in] dom_sid *domain_sid,
[in,unique] ads_struct *ads,
[in] boolean8 debug,
[in] boolean8 use_kerberos,
[in,noprint] messaging_context *msg_ctx,
[out] string netbios_domain_name,
[out] string dns_domain_name,
[out] string forest_name,
[out] boolean8 modified_config,
[out] string error_string,
[out] boolean8 disabled_machine_account,
[out] boolean8 deleted_machine_account
);
}