s4-dns: dlz_bind9: Fix ipv6 updates
[samba.git] / source3 / client / smbspool.c
index 5a736c4930457dd2aff76899ddd3afd2ead16947..ddae1a678521885846c1b90c243dde3e5b933cae 100644 (file)
@@ -25,6 +25,7 @@
 #include "includes.h"
 #include "system/filesys.h"
 #include "system/passwd.h"
+#include "libsmb/libsmb.h"
 
 /*
  * Starting with CUPS 1.3, Kerberos support is provided by cupsd including
@@ -244,11 +245,9 @@ main(int argc,                     /* I - Number of command-line arguments */
 
        setup_logging("smbspool", DEBUG_STDOUT);
 
-       lp_set_in_client(True); /* Make sure that we tell lp_load we are */
-
        load_case_tables();
 
-       if (!lp_load(get_dyn_CONFIGFILE(), True, False, False, True)) {
+       if (!lp_load_client(get_dyn_CONFIGFILE())) {
                fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", get_dyn_CONFIGFILE());
                goto done;
        }
@@ -403,7 +402,7 @@ smb_complete_connection(const char *myname,
        /* Start the SMB connection */
        *need_auth = false;
        nt_status = cli_start_connection(&cli, myname, server, NULL, port,
-                                        Undefined, flags);
+                                        SMB_SIGNING_DEFAULT, flags);
        if (!NT_STATUS_IS_OK(nt_status)) {
                fprintf(stderr, "ERROR: Connection failed: %s\n", nt_errstr(nt_status));
                return NULL;
@@ -434,8 +433,8 @@ smb_complete_connection(const char *myname,
                return NULL;
        }
 
-       nt_status = cli_tcon_andx(cli, share, "?????", password,
-                                 strlen(password) + 1);
+       nt_status = cli_tree_connect(cli, share, "?????", password,
+                                    strlen(password) + 1);
        if (!NT_STATUS_IS_OK(nt_status)) {
                fprintf(stderr, "ERROR: Tree connect failed (%s)\n",
                        nt_errstr(nt_status));