Passing name & password info into an SMB for printing?

DrClarke

Registered
Howdy. I'm still fairly new to the Mac world, but I've been working fairly exclusively with them for the past six weeks as we've started deploying Macs on our floor for our students.

My question is pretty specific, but I'm having trouble googling/searching because I'm unsure of how to ask it in the proper Mac terms.

I'm setting the iMacs we have to print to a specific printer on our Windows 2003 server. I'm utilizing:

smb://username:password@xxx.xxx.xxx.xxx/printer_name

If I 'pre-populate' username:password with something real and hardcoded, I get the expected results I'm looking for. I don't to hardcode it though.

What I'm looking to try and do is find the values that are utilized during the login process at the Mac OS X login screen and have them automatically pass to that line. So, for example, in the Windows world, if I built something similar (and this is purely an example) I could do something like:

smb://username$:password$@xxx.xxx.xxx.xxx/printer_name

I know that username$:password$ is not proper syntax, but it's the only way I can explain it.

So, is it possible to pass the login:password credentials/authentication into such a line for settting up printers?

Thanks!
 
Just leave out the password, then, and save it into the keychain when you're first prompted for it. That should work.

smb://username@xxx.xxx.xxx.xxx/printer_name
 
Back
Top