Author |
Message
|
golam1983 |
Posted: Thu Nov 06, 2014 10:18 am Post subject: FTP in between a flow - Accessing security Id |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Nov 06, 2014 10:22 am Post subject: Re: FTP in between a flow - Accessing security Id |
|
|
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 |
|
 |
magvlvri |
Posted: Fri Nov 07, 2014 8:32 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Fri Nov 07, 2014 8:36 am Post subject: |
|
|
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 |
|
 |
golam1983 |
Posted: Fri Nov 07, 2014 9:04 am Post subject: |
|
|
 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 |
|
 |
magvlvri |
Posted: Fri Nov 07, 2014 9:08 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Fri Nov 07, 2014 9:23 am Post subject: |
|
|
 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 |
|
 |
magvlvri |
Posted: Fri Nov 07, 2014 10:53 am Post subject: |
|
|
Apprentice
Joined: 07 Nov 2014 Posts: 26
|
mqsireportdbparms is pretty cool feature....thanks for letting me know.... |
|
Back to top |
|
 |
golam1983 |
Posted: Tue Nov 11, 2014 9:05 am Post subject: |
|
|
 Apprentice
Joined: 27 Jun 2008 Posts: 35
|
thanks everybody for the info... |
|
Back to top |
|
 |
|