[Samba] Online Backup failed....
Rowland Penny
rpenny at samba.org
Mon Nov 20 19:26:35 UTC 2023
On Mon, 20 Nov 2023 19:04:18 +0100
<samba at laurenz.ws> wrote:
> Hi,
>
> here are the versions:
>
> dc01:
> Raspberry Pi 3 Model B Rev 1.2
> root at dc01:~# cat /etc/debian_version
> 11.8
> root at dc01:~# samba -V
> Version 4.17.12-Debian
> root at dc01:~# uname -a
> Linux dc01 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023
> aarch64 GNU/Linux
>
> Dc02:
> Raspberry Pi 3 Model B Rev 1.2
> root at dc02:~# cat /etc/debian_version
> 11.8
> root at dc02:~# samba -V
> Version 4.17.12-Debian
> root at dc02:~# uname -a
> Linux dc02 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023
> aarch64 GNU/Linux
>
>
> Client:
> Iob-master:
> Raspberry Pi 4 Model B Rev 1.5
>
> root at iob-master:~# cat /etc/debian_version
> 11.8
> root at iob-master:~# samba -V
> Version 4.17.12-Debian
> root at iob-master:~# uname -a
> Linux iob-master 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST
> 2023 aarch64 GNU/Linux
>
OK, I use kerberos in my script, so I tried your line on my client and
fails but not in the same way:
SPNEGO login failed: The attempted logon is invalid. This is either due to a bad username or authentication information.
ERROR(runtime): uncaught exception - (3221225581, 'The attempted logon is invalid. This is either due to a bad username or authentication information.')
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 230, in _run
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 279, in run
smb_conn = smb_sysvol_conn(server, lp, creds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 121, in smb_sysvol_conn
conn = libsmb.Conn(server, "sysvol", lp=s3_lp, creds=creds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To get it to work, I replaced '--server=rpidc1' with
'--server=rpidc1.samdom.example.com', perhaps using the servers FQDN
will work for you.
Rowland
More information about the samba
mailing list