2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2N/A
2N/A/*
2N/A * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A/*
2N/A * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
2N/A *
2N/A * Openvision retains the copyright to derivative works of
2N/A * this source code. Do *NOT* create a derivative of this
2N/A * source code before consulting with your legal department.
2N/A * Do *NOT* integrate *ANY* of this source code into another
2N/A * product before consulting with your legal department.
2N/A *
2N/A * For further information, read the top-level Openvision
2N/A * copyright which is contained in the top-level MIT Kerberos
2N/A * copyright.
2N/A *
2N/A * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
2N/A *
2N/A */
2N/A
2N/A#include <kadm5/admin.h>
2N/A#include "server_internal.h"
2N/A
2N/Akadm5_ret_t kadm5_chpass_principal_util(void *server_handle,
2N/A krb5_principal princ,
2N/A char *new_pw,
2N/A char **ret_pw,
2N/A char *msg_ret,
2N/A unsigned int msg_len)
2N/A{
2N/A kadm5_server_handle_t handle = server_handle;
2N/A
2N/A CHECK_HANDLE(server_handle);
2N/A return _kadm5_chpass_principal_util(handle, handle->lhandle, princ,
2N/A new_pw, ret_pw, msg_ret, msg_len);
2N/A}
2N/A
2N/A/* Solaris Kerberos */
2N/Akadm5_ret_t
2N/Akadm5_chpass_principal_v2(void *server_handle,
2N/A krb5_principal princ,
2N/A char *password,
2N/A kadm5_ret_t *srvr_rsp_code,
2N/A krb5_data *srvr_msg)
2N/A{
2N/A /* This method of password changing is not supported by the server */
2N/A *srvr_rsp_code = ENOTSUP;
2N/A return (KADM5_FAILURE);
2N/A}
2N/A
2N/A/* Solaris Kerberos */
2N/Akrb5_chgpwd_prot
2N/A_kadm5_get_kpasswd_protocol(void *handle)
2N/A{
2N/A /*
2N/A * This has to be here because the higher level doesnt know
2N/A * the details of the handle structure
2N/A */
2N/A kadm5_server_handle_t srvrhdl = (kadm5_server_handle_t)handle;
2N/A
2N/A return (srvrhdl->params.kpasswd_protocol);
2N/A}