Re: Another problem with smbclient for Samba 4

2018-07-04 Thread Jean-Louis Martineau
Olivier,

Do not use the 'GNUTAR' program.
Use the amsamaba application.

Jean-Louis

2018-07-04 5:51 GMT-04:00 Olivier :

> Hi,
>
> I noticed that the command
>smbclient olivier\\drivec -U on\%password -E -W samba -d0 -Tqca -
> does not behave the same with Samba 3 and Samba 4. The smbclient tar
> ends with giving the size of the data transfered, but the message is
> slightly different and Amanda cannot parse the size returned by Samba 4,
> resulting in an error
>amanda //olivier/drivec lev 0 FAILED [no backup size line]
>
> Below is the end of the smbclient command for Samba 4:
>
> ./WINDOWS/Zapotec.bmp
> ./WINDOWS/zipgenius.xml
> tar:717  Total bytes received: 84969332671
>
> and for Samba 3
>
> ./ECsamples/TQM - Baldrige competition.ahp
> ./ECsamples/VoiceOfCustomer Part I Prioritizing  Market Segments.ahp
> ./ECsamples/VoiceOfCustomer Part II Prioritizing Customer Requirements .ahp
> ./ECsamples/VP of Development Selection.ahp
> tar: dumped 51410 files and directories
> Total bytes written: 27800975872
>
> Thank you,
>
> Olivier
> --
>


Re: Another problem with smbclient for Samba 4

2018-07-04 Thread Olivier
Olivier  writes:

> Hi,
>
> I noticed that the command 
>smbclient olivier\\drivec -U on\%password -E -W samba -d0 -Tqca -
> does not behave the same with Samba 3 and Samba 4. The smbclient tar
> ends with giving the size of the data transfered, but the message is
> slightly different and Amanda cannot parse the size returned by Samba 4,
> resulting in an error
>amanda //olivier/drivec lev 0 FAILED [no backup size line]
>
> Below is the end of the smbclient command for Samba 4:
>
> ./WINDOWS/Zapotec.bmp
> ./WINDOWS/zipgenius.xml
> tar:717  Total bytes received: 84969332671
>
> and for Samba 3
>
> ./ECsamples/TQM - Baldrige competition.ahp
> ./ECsamples/VoiceOfCustomer Part I Prioritizing  Market Segments.ahp
> ./ECsamples/VoiceOfCustomer Part II Prioritizing Customer Requirements .ahp
> ./ECsamples/VP of Development Selection.ahp
> tar: dumped 51410 files and directories
> Total bytes written: 27800975872
>
> Thank you,
>
> Olivier

I think I found the patch, for some reason, it did not make it to
FreeBSD ports tree.

Best regards,

Olivier

-- 


Another problem with smbclient for Samba 4

2018-07-04 Thread Olivier
Hi,

I noticed that the command 
   smbclient olivier\\drivec -U on\%password -E -W samba -d0 -Tqca -
does not behave the same with Samba 3 and Samba 4. The smbclient tar
ends with giving the size of the data transfered, but the message is
slightly different and Amanda cannot parse the size returned by Samba 4,
resulting in an error
   amanda //olivier/drivec lev 0 FAILED [no backup size line]

Below is the end of the smbclient command for Samba 4:

./WINDOWS/Zapotec.bmp
./WINDOWS/zipgenius.xml
tar:717  Total bytes received: 84969332671

and for Samba 3

./ECsamples/TQM - Baldrige competition.ahp
./ECsamples/VoiceOfCustomer Part I Prioritizing  Market Segments.ahp
./ECsamples/VoiceOfCustomer Part II Prioritizing Customer Requirements .ahp
./ECsamples/VP of Development Selection.ahp
tar: dumped 51410 files and directories
Total bytes written: 27800975872

Thank you,

Olivier
-- 


Re: Problem with smbclient for Samba 4

2018-07-02 Thread Olivier
"Stefan G. Weichinger"  writes:

> Am 2018-07-02 um 09:22 schrieb Olivier:
>> "Stefan G. Weichinger"  writes:
>>> Try the command yourself on the shell and use "-d3" or higher to see the
>>> debug details.
>
> See the difference ->
>
>> resolve_lmhosts: Attempting lmhosts lookup for name <0x20>
>> resolve_wins: WINS server resolution selected and no WINS servers listed.
>> resolve_hosts: Attempting host lookup for name <0x20>
>
>> resolve_lmhosts: Attempting lmhosts lookup for name olivier<0x20>
>> resolve_wins: WINS server resolution selected and no WINS servers listed.
>> resolve_hosts: Attempting host lookup for name olivier<0x20>
>
> The failing command seems to look up an empty string ... (no "olivier"
> in first call).

I agree, but in both cases, I use the same smbclient command and version
(the one on Amanda server). The only difference being I once specify the
share as "olivier\\drivec" and the other time I use
"\\olivier\drivec".

The first form is not working, this is the form cut and pasted from
Amanda log file. The second form is working.

So to me, it looks like that the syntax used by Amanda
("olivier\\drivec"), that was working fine with Samba 3.x is not
workihg anymore with Samba 4.x

>
> But both of your calls say:
>
> "Client started (version 4.6.15)"
>
> So the picture is a bit fuzzy.
>
> You want to backup using the 4.x-smbclient and/or a share on a 4.x-server?

I want to use 4.x-smbclient to back-up an WinXP machine (if is was a
4.x-server, it would be a Unix system, it would be easy :)

Thank you,

Olivier


-- 


Re: Problem with smbclient for Samba 4

2018-07-02 Thread Stefan G. Weichinger
Am 2018-07-02 um 09:22 schrieb Olivier:
> "Stefan G. Weichinger"  writes:
>> Try the command yourself on the shell and use "-d3" or higher to see the
>> debug details.

See the difference ->

> resolve_lmhosts: Attempting lmhosts lookup for name <0x20>
> resolve_wins: WINS server resolution selected and no WINS servers listed.
> resolve_hosts: Attempting host lookup for name <0x20>

> resolve_lmhosts: Attempting lmhosts lookup for name olivier<0x20>
> resolve_wins: WINS server resolution selected and no WINS servers listed.
> resolve_hosts: Attempting host lookup for name olivier<0x20>

The failing command seems to look up an empty string ... (no "olivier"
in first call).

But both of your calls say:

"Client started (version 4.6.15)"

So the picture is a bit fuzzy.

You want to backup using the 4.x-smbclient and/or a share on a 4.x-server?



Re: Problem with smbclient for Samba 4

2018-07-02 Thread Olivier
"Stefan G. Weichinger"  writes:

> Am 2018-07-02 um 08:28 schrieb Olivier:
>> Hi,
>> 
>> Since I upgraded to Samba 4, I cannot backyp my Windows machine.
>> 
>> Poking around, the command used by Amanda sendsize is:
>> 
>> Mon Jul  2 00:14:39 2018: thd-0x805422c00: sendsize: Spawning
>> "/usr/bin/smbclient smbclient "olivier\\drivec" -d 0 -U backup -E -W
>> olivier -c "archive 1;recurse;du"" in pipeline
>> 
>> When I try the following command in Samba 3, it works, but not in Samba
>> 4:
>> 
>> smbclient "olivier\\drivec" -d 0 -U backup -E -W olivier -c "archive
>>  1;recurse;du"
>> 
>> If I use single back-slash or no double-quote in Samba 4, it works.
>> 
>> The error is NT_STATUS_UNSUCCESSFUL
>
> Try the command yourself on the shell and use "-d3" or higher to see the
> debug details.

$ smbclient "olivier\\drivec" -d 3 -U backup -E -W olivier -c "archive 
1;recurse;du"
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
added interface nfe0 ip=192.41.170.11 bcast=192.41.170.255 netmask=255.255.255.0
added interface nfe1 ip=10.41.170.11 bcast=10.41.170.255 netmask=255.255.255.0
Client started (version 4.6.15).
resolve_lmhosts: Attempting lmhosts lookup for name <0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name <0x20>
resolve_hosts: getaddrinfo failed for name  [hostname nor servname provided, or 
not known]
name_resolve_bcast: Attempting broadcast lookup for name <0x20>
Connection to  failed (Error NT_STATUS_UNSUCCESSFUL)

And the working one:

$ smbclient "\\olivier\drivec" -d 3 -U backup -E -W olivier -c "archive 
1;recurse;du"
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
added interface nfe0 ip=192.41.170.11 bcast=192.41.170.255 netmask=255.255.255.0
added interface nfe1 ip=10.41.170.11 bcast=10.41.170.255 netmask=255.255.255.0
Client started (version 4.6.15).
resolve_lmhosts: Attempting lmhosts lookup for name olivier<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name olivier<0x20>
Connecting to 192.41.170.57 at port 445

Thank ou,

Olivier

-- 


Re: Problem with smbclient for Samba 4

2018-07-02 Thread Stefan G. Weichinger
Am 2018-07-02 um 08:28 schrieb Olivier:
> Hi,
> 
> Since I upgraded to Samba 4, I cannot backyp my Windows machine.
> 
> Poking around, the command used by Amanda sendsize is:
> 
> Mon Jul  2 00:14:39 2018: thd-0x805422c00: sendsize: Spawning
> "/usr/bin/smbclient smbclient "olivier\\drivec" -d 0 -U backup -E -W
> olivier -c "archive 1;recurse;du"" in pipeline
> 
> When I try the following command in Samba 3, it works, but not in Samba
> 4:
> 
> smbclient "olivier\\drivec" -d 0 -U backup -E -W olivier -c "archive
>  1;recurse;du"
> 
> If I use single back-slash or no double-quote in Samba 4, it works.
> 
> The error is NT_STATUS_UNSUCCESSFUL

Try the command yourself on the shell and use "-d3" or higher to see the
debug details.




Problem with smbclient for Samba 4

2018-07-02 Thread Olivier
Hi,

Since I upgraded to Samba 4, I cannot backyp my Windows machine.

Poking around, the command used by Amanda sendsize is:

Mon Jul  2 00:14:39 2018: thd-0x805422c00: sendsize: Spawning
"/usr/bin/smbclient smbclient "olivier\\drivec" -d 0 -U backup -E -W
olivier -c "archive 1;recurse;du"" in pipeline

When I try the following command in Samba 3, it works, but not in Samba
4:

smbclient "olivier\\drivec" -d 0 -U backup -E -W olivier -c "archive
 1;recurse;du"

If I use single back-slash or no double-quote in Samba 4, it works.

The error is NT_STATUS_UNSUCCESSFUL

Is there a way to configure the smblient command without patching
Amanda?

Best regards,

Olivier
--