Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

timestamps saved to ldap

12 views
Skip to first unread message

Jim Shi

unread,
Jul 24, 2012, 6:31:18 PM7/24/12
to kerb...@mit.edu
The timestamp saved to ldap has a 'Z' at the end. For example:

krbLastPwdChange: 20120719221721Z

What does 'Z' stand for here?
Thanks

Jim

Oliver Loch

unread,
Jul 24, 2012, 6:38:47 PM7/24/12
to Jim Shi, kerb...@mit.edu
Hi,

it's the timezone. If you check the LDAP field in the schema definition you can see the syntax that is used:

attributetype ( 2.16.840.1.113719.1.301.4.45.1
NAME 'krbLastPwdChange'
EQUALITY generalizedTimeMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
SINGLE-VALUE)

If you google for the syntax OID, you get this:

http://www.alvestrand.no/objectid/1.3.6.1.4.1.1466.115.121.1.24.html

Submitted by j.onions at nexor.co.uk from host 128.243.9.53 (128.243.9.53) on Tue Sep 22 16:03:42 MET DST 1998 using a WWW entry form.
OID value: 1.3.6.1.4.1.1466.115.121.1.24

OID description:
Values in this syntax are encoded as printable strings, represented as specified in X.208. Note that the time zone must be specified. It is strongly recommended that GMT time be used.

( 1.3.6.1.4.1.1466.115.121.1.24 DESC 'Generalized Time' )
So if you ask me, i'd say it's the timezone.

KR,

Oliver
> ________________________________________________
> Kerberos mailing list Kerb...@mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos

Russ Allbery

unread,
Jul 24, 2012, 6:43:07 PM7/24/12
to Jim Shi, kerb...@mit.edu
Jim Shi <hanma...@apple.com> writes:

> The timestamp saved to ldap has a 'Z' at the end. For example:

> krbLastPwdChange: 20120719221721Z

> What does 'Z' stand for here?

UTC (sometimes known as GMT). See ISO 8601 (although the date format
doesn't use that exact format since it's missing the T separator).

--
Russ Allbery (r...@stanford.edu) <http://www.eyrie.org/~eagle/>
0 new messages