1   /*
   2    * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
   3    * Use is subject to license terms.
   4    */
   5   
   6 | #pragma ident        "@(#)server_acl.c        1.7        04/09/08 SMI"
   6 | #pragma ident        "@(#)server_acl.c        1.6        04/04/01 SMI"
   7   
   8   /*
   9    * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 
  10    *
  11    *        Openvision retains the copyright to derivative works of
  12    *        this source code.  Do *NOT* create a derivative of this
  13    *        source code before consulting with your legal department.
  14    *        Do *NOT* integrate *ANY* of this source code into another
  15    *        product before consulting with your legal department.
  16    *
  17    *        For further information, read the top-level Openvision
  18    *        copyright which is contained in the top-level MIT Kerberos
  19    *        copyright.
  20    *
  21    * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  22    *
  23    */
  24   
  25   
  26   /*
  27    * kadmin/v5server/srv_acl.c
  28    *
  29    * Copyright 1995 by the Massachusetts Institute of Technology.
  30    * All Rights Reserved.
  31    *
  32    * Export of this software from the United States of America may
  33    *   require a specific license from the United States Government.
  34    *   It is the responsibility of any person or organization contemplating
  35    *   export to obtain such a license before exporting.
  36    *
  37    * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
  38    * distribute this software and its documentation for any purpose and
  39    * without fee is hereby granted, provided that the above copyright
  40    * notice appear in all copies and that both that copyright notice and
  41    * this permission notice appear in supporting documentation, and that
  42    * the name of M.I.T. not be used in advertising or publicity pertaining
  43    * to distribution of the software without specific, written prior
  44    * permission.  Furthermore if you modify this software you must label
  45    * your software as modified software and not distribute it in such a
  46    * fashion that it might be confused with the original M.I.T. software.
  47    * M.I.T. makes no representations about the suitability of
  48    * this software for any purpose.  It is provided "as is" without express
  49    * or implied warranty.
  50    *
  51    */
  52   
  53   /*
  54    * srv_acl.c - Handle Kerberos ACL related functions.
  55    */
  56   #include <stdio.h>
  57   #include <syslog.h>
  58   #include <sys/param.h>
  59   #include <gssapi_krb5.h>
  60   #include "k5-int.h"
  61   #include <kadm5/server_internal.h>
  62   #include <kadm5/admin.h>
  63   #include <adm_proto.h> /* SUNWresync121 XXX */
  64   #include "server_acl.h"
  65   #include <ctype.h>
  66   #include <libintl.h> /* SUNWresync121 XXX */
  67   
  68   typedef struct _acl_op_table {
  69       char        ao_op;
  70       krb5_int32        ao_mask;
  71   } aop_t;

 ----Unchanged portion omitted----

  87   
  88   static const aop_t acl_op_table[] = {
  89       { 'a',        ACL_ADD },
  90       { 'd',        ACL_DELETE },
  91       { 'm',        ACL_MODIFY },
  92       { 'c',        ACL_CHANGEPW },
  93       { 'i',        ACL_INQUIRE },
  94       { 'l',        ACL_LIST },
  95 +     { 'p',        ACL_IPROP },                /* SUNW IProp */
  96       { 's',        ACL_SETKEY },
  97       { 'u',        ACL_MIGRATE },                /* pam_krb5_migrate */
  98       { 'x',        ACL_ALL_MASK },
  99       { '*',        ACL_ALL_MASK },
 100       { '\0',        0 }
 101   };

 ----Unchanged portion omitted----