cupsaddsmb "Connection to failed"
"Connection to failed"
This message is from executing the command:
It is telling you that it failed to connect to your Samba server.
Use the -H <Your_Samba> option to specify the server. I was getting this error because for some reason it was not by default connecting to the right place.
Also, make sure you are providing a username and password which matches an account in smbpasswd.