Unable to use the windowsauthentication option

Unable to use the windowsauthentication option

Anonymous
Not applicable
657 Views
3 Replies
Message 1 of 4

Unable to use the windowsauthentication option

Anonymous
Not applicable

I like to connect my program to the Vault using windows authentication, like the users do everyday when using Vault Explorer.

Just for testing I created this line, which works fine:

 

Me.Conn = VDF.Vault.Library.ConnectionManager.LogIn(Me.VaultServerName, Me.VaultDBName, Me.VaultUserName, Me.VaultUserPassword, VDF.Vault.Currency.Connections.AuthenticationFlags.Standard, Nothing).Connection

 

I replace this line with the new version:

 

Me.Conn = VDF.Vault.Library.ConnectionManager.LogIn(Me.VaultServerName, Me.VaultDBName, Me.VaultUserName, Me.VaultUserPassword, VDF.Vault.Currency.Connections.AuthenticationFlags.WindowsAuthentication, Nothing).Connection

 

I understand username and password are ignored when using WA.

 

Why am I able to run the first line and not the second variant?

 

 

 

0 Likes
Accepted solutions (1)
658 Views
3 Replies
Replies (3)
Message 2 of 4

smithmat
Autodesk
Autodesk

What happens when you run the second version?  Do you get an exception? If so, what are the details of the exception?

 

- Matt

0 Likes
Message 3 of 4

Anonymous
Not applicable
Accepted solution

I do not receive any exception. 😞

 

After splitting the line in two parts we see the following:

 

Clipboard02.jpg

 

And now it works! Is this normal you sometimes have to split the code in two step to get the correct result?

0 Likes
Message 4 of 4

smithmat
Autodesk
Autodesk

Glad it is working.  No--there is no difference (functionally) between your first and second versions of the code.

 

- Matt

0 Likes