Solaris 开发者安全性指南

包含 OID 值的文件

为方便起见,GSS-API 允许以可读方式显示机制和 QOP。在 Solaris 系统上,有两个文件(/etc/gss/mech/etc/gss/qop)中包含有关可用机制和可用 QOP 的信息。如果无权访问这些文件,则必须提供来自其他源代码的串文字。针对该机制或 QOP 发布的 Internet 标准应当可以实现此目的。

/etc/gss/mech 文件

/etc/gss/mech 文件列出了可用的机制,其中包含数值和字母两种格式的名称,它将显示以下格式的信息:

样例 /etc/gss/mech 可能如示例 C–1 所示。


示例 C–1 /etc/gss/mech 文件

# 

# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.

# Use is subject to license terms.

#

#ident	"@(#)mech	1.12	03/10/20 SMI"

#

# This file contains the GSS-API based security mechanism names,

# the associated object identifiers (OID) and a shared library that 

# implements the services for the mechanisms under GSS-API.

#

# Mechanism Name	Object Identifier	Shared Library	Kernel Module

[Options]

#

kerberos_v5		1.2.840.113554.1.2.2	mech_krb5.so kmech_krb5 

spnego			1.3.6.1.5.5.2		mech_spnego.so.1 [msinterop]

diffie_hellman_640_0	1.3.6.4.1.42.2.26.2.4	dh640-0.so.1

diffie_hellman_1024_0	1.3.6.4.1.42.2.26.2.5	dh1024-0.so.1

/etc/gss/qop 文件

对于安装的所有机制,/etc/gss/qop 文件存储每个机制所支持的所有 QOP,这些机制均以 ASCII 字符串和对应的 32 位整数两种形式提供。样例 /etc/gss/qop 可能如以下示例所示:


示例 C–2 /etc/gss/qop 文件

#

# Copyright (c) 2000, by Sun Microsystems, Inc.

# All rights reserved.

#

#ident  "@(#)qop 1.3     00/11/09 SMI" 

#

# This file contains information about the GSS-API based quality of

# protection (QOP), its string name and its value (32-bit integer).

#

# QOP string                    QOP Value       Mechanism Name

#

GSS_KRB5_INTEG_C_QOP_DES_MD5    0               kerberos_v5

GSS_KRB5_CONF_C_QOP_DES         0               kerberos_v5