[PATCH]: Printing with kerberos ticket against AD on OSX 10.5
Hi 'yall,
I got a bit frustrated with not being able to print in OSX 10.5 using Kerberos ticket.
Since the CUPS code Apple is using is not fully opensource, fixing the actual problem
is not very easy. So I hacked the user_kprintd to work in OSX 10.5. (Tested w/ OSX 10.5.4)
Get the shitz here:
[url]http://love.hole.fi/atte/kerbprint-osx105.tar.gz[/url]
Don't look at the code at the same time when drinking something, might ruin your keyboard
and display... feel free to rewrite it. And don't post it to thedailywtf.com either, k plz thx ;-)
EDIT: List of possible improvements:
- Validate input; $2 is an existing user, stdin is actual PostScript, $DEVICE_URI exists
- Bail out if something doesn't work out instead of $something, like segfaulting.
- Check variable sizes before shoving stuff in 'em (now they're just "big enough" )
- Sanity checking to install script
- Install script to remove "RequiredAuth" from printers.conf if exists
- Conditionally install either as 'smb' or 'ksmb' and mungle printers.conf where needed
I won't be doing these as I see current version "good enough", hopefully Apple will some day get their act together and CUPS working as it really should.