skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_sendauth  Send authenticated message krb5_sendauth Send authenticated message
go to next page: krb5_set_default_tgs_enctypes  Set default TGS encryption typeskrb5_set_default_tgs_enctypes Set default TGS encryption types
end of book navigation links

krb5_set_default_realm -- Sets the default realm 



C Prototype 

krb5_error_code krb5_set_default_realm(
         krb5_context       context,
         char               *realm );

Arguments 

context
(input)
 The context structure.
realm (output) The default realm to be set. If realm is NULL, then the operating system default value will used.

Description 

This routine sets the default realm to be used if no user-specified realm is available (for example, to interpret a user-typed principal name with the realm omitted for convenience).

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_sendauth  Send authenticated message krb5_sendauth Send authenticated message
go to next page: krb5_set_default_tgs_enctypes  Set default TGS encryption typeskrb5_set_default_tgs_enctypes Set default TGS encryption types