According the patch guide, the patch has to be installed, then only build samba from source. However, when I apply the patch, this is the error I receive :
I just did some research on how patches are applied in Debian, and they suggest downloading the main package; in this case it is "Samba".
Then cd into the downloaded directory, and run