xref: /illumos-gate/usr/src/lib/krb5/kadm5/clnt/clnt_chpass_util.c (revision 4fceebdf03eeac0d7c58a4f70cc19b00a8c40a73)
1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 
3 /*
4  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
5  *
6  *	Openvision retains the copyright to derivative works of
7  *	this source code.  Do *NOT* create a derivative of this
8  *	source code before consulting with your legal department.
9  *	Do *NOT* integrate *ANY* of this source code into another
10  *	product before consulting with your legal department.
11  *
12  *	For further information, read the top-level Openvision
13  *	copyright which is contained in the top-level MIT Kerberos
14  *	copyright.
15  *
16  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
17  *
18  */
19 
20 
21 #include <kadm5/admin.h>
22 #include "client_internal.h"
23 
24 kadm5_ret_t kadm5_chpass_principal_util(void *server_handle,
25 					krb5_principal princ,
26 					char *new_pw,
27 					char **ret_pw,
28 					char *msg_ret,
29 					unsigned int msg_len)
30 {
31   kadm5_server_handle_t handle = server_handle;
32 
33   CHECK_HANDLE(server_handle);
34   return _kadm5_chpass_principal_util(handle, handle->lhandle, princ,
35 				      new_pw, ret_pw, msg_ret, msg_len);
36 }
37