ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Authentication Exit Example in support pack wa03

Post new topic  Reply to topic
 Authentication Exit Example in support pack wa03 « View previous topic :: View next topic » 
Author Message
anuppc
PostPosted: Thu Jan 22, 2004 12:48 pm    Post subject: Authentication Exit Example in support pack wa03 Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

Hi,

Has anyone tried to get the auth exit sample to work?

I have not been able to get it to work. Any help will be appreciated.

This is what i did...

1. i set the system classpath to point to jdk 1.4 (tried this with jdk1.3 and 1.2 too)

2. Compiled the given classes Authentication.java, AuthenticationClient.java and Credentials.java.

3. Created a fmcaexit.jar and put it into the System classpath , followed by fmcoutil.jar

4. enabled the authentication exit using
fmczchk -c inst:m,RTAuthenticationExitTypeServer,java

5. Created the certificate using the keytool utility as said in the support pac doc....

6. To test the java authentication exit, Used the given sample java com.ibm.workflow.java.exit.sample.AuthenticationClient

This is what i got:

Using a certificate for user 'Administrator' who is authorized
The sample implementation will map the certificate to Workflow user 'ADMIN'

-------------------------------------------------------------------------------
Using Certificate stored in: AdminCert.cert
Certificate Type: X509

Read in the following certificate:
Certificate for: CN=Administrator, OU=AdminUnit, O=AdminOrg, L=AdminCity
, ST=AdminState, C=DE
Certificate issued by: CN=Administrator, OU=AdminUnit, O=AdminOrg, L=Adm
inCity, ST=AdminState, C=DE
The certificate is valid from Thu Jan 22 15:11:22 EST 2004 to Wed Apr 21
16:11:22 EDT 2004
Certificate SN# 1074802282
Generated with SHA1withDSA
Logon not successful!

Now trying user defined credential
-------------------------------------------------------------------------------
The User ID stored in the user defined Credentials class is not authorized!
Therefore the logon attempt will be denied. Check the sample code for details
-------------------------------------------------------------------------------

ADMIN
password
Error logging on to MQWF
com.ibm.workflow.api.FmcException:
FMC38009E MQSeries Workflow API Error :
API Return Code : 512
Error Origin : e:\v340\src\fmcjsess.cxx, line 1638
Error Message : FMC00512E Logon denied
Nested Exception : None
at java.lang.Throwable.<init>(Throwable.java:84)
at java.lang.Exception.<init>(Exception.java:35)
at com.ibm.workflow.api.FmcException.<init>(FmcException.java:93)
at com.ibm.workflow.api.loc.ExecutionServiceImpl.logon3(ExecutionService
Impl.java:241)
at com.ibm.workflow.java.exit.sample.AuthenticationClient.main(Authentic

Any ideas what might be the problem??

Thanks
Anup
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Ratan
PostPosted: Thu Jan 22, 2004 12:56 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Did you restart your WF Server after defining the authentication exit?
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
anuppc
PostPosted: Thu Jan 22, 2004 1:12 pm    Post subject: Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

Thanks Ratan...Yes i did....

By the way the sample has two methods one using the certificate x509 and through the credential class.. i got it to run successfully using the credential class....(it didnt work earlier coz of typo in userid hardcoded in the credential class) but the certificate method did not work.... do i have to use a specific jdk to create the certificate!

Thanks
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
anuppc
PostPosted: Thu Jan 22, 2004 2:09 pm    Post subject: [SOLVED] Authentication exit sample in wa03 Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

Recreated the certificate and it works fine!

Thanks
Anup
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Authentication Exit Example in support pack wa03
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.