want to call change password from in codeunit 1

tanmaykothari
Member Posts: 73
Dear All,
we want to call change password from(System Form) in on company open
codeunit
Tolls -> Security -> Password
Is this possible? how?
Please help..
Thanks in advance... ](*,)
we want to call change password from(System Form) in on company open
codeunit
Tolls -> Security -> Password
Is this possible? how?
Please help..
Thanks in advance... ](*,)
0
Comments
-
I don't think it is possible.0
-
You could try using SendKeys, to send the keystrokes Alt-T, S & P. But it's a dirty hack to get the job done.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
I would not rely on sendkeys for this. But, the question is what is purpose of this requirement? It could be easier to implement windows logins and manage password change policy within domain.0
-
Luc Van Dyck wrote:You could try using SendKeys, to send the keystrokes Alt-T, S & P. But it's a dirty hack to get the job done.
Thanx =D>....
It's working using SendKeys
below is the code for the same
IF ISCLEAR(WshShell) THEN
CREATE(WshShell);
WaitForKeys := TRUE;
WshShell.SendKeys('%{T}{s}{p}',WaitForKeys);
Steps
Declare variable WshShell dtatype is Automation and subtype is 'Windows Script Host Object Model'.WshShell
% for ALT
{T} to open Toll
{s} to open security
{P} to open password0 -
Ok, you did this. But what stopping user just to escape from this form? What requirement you truing to implement with this?0
-
ppavuk wrote:Ok, you did this. But what stopping user just to escape from this form? What requirement you truing to implement with this?
can you please tell me how to close navision if user press escape from this form
or can i use sendkey function two times 1) for trigger change password form
2)and another is if user press escape button0 -
It is just a wrong way to sort out security. Use active directory - it is much more flexible.0
-
I agree with ppavuk, but since you (or your superior/customer) insist...
You might check the Password field in the User table for change. If it did not change, no new password was entered. This way you can even check that the password was not set to blank.0 -
Our job is to decrease entropy, so I think we must use right tools and technologies to achieve customer's requirements. If you boss forcing you to use wrong approach - it make sense at least to try to offer better solution.
This one is dirty hack and big mess. At some point someone else will support this stuff and blame this code authors. The NAV security can do what it can do, if you need more - use active directory. I am sure its better to spend time to implement right solution.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