Hi Peter, I have been trying to produce LDIF files with changetypes, but I can only get "adds" to appear in the LDIF. I have been setting the changetype to "modify", etc, but it will not produce any other changetype other than "adds" in the LDIF . The reason is because the operation will be called on "the client", and I presume this means the LDAP object, not LDIF object, as implemented in the update method.
Basically, I want to override the value of the changetype, either by automatically determining the correct changetype from an existing LDIF though the update method (essentially by doing a ldifdiff), or but manually setting the changetype (which I have attempted unsuccessfully). Cheers, Sion. [EMAIL PROTECTED] wrote: > Hi, > > Am 09.06.2004 um 01:44 Uhr haben Sie geschrieben: > > Extending Net::LDAP::Entry to update against LDIF and > LDAP objects > > could allow the changetype modifications to be to produced. > > > > This would be really useful to produce changetypes for > entry objects by > > updating against an LDIF object to produce the changetype > LDIF required > > up to synchronise entry objects. > > as Graham posted you can to that already now. > Simply create your Net::LDAP::Entry object with the changes > option set to TRUE. > Having created the ::LDIF object that way you automatically > get the changetype into any object written to the file. > > My intention is to provide an alternative to > the ::LDIF->write() method by extending the > ::Entry->update() method, which in my intension shall > create LDIF entries with changetype regardless of the > value of the changes option in the ::LDIF object. > > Peter
