krb5_set_default_realm()--Set Default Realm for Local System


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_set_default_realm(  
     krb5_context     context,  
     char *       realm); 
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_set_default_realm() function sets the default realm for the specified Kerberos context. This overrides the default realm set by the Kerberos configuration file. The realm set by krb5_set_default_realm() applies only to the Kerberos context specified by the context parameter.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

realm  (Input)
The name for the default realm.

Return Value

If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.


Error Messages

Message ID Error Message Text
CPE3418 E Possible APAR condition or hardware failure.



API introduced: V5R1

[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]