473,782 Members | 2,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...krb tg
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***********@M Y-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 InitialDirConte xt is
created:
( DirContext ctx = new InitialDirConte xt(env); )
javax.naming.Au thenticationExc eption: GSSAPI [Root exception is
javax.security. sasl.SaslExcept ion: 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.ld ap.sasl.LdapSas l.saslBind(Ldap Sasl.java:150)
at com.sun.jndi.ld ap.LdapClient.a uthenticate(Lda pClient.java:21 4)
at com.sun.jndi.ld ap.LdapCtx.conn ect(LdapCtx.jav a:2637)
at com.sun.jndi.ld ap.LdapCtx.<ini t>(LdapCtx.java :283)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getUsingURL( LdapCtxFactory. java:175)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getUsingURLs (LdapCtxFactory .java:193)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getLdapCtxIn stance(LdapCtxF actory.java:136 )
at com.sun.jndi.ld ap.LdapCtxFacto ry.getInitialCo ntext(LdapCtxFa ctory.java:66)
at javax.naming.sp i.NamingManager .getInitialCont ext(NamingManag er.java:667)
at javax.naming.In itialContext.ge tDefaultInitCtx (InitialContext .java:247)
at javax.naming.In itialContext.in it(InitialConte xt.java:223)
at javax.naming.In itialContext.<i nit>(InitialCon text.java:197)
at javax.naming.di rectory.Initial DirContext.<ini t>(InitialDirCo ntext.java:82)
at ldap3.JndiActio n.performJndiOp eration(GssExam ple.java:139)
at ldap3.JndiActio n.run(GssExampl e.java:105)
at java.security.A ccessController .doPrivileged(N ative Method)
at javax.security. auth.Subject.do As(Subject.java :337)
at ldap3.GssExampl e.main(GssExamp le.java:88)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(N ativeMethodAcce ssorImpl.java:3 9)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(DelegatingMe thodAccessorImp l.java:25)
at java.lang.refle ct.Method.invok e(Method.java:5 82)
at com.intellij.rt .execution.appl ication.AppMain .main(AppMain.j ava:78)
Caused by: javax.security. sasl.SaslExcept ion: GSS initiate failed
[Caused by GSSException: No valid credentials provided (Mechanism
level: Server not found in Kerberos database (7) - UNKNOWN_SERVER)]
at com.sun.securit y.sasl.gsskerb. GssKrb5Client.e valuateChalleng e(GssKrb5Client .java:174)
at com.sun.jndi.ld ap.sasl.LdapSas l.saslBind(Ldap Sasl.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.jg ss.krb5.Krb5Con text.initSecCon text(Krb5Contex t.java:654)
at sun.security.jg ss.GSSContextIm pl.initSecConte xt(GSSContextIm pl.java:213)
at sun.security.jg ss.GSSContextIm pl.initSecConte xt(GSSContextIm pl.java:158)
at com.sun.securit y.sasl.gsskerb. GssKrb5Client.e valuateChalleng e(GssKrb5Client .java:155)
... 23 more
Caused by: KrbException: Server not found in Kerberos database (7) -
UNKNOWN_SERVER
at sun.security.kr b5.KrbTgsRep.<i nit>(DashoA1227 5:65)
at sun.security.kr b5.KrbTgsReq.ge tReply(DashoA12 275:234)
at sun.security.kr b5.internal.a1. a(DashoA12275:2 94)
at sun.security.kr b5.internal.a1. a(DashoA12275:1 06)
at sun.security.kr b5.Credentials. acquireServiceC reds(DashoA1227 5:527)
at sun.security.jg ss.krb5.Krb5Con text.initSecCon text(Krb5Contex t.java:583)
... 26 more
Caused by: KrbException: Identifier doesn't match expected value (906)
at sun.security.kr b5.internal.ah. a(DashoA12275:1 33)
at sun.security.kr b5.internal.ag. a(DashoA12275:5 8)
at sun.security.kr b5.internal.ag. <init>(DashoA12 275:53)
at sun.security.kr b5.KrbTgsRep.<i nit>(DashoA1227 5: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 8186

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

Similar topics

5
6802
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, more perlish: while (<IN>) {
1
1446
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
1864
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 in python??? -- Thanks and Regards, GSS
9
29232
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 the error message:
7
3359
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. since the taxonomy is a rather long list, i'm hiding and showing divs for the secondary and tertiary links, so when a user clicks on the checkbox for the parent category, the children appear in a second (and third) div, with checkboxes of their...
1
1278
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 ADODB.Connection, rst As New ADODB.Recordset
0
1324
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. The status bar finds the exception and displays the information specified in the code below. I have tried everything and cannot work out the issue. I was getting the error on one pc and I did the following to fix it but did the same on 2 other...
2
1363
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
1469
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 component is being used in so I can take different actions (e.g. terminate winapp, close session, or simply log (or in some cases stop the service). How can I programmatically determine this?
5
20703
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 =' <Root> <MajorFamily>
0
9641
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.