...

View Full Version : arning: ldap_add() [function.ldap-add]: Add: Naming violation



smeshy123
08-31-2007, 08:03 PM
Warning: ldap_add() [function.ldap-add]: Add: Naming violation


$dn = "uid=nuser,cn=users,dc=category,dc=domain,dc=com";
$newuser["objectclass"] = "inetOrgPerson";
$newuser["cn"] = "new";
$newuser["sn"] = "user";

ldap_add($conn,$dn,$newuser);

Above is the code that seems to be throwing the error. Any ideas about how I could fix this?

Thanks!!!

Smeshy

Fumigator
09-01-2007, 05:52 AM
Can't really help without seeing your schema but here's a general error description:



LDAP_NAMING_VIOLATION: Indicates that the add or modify DN operation violates the schema's structure rules. For example,

* The request places the entry subordinate to an alias.
* The request places the entry subordinate to a container that is forbidden by the containment rules.
* The RDN for the entry uses a forbidden attribute type.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum