Skip to main content

Posts

Showing posts with the label password

Password style Dialogs and validate the password in Active Directory [Dynamics AX, X++]

This post will be helpful in creating the dialogs with the password style dialog fields in it. Also, once the passwords have been provided by the user, the code will validate the password of the current logged in user in the active directory and will provide the relavant messages accordingly. Note: AxaptaUserManager class is used to validate the password.This class is also helpful to generate passwords, validate domain etc. Below is how the dialog looks with password style dialog fields. static void SR_PasswordDialogs_validateADUser(Args _args) { Dialog d = new Dialog(“Password style dialogs and validate password in Active directory”); DialogField dfPass1, dfPass2; UserInfo userInfo; AxaptaUserManager axUserManager; ; dfPass1 = d.addField(typeid(password), “Enter password”, “Enter password.”); dfPass2 = d.addField(typeid(password),”Re-enter password”, “Re-enter your password to validate”); dfPass1.passwordStyle(true); dfPass2.passwordSt...