Thread: Schema problem

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    3
    Rep Power
    0

    Schema problem


    Hi

    I created my own schema which contain one object class (Added in the LDIF file) and some attributes. But "ldapadd/slapadd" not able to add the entries to the LDAP db (bdb). It fails with the follwoing error.

    ldap_add: Undefined attribute type (17)
    additional info: employeeName: attribute type undefined

    Note that "employeeName" is an attribute defined in my new schema (ofcourse included in the slapd.conf)

    I would really appreciate your help in resolving this problem..

    ------------------------------------------------------
    My new schema file looks some what like ..

    .......................
    # employeeName
    # It's the name of the Employee
    attributetype ( 2.16.840.1.113730.3.1.241
    NAME 'employeeName'
    DESC 'Name of the Employee'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
    SINGLE-VALUE )
    .................

    # EmployeeInfo
    # The EmployeeInfo represents details of employee
    objectclass ( 2.16.840.1.113730.3.2.2
    NAME 'EmployeeInfo'
    DESC 'Employee Information'
    SUP top
    STRUCTURAL
    MAY (
    location $ cubicleNumber $ employeeName $ employeeNumber $ employeeType $ emailid $ phoneNo $ jpegPhoto )
    )

    ------------------------------------------------------

    Following is the output of the command..

    root@synergy openldap-2.2.15# ldapadd -x -v -D cn=PrasadBSN,o=wipro -W < ldif_f
    iles/tester1.ldif
    ldap_initialize( <DEFAULT> )
    Enter LDAP Password:
    add sn:
    Sridhar
    add employeeName:
    Sridhar Vinnamuri
    add employeeNumber:
    82452
    add emailid:
    sreedhar.vinnamuri@wipro.com
    add phoneNo:
    91-40-55565511
    add cubicleNumber:
    GF002
    add jpegPhoto:

    add objectClass:
    top
    person
    organizationalPerson
    EmployeeInfo
    add cn:
    Sridhar V
    vinnamuri
    GF2
    adding new entry "cn=Sridhar V,ou=2003, o=wipro"
    modify complete
    ldap_add: Undefined attribute type (17)
    additional info: employeeName: attribute type undefined
  2. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    did you restart slapd after adding the new attribues to the schema?

IMN logo majestic logo threadwatch logo seochat tools logo