1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-09 01:44:21 +03:00

mit-kdb: Return 0 in kdb_samba_db_put_principal()

This allows the kadmin server to assume an update of a db_entry has
succeeded (while in fact the update_pwd call did the update already).

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Reviewed-by: Sumit Bose <sbose@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Günther Deschner
2014-08-06 15:17:47 +02:00
committed by Andrew Bartlett
parent 5a6819dbee
commit b76cf191d9

View File

@@ -299,8 +299,9 @@ krb5_error_code kdb_samba_db_put_principal(krb5_context context,
{ {
/* NOTE: deferred, samba does not allow the KDC to store /* NOTE: deferred, samba does not allow the KDC to store
* principals for now */ * principals for now. We should not return KRB5_KDB_DB_INUSE as this
return KRB5_KDB_DB_INUSE; * would result in confusing error messages after password changes. */
return 0;
} }
krb5_error_code kdb_samba_db_delete_principal(krb5_context context, krb5_error_code kdb_samba_db_delete_principal(krb5_context context,