Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Credentials Available in the Security Package #24

Open
miguelTukan opened this issue Nov 2, 2023 · 0 comments
Open

No Credentials Available in the Security Package #24

miguelTukan opened this issue Nov 2, 2023 · 0 comments

Comments

@miguelTukan
Copy link

miguelTukan commented Nov 2, 2023

Hi,

I'm trying to connect to an open OLAP database. I have already installed the ADOMD client for Windows and haven't been able to connect succesfully.

The code I'm using is:

from sys import path
path.append("C:\\Program Files\Microsoft.NET\\ADOMD.NET\\160")

conn_str = 'Provider=MSOLAP;Password=Temp123!;User ID=DGIS15;Initial Catalog=Cubo solo sinba 2023;Data Source=pwidgis03.salud.gob.mx'

Pyadomd(conn_str).open()

where I get the following error

AdomdConnectionException: Authentication failed. ---> System.ComponentModel.Win32Exception: No credentials are available in the security package
   at Microsoft.AnalysisServices.AdomdClient.Sspi.SspiHelper.InitializeSecurityContext(SecHandle credentialHandle, SecHandle& contextHandle, String targetName, SecurityContextRequirements requirements, SecurityDataRepresentation targetDataRepresentation, SecurityBuffer[] input, SecurityBuffer[] output, SecurityContextRequirements& attributies)
   at Microsoft.AnalysisServices.AdomdClient.Sspi.NTAuthenticationSession.GetNextOutgoingToken(Byte[] incomingToken)
...
   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean& isSessionTokenNeeded)
   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect()
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()

I have been able to succesfully connect to the database via Excel. Any ideas on what I could do?

These are open OLAP cubes supplied by the Mexican government, which is why I've supplied the credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant