how to get windows login
kgsinha
Member Posts: 67
I am using SQL with navision.
and doing login into navision with Windows Login..
how do i get login id (through coding) after login.
It is easy to get database login using coding .,, but how to do with windows login??
and doing login into navision with Windows Login..
how do i get login id (through coding) after login.
It is easy to get database login using coding .,, but how to do with windows login??
0
Comments
-
USERID will return the windows login name as well. However it will strip out the domain. If you need the domain, you can lookup the windows login table by filtering for *USERID*...0
-
Where does the windows login ID get stored (that is the user ID and not the SID) in navision (that is in any table) on the client and if not how can i retrieve a list of the windows login ID in navision.0
-
Table 2000000054 - Windows Login. It's all the way down the table list. Both the SID and the ID are fields in this table.0
-
OK i got it...
but the problem is...
When login with server, It contains the Login ID (actual Login) into the ID field of this table, But when i login with Client, In this table ID filed contains the same as of SID.
Now i want to login as a client with windows login, and fetch the Login Id, what should be the procedure??0 -
You see SIDs if you are not connected to Active Directory (working off-line etc.).0
-
run calcfield in the code on that field and it will return the domain with the username if you are able to query active directory...0
-
how can i access active directory.... and what should be the procedure to get ID0
-
Look at the Virtual Tables in NAV (search this forum for more info).0
-
Hai all
Thanks for all your posting... =D>
But How can i find whether the current user has been logged in with windows login or database login??? #-oaav!o0 -
What about Session table (field Login Type)? ;-)0
-
Yea, login type is there but in user id field(session tabl), its not displaying current users....
i had logged in with 3 user id, in database information, session count is shown correctly...but in session table, user id seems to be just 'sa'
](*,) aav!o0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 331 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

