I get an error in OSX while trying to log on to a server with both of these methods:
mount volume "TheVolume" on server "TheServer" as user name "user" with password "password" mount volume "afp://user:password@theserver/thevolume/"
The error is “The Microsoft user authentication method encountered an error. The server does not recognize the user name.”
When I say OK, it gives me the normal login dialog, with the user name already entered. I enter the password and the server mounts fine. This may be more of a server/admin question than a scripting question, but maybe there’s a solution?