473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

GSS-API/Kerberos v5 Authentication

Hi,

I try to run the example from
http://java.sun.com/products/jndi/tu...ty/gssapi.html

The login on Kerberos succeeds and i get this ticket:

Principal: us**@MY-DOMAIN.ORG
Private Authentisierung: Ticket (hex) =
0000: 61 81 EF 30 81 EC A0 03 02 01 05 A1 0F 1B 0D 4D
a..0...........M
0010: 49 4E 44 4D 41 54 49 43 53 2E 44 45 A2 22 30 20
Y-DOMAIN.ORG."0
0020: A0 03 02 01 00 A1 19 30 17 1B 06 6B 72 62 74 67
........0...krbtg
0030: 74 1B 0D 4D 49 4E 44 4D 41 54 49 43 53 2E 44 45
t..MY-DOMAIN.ORG
0040: A3 81 AF 30 81 AC A0 03 02 01 10 A1 03 02 01 01
....0............
0050: A2 81 9F 04 81 9C DA A9 A1 94 6A 2E 18 ED 81 30
...........j....0
0060: 13 88 5D A8 72 93 E7 A0 57 E4 34 1A 33 39 5B F5
...].r...W.4.39[.
0070: 47 48 6E D1 6F 45 98 C4 DD 75 70 05 A6 1B 57 F1
GHn.oE...up...W.
0080: 89 A6 65 C3 B9 60 39 90 0C D2 8C 20 84 90 BD 50 ..e..`9....
....P
0090: 11 83 B5 38 A7 2F 47 6F 29 87 34 B8 80 17 0A CB
....8./Go).4.....
00A0: 4A 5A 2E EC D2 1D 89 5C 6D 8A 12 E4 1F DE 05 C9
JZ.....\m.......
00B0: 77 21 D6 9B 74 68 76 68 8C 2C 79 0C 23 01 03 D2
w!..thvh.,y.#...
00C0: 3B 5B D2 CA 7A 50 AB 81 6A 25 B1 52 96 40 A9 B4
;[..zP..j%.R.@..
00D0: 44 2B DC C4 1C DF 03 F8 CD D0 61 57 86 2F 5E 4E
D+........aW./^N
00E0: 76 BA B1 58 39 84 14 EB 35 11 AB 2E EB A6 1A BA
v..X9...5.......
00F0: 33 1B
Client Principal = us**@MY-DOMAIN.ORG
Server Principal = krbtgt/MY***********@MY-DOMAIN.ORG
Session Key = EncryptionKey: keyType=1 keyBytes (hex dump)=
0000: 67 32 07 01 D6 6E B5 31

Forwardable Ticket false
Forwarded Ticket false
Proxiable Ticket false
Proxy Ticket false
Postdated Ticket false
Renewable Ticket false
Initial Ticket false
Auth Time = Thu Aug 19 10:25:11 CEST 2004
Start Time = Thu Aug 19 10:25:11 CEST 2004
End Time = Fri Aug 20 10:25:11 CEST 2004
Renew Till = Null
Client Addresses Null

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

The following exception is thrown where the InitialDirContext is
created:
( DirContext ctx = new InitialDirContext(env); )
javax.naming.AuthenticationException: GSSAPI [Root exception is
javax.security.sasl.SaslException: GSS initiate failed [Caused by
GSSException: No valid credentials provided (Mechanism level: Server
not found in Kerberos database (7) - UNKNOWN_SERVER)]]
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(LdapSasl. java:150)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClie nt.java:214)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:263 7)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapC txFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Ldap CtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstanc e(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext (LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.ja va:223)
at javax.naming.InitialContext.<init>(InitialContext. java:197)
at javax.naming.directory.InitialDirContext.<init>(In itialDirContext.java:82)
at ldap3.JndiAction.performJndiOperation(GssExample.j ava:139)
at ldap3.JndiAction.run(GssExample.java:105)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:337)
at ldap3.GssExample.main(GssExample.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:582)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:78)
Caused by: javax.security.sasl.SaslException: GSS initiate failed
[Caused by GSSException: No valid credentials provided (Mechanism
level: Server not found in Kerberos database (7) - UNKNOWN_SERVER)]
at com.sun.security.sasl.gsskerb.GssKrb5Client.evalua teChallenge(GssKrb5Client.java:174)
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(LdapSasl. java:105)
... 22 more
Caused by: GSSException: No valid credentials provided (Mechanism
level: Server not found in Kerberos database (7) - UNKNOWN_SERVER)
at sun.security.jgss.krb5.Krb5Context.initSecContext( Krb5Context.java:654)
at sun.security.jgss.GSSContextImpl.initSecContext(GS SContextImpl.java:213)
at sun.security.jgss.GSSContextImpl.initSecContext(GS SContextImpl.java:158)
at com.sun.security.sasl.gsskerb.GssKrb5Client.evalua teChallenge(GssKrb5Client.java:155)
... 23 more
Caused by: KrbException: Server not found in Kerberos database (7) -
UNKNOWN_SERVER
at sun.security.krb5.KrbTgsRep.<init>(DashoA12275:65)
at sun.security.krb5.KrbTgsReq.getReply(DashoA12275:2 34)
at sun.security.krb5.internal.a1.a(DashoA12275:294)
at sun.security.krb5.internal.a1.a(DashoA12275:106)
at sun.security.krb5.Credentials.acquireServiceCreds( DashoA12275:527)
at sun.security.jgss.krb5.Krb5Context.initSecContext( Krb5Context.java:583)
... 26 more
Caused by: KrbException: Identifier doesn't match expected value (906)
at sun.security.krb5.internal.ah.a(DashoA12275:133)
at sun.security.krb5.internal.ag.a(DashoA12275:58)
at sun.security.krb5.internal.ag.<init>(DashoA12275:5 3)
at sun.security.krb5.KrbTgsRep.<init>(DashoA12275:46)
... 31 more
-----------------------------------------------------------------------

The exception says that the server is not found in the Kerberos
database.
How can I add a server to the Kerberos database?
Or is there another problem?
Jul 17 '05 #1
0 8152

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matthew Wilson | last post by:
One thing I miss about perl was the builtin $. variable that gets increased after each call to perl's file iterator object. For example: while ( my $line = <IN>) { print "$. $line"; } or,...
1
by: Gurpreet Sachdeva | last post by:
Is there any module available that converts word like 'one', 'two', 'three' to corresponding digits 1, 2, 3?? Thanks and Regards, GSS
1
by: Gurpreet Sachdeva | last post by:
I have shifted my python script on a 4 node open ssi cluster. Please guide me what changes do I have to do in my python scripts to fully utilize the cluster. How do we introduce parralel processing...
9
by: wordsender | last post by:
Hey guys, I can't figure this one out, why is this simple script giving me problems? logfile=file(r'test.txt','w') logfile.write('datetime') test=logfile.readlines() When I run it I get...
7
by: adam | last post by:
i'm working on a portion of a CMS that allows content-admins to browse a product list, and add individual products into the taxonomy by clicking checkboxes next to categories they might belong in....
1
by: gss.italy | last post by:
i use Call CARICA_COMBO in ACTIVATE FORM (in vb classic) to fill a comobox1 with data. How to convert in VB.NET? here the code in vb classic: Sub CARICA_COMBO() Dim cnt As New...
0
by: =?Utf-8?B?bWFyY21j?= | last post by:
Hi, I have built a working application in vb.net and have installed it on the network. 2(including my own development pc) of 5 pcs will open the application. The other 3 give the above message....
2
by: Ross Hetherington | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Say I've got a file called 'testfile' that contains the following three lines: foo bar baz
3
by: =?Utf-8?B?R1NT?= | last post by:
I am writing a custom logging component (which uses App Block; good stuff there). The logger may be used in a winform, webform or in a webservice. I'd like to determine what application type the...
5
by: emsik1001 | last post by:
I'm trying to upload XML into SQL Server 2000. I've never used openxml and I'm struggling with it. Below is the procedure with data. DECLARE @idoc int DECLARE @doc varchar (1000) SET @doc...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.