04/16/2023 11:40 PM
Hi Team,
We have configured a connection to create account on Oracle Internet Directory (OID). When we are trying to provision any account, it fails with following error -
Error while creating account in AD - [LDAP: error code 53 - Active Start and End Dates must be in UTC format (YYYYMMDDHHMMSSz) without any dashes, hyphens and spaces. ]
We have tried to change the format in CreateAccountJSON but it is not working.
"new java.text.SimpleDateFormat('YYYYMMDDHHMMSSzz').format(user.enddate)"
Would appreciate any help on this..
Regards,
Jayant
Solved! Go to Solution.
04/17/2023 12:06 AM
Please try :
"new java.text.SimpleDateFormat('YYYYMMDDHHMMSS').format(user.enddate)"
Or
endate:modifytimestamp_customDate--yyyyMMddHHmmss
04/17/2023 02:56 AM
Hi @RakeshMG ,
We tried this in createaccountjson but it's still not working -
"orclactiveenddate":"${user.enddate:modifytimestamp_customDate--yyyyMMddHHmmss.'0Z'}"
Is this the correct format?
Regards,
Jayant
04/19/2023 04:53 AM
Hi All,
Is there a way we can send Active Start and End Dates to OID in UTC format (YYYYMMDDHHMMSSz) without any dashes, hyphens and spaces ?
Regards,
Jayant
06/12/2023 12:44 AM
Please use following formats :
"new java.text.SimpleDateFormat('YYYYMMDDHHMMSS').format(user.enddate)"
Or
endate:modifytimestamp_customDate--yyyyMMddHHmmss
06/12/2023 04:23 AM - edited 06/12/2023 04:24 AM
Hi,
Issue was resolved by using -
"{Date.parse('yyyy-MM-dd HH:mm:ss',user.enddate.toString()).format('yyyyMMddHHmmss')+'z'}"
Regards,
Jayant