You can't modify the SID or GUID or attempt to replace them with the
same values. You should still be able to modify the other attributes of
the entry by:
$ldap->modify( $entry->dn, replace => { 'telephoneNumber' => '0 825 811
825'});
Paul.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 14 June 2004 16:15
To: [EMAIL PROTECTED]
Subject: I can't update object on ADAM : LDAP_CONSTRAINT_VIOLATION
Hi,
I'm having trouble with the 2 fields objectSID and objectGUID from
ActiveDirectory.
When I get an object from AD, it' contains this 2 field (I don't know if
it
's possible to exclude this 2 fields in the search method??)
After having modified one or more field (ex telephoneNumber for a user
object), I call the update method on my entry object. But i always have
this error message : LDAP_CONSTRAINT_VIOLATION.
If i delete this fields or set them to blank before doing the update, i
get
the same error.
It seem that the $entry->update($Ldap) method try to update this 2
fields,
but i don't touch them...
The script wich i'm working on, work very well on OpenLDAP while I can
only
create/delete but not modify object on AD.
I don't know what to do in order to bypass this 2 fields...
Am I the only one to have this problem ?
************************************************************************
*****
Tout usage de ce message par une personne autre que son destinataire
est strictement interdit. L'integrite de ce message n'etant pas assuree
sur Internet, Le groupement des Mousquetaires ne peut etre tenu
responsable
de son contenu.
Toute utilisation ou diffusion non autorisee est interdite. Si vous
n'etes pas destinataire de ce message, merci de le detruire et d'avertir
l'expediteur
************************************************************************
*****