Hi, I’m trying to set the first login password (with a password that complies with the domain password policy) in the create account directive related to the password attribute with the following transform (forcing the change password at next logon by also setting pwdLastSet=true)
{
"name": "password",
"transform": {
"attributes": {
"costCenter": {
"attributes": {
"name": "identityAttribute1"
},
"type": "identityAttribute"
},
"identityType": {
"attributes": {
"name": "identityAttribute2"
},
"type": "identityAttribute"
},
"positionName": {
"attributes": {
"name": "identityAttribute3"
},
"type": "identityAttribute"
},
"value": "#if($identityAttribute2 == \"Something\"||$identityAttribute2== \"Something else\") blabla_$identityAttribute1 #else blablabla_$identityAttribute3 #end"
},
"type": "static"
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "secret",
"isMultiValued": false
}
however, the passwords generated in this way turn out to be invalid if I try to access AD with an LDAP browser (error encountered: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09050E, comment: AcceptSecurityContext error, data 52e, v4f7c]).
If instead I set a static value (e.g. BcM3bxzSLSqcaKOMJ5bv) from the interface, I can access the account created via LDAP browser to AD with this value.
The password I try to generate with the transform seems to be unusable, while the one set statically and identical for all new accounts works, why? How can I resolve this? I need to use the logic indicated in the transform to generate the password.
Thanks in advance for your support.
Regards,
Paolo