GSS-API 与Kerberos 的关系

Kerberos 是GSS-API 的实现,当然也有其他的实现如NTLm,dce之类的,如下图所适:

 -----------------------------------

         应用程序(APP)

-----------------------------------

        RPC(可选)

------------------------------------

          GSS-API

------------------------------------

       PROVIDER(提供商实现api)

------------------------------------

       kerberos/ ntlm/dce

-------------------------------------

 以下转自其他网页上的,

The Generic Security Services Application Program Interface (GSSAPI, also GSS-API) is an application programming interface for programs to access security services.
  The GSSAPI is an IETF standard that addresses the problem of many similar but incompatible security services in use today.
  Contents
  [hide]
  * 1 How it works
  * 2 Relationship to Kerberos
  * 3 Competing technologies
  * 4 Key concepts of the GSSAPI
  * 5 History of the GSSAPI
  * 6 External links
  [edit] How it works
  The GSSAPI, by itself, does not provide any security. Instead, security service vendors provide GSSAPI implementations usually in the form of libraries installed with their security software. These libraries present a GSSAPI-compatible interface to application writers who can write their application to use only the vendor-independent GSSAPI. If the security implementation ever needs replacing, the application need not be rewritten.
  The definitive feature of GSSAPI applications is the exchange of opaque messages (tokens) that hide the implementation detail from the higher level application. The client and server sides of the application are written to convey the tokens given to them by their respective GSSAPI implementations. GSSAPI tokens can be sent over an insecure network because the mechanisms guarantee inherent message security. After some number of tokens have been exchanged, the GSSAPI at both ends inform their local application that a security context has been established.
  Once a security context is established, sensitive application messages can be wrapped (encrypted) by the GSSAPI for secure communication between client and server. Typical protections guaranteed by GSSAPI wrapping include confidentiality (secrecy) and integrity (authenticity). The GSSAPI can also provide local guarantees about the identity of the remote user or remote host.
  The GSSAPI describes about 45 procedure calls. Significant ones include:
  * GSS_Acquire_cred - obtains the user's identity proof, often a secret cryptographic key
  * GSS_Import_name - converts a username or hostname into a form that identifies a security entity
  * GSS_Init_sec_context - generates a client token to send to the server, usually a challenge
  * GSS_Accept_sec_context - processes a token from GSS_Init_sec_context and can generate a response token to return
  * GSS_Wrap - converts application data into a secure message token (typically encrypted)
  * GSS_Unwrap - converts a secure message token back into application data
  The GSSAPI has been standardised for the C and Java languages.
  Limitations of the GSSAPI include that it standardizes only authentication, and not authorization, and that it assumes a client-server architecture.
  Anticipating new security mechanisms, the GSSAPI includes a negotiating pseudo mechanism, SPNEGO, that can discover and use new mechanisms not present when the original application was built.
  [edit] Relationship to Kerberos
  The dominant GSSAPI mechanism implementation in use is Kerberos. Unlike the GSSAPI, the Kerberos API has not been standardized and various existing implementations use incompatible APIs. The GSSAPI allows Kerberos implementations to be API compatible.
  [edit] Competing technologies
  * RADIUS
  * SASL
  * TLS
  * SSPI
  * SPNEGO
  [edit] Key concepts of the GSSAPI
  Name
  A binary string that labels a security principal (i.e. user or service program) - see access control and identity. For example, Kerberos uses names like user@REALM for users and service/hostname@REALM for programs.
  Credentials
  Information that proves an identity; used by an entity to act as the named principal. Credentials typically involve a secret cryptographic key.
  Context
  The state of one end of the authenticating/authenticated protocol. May provide message protection services, which can be used to compose a secure channel.
  Tokens
  Opaque messages exchanged either as part of the initial authentication protocol (context-level tokens), or as part of a protected communication (per-message tokens)
  Mechanism
  An underlying GSSAPI implementation that provides actual names, tokens and credentials. Known mechanisms include Kerberos, NTLM, Distributed Computing Environment (DCE), SESAME, SPKM, LIPKEY.
  Initiator/acceptor
  The peer that sends the first token is the initiator; the other the acceptor. Generally, the client program is the initiator while the server is the acceptor.
  [edit] History of the GSSAPI
  * July 1991: IETF Common Authentication Technology (CAT) Working Group meets in Atlanta, led by John Linn
  * September 1993: GSSAPI version 1 (RFC 1508, RFC 1509)
  * May 1995: Windows NT 3.51 released, includes SSPI
  * June 1996: Kerberos mechanism for GSSAPI (RFC 1964)
  * January 1997: GSSAPI version 2 (RFC 2078)
  * October 1997: SASL published, includes GSSAPI mechanism (RFC 2222)
  * January 2000: GSSAPI version 2 update 1 (RFC 2743, RFC 2744)
  * August 2004: KITTEN working group meets to continue CAT activities
  * May 2006: Secure Shell use of GSSAPI standardised (RFC 4462)
  [edit] External links
  * RFC 2743 The Generic Security Service API Version 2 update 1
  * RFC 2744 The Generic Security Service API Version 2: C-Bindings
  * RFC 1964 The Kerberos 5 GSS-API mechanism
  * RFC 4121 The Kerberos 5 GSS-API mechanism: Version 2
  * RFC 4178 The Simple and Protected GSS-API Negotiation Mechanism (SPNEGO)
  * RFC 2025 The Simple Public-Key GSS-API Mechanism (SPKM)
  * RFC 2847 LIPKEY - A Low Infrastructure Public Key Mechanism Using SPKM
  * Kitten working group - next generation GSS-API

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值