[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No Subject



Merry Christmas, for those who observe, and Happy (Gregorian) New Year

--buck

--- heimdal-0.6/lib/kadm5/chpass_s.c.orig	2001-01-29 20:24:28.000000000 -0500
+++ heimdal-0.6/lib/kadm5/chpass_s.c	2003-12-29 15:18:59.000000000 -0500
@@ -53,7 +53,7 @@
     if(ret)
 	return ret;
     ret = context->db->fetch(context->context, context->db, 
-			     0, &ent);
+			     HDB_F_DECRYPT, &ent);
     if(ret == HDB_ERR_NOENTRY)
 	goto out;
 
@@ -74,7 +74,10 @@
     _kadm5_free_keys (server_handle, num_keys, keys);
 
     if (cmp == 0)
+    {
+	ret = KADM5_PASS_REUSE;
 	goto out2;
+    }
 
     ret = _kadm5_set_modifier(context, &ent);
     if(ret)