svn commit: lorikeet r501 - in trunk/heimdal/lib/kadm5: .

abartlet at samba.org abartlet at samba.org
Thu Dec 1 21:07:38 GMT 2005


Author: abartlet
Date: 2005-12-01 21:07:37 +0000 (Thu, 01 Dec 2005)
New Revision: 501

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=501

Log:
Make the implementation match the comment: change password only makes
sense on client-style names.  (Not that Samba4 uses any of this code
anyway...)

Andrew Bartlett

Modified:
   trunk/heimdal/lib/kadm5/chpass_s.c


Changeset:
Modified: trunk/heimdal/lib/kadm5/chpass_s.c
===================================================================
--- trunk/heimdal/lib/kadm5/chpass_s.c	2005-11-29 11:07:21 UTC (rev 500)
+++ trunk/heimdal/lib/kadm5/chpass_s.c	2005-12-01 21:07:37 UTC (rev 501)
@@ -56,7 +56,7 @@
      * 'change password' on client style names */
     ret = context->db->hdb_fetch(context->context, context->db, 
 				 HDB_F_DECRYPT, 
-				 princ, HDB_ENT_TYPE_ANY, 
+				 princ, HDB_ENT_TYPE_CLIENT, 
 				 &ent);
     if(ret == HDB_ERR_NOENTRY)
 	goto out;
@@ -154,7 +154,7 @@
     if(ret)
 	return ret;
     ret = context->db->hdb_fetch(context->context, context->db, 0, 
-				 princ, HDB_ENT_TYPE_ANY, &ent);
+				 princ, HDB_ENT_TYPE_CLIENT, &ent);
     if(ret == HDB_ERR_NOENTRY)
 	goto out;
     ret = _kadm5_set_keys2(context, &ent, n_key_data, key_data);



More information about the samba-cvs mailing list