Re: [Quickfix-developers] Logon passwords
Brought to you by:
orenmnero
From: <or...@qu...> - 2008-06-19 13:32:05
|
Have you turned on logging? The Logon message might be being rejected for other reasons. > -------- Original Message -------- > Subject: Re: [Quickfix-developers] Logon passwords > From: Vincent Predoehl <vpr...@ph...> > Date: Wed, June 18, 2008 7:36 pm > To: qui...@li... > > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html<hr>I didn't get a response today, and I do need to get this figured out, > so I will clarify exactly what I need to do: > > I'm writing an ecn engine that will accept logins from multiple user > clients, so I need to handle both the sending and receiving of the > Logon message. I'm still a little confused because I read on the > forum that I could use the fromAdmin handler to verify the password. > However, when I wrote code to do that, the fromAdmin handler never > fired when the server app received the Logon message. > > Unfortunately, searching for "Logon message" and other variants turn > up over 1,000 matches to scour through, so it's difficult to find the > correct answer if this thread has already been touched upon. :) > > On Jun 17, 2008, at 4:03 PM, or...@qu... wrote: > > > Just to be clear, because I may have gotten a different impression > > from > > your first email. Are you trying to send outgoing logons with a > > username and password, or are you trying to validate passwords on > > incoming logon messages? > > > > --oren > > > >> -------- Original Message -------- > >> Subject: Re: [Quickfix-developers] Logon passwords > >> From: Vincent Predoehl <vpr...@ph...> > >> Date: Tue, June 17, 2008 2:39 pm > >> To: qui...@li... > >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > >> html/index.html > >> QuickFIX Support: http://www.quickfixengine.org/ > >> services.html<hr>On Jun 17, 2008, at 11:32 AM, > >> or...@qu... wrote: > >>> You should be checking the Logon message, not NewOrderSingle for > >>> passwords. > >> The Logon message has Username and Password fields, so I can create a > >> Logon message with those fields, but what then? Do I just pass the > >> message to FIX::Session:sendToTarget like all other messages? Seems > >> like that would work. > >> Also, are the SenderCompID and TargetCompID different entities from > >> the username field in Logon? Looks like I can get at the target/ > >> sender IDs in fromAdmin, but those appear to be different than the > >> username to me. > >>> > >>> --oren > >>> > >>>> I'm going to move my password checking out of the fromAdmin > >>>> method to > >>>> the overloaded onMessage methods for each message to be > >>>> authenticated, like this: This will move password checking down > >>>> from > >>>> the session level to the message level. > >>>> void QFApplication::onMessage(const FIX44::NewOrderSingle& m, const > >>>> SessionID & id) > >>>> { > >>>> Password pwd; m.getField(pwd); > >>>> if(pwd.getString() != string(dbpwd)) throw > >>>> FIX::RejectLogon(); > >>>> } > >>>> Then on the sender side, I have this: > >>>> FIX44::NewOrderSingle o(...); > >>>> o.setField(FIX::Password("x0x0x0"); > >>>> FIX::Session::sendToTarget(o); > >>>> This compiles, but when it runs, I get this stuff on the acceptor > >>>> side: > >>>> <20080617-16:20:57, FIX.4.4:MP->CLIENT, incoming> > >>>> (8=FIX. > >>>> 4.49=15035=D34=158249=CLIENT52=20080617-16:20:38.99156=MP1=314411=1 > >>>> 58 > >>>> 138 > >>>> =4740=144=4070.3099223758654=255=MBI60=20080617-16:20:3864=F1554=x0 > >>>> x0 > >>>> x01 > >>>> 0=243) > >>>> <20080617-16:20:57, FIX.4.4:MP->CLIENT, event> > >>>> (Message 1582 Rejected: Tag not defined for this message type: > >>>> 554) > >>>> On Jun 17, 2008, at 10:18 AM, or...@qu... wrote: > >>> > >>> > >> -- > >> VP<hr>--------------------------------------------------------------- > >> ---------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://sourceforge.net/services/buy/ > >> index.php<hr>_______________________________________________ > >> Quickfix-developers mailing list > >> Qui...@li... > >> https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > -- VP<hr>------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php<hr>_______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |