danwwilson,
@danwwilson@rstats.me avatar

lazyweb: has anyone ever had to connect to an azure SQL database using microsoft entra authentication? I am searching for a solution and all I can find is MSFT espousing how good it is, and so far it feels like an automation nightmare! ping @hrbrmstr because you’ve usually connected to everything before I have.

ryebreadnyc,
@ryebreadnyc@fosstodon.org avatar

@danwwilson @hrbrmstr I recently had a colleague reach out to my team for helping doing the same thing. I found some MSFT docs on how to do it but I haven’t had a chance to play/proof of concept any code yet. I’ll link the docs I found when I’m on the work pc later today

danwwilson,
@danwwilson@rstats.me avatar

@ryebreadnyc Thanks, my issue at the moment is that r is having problems finding ODBC.so. Search results are not particularly helpful on this front. 😔

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc you in Linux?

danwwilson,
@danwwilson@rstats.me avatar
Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc in unixodbc installed and tested?

odbcinst -j

Then use isql to test a connection?

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc I feel your pain. I fight something related to this every year or two

danwwilson,
@danwwilson@rstats.me avatar

@Cmastication @ryebreadnyc So I just updated to the dev version of r-dbi/ODBC and that error message is gone. Can confirm that unixodbc is there and am struggling with isql as much as anything because of the MSFT entra auth.

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc I have zero experience with entra auth. So this territory is uncharted by me :(

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc you got the msft odbc driver installed and configured appropriate odbcinst.ini?

Entry like:

[ODBC Driver 17 for SQL Server]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/usr/local/lib/libmsodbcsql.17.dylib
UsageCount=1

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc then for auth are you using uid & pwd or a token?

danwwilson,
@danwwilson@rstats.me avatar
Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc good. I’m 0 for 8 on attempts to use tokens outside of windows.

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc odbc.ini all set up?

Authentication=SqlPassword
UID=your_username
PWD=your_password

Cmastication,
@Cmastication@mastodon.social avatar

@danwwilson @ryebreadnyc that’s in addition to the normal incantations:

[MyMSSQLDB]
Driver=ODBC Driver 17 for SQL Server
Server=tcp:your_server.database.windows.net,1433
Database=your_database_name
Trusted_Connection=no
Encrypt=yes

hrbrmstr,
@hrbrmstr@mastodon.social avatar

@Cmastication @danwwilson @ryebreadnyc from digesting the docs this morning, i'm pretty sure you need to be on windows for this to work.

Cmastication,
@Cmastication@mastodon.social avatar

@hrbrmstr @danwwilson @ryebreadnyc even with UID and PWD? I had drawn that conclusion wrt tokens.

hrbrmstr,
@hrbrmstr@mastodon.social avatar

@Cmastication @danwwilson @ryebreadnyc It may depend on the twisty maze of supported settings in the instance.

Pplx says this tho (the links it surfaced seem like good resources too) https://www.perplexity.ai/search/how-can-i-My0C5KRAQQC1ILy5tfTElg

hrbrmstr,
@hrbrmstr@mastodon.social avatar

@Cmastication @danwwilson @ryebreadnyc I rly have to start asking pplx first just to save time Kagi'ing links

danwwilson,
@danwwilson@rstats.me avatar

@Cmastication @ryebreadnyc Would like to be in Linux but I have to use a clients ‘sonicwall’ vpn which doesn’t seem to have a Linux cli option. 🤷‍♂️ go figure.

hrbrmstr,
@hrbrmstr@mastodon.social avatar
hrbrmstr,
@hrbrmstr@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • Durango
  • Youngstown
  • rosin
  • slotface
  • thenastyranch
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • cisconetworking
  • khanakhh
  • magazineikmin
  • anitta
  • cubers
  • vwfavf
  • modclub
  • everett
  • ethstaker
  • normalnudes
  • tacticalgear
  • tester
  • provamag3
  • GTA5RPClips
  • Leos
  • megavids
  • JUstTest
  • All magazines