next up previous contents
Next: Locking Up: Principal and Policy Databases Previous: Principal and Policy Databases   Contents

Error codes

The database routines use com_err for error codes. The error code table name is ``adb'' and the offsets are the same as the order presented here. The error table header file is $<$kadm5/adb_err.h$>$. Callers of the OSA routines should first call init_adb_err_tbl() to initialize the database table.

OSA_ADB_OK
Operation successful.
OSA_ADB_FAILURE
General failure.
OSA_ADB_DUP
Operation would create a duplicate database entry.
OSA_ADB_NOENT
Named entry not in database.
OSA_ADB_BAD_PRINC
The krb5_principal structure is invalid.
OSA_ADB_BAD_POLICY
The specified policy name is invalid.
OSA_ADB_XDR_FAILURE
The principal or policy structure cannot be encoded for storage.
OSA_ADB_BADLOCKMODE
Bad lock mode specified.
OSA_ADB_CANTLOCK_DB
Cannot lock database, presumably because it is already locked.
OSA_ADB_NOTLOCKED
Internal error, database not locked when unlock is called.
OSA_ADB_NOLOCKFILE
KADM5 administration database lock file missing.

Database functions can also return system errors. Unless otherwise specified, database functions return OSA_ADB_OK.



Autobuild 2006-06-16