2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A/*
2N/A * include/krb5/adm_defs.h
2N/A *
2N/A * Copyright 1990 by the Massachusetts Institute of Technology.
2N/A *
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 *
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. 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 *
2N/A *
2N/A * <<< Description >>>
2N/A */
2N/A
2N/A
2N/A#ifndef __ADM_DEFINES__
2N/A#define __ADM_DEFINES__
2N/A
2N/A#define ADM5_VERSTR "ADM5VER1"
2N/A#define ADM5_VERSIZE strlen(ADM5_VERSTR)
2N/A/* This used to be kerberos_master */
2N/A#define ADM5_PORTNAME "kerberos-adm"
2N/A#define ADM5_DEFAULT_PORT 752
2N/A#define ADM5_CPW_VERSION "V5CPWS01"
2N/A#define ADM5_ADM_VERSION "V5ADMS01"
2N/A#define CPWNAME "kadmin"
2N/A#define ADMINSTANCE "admin"
2N/A
2N/A#define ADM_CPW_VERSION "V5CPWS01"
2N/A#define ADM_MAX_PW_ITERATIONS 5
2N/A#define ADM_MAX_PW_CHOICES 5
2N/A
2N/A#ifdef MACH_PASS
2N/A#define ADM_MAX_PW_LENGTH 8
2N/A#define ADM_MAX_PHRASE_LENGTH 101
2N/A#else
2N/A#define ADM_MAX_PW_LENGTH 255
2N/A#endif
2N/A
2N/A#define CPW_SNAME ADM5_PORTNAME
2N/A
2N/A#define MAXCPWBUFSIZE 4096
2N/A
2N/A#ifdef unicos61
2N/A#define SIZEOF_INADDR SIZEOF_in_addr
2N/A#else
2N/A#define SIZEOF_INADDR sizeof(struct in_addr)
2N/A#endif
2N/A
2N/A/* Server */
2N/A#define KADMIND 0x01
2N/A
2N/A/* Applications */
2N/A#define KPASSWD 0x01
2N/A#define KSRVUTIL 0x02
2N/A#define KADMIN 0x03
2N/A
2N/A/* Operations */
2N/A#define ADDOPER 0x01 /* Add Principal */
2N/A#define CHGOPER 0x02 /* Change Password */
2N/A#define ADROPER 0x03 /* Add principal with random password */
2N/A#define CHROPER 0x04 /* Change to random password */
2N/A#define DELOPER 0x05 /* Delete Principal */
2N/A#define MODOPER 0x06 /* Modify Principal attributes */
2N/A#define INQOPER 0x07 /* Display Principal info */
2N/A#define AD4OPER 0x08 /* Add Principal using v4 string-to-key */
2N/A#define CH4OPER 0x09 /* Change password using v4 string-to-key */
2N/A#define COMPLETE 0x0f
2N/A
2N/A/* Extra Message Types */
2N/A#define SENDDATA1 0x00
2N/A#define SENDDATA2 0x01
2N/A#define SENDDATA3 0x02
2N/A
2N/A/* Unknowns */
2N/A#define KUNKNOWNAPPL 0xff
2N/A#define KUNKNOWNOPER 0xff
2N/A#define KUNKNOWNERR 0xff
2N/A
2N/Atypedef struct {
2N/A char appl_code;
2N/A char oper_code;
2N/A char retn_code;
2N/A char FAR *message;
2N/A} kadmin_requests;
2N/A
2N/A#if 0
2N/Astatic char FAR *oper_type[] = {
2N/A "complete", /* 0 */
2N/A "addition", /* 1 */
2N/A "deletion", /* 2 */
2N/A "change", /* 3 */
2N/A "modification", /* 4 */
2N/A "inquiry" /* 5 */
2N/A};
2N/A#endif
2N/A
2N/A#define SKYCHANGED 0x00
2N/A#define NSKYRCVD 0x01
2N/A
2N/A
2N/A#if 0
2N/Astatic char FAR *ksrvutil_message[] = {
2N/A "Service Key Changed", /* 0 */
2N/A "New Key and Version Received" /* 1 */
2N/A};
2N/A#endif
2N/A
2N/A#define KADMGOOD 0x00
2N/A#define KADMSAG 0x01
2N/A
2N/A#if 0
2N/Astatic char FAR *kadmind_general_response[] = {
2N/A "Success", /* 0 */
2N/A "Service Access Granted" /* 1 */
2N/A};
2N/A#endif
2N/A
2N/A
2N/A#define KPASSGOOD 0x00
2N/A#define KPASSBAD 0x01
2N/A
2N/A#if 0
2N/Astatic char FAR *kadmind_kpasswd_response[] = {
2N/A "Password Changed", /* 0 */
2N/A "Password NOT Changed!" /* 1 */
2N/A};
2N/A#endif
2N/A
2N/A#define KSRVGOOD 0x00
2N/A#define KSRVBAD 0x01
2N/A#define KSRVCATASTROPHE 0x02
2N/A
2N/A#if 0
2N/Astatic char FAR *kadmind_ksrvutil_response[] = {
2N/A "Service Password Change Complete", /* 0 */
2N/A "One or More Service Password Change(s) Failed!", /* 1 */
2N/A "Database Update Failure - Possible Catastrophe!!" /* 2 */
2N/A};
2N/A#endif
2N/A
2N/A#define KADMGOOD 0x00
2N/A#define KADMBAD 0x01
2N/A
2N/A#if 0
2N/Astatic char FAR *kadmind_kadmin_response[] = {
2N/A "Administrative Service Completed", /* 0 */
2N/A "Principal Unknown!", /* 1 */
2N/A "Principal Already Exists!", /* 2 */
2N/A "Allocation Failure!", /* 3 */
2N/A "Password Failure!", /* 4 */
2N/A "Protocol Failure!", /* 5 */
2N/A "Security Failure!", /* 6 */
2N/A "Admin Client Not in ACL List!", /* 7 */
2N/A "Database Update Failure - Possible Catastrophe!!" /* 8 */
2N/A};
2N/A#endif
2N/A
2N/A#define KMODVNO 0x00
2N/A#define KMODATTR 0x01
2N/A
2N/A#ifdef SANDIA
2N/A#define KMODFCNT 0x02
2N/A#endif
2N/A
2N/A#define ATTRPOST 0x00
2N/A#define ATTRNOPOST 0x01
2N/A#define ATTRFOR 0x02
2N/A#define ATTRNOFOR 0x03
2N/A#define ATTRTGT 0x04
2N/A#define ATTRNOTGT 0x05
2N/A#define ATTRREN 0x06
2N/A#define ATTRNOREN 0x07
2N/A#define ATTRPROXY 0x08
2N/A#define ATTRNOPROXY 0x09
2N/A#define ATTRDSKEY 0x0a
2N/A#define ATTRNODSKEY 0x0b
2N/A#define ATTRLOCK 0x0c
2N/A#define ATTRUNLOCK 0x0d
2N/A
2N/A#ifdef SANDIA
2N/A#define ATTRPRE 0x0e
2N/A#define ATTRNOPRE 0x0f
2N/A#define ATTRPWOK 0x10
2N/A#define ATTRPWCHG 0x11
2N/A#define ATTRSID 0x12
2N/A#define ATTRNOSID 0x13
2N/A#endif
2N/A
2N/A#define ATTRNOSVR 0x14
2N/A#define ATTRSVR 0x15
2N/A
2N/A#define BADATTR 0x3f
2N/A
2N/A#endif /* __ADM_DEFINES__ */