2

我搜索了许多博客文章,但找不到任何解决方案。

我见过很多帖子都有类似的错误,但在他们的情况下是服务器名称:

HTTP/域名

我能够获得用户前往服务器的门票。

但我真的不知道为什么我会收到这种服务器名称为空的错误。

错误是

KRBError:
     sTime is Tue Oct 20 10:11:30 EDT 2009 1256047890000
     suSec is 548720
     error code is 7
     error Message is Server not found in Kerberos database
     realm is XXX.YYY.COM
     sname is HTTP/null
     msgType is 30

我的配置文件如下:

登录配置

com.sun.security.jgss.login {
   com.sun.security.auth.module.Krb5LoginModule required client=TRUE useTicketCache=true doNotPrompt=false
    debug=true;
};

com.sun.security.jgss.initiate {
   com.sun.security.auth.module.Krb5LoginModule required client=TRUE useTicketCache=true 
    debug=true;
};

com.sun.security.jgss.accept {
   com.sun.security.auth.module.Krb5LoginModule required client=TRUE useKeyTab=true
      storeKey=true
     doNotPrompt=true
     principal="HTTP/xxx.yyy.zz.com@YYY.ZZ.COM"
     isInitiator=false debug=true;
};

krb5.config

[libdefaults]
    default_realm = XXX.YYY.COM    udp_preference_limit = 1
    default_tkt_enctypes = des-cbc-md5 des-cbc-crc des3-cbc-sha1
    default_tgs_enctypes = des-cbc-md5 des-cbc-crc des3-cbc-sha1
    permitted_enctypes = des-cbc-md5 des-cbc-crc des3-cbc-sha1

[realms]
    YYY.ZZ.COM= {
      admin_server =xxx.yyy.zz.com
      kdc = xxx.yyy.zz.com
     default_domain =  yyy.zz.com
     master_kdc = xxx.yyy.zz.com
      }

[domain_realm]
    .yyy.zz.com= YYY.ZZ.COM       
   yyy.zz.com= YYY.ZZ.COM       

谁能帮我解决这个问题?

提前致谢

4

1 回答 1

0

这个开源项目http://spnego.sourceforge.net有一些文档和示例。我想这可能是你需要的。

于 2009-11-05T09:36:11.097 回答