1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

Use the trust password version as kvno for trusts in Kerberos.

This commit is contained in:
Andrew Bartlett 2008-10-01 16:00:33 -07:00
parent 320d402180
commit 912209ac84

View File

@ -717,6 +717,7 @@ static krb5_error_code LDB_trust_message2entry(krb5_context context, HDB *db,
enum ndr_err_code ndr_err;
int i, ret, trust_direction_flags;
uint32_t kvno;
private = talloc(mem_ctx, struct hdb_ldb_private);
if (!private) {
@ -764,6 +765,12 @@ static krb5_error_code LDB_trust_message2entry(krb5_context context, HDB *db,
goto out;
}
for (i=0; i < password_blob.count; i++) {
if (password_blob.current->array[i].AuthType == TRUST_AUTH_TYPE_VERSION) {
entry_ex->entry.kvno = password_blob.current->array[i].AuthInfo.version.version;
}
}
for (i=0; i < password_blob.count; i++) {
if (password_blob.current->array[i].AuthType == TRUST_AUTH_TYPE_CLEAR) {
password_utf16 = data_blob_const(password_blob.current->array[i].AuthInfo.clear.password,