We weren't setting the kerberos metadata when modifying userPassword
for a kerberos enabled record.

Fixes #949

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
>From dbcb72a091dae59adbb23f9df176fae4daef9cea Mon Sep 17 00:00:00 2001
From: Simo Sorce <sso...@redhat.com>
Date: Fri, 11 Feb 2011 15:48:20 -0500
Subject: [PATCH] Correctly report if this is a krb related password operation

Fixes: https://fedorahosted.org/freeipa/ticket/949
---
 .../ipa-pwd-extop/ipapwd_prepost.c                 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c
index 60a8ca3be62333be4f5ec40c4d25a9b24c351e71..fc0a68418b22f033e4e13cbe175d6a9a8b5aafb0 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c
@@ -659,6 +659,7 @@ static int ipapwd_pre_mod(Slapi_PBlock *pb)
         goto done;
     }
 
+    pwdop->is_krb = is_krb;
     pwdop->pwd_op = IPAPWD_OP_MOD;
     pwdop->pwdata.password = slapi_ch_strdup(unhashedpw);
     pwdop->pwdata.changetype = IPA_CHANGETYPE_NORMAL;
-- 
1.7.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to