-.\" Copyright (c) 1997, 2000 - 2003 Kungliga Tekniska Högskolan
+.\" Copyright (c) 1997, 2000 - 2005 Kungliga Tekniska Högskolan
.\" (Royal Institute of Technology, Stockholm, Sweden).
.\" All rights reserved.
.\"
.\"
.\" $Id$
.\"
-.Dd May 12, 2003
+.Dd January 5, 2005
.Dt KPASSWD 1
.Os HEIMDAL
.Sh NAME
.Sh SYNOPSIS
.Nm
.Op Fl -admin-principal= Ns Ar principal
+.Oo Fl c Ar cache \*(Ba Xo
+.Fl -cache= Ns Ar cache
+.Xc
+.Oc
.Op Ar principal ...
.Sh DESCRIPTION
.Nm
then the administrator principal will be used.
If the administrator isn't specified on the command prompt, the
principal of the default credential cache will be used.
+.Pp
+If a credential cache is given, the
+.Fl -admin-principal
+flag is ignored and use the default name of the credential cache is
+used instead.
.Sh DIAGNOSTICS
If the password quality check fails or some other error occurs, an
explanation is printed.