2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
8 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
10 * Openvision retains the copyright to derivative works of
11 * this source code. Do *NOT* create a derivative of this
12 * source code before consulting with your legal department.
13 * Do *NOT* integrate *ANY* of this source code into another
14 * product before consulting with your legal department.
16 * For further information, read the top-level Openvision
17 * copyright which is contained in the top-level MIT Kerberos
20 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
26 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
28 * $Id: clnt_privs.c 18130 2006-06-14 21:42:02Z raeburn $
33 static char *rcsid
= "$Header$";
35 #include <rpc/rpc.h> /* SUNWresync121 XXX */
36 #include <kadm5/admin.h>
37 #include <kadm5/kadm_rpc.h>
38 #include "client_internal.h"
40 kadm5_ret_t
kadm5_get_privs(void *server_handle
, long *privs
)
43 kadm5_server_handle_t handle
= server_handle
;
45 r
= get_privs_2(&handle
->api_version
, handle
->clnt
);
47 return KADM5_RPC_ERROR
;
48 else if (r
->code
== KADM5_OK
)