LDAP_ADD PHP - Object Class Violation14 Jan 2013 If you are trying to use php's ldap_add to add an user and are getting an object class violation, try to copy all the fields of a working user exactly. Most likely you are missing some of the required fields of the objectclass you are trying to add.