[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldap_add: Undefined attribute type (ITS#2185)



Full_Name: V.Satyanarayana
Version: 2.0.17
OS: Redhat Linux 7.3
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.143.130.7)


I am facing problem in configuring LDAP server on Linux.
Can you please help regarding this.

/usr/local/etc/openldap/slapd.conf is below

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
#include /etc/openldap/schema/redhat/rfc822-MailMember.schema
#include /etc/openldap/schema/redhat/autofs.schema
#include /etc/openldap/schema/redhat/kerberosobject.schema
include /etc/openldap/schema/samba.schema
pidfile //var/run/slapd.pid
argsfile //var/run/slapd.args
#Sample Access Control
# Allow read access of root DSE
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
access to dn="" by * read
access to *
         by self write
         by users read
         by anonymous auth
# if no access controls are present, the default is:
# Allow read by all
# rootdn can always write
###############################################
############# ldbm database definitions#############
###############################################
database ldbm
suffix "dc=syroidmanor,dc=com"
rootdn "cn=Manager,dc=syroidmanor,dc=com"
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessibleby the slapd/tools. Mode 700 recommended.
directory /var/lib/ldap
# Indices to maintain
index primaryGroupID eq
index rid eq
index uid eq
index uidNumber eq
index gidNumber eq
index cn pres,sub,eq
index objectClass eq
index default sub
# ends

And I am using the following command to add users group in domain

ldapadd -x -h localhost -D "cn=Manager,dc=syroidmanor,dc=com"
-f /root/base.ldif -W

And /tmp/base.ldif is given below


dn: dc=syroidmanor,dc=com
objectClass: domain
dc: syroidmanor
dn: ou=Users,dc=syroidmanor,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Users
description: System Users


And I am getting the following error


adding new entry "dc=syroidmanor,dc=com"
ldap_add: Undefined attribute type
        additional info: dn: attribute type undefined

ldif_record() = 17


Thanks and Regards
Satya