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 » WebSphere Message Broker (ACE) Support » FTP in between a flow - Accessing security Id

Post new topic  Reply to topic
 FTP in between a flow - Accessing security Id « View previous topic :: View next topic » 
Author Message
golam1983
PostPosted: Thu Nov 06, 2014 10:18 am    Post subject: FTP in between a flow - Accessing security Id Reply with quote

Apprentice

Joined: 27 Jun 2008
Posts: 35

We have a requirement where we need to read a file from FTP location in between a flow. We are trying to implement it using JCN node. WMB version 7.0.0.5.

For password management, we were trying to access broker Security Identity through Broker Admin API using a configurable service. But as per the API documentation when we do getConfigurableServices("MyFTPServer").getProperties("SecurityIdentity") it just returns the name of the security Identity. Any idea or insight how to access the user name and password which is stored using mqsisetdbparms? Is that possible at all?

thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Nov 06, 2014 10:22 am    Post subject: Re: FTP in between a flow - Accessing security Id Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

golam1983 wrote:
Any idea or insight how to access the user name and password which is stored using mqsisetdbparms? Is that possible at all?

Not as far as I know.

You'd be better off using a FileInput node to fetch the file, and some kind of collection pattern or triggering or etc. to notify the other flow that the file is ready to be processed using a FileGet node.
Back to top
View user's profile Send private message
magvlvri
PostPosted: Fri Nov 07, 2014 8:32 am    Post subject: Reply with quote

Apprentice

Joined: 07 Nov 2014
Posts: 26

ConfigurableService MyFTPServer = b.getConfigurableService("FtpServer", "<your ftp server object name>");

MyFTPServer.getProperties() will return the list of props

getProperties()
Returns the properties associated with the configurable service that were active at the time BrokerProxy.getConfigurableServices() was called.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Nov 07, 2014 8:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

magvlvri wrote:
ConfigurableService MyFTPServer = b.getConfigurableService("FtpServer", "<your ftp server object name>");

MyFTPServer.getProperties() will return the list of props

getProperties()
Returns the properties associated with the configurable service that were active at the time BrokerProxy.getConfigurableServices() was called.


Yes, that returns the properties of the configurable service, including the name of the Security Profile associated with the configurable service.

It will not return the properties of the Security Profile.
Back to top
View user's profile Send private message
golam1983
PostPosted: Fri Nov 07, 2014 9:04 am    Post subject: Reply with quote

Apprentice

Joined: 27 Jun 2008
Posts: 35

Thanks Mqjeff...


That is what we noticed. It just returns the security Identity name. Per our investigation there is no api to access security Identity. Before we decide to check other options, thought to check with masters.
Back to top
View user's profile Send private message
magvlvri
PostPosted: Fri Nov 07, 2014 9:08 am    Post subject: Reply with quote

Apprentice

Joined: 07 Nov 2014
Posts: 26

reinstates the observation that anything and everything that goes into the mqsisetdbparms black hole never comes out...

could be frustrating at times..
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Nov 07, 2014 9:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

magvlvri wrote:
reinstates the observation that anything and everything that goes into the mqsisetdbparms black hole never comes out...


It's called "security". The ability to recover a password, while potentially useful, is open to obvious abuse. As an example, it's to mitigate this problem that while a Unix root user can switch to any user, they can't recover the password and log on as that user. Likewise a Windows admin can reset a user's password but not determine what it is.

(And before anyone says anything, I know you can recover a password value from a Windows system, and a root user could mess with the logs. I said mitigate....)

As long as what's placed in the broker registry with mqsisetdbparms comes out when the broker asks for it, that's good enough.

magvlvri wrote:
could be frustrating at times..


You may find some relief in the mqsireportdbparms in v9.0.0.3, which allows you to confirm the password value is what you think it is.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
magvlvri
PostPosted: Fri Nov 07, 2014 10:53 am    Post subject: Reply with quote

Apprentice

Joined: 07 Nov 2014
Posts: 26

mqsireportdbparms is pretty cool feature....thanks for letting me know....
Back to top
View user's profile Send private message
golam1983
PostPosted: Tue Nov 11, 2014 9:05 am    Post subject: Reply with quote

Apprentice

Joined: 27 Jun 2008
Posts: 35

thanks everybody for the info...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FTP in between a flow - Accessing security Id
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.