misc.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source code before consulting with your legal department.
* Do *NOT* integrate *ANY* of this source code into another
* product before consulting with your legal department.
*
* For further information, read the top-level Openvision
* copyright which is contained in the top-level MIT Kerberos
* copyright.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
*/
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
*/
#if !defined(lint) && !defined(__CODECENTER__)
"marc Exp $";
#endif
#include <kadm5/server_internal.h>
#include "misc.h"
/*
* Function: chpass_principal_wrapper
*
* Purpose: wrapper to kadm5_chpass_principal that checks to see if
* pw_min_life has been reached. if not it returns an error.
* otherwise it calls kadm5_chpass_principal
*
* Arguments:
* principal (input) krb5_principals whose password we are
* changing
* passoword (input) passowrd we are going to change to.
* <return value> 0 on sucsess error code on failure.
*
* Requires:
* kadm5_init to have been run.
*
* Effects:
* calls kadm5_chpass_principal which changes the kdb and the
* the admin db.
*
*/
{
return (ret);
&princ,
return (ret);
&princ);
return (ret);
}
&princ);
return (KADM5_PASS_TOOSOON);
}
&princ);
return (ret);
}
}
return (ret);
}
/*
* Function: randkey_principal_wrapper
*
* Purpose: wrapper to kadm5_randkey_principal which checks the
* passwords min. life.
*
* Arguments:
* principal (input) krb5_principal whose password we are
* changing
* key (output) new random key
* < return value > 0, error code on error.
*
* Requires:
* kadm5_init needs to be run
*
* Effects:
* calls kadm5_randkey_principal
*
*/
{
return (ret);
return (ret);
&princ);
return (ret);
}
&princ);
return (KADM5_PASS_TOOSOON);
}
&princ);
return (ret);
}
}
return (ret);
return (kadm5_randkey_principal(server_handle,
}