Error while creating account in LDAP due to Date format

jayant
New Contributor II
New Contributor II

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

@rushikeshvartak 

5 REPLIES 5

RakeshMG
Saviynt Employee
Saviynt Employee

Please try :

"new java.text.SimpleDateFormat('YYYYMMDDHHMMSS').format(user.enddate)"

Or

endate:modifytimestamp_customDate--yyyyMMddHHmmss


​Regards

Rakesh M Goudar

jayant
New Contributor II
New Contributor II

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

jayant
New Contributor II
New Contributor II

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

RakeshMG
Saviynt Employee
Saviynt Employee

Please use following formats : 

"new java.text.SimpleDateFormat('YYYYMMDDHHMMSS').format(user.enddate)"

Or

endate:modifytimestamp_customDate--yyyyMMddHHmmss


​Regards

Rakesh M Goudar

jayant
New Contributor II
New Contributor II

Hi,

Issue was resolved by using -

"{Date.parse('yyyy-MM-dd HH:mm:ss',user.enddate.toString()).format('yyyyMMddHHmmss')+'z'}"

Regards,

Jayant