Hi everyone,
I am trying to create a login hook using applescript. It might be more practical to run it as a login item. I need my script to do two things. The first is to mount an smb volume on the user's desktop after they authenticate so they have access to that. I have tested that part of the script, and it works fine. This is how that part looks: on run
try mount volume "smb://server-employee/Home Directories" end try end run
It takes the username the user logs in with, and asks for a password to authenticate.
The next part of that is to take the user name and password that they just used, and authenticate to the windows print server. The server is called server-print, and I need to authenticate to 4 different queues. The file that contains the authentication for the local user lives in /private/etc/cups and is called "printers.conf" This is what part of it looks like:
<DefaultPrinter ArtandDes1> Info ArtandDes1 Location UCC DeviceURI smb://username:password@UCC/SERVER-PRINT/ArtandDes1 State Idle Accepting Yes JobSheets
Does anybody have an idea for how to script this so when a user logs enters the information in the above script, it would take their user name and password and plunk them in (red and green for this example)so it's their authentication that is used when they print? Does anyone know where the information for printers would be stored for mcx clients?
Any help would be greatly appreciated.
Thank you,
Paul
The |