|
base.ldif内容如下
dn: dc=wxldapt,dc=com
dc: wxldapt
objectClass: dcObject
objectClass: organizationalUnit
ou: wxldapt.com
dn: ou=it,dc=wxldapt,dc=com
objectClass: organizationalUnit
ou: it
dn: ou=other,dc=wxldapt,dc=com
objectClass: organizationalUnit
ou: other
#slapadd -vl base.ldif ------成功
user1.ldif内容如下
dn: cn=testuser,ou=it,dc=wxldapt,dc=com
objectClass: posixGroup
objectClass: top
cn: testuser
userPassword: 123456
gidNumber:1001
#slapadd -vl user.ldif ------不成功,提示如下
slapadd: dn="cn=wgchen,ou=it,dc=wxldapt,dc=com" (line=7): (65) no structural object class provided
疑惑:其实整个user.ldif文件才6行啊.
修改user.ldif为下
dn: cn=wgchen,ou=it,dc=wxldapt,dc=com
objectClass: top
objectClass: organizationalUnit
cn: wgchen
ou: it
userPassword: 123456
#slapadd -vl user.ldif ------仍不成功,提示如下
slapadd: dn="cn=wgchen,ou=it,dc=wxldapt,dc=com" (line=7): (65) attribute 'cn' not allowed
为什么啊?我怎么才可能对应这些属性啊,倒底是在那个schema 中定义这些属性啊??????? |
|