1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00
Stefan Metzmacher 2d98800219 heimdal:kdc: add support for HDB_ERR_WRONG_REALM
A backend can return this if asked with HDB_F_GET_CLIENT|HDB_F_FOR_AS_REQ
for a KRB5_NT_ENTERPRISE_PRINCIPAL record or for HDB_F_GET_SERVER | HDB_F_FOR_TGS_REQ.

entry_ex->entry.principal->realm needs to return the real realm of the principal
(or at least a the realm of the next cross-realm trust hop).

This is needed to route enterprise principals between AD domain trusts.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-07-08 18:38:20 +02:00

33 lines
1.2 KiB
Plaintext

#
# Error messages for the hdb library
#
# This might look like a com_err file, but is not
#
id "$Id$"
error_table hdb
prefix HDB_ERR
index 1
#error_code INUSE, "Entry already exists in database"
error_code UK_SERROR, "Database store error"
error_code UK_RERROR, "Database read error"
error_code NOENTRY, "No such entry in the database"
error_code DB_INUSE, "Database is locked or in use--try again later"
error_code DB_CHANGED, "Database was modified during read"
error_code RECURSIVELOCK, "Attempt to lock database twice"
error_code NOTLOCKED, "Attempt to unlock database when not locked"
error_code BADLOCKMODE, "Invalid kdb lock mode"
error_code CANT_LOCK_DB, "Insufficient access to lock database"
error_code EXISTS, "Entry already exists in database"
error_code BADVERSION, "Wrong database version"
error_code NO_MKEY, "No correct master key"
error_code MANDATORY_OPTION, "Entry contains unknown mandatory extension"
error_code NO_WRITE_SUPPORT, "HDB backend doesn't contain write support"
error_code NOT_FOUND_HERE, "The secret for this entry is not replicated to this database"
error_code MISUSE, "Incorrect use of the API"
error_code WRONG_REALM, "The principal exists in another realm."
end