Menu

#21 GTZ DateTime on AD write issues

v1.0_(example)
open
nobody
None
1
2019-04-25
2019-04-25
Anonymous
No

I am using LDAP Admin to query an AD-LDS directory and I am trying to use the datetime control features in a custom template

AD-LDS stores the attribute as GTZ but Microsoft don't appeared to have followed the '1.3.6.1.4.1.1466.115.121.1.24' standard. Rather than GTX being specified with a trailing Z for example they enfore a .0Z

e.g.
1.3.6.1.4.1.1466.115.121.1.24. compliant
20190101000000Z

On AD
20190101000000.0Z

While the template is able to read the field from AD and display it correctly, when I try to update the field it fails. I presume because it is trying to write it in the compliant format.

Screen shots attached showing the field displaying and the error when attempting to write.

Is there a way to make it write the attribute in the AD format (using the scripts feature?), i'd give that a try but not a javaScript guy

Here is my template

<template>
<name>DateTime Issues</name>
<description>DateTime Issues on AD :-(</description>
<rdn>cn</rdn></template>

<attribute>
<name>objectclass</name>
<value>top</value>
<value>sudoRole</value>
</attribute>

<attribute type="datetime">
<name>sudoNotAfter</name>
<description>Sudo Rule Disabled At</description>
<control type="datetime">
<dateformat>gtz</dateformat>
<timeformat>gtz</timeformat>
</control>
</attribute>

Any help would be greatly appreciated

1 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel