I have a username which has an @ in it and I want to establish a smb share connection (host OS: MacOS). Lets say I have: user: blabla@bla pass: passw0rd
String url = distribution_path;
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(null, user, pass);
SmbFile dir = new SmbFile(url, auth);
for (SmbFile f : dir.listFiles())
{
System.out.println(f.getName());
}