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 » Problem accessing SQL Server DB via WMB6.0 domain id

Post new topic  Reply to topic
 Problem accessing SQL Server DB via WMB6.0 domain id « View previous topic :: View next topic » 
Author Message
anajnar
PostPosted: Wed May 02, 2012 1:00 am    Post subject: Problem accessing SQL Server DB via WMB6.0 domain id Reply with quote

Newbie

Joined: 01 May 2012
Posts: 3

Hi,
I have an issue with WMB accessing SQL Server 2008 DB from WMBv6.0 messageflow.
The issue is with the way SQL Server is authenticating the connection.
In SQL Server users can be authenticated using a Windows Authentication
(Windows AD user) or SQL Server Authentication(local user)

WMB on Solaris SPARC V6101
SQL Server 2008 SP2 on Windows


Success scenario: Using a local account for the DB, my messageflow is able to access the SQL Serevr DB.

Problem scenario: But when I use a Domain account(Windows) the connection is not successful.

Question: Is there a way to specify from the broker connection/config how once would like to be authenticated on the conn to SQL Server DB on WMB v6.1?


I see errors like so
BIP2321E: Database error: ODBC return code '-1'. : BROKER1.e0197ad8-3201-0000-0080-b9ff0b664c54: /build/S610_P/src/DataFlowEngine/ImbOdbc.cpp: 230: ImbOdbcHandle::checkRcInner: :
BIP2322E: Database error: SQL State '28000'; Native Error Code '18456'; Error Text '[DataDirect][ODBC SQL Server Driver][SQL Server]Login failed for user 'DOMAINABC\USER1'.'. : BROKER1.e0197ad8-3201-0000-0080-b9ff0b664c54: /build/S610_P/src/DataFlowEngine/ImbOdbc.cpp: 359: ImbOdbcHandle::checkRcInner: :
BIP2322E: Database error: SQL State 'IM006'; Native Error Code '0'; Error Text '[DataDirect][ODBC lib] Driver's SQLSetConnectAttr failed'. : BROKER1.e0197ad8-3201-0000-0080-b9ff0b664c54: /build/S610_P/src/DataFlowEngine/ImbOdbc.cpp: 359: ImbOdbcHandle::checkRcInner: :

The datasource is set like so
[MARSDB]
Driver=/var/mqsi/ODBC64/V5.2/lib/UKmsss22.so
Description=DataDirect 5.2 64bit SQL Server Wire Protocol
Address=serverA\InstanceA
AnsiNPW=Yes
Database=StagingTable
QuotedId=No
ColumnSizeAsCharacter=1

mqsisetdbparms has been run to use the domain(Windows) account or local account say test.

Any help with this matter is most appreciated.

Best
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed May 02, 2012 1:44 am    Post subject: Re: Problem accessing SQL Server DB via WMB6.0 domain id Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

anajnar wrote:
Question: Is there a way to specify from the broker connection/config how once would like to be authenticated on the conn to SQL Server DB on WMB v6.1?

The only way I can understand this as a question is that you want to specify the user and password that Broker will use when connecting to the datasource.

anajnar wrote:
I see errors like so
BIP2321E: Database error: ODBC return code '-1'. : BROKER1.e0197ad8-3201-0000-0080-b9ff0b664c54: /build/S610_P/src/DataFlowEngine/ImbOdbc.cpp: 230: ImbOdbcHandle::checkRcInner: :
BIP2322E: Database error: SQL State '28000'; Native Error Code '18456'; Error Text '[DataDirect][ODBC SQL Server Driver][SQL Server]Login failed for user 'DOMAINABC\USER1'.'. : BROKER1.e0197ad8-3201-0000-0080-b9ff0b664c54: /build/S610_P/src/DataFlowEngine/ImbOdbc.cpp: 359: ImbOdbcHandle::checkRcInner: :
BIP2322E: Database error: SQL State 'IM006'; Native Error Code '0'; Error Text '[DataDirect][ODBC lib] Driver's SQLSetConnectAttr failed'. : BROKER1.e0197ad8-3201-0000-0080-b9ff0b664c54: /build/S610_P/src/DataFlowEngine/ImbOdbc.cpp: 359: ImbOdbcHandle::checkRcInner: :

So the authentication you've provided is not correct.

anajnar wrote:
mqsisetdbparms has been run to use the domain(Windows) account or local account say test.

okay, if you know about mqsisetdbparms, why are you asking how to set the user id and password that broker will present when connecting to a datasource?

Just because you provide a Domain account to broker, doesn't mean that the SQLServer is configured to accept it.

Also, it's very unclear what version of Broker you are using. You talk about both 6.0 and 6.1. You should, regardless of which you are using, make sure you are at the most recent fixpack level.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed May 02, 2012 1:48 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Have you checked to see if your SQLServer instance can accept the credentials you are using?

In the ODBC config snapin, you can choose the authentication type you want to use, enter the username/password and test the connection.

What happens if you do this?
did you specify the ODBC connection as a SYSTEM DSN?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed May 02, 2012 1:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

smdavies99 wrote:
did you specify the ODBC connection as a SYSTEM DSN?

It appears to be running on Unix, not Windows.
Back to top
View user's profile Send private message
anajnar
PostPosted: Wed May 02, 2012 1:58 am    Post subject: Reply with quote

Newbie

Joined: 01 May 2012
Posts: 3

Hi Mqjeff
WMB v6.1.0.1 (apologies for the typo)
I have specified a Windows userid with domain and password 'DOMAINABC\USER1' and used mqsisetdbparms to set this on the Broker.
The id/password work - I have tried this on a windows box using SQL Server Management Studio.

DBA has confirmed that the userid passed has the domain details. But what I'm unable to do is set "what type of autherntication" on the conneciton string. SQL Server is authenticatiing the conn details as "SQL Server Authentication" as opposed to "Windows Authentication".
On a Windows Box this can be selected interactively using the db client gui.

Dear Smdavies99
Thanks for your update. Yes I can confirm my credentials are correct.The id/password work - I have tried this on a windows box using SQL Server Management Studio.

The broker is on Solaris Sparc not Windows and so there is no way of interactively selecting auth type. Maybe there is and I'm unaware.
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 » Problem accessing SQL Server DB via WMB6.0 domain 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.