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 » IBM MQ API Support » Context Information

Post new topic  Reply to topic
 Context Information « View previous topic :: View next topic » 
Author Message
Shalini
PostPosted: Fri Mar 14, 2003 10:23 pm    Post subject: Context Information Reply with quote

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
View user's profile Send private message Send e-mail
oz1ccg
PostPosted: Sat Mar 15, 2003 5:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
sunna
PostPosted: Mon Mar 17, 2003 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
leongor
PostPosted: Wed Mar 19, 2003 3:27 am    Post subject: Reply with quote

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
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 » IBM MQ API Support » Context Information
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.