samba36: add even more size optimizations, binary size is now down to about 2.7M uncompressed
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30509 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -121,3 +121,52 @@
|
||||
if (!r->in.account || !r->in.encrypted_password) {
|
||||
return WERR_INVALID_PARAM;
|
||||
}
|
||||
--- a/source3/libsmb/trusts_util.c
|
||||
+++ b/source3/libsmb/trusts_util.c
|
||||
@@ -46,9 +46,11 @@ NTSTATUS trust_pw_change_and_store_it(st
|
||||
NTSTATUS nt_status;
|
||||
|
||||
switch (sec_channel_type) {
|
||||
+#ifdef NETLOGON_SUPPORT
|
||||
case SEC_CHAN_WKSTA:
|
||||
case SEC_CHAN_DOMAIN:
|
||||
break;
|
||||
+#endif
|
||||
default:
|
||||
return NT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
@@ -159,6 +161,11 @@ bool enumerate_domain_trusts( TALLOC_CTX
|
||||
*num_domains = 0;
|
||||
*sids = NULL;
|
||||
|
||||
+#ifndef NETLOGON_SUPPORT
|
||||
+ return False;
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
/* lookup a DC first */
|
||||
|
||||
if ( !get_dc_name(domain, NULL, dc_name, &dc_ss) ) {
|
||||
@@ -243,6 +250,10 @@ NTSTATUS change_trust_account_password(
|
||||
struct cli_state *cli = NULL;
|
||||
struct rpc_pipe_client *netlogon_pipe = NULL;
|
||||
|
||||
+#ifndef NETLOGON_SUPPORT
|
||||
+ return NT_STATUS_UNSUCCESSFUL;
|
||||
+#endif
|
||||
+
|
||||
DEBUG(5,("change_trust_account_password: Attempting to change trust account password in domain %s....\n",
|
||||
domain));
|
||||
|
||||
--- a/source3/auth/auth_domain.c
|
||||
+++ b/source3/auth/auth_domain.c
|
||||
@@ -538,7 +538,9 @@ static NTSTATUS auth_init_trustdomain(st
|
||||
|
||||
NTSTATUS auth_domain_init(void)
|
||||
{
|
||||
+#ifdef NETLOGON_SUPPORT
|
||||
smb_register_auth(AUTH_INTERFACE_VERSION, "trustdomain", auth_init_trustdomain);
|
||||
smb_register_auth(AUTH_INTERFACE_VERSION, "ntdomain", auth_init_ntdomain);
|
||||
+#endif
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user