[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forgerock-opendj
Subject:    [Opendj] How to handle Kerberos BindRequest
From:       "Mike Schnaufer | faizod GmbH & Co. KG" <mike.schnaufer () faizod ! com>
Date:       2014-08-20 12:41:48
Message-ID: 381A7FC86CFB4146941DB6E539ED6D5754F212 () MBX03 ! lansolnet ! com
[Download RAW message or body]

Hi everybody,

I use the opendj sdk in my application and have a listener which implements=
 the ServerConnection-Interface to handle LDAP request like bind, search an=
d so on. Inside the handleBind()-Method of this listener i want to determin=
e if the request was sent with Kerberos authentification or simple/plain us=
er password authentification. But each request which was sent with Kerberos=
 ticket is from type GenericBindRequest. Which I understand is an identifie=
r for an unsupported authentication mechanism.

How do I add support for Kerberos to my application, so that the request ar=
e of type GSSAPISASLBindRequest? Or can I easily cast the request to GSSAPI=
SASLBindRequest? I tried it but got an ClassCastException.

Can anybody help me?

With best regards
Mike



[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.E-MailFormatvorlage17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi everybody,<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I use the opendj sdk in my application and \
have a listener which implements the ServerConnection-Interface to handle LDAP \
request like bind, search and so on. Inside the handleBind()-Method of this listener \
i want to  determine if the request was sent with Kerberos authentification or \
simple/plain user password authentification. But each request which was sent with \
Kerberos ticket is from type GenericBindRequest. Which I understand is an identifier \
for an unsupported authentication  mechanism. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How do I add support for Kerberos to my \
application, so that the request are of type GSSAPISASLBindRequest? Or can I easily \
cast the request to GSSAPISASLBindRequest? I tried it but got an ClassCastException. \
<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Can \
anybody help me?<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US">With best regards<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US">Mike<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> </div>
</body>
</html>



_______________________________________________
OpenDJ mailing list
OpenDJ@forgerock.org
https://lists.forgerock.org/mailman/listinfo/opendj

--===============2943188622040777991==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic