Type of Authentification Used[Reopen]

ovicash
Member Posts: 141
Hello to all,
I want to know if a logged user is using Windows Authentification or Database in a domain.
The USERID function returns the name of the user but not the entire "Domain Name\User" name.
The problem is that if I have 2 users, "DomainName\user1" and database user "user1", the USERID returns the same value.
Is there a way (a function maybe) to know what kind of authentification is used?
thank you
I want to know if a logged user is using Windows Authentification or Database in a domain.
The USERID function returns the name of the user but not the entire "Domain Name\User" name.
The problem is that if I have 2 users, "DomainName\user1" and database user "user1", the USERID returns the same value.
Is there a way (a function maybe) to know what kind of authentification is used?
thank you
ovidiu
Best Regards
Best Regards
0
Comments
-
Take a look into session table. Here you can see if the user is logon with winlogin or with database login
RegardDo you make it right, it works too!0 -
please.Do you make it right, it works too!0
-
Okey, almost everything okey.
One strange thing happens. When I try to open a database using database authentification and named pipes in Session table the "loghin type" is shown as "windows" and user name the databse user name :?: :?:
If I open the database using databse authentification and TCP/IP Sockets the Session table looks exactly as it should, login type is "database"
I'm using NAV Sp1, the database user has super as role in navision and system administrator on sql.
Any ideea why is this hapenning?
thank youovidiu
Best Regards0 -
Hello frnds,
I had logged in with 3 user id same database, same time, different login type, yet in session table, i cant find the logged in users why??how can this happen.. :-k
Thanksaav!o0 -
Hi,
What client are you using? And SQL2005,SQL2000 or Native?
If it's a SQL2005 this my help you
http://blogs.msdn.com/microsoft_dynamic ... -2005.aspx
Best Regards
René Ravn
Navipartner0 -
Thanks Ravnen for your reply,
I am using sql 2005 express server, its for testing purpose. i had follwed as in your link....but its not working ..i am getting error from codeunit 150011 - Session Monitor Mgt. (SQL Srv) as "table data 150014 does not exist". i think within that codeunit there is local variable, 'session' its subtype is wrong....currently its Session (SQL)...i think it should be Session table. i had corrected but still i am not able to compile, getting same error. :?: can you please check :-kaav!o0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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