Re: [Fed-Talk] Login Window Banner Text -> AuthPlugin Banner
Re: [Fed-Talk] Login Window Banner Text -> AuthPlugin Banner
- Subject: Re: [Fed-Talk] Login Window Banner Text -> AuthPlugin Banner
- From: Michael <email@hidden>
- Date: Mon, 10 Dec 2007 17:45:37 -0500
You can install and use Xcode 2.5 on OS X 10.5 without uninstalling 3.0.
I've had to drop back to 2.5 since lots of things I have reference
material for make sense in 2.5 but are beyond me in 3.0, that includes
lots of the introductory material for Interface Builder in 3.0
Michael
ps. I've been a bit busy so I haven't tried this yet.
On Dec 10, 2007, at 4:08 PM, Simon, Gary wrote:
I am having the same problem that Brian ran into. I can get the
plugin to work with 10.5 (by applying the patch Shawn provided), but
I can't figure out how to change the text of the drop down panel/
sheet. Xcode 3.0 is quite a bit different than version 2.5. There
has to be a way to point the panel to the text you want displayed,
but as yet I haven't been able to figure it out.
Anybody have any luck with this yet on 10.5??
Gary
On 12/7/07 11:41 AM, "Wallace, Brian S." <email@hidden> wrote:
Shawn:
I'm having problems editing the text in the Panel/Scroll View of
bannersample. If I double-click on the text, I don't get a cursor
for editing. Double-clicking on the text in Xcode 2.5 in Tiger lets
me edit the text. Xcode 3.0 in Leopard does not. Any clues?
Thanks,
Brian Wallace
From: fed-talk-bounces+wallacebs=email@hidden [mailto:fed-talk-bounces+wallacebs=email@hidden
] On Behalf Of Shawn A. Geddis
Sent: Friday, December 07, 2007 12:45 PM
To: Simon, Gary
Cc: Fed Talk
Subject: Re: [Fed-Talk] Login Window Banner Text -> AuthPlugin Banner
Gary,
It is important to realize that the Auth Plugin must be compiled for
each version 10.4 and 10.5. If you are trying to run the same one
compiled for 10.4 on a 10.5 machine, you will need to recompile.
A common requirement in both government and educational environments
is to display a banner before login. Although there are hacks for
doing this, a better way is to use an authorization plugin. There is
sample code in:
/Developer/Examples/Security/bannersample
...that will display a semi-transparent image in front of the login
panel, and requires a user to accept a license before proceeding.
This is designed to be quickly customizable; change the logos and
warning text in the nib, compile and go.
A very late change to Leopard caused the sample code that ships with
Leopard to fail. This will be corrected in a future developer tools
release, but as this is sample code that you have to compile anyway,
the fix is easy.
For those wanting to play with the Xcode Project prior to my making
something available, be aware of the above issue and make the
changes noted below in the bannersample/BannerController.m file:
__________________________________________________________________________
--- ./BannerController.m
+++ ./bannersample/BannerController.m
@@ -94,9 +94,13 @@
{
if ([targetWindow
respondsToSelector:@selector(setCanBecomeVisibleWithoutLogin:)])
{
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+ [targetWindow
setCanBecomeVisibleWithoutLogin:YES];
+#else
NSNumber *tmpYes = [NSNumber
numberWithBool:YES];
SEL selector =
@selector(setCanBecomeVisibleWithoutLogin:);
[targetWindow performSelector:selector
withObject:tmpYes afterDelay:0.0];
+#endif
}
}
__________________________________________________________________________
If you do not want to the above or can wait, I will have something
available for folks.
- Shawn
_____________________________________________________
Shawn Geddis ? Security Consulting Engineer ? Apple Enterprise
On Dec 7, 2007, at 10:41 AM, Simon, Gary wrote:
Shawn,
I have not been able to get Paul's version to work with 10.5. Is
there some other step we need to do to make it work in Leopard? I
added the entry into /etc/authorization just before the smartcard
sniffer in system.login.console, but when I "switch user" or log out
it just comes back to the login window.
I have gotten it to work in Tiger just fine. Any ideas?
Gary
On 12/7/07 8:33 AM, "Shawn A. Geddis" <email@hidden> wrote:
On Dec 7, 2007, at 8:27 AM, Rich Trouton wrote:
Shawn,
Is there a place where there's a good write-up (or even better, a
finished application) on how to use AuthPlugin for displaying the
login banner on 10.5? A lot of the folks who need to implement this
will not necessarily be up to the programming task of rolling their
own login banner solution.
Thanks,
Rich
Rich,
Well understood and that is why I plan to make a modified version of
the Banner Sample matching Government Notice requirements available
in compiled version for easy deployment for those who need it.
if folks wanted yet another source for this Banner Sample, you could
always look to Paul Suh's work. Paul posted a notice to the list
back on Sept 25, 2007:
From: Paul Suh <email@hidden>
Date: September 25, 2007 1:36:22 AM EDT
To: email@hidden
Subject: [Fed-Talk] Policy Banner 1.0.1
Folks,
I've been lurking on this list for a while now. A short announcement
for a free software package that a lot of you might find useful. I
tweaked the banner sample that was referred to in the afp548.com
article a few weeks ago, and turned it into more polished and usable
form. You can pick it up at <http://ps-enable.com/software/PolicyBanner1.0.1.dmg
><http://ps-enable.com/software/PolicyBanner1.0.1.dmg>. Free, LGPL
license.
--Paul
Paul Suh http://www.ps-enable.com/
email@hidden (240) 672-4212
- Shawn
_____________________________________________________
Shawn Geddis ? Security Consulting Engineer ? Apple Enterprise
Michael
---
"Producing a system from a specification is like walking on water--
it's easier if it's frozen."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Fed-talk mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden