From: Gerald (J. C. <je...@sa...> - 2002-10-16 14:28:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 16 Oct 2002 Mar...@ml... wrote: > Hi, > > i have problems with an attribute that uses the syntax utc time syntax. > i generate the time with the following code line > > #Timestamp > $timestamp = `date +%y%m%d%H%m%SZ`; > > when i try to add the content to the utc time atrtibute with > > $ldap->modify( $dnldap, replace => {IPTimestamp => $timestamp}); What syntax is used to stored the IPTimestamp ? Check here to see if the string you are setting contains invalid characters, is single-valued, has a length constraint, etc... > i alway get an error in the log like 'invalid syntax' > > 2002-10-16-13:43:54.019+00:00--V2 Modify--bindDN: xxx --client: xxx > :7809--connectionID: 2--received: 2002-10-16-13:43:54.015+00:00--Invalid syntax You could convert the timestamp to generalized time YYYYMMDDHHMMSS.Z Can't remember the perl construct for this, but in C gmtime(time(NULL)) cheers, jerry --------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE9rXdOIR7qMdg1EfYRAr+9AJ94IUBENs0V5gU6380aNHaNT4fHtwCgwRXZ I7kLPmC7Juv463xDC8oEnvY= =ibKr -----END PGP SIGNATURE----- |