2018-01-12 08:58:47 UTC
I am configuring a password sync solution. I have the password going from password plugin to AD and EBS.
I am able to update those failed passwords in a csv file or LDAP separately.
However, i have a strange requirement which i am unable to think about.
I am having the ldap and csv file details like file path, ldapUrl, password, orgname etc in a property file.
Here it comes, I need to set an attribute in a property file and based on the attribute i need to write the Failed passwords in a File OR in LDAP.
For example, this is my imaginary property file.
failed.pwStore = LDAP // LDAP or File
ldapSearchBase = ou=passwordstore,dc=com
ldapUrl = ldap://localhost:389
ldapPassword = xyz
filePath = c:/users/failedpwd.csv
so if i set failed.pwStore = LDAP it should write the failed passwords to the Ldap having the LDAP details.
If i set failed.pwStore = File it should write the failed passwords to the file with filePath i mentioned in the property file.
Is it doable? If not is there any alternative solution.
Thanks in Advance