0

I try to add a new node called slave to my ldap server. But slapadd -l slave.ldif return error:

5cd2e848 <= str2entry: str2ad(address): attribute type undefined
slapadd: could not parse entry (line=1)
_#################### 100.00% eta   none elapsed         
none fast!
Closing DB...

my slave.ldif:


dn: cn=slave,ou=ldap,dc=0516224,dc=nasa
objectClass: clusterInfo
address: 10.113.37.12

I had checked attributeType address exits by ldapsearch -x -b dc=0516224,dc=nasa. Below is output.
By the way, my base DN is dc=0516224,dc=nasa

# extended LDIF
#
# LDAPv3
# base <dc=0516224,dc=nasa> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# 0516224.nasa
dn: dc=0516224,dc=nasa
objectClass: top
objectClass: dcObject
objectClass: organization
o: nctu
dc: 0516224

# na, 0516224.nasa
dn: cn=na,dc=0516224,dc=nasa
objectClass: olcSchemaConfig
cn: na
olcAttributeTypes: {0}( 1.2.3.1 NAME 'address' DESC 'IP address
' EQUALITY case
 IgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.
1.1466.115.121.
 1.15 )
olcObjectClasses: {0}( 1.2.4.1 NAME 'clusterInfo' DESC 'na clus
ter information
 ' STRUCTURAL MAY address )

# admin, 0516224.nasa
dn: cn=admin,dc=0516224,dc=nasa
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator

# search result
search: 2
result: 0 Success

# numResponses: 4
# numEntries: 3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.