Reserving a user seat or login
AlexWiley
Member Posts: 230
Hi everyone, I am trying to resolve an internal issue with limited user logins. We have a couple possible solutions, but one thing strongly desired is the ability to save one of the user logins for the controller. This means that out of the 8 logins they have, one should only be able to be logged into with the controller's user ID. They are connecting to SQL server directly, so no Citrix or terminal services- I read the other posts related to restricting logins based on those IPs and I couldn't garner much useful information for this issue. Thanks in advance!
0
Comments
-
There's no real way to do this other than a complete hack to codeunit 1. I'm not even sure that would work.
Have you considered the "log users off if they've been idle for too long" type of solution?
Otherwise they either need to purchase additional users or have the controller tell someone to log off.0 -
I work for a company that asked me to restrict users to a single login.
I modified codeunit 1 to accomplish this. It was a small modification, not a "complete hack". The code checks the session table for other sessions for the user. If this is a 2nd login, then it goes into a loop with an ERROR. It is not elegant, as I was not able to kill the session. The user has to from the Task Manager.
But it stopped users from logging in multiple times.0 -
This shouldn't be very complicated.
In Cu1, CompanyOpen function you need to count number of user sessions made to your database, using the same application name as one used in current session, and error if session count is 7 (one less than available in your licence) for every user login except login used by your 'controller'.
Regards,
SlawekSlawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

