Contribute  :  Advanced Search  :  Directory  :  Forum  :  FAQ's  :  My Downloads  :  Links  :  Polls  
AFP548 Changing the world one server at a time.
Welcome to AFP548
Tuesday, February 09 2010 @ 09:20 am CST
   

Loginwindow Banner

TipsLittle known, but highly useful.

If you have a need to put danger text into your loginwindow you have a few options. The easy one is edit the com.apple.loginwindow.plist file and put your banner text in there. The slightly harder, but much sexier version is to use the bannersample project that's part of the 10.4 Developer Tools.

On a machine with the dev tools installed on navigate to /Developer/Examples/Security/bannersample and open up the bannersample.xcodeproj file in Xcode. Read the readme file and start poking around with Interface Builder on the included .nib file.

Using this project you'll be able to have a sheet that comes down in front of the login window and is able to display graphics, text or even WebKit views if you want. Go crazy and have fun.

Story Options

Advertising

Loginwindow Banner | 9 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Loginwindow Banner
Authored by: woodgie on Friday, August 10 2007 @ 03:40 pm CDT
Well, isn't that nice.

Of course there's going to have to be tweeking and testing, but that is fantastic. It's far more specific than the standard LoginWindowText as you can't continue until you've clicked.

Good find. Thank you very much.

---
#include

Keyboard entry?
Authored by: jldera on Saturday, August 11 2007 @ 10:11 pm CDT
I've noticed that when using the bannersample method, it's possible to login anyway without necessarily clicking in agreement. What would it take to modify the bannersample project so that it receives full control of the keyboard to prevent someone just typing in their password and hitting enter?
Loginwindow Banner
Authored by: tony on Wednesday, August 15 2007 @ 05:29 am CDT
This sounds really cool.
Can someone post a screenshot of an example?
Loginwindow Banner
Authored by: Anonymous on Thursday, August 16 2007 @ 06:48 pm CDT
when I tried this on an Intel iMac running 10.4.10, it failed to boot. I followed the readme file very carefully, but after reboot I would get dropped into console mode. I compiled the banner sample, copied it to the correct directory, and edited the /etc/authorization file three times and each time the boot process would fail. Any ideas?
Loginwindow Banner
Authored by: ssevenup on Thursday, November 01 2007 @ 06:24 pm CDT
I tried this on Leopard because com.apple.loginwindow.plist banner text is ignored. It did not do anything and nothing appears in Console. I saw the banner once and only once after sleeping the laptop. It has never appeared since... weird

--MM