]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: honor 'socket options' in winbind
authorJim McDonough <jmcd@samba.org>
Wed, 15 Jun 2016 19:57:01 +0000 (15:57 -0400)
committerJeremy Allison <jra@samba.org>
Fri, 17 Jun 2016 02:13:13 +0000 (04:13 +0200)
Set socket options from smb.conf before negprot, as done by libsmbclient

Signed-off-by: Jim McDonough <jmcd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_cm.c

index 1de731a5ba8314f25739e90f1ce6003c3bd53f8a..e18f6382519a5b7afe69a83fe4e68c50703bb54a 100644 (file)
@@ -1055,6 +1055,8 @@ static NTSTATUS cm_prepare_connection(struct winbindd_domain *domain,
 
        cli_set_timeout(*cli, 10000); /* 10 seconds */
 
+       set_socket_options(sockfd, lp_socket_options());
+
        result = smbXcli_negprot((*cli)->conn, (*cli)->timeout,
                                 lp_client_ipc_min_protocol(),
                                 lp_client_ipc_max_protocol());