The krb5_kt_add_entry() function adds a new entry to a key
table. No checking is done for duplicate entries. The key table type must
support write operations.
Authorities
Object Referred to
Data Authority Required
All directories in the path name
*X
Keytab file
*RW
Parameters
context (Input)
The Kerberos context.
ktid (Input)
The key table handle.
entry (Input)
The entry to be added to the key table.
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.
Usage Notes
It is not necessary to add multiple entries to the key table for keys that
use the same key generation algorithm. For example, encryption types
ENCTYPE_DES_CBC_CRC and ENCTYPE_DES_CBC_MD5
both generate a 56-bit DES key using the same algorithm. It is necessary to
store only a single entry in the key table specifying one of these encryption
types. The krb5_kt_get_entry() routine then returns this key
table entry when either of these encryption types is specified.