xref: /onnv-gate/usr/src/lib/krb5/kadm5/clnt/clnt_chpass_util.c (revision 2881:ea6360e7e1c5)
10Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
20Sstevel@tonic-gate 
30Sstevel@tonic-gate /*
40Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
50Sstevel@tonic-gate  *
60Sstevel@tonic-gate  *	Openvision retains the copyright to derivative works of
70Sstevel@tonic-gate  *	this source code.  Do *NOT* create a derivative of this
80Sstevel@tonic-gate  *	source code before consulting with your legal department.
90Sstevel@tonic-gate  *	Do *NOT* integrate *ANY* of this source code into another
100Sstevel@tonic-gate  *	product before consulting with your legal department.
110Sstevel@tonic-gate  *
120Sstevel@tonic-gate  *	For further information, read the top-level Openvision
130Sstevel@tonic-gate  *	copyright which is contained in the top-level MIT Kerberos
140Sstevel@tonic-gate  *	copyright.
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
170Sstevel@tonic-gate  *
180Sstevel@tonic-gate  */
190Sstevel@tonic-gate 
200Sstevel@tonic-gate 
210Sstevel@tonic-gate #include <kadm5/admin.h>
220Sstevel@tonic-gate #include "client_internal.h"
230Sstevel@tonic-gate 
kadm5_chpass_principal_util(void * server_handle,krb5_principal princ,char * new_pw,char ** ret_pw,char * msg_ret,unsigned int msg_len)240Sstevel@tonic-gate kadm5_ret_t kadm5_chpass_principal_util(void *server_handle,
250Sstevel@tonic-gate 					krb5_principal princ,
260Sstevel@tonic-gate 					char *new_pw,
270Sstevel@tonic-gate 					char **ret_pw,
280Sstevel@tonic-gate 					char *msg_ret,
29*2881Smp153739 					unsigned int msg_len)
300Sstevel@tonic-gate {
310Sstevel@tonic-gate   kadm5_server_handle_t handle = server_handle;
320Sstevel@tonic-gate 
330Sstevel@tonic-gate   CHECK_HANDLE(server_handle);
340Sstevel@tonic-gate   return _kadm5_chpass_principal_util(handle, handle->lhandle, princ,
350Sstevel@tonic-gate 				      new_pw, ret_pw, msg_ret, msg_len);
360Sstevel@tonic-gate }
37