2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright (C) 2002, 2003, 2008 by the Massachusetts Institute of Technology. 2N/A * All rights reserved. 2N/A * Export of this software from the United States of America may 2N/A * require a specific license from the United States Government. 2N/A * It is the responsibility of any person or organization contemplating 2N/A * export to obtain such a license before exporting. 2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 2N/A * distribute this software and its documentation for any purpose and 2N/A * without fee is hereby granted, provided that the above copyright 2N/A * notice appear in all copies and that both that copyright notice and 2N/A * this permission notice appear in supporting documentation, and that 2N/A * the name of M.I.T. not be used in advertising or publicity pertaining 2N/A * to distribution of the software without specific, written prior 2N/A * permission. Furthermore if you modify this software you must label 2N/A * your software as modified software and not distribute it in such a 2N/A * fashion that it might be confused with the original M.I.T. software. 2N/A * M.I.T. makes no representations about the suitability of 2N/A * this software for any purpose. It is provided "as is" without express 2N/A * or implied warranty. 2N/A * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A/* Solaris Kerberos */ 2N/A /* if there's already a key of the correct etype, we're done. 2N/A if the etype is wrong, free the existing key, and make 2N/A 0,
/* don't have vno available */ 2N/A /* again, krb5's memory management is lame... */ 2N/A /* Solaris Kerberos */ 2N/A * If "client" was constructed from krb5_sname_to_princ() it may 2N/A * have a referral realm. This happens when there is no applicable 2N/A * domain-to-realm mapping in the Kerberos configuration file. 2N/A * If that is the case then the realm of the first principal found 2N/A * in the keytab which matches the client can be used for the client's 2N/A /* Try to set a useful error message */ 2N/A /* first try: get the requested tkt from any kdc */ 2N/A /* check for success */ 2N/A /* If all the kdc's are unavailable fail */ 2N/A /* if the reply did not come from the master kdc, try again with 2N/A /* Solaris Kerberos - save the original error message string */ 2N/A /* if the master is unreachable, return the error from the 2N/A slave we were able to contact */ 2N/A /* Solaris Kerberos - restore the original error message string */ 2N/A /* at this point, we have a response from the master. Since we don't 2N/A do any prompting or changing for keytabs, that's it. */ 2N/A /* Solaris Kerberos */ 2N/A /* store it in the ccache! */ 2N/A#
endif /* LEAN_CLIENT */