Quantcast
Viewing all articles
Browse latest Browse all 26374

How to use Secure Store for ODBC connection?

Hello,

I'm trying to create External Content Type for ODBC connection with using secure store. At first I created BDC model for MySQL database through ODBC without Secure Store. In this case LobSystemInstance properties look like this:

<LobSystemInstance Name="MetaManLobSystemInstance"><Properties><Property Name="ShowInSearchUI" Type="System.String"></Property><Property Name="DatabaseAccessProvider" Type="System.String">Odbc</Property><Property Name="AuthenticationMode" Type="System.String">PassThrough</Property><Property Name="RdbConnection Dsn" Type="System.String"></Property><Property Name="RdbConnection Driver" Type="System.String">{MySQL ODBC 5.1 Driver}</Property><Property Name="RdbConnection server" Type="System.String">canopus</Property><Property Name="RdbConnection port" Type="System.String">3306</Property><Property Name="RdbConnection database" Type="System.String">world</Property><Property Name="RdbConnection uid" Type="System.String">root</Property><Property Name="RdbConnection pwd" Type="System.String">12345</Property><Property Name="RdbConnection Trusted_Connection" Type="System.String">yes</Property></Properties></LobSystemInstance>

This created External Content Type works perfect. I'm able to see the data from MySQL database.

After that I modified BDC model in order to use Secure Store and LobSystemInstance properties look as follows:

<LobSystemInstance Name="MetaManLobSystemInstance"><Properties><Property Name="ShowInSearchUI" Type="System.String"></Property><Property Name="DatabaseAccessProvider" Type="System.String">Odbc</Property><Property Name="RdbConnection Dsn" Type="System.String"></Property><Property Name="RdbConnection Driver" Type="System.String">{MySQL ODBC 5.1 Driver}</Property><Property Name="RdbConnection server" Type="System.String">canopus</Property><Property Name="RdbConnection port" Type="System.String">3306</Property><Property Name="RdbConnection database" Type="System.String">world</Property><Property Name="AuthenticationMode" Type="System.String">RdbCredentials</Property><Property Name="SsoProviderImplementation" Type="System.String">Microsoft.Office.SecureStoreService.Server.SecureStoreProvider, Microsoft.Office.SecureStoreService, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Property><Property Name="SsoApplicationId" Type="System.String">mysql_id</Property></Properties></LobSystemInstance>

I also created mysql_id secure store target ID with User Name and Password fields. I set credentials "root" as User Name and "12345" as Password

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

But when I create External List based on this External Content Type I have this error: Cannot connect to the LobSystem (External System). Reason: 'ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'ODBC'@'Lyra' (using password: YES) ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'ODBC'@'Lyra' (using password: YES)'
Correlation ID:7482219c-b817-30e3-4a14-964c5d164899

Why does SharePoint say about user with name 'ODBC'@'Lyra' and password 'YES'? What should I change in order to get ECT working with Secure Store for ODBC connection.




Dmitry

Image may be NSFW.
Clik here to view.
Twitter
Image may be NSFW.
Clik here to view.
Lightning Tools Logo
Lightning Tools Check out our SharePoint tools and web parts | Lightning Tools Blog | Мой Блог


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>