question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConnectionBrokerDbContext DB and connection string

See original GitHub issue

Hi!

I’ve set up 2.7.1 and enabled Enterprise mode, but can’t connect to anything, most probably because ConnectionBrokerDbContext is pointing to (presumably) dev test server: <add name="ConnectionBrokerDbContext" providerName="System.Data.SqlClient" connectionString="data source=WIN-0VSDKGKDTPI.myrtlab.local;initial catalog=RDCB;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" /> At least I think this is why NRE is logged: ERROR System.Diagnostics redirection [(null)] - Unable to get session connection details System.NullReferenceException: Object reference not set to an instance of an object. at Myrtille.Services.EnterpriseService.GetSessionConnectionDetails(String sessionID, Int64 hostID, String sessionKey) Disabling Enterprise mode works, but I’d like to know how to setup local ConnectionBrokerDbContext DB using SqlServer Compact…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dgcomcommented, Jan 4, 2020

Hi!

Ok, now I got it how this is controlled, thanks a lot for clarifications 😃 You are right, that Myrtille letting someone connect does not mean they will be able to, I am fine with that 😃

And yes, somehow I did not find that previously reported issue with password expiration policy set to 0 (which is actually a default).

Thank you for fixing this.

0reactions
cedrozorcommented, Jan 4, 2020

Hi,

Administrators for the enterprise mode are domain users members of the EnterpriseAdminGroup. They can create the hosts (shortcuts) and define the allowed groups or users allowed to connect them, so it doesn’t make much sense to prevent them from connecting the hosts if they didn’t allowed themselves to connect them. But that only mean they are be able to try to connect them with myrtille (wfreerdp); in the end, successful connections depends on the host themselves (if they allow or not the user).

About the expired password, this is something which was already reported (https://github.com/cedrozor/myrtille/issues/76) but was overlooked. Thanks for the investigation 😃 I fixed it into the upcoming release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection strings and models - EF6
In this example DbContext uses “BloggingDatabase” as the database name and creates a connection string for this database using either SQL ...
Read more >
How can I implement DbContext Connection String in .NET ...
1) Add a line to your appsettings. · 2) Read the line in you Startup. · 3) If using Entity Framework add a...
Read more >
Set-RDDatabaseConnectionString (RemoteDesktop)
This command sets the primary and secondary database connection strings for all the RD Connection Broker servers in a deployment after the connection...
Read more >
Connection String in Entity Framework Core
Connection string contain information about the data source that is being connected. This information varies from provider to provider, ...
Read more >
Pass connection string to code-first DbContext
If I set a breakpoint in the action an analyze the db , the connection string is there, but it does not create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found