|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Context Information |
« View previous topic :: View next topic » |
Author |
Message
|
Shalini |
Posted: Fri Mar 14, 2003 10:23 pm Post subject: Context Information |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi,
I need few information regarding the context of the message
1) Uid: the default value shows as "MUSR_MQADMIN" when I put the message into the Queue
I want to show the Uid as the WindowsNT login Uid so how to achive that
Also if some one have put from the Unix with mqm or root rights I want that to be displayed instead of the MUSR_MQADMIN.
2) PutApplication Type, putApplicationName
Thanks
Shalini |
|
Back to top |
|
 |
oz1ccg |
Posted: Sat Mar 15, 2003 5:48 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
You can modify all the context information, it requires that you issues MQPMO_SET_ALL_CONTEXT in your PUTMESSAGEOPTION.
This raises some warnings to me, do we really want to do this, your security folks might have a differnet oppinion ont this... Ask them.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
sunna |
Posted: Mon Mar 17, 2003 2:14 am Post subject: |
|
|
Newbie
Joined: 01 Oct 2002 Posts: 1
|
Hi Shalini,
You can call 'GetUserName()' API to get the name of the user currently logged onto the system in Windows NT. Please check MSDN for the full details of this API.
In UNIX you can use the following
#include <unistd.h>
char *getlogin(void);
returns a pointer to a string containing the name of the user logged in on the controlling terminal of the process
After getting this, you can assign 'UserIdentifier' field of MQMD structure
Regards
Suseel |
|
Back to top |
|
 |
leongor |
Posted: Wed Mar 19, 2003 3:27 am Post subject: |
|
|
 Master
Joined: 13 May 2002 Posts: 264 Location: Israel
|
Why do you get MUSR_MQADMIN in message context ?
Do you work with MQClient using MCAUSER=MUSR_MQADMIN ?
In this case just remove it from server connection channel. _________________ Regards.
Leonid.
IBM Certified MQSeries Specialist. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|