Password last changed date & time for database user?

sunmorningindia
Member Posts: 65
We are using database user (SQL Server authentication) in NAV 5 SP1 with "Enforce password policy" and "Enforce password expiration". We want to find password last changed date & time for a database user so that we can send password expiration notification. We can do this for AD user but don't know how can I do this for database user?
Thanks,
Manish
Thanks,
Manish
0
Answers
-
did you try by writing following code in OnModify() trigger of table User - 2000000002"Expiration Date" := CALCDATE('<1M>',TODAY);0
-
Thanks for ur reply.
Database user can change password from "Tools->Security->Password".
This option does not call modify(true) on Table 2000000002 User.
Is there any other way to call modify(true) in this case?0 -
Did you try that?
It worked for me even if i change the password0 -
I checked this again in my test environment, still no result.
Environment: NAV 5 SP1 IN
SQL Server: 2008 R2 Express
I just add code as :
OnModify()
"Expiration Date" := TODAY;
When I change password for test user, the "Expiration Date" field still blank.
What was your test environment?0 -
Finally this workaround will help me,
Call SQL Statement as : select [modify_date] from [master].[sys].[server_principals] where [name]='userid';
Capture the output and enjoy....
Anyway, I will still search for a solution like suggested by "Mohana"
Thanks,
Manish0 -
I tried that on native database...0
-
:P ,
This workaround is good for this time.0
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