From: Jim H. <ha...@us...> - 2002-10-22 20:22:43
|
One issue is that on most servers, the createtimestamp and modifytimestamp attributes are maintained by the server and cannot be manipulated by LDAP (or LDIF for that matter). --Jim Harle On Tue, 22 Oct 2002, Graham Barr wrote: > ----- Forwarded message from Reena John <rp...@ho...> ----- > > Date: Tue, 22 Oct 2002 14:19:36 -0500 > To: gb...@po... > From: Reena John <rp...@ho...> > Subject: Net::LDAP read/write pre-dn info? > > Graham, > > Is there a way using the Net::LDAP module to read/write pre-dn lines in > Net::LDAP? The ldif would be like this (also attached: sample.ldif.txt): > > replica: 163.185.18.246:392 > time: 1028702892 > dn: cn=Francois Leclerc 102494,ou=employee,o=slb,c=AN > changetype: add > cn: Francois Leclerc 102494 > sn: Leclerc > creatorsname: cn=LDAP Admin 100000,ou=role,o=SLB,c=AN > createtimestamp: 19990331160616Z > modifytimestamp: 19990426111958Z > modifiersname: cn=ldap admin 100000,ou=role,o=SLB,c=AN > objectclass: top > objectclass: organizationalPerson > objectclass: entrustUser > objectclass: account > > > > Specifically, I would like to read/write the timestamp that is tacked on to > the change ldif by the ldap server process (slapd). I ask because I am > writing a script that reads the change ldifs (in Innosoft's replog file/ > SunOne's audit file) which have been processed by the slapd, and filters > them, writing out only some dns and attributes to a file. For this purpose, > I also have to add replica information to the ldif. Both timestamp and > replica lines are before the dn. If Net::LDAP does not contain this > functionality, do you know of any work arounds? > > One more question: do you know where I can find documentation on the newer > methods in Net::LDAP, the pods being slightly behind the times... > > thanks, > Reena > > Reena John > LDAP Engineering > SchlumbergerSema NIS > > replica: 163.185.18.246:392 > time: 1028702892 > dn: cn=Francois Leclerc 102494,ou=employee,o=slb - web certificate,c=AN > changetype: add > cn: Francois Leclerc 102494 > sn: Leclerc > creatorsname: cn=LDAP Admin 100000,ou=role,o=SLB,c=AN > createtimestamp: 19990331160616Z > modifytimestamp: 19990426111958Z > modifiersname: cn=ldap admin 100000,ou=role,o=SLB,c=AN > objectclass: top > objectclass: organizationalPerson > objectclass: entrustUser > objectclass: account > |