Database Login - expiration date

jackies
Member Posts: 114
Hi!
I have a question regarding the expiration date field under Database login. Is there a way I can automate this to ask the user for password change every 90 days? (i.e. similar to our windows password change policy)
Thanks
I have a question regarding the expiration date field under Database login. Is there a way I can automate this to ask the user for password change every 90 days? (i.e. similar to our windows password change policy)
Thanks

0
Comments
-
-
matttrax wrote:Why not just use Windows Authentication?
Who ever is using the terminal at any given time, then uses the database login to get into Navision, with his/her own menus and premissions.0 -
yes it's possible.
Do folliwing:
1. Create a new function in CU 1 like CheckUserPWExpDate()
2. add in this function 2 VariablesName DataType Subtype Length DatabaseUser Record User WSHShell Automation 'Windows Script Host Object Model'.WshShell
3. Wrote in this function something like this (not tested, code is not from nav, here written, but it should work)if DatabaseUser.get(UserID) then begin //Make here a check if the Exir. is in the 90 day interval if confirm('Your Expiration Date for your password is = %1\' + 'Do you want to change it now?',false,DatabaseUser."Expiration Date") then begin if isclear(WSHShell) then create(WSHShell); WSHShell.SendKeys('%tsp'); //<-- it's for ALT+T(ools) + S(ecurity) + P(assword) end; end;
4. Call this function in function LoginStart() in CU 1
5. Test it
6. if u have an other language then english (like german, poland, french, spain,etc.) u must send other keys. Here a link for how to use sendkey: viewtopic.php?f=5&t=25712&hilit=Sendkey
RegardsDo you make it right, it works too!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