Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2004
    Posts
    91
    Thanks
    1
    Thanked 0 Times in 0 Posts

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

    PHP Code:
    Warningldap_add() [function.ldap-add]: AddNaming violation 
    PHP Code:
    $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

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •