stopping the login screen from popping up at all times

Alexandra Ellwood lxs at MIT.EDU
Wed Sep 24 15:02:29 EDT 2003

>I am using Mac OS X 10.2.6.  When calling gss apis to get service 
>tickets. If the TGT has expired
>or IP address has changed etc., the login dialog automatically pops 
>up. Is there a way
>to programmatically make sure only error codes are returned and
>disable the user interface from popping up at all times?

Not in Jaguar.  You can call KLCacheHasValidTickets() to see if the 
dialog will be displayed before calling into GSSAPI (and then not 
call into it if there are no tickets), but otherwise no.

In Panther, you can set the environment variable 
KERBEROSLOGIN_NEVER_PROMPT in your application.  There is also 
private API __KLSetAutomaticPrompting() in KerberosLoginPrivate.h 
which is currently available only to OS components.

Why do you want to prevent automatic display of the dialog?

Alexandra Ellwood                                               <lxs at>
MIT Information Systems                     

More information about the krbdev mailing list