我的用户ldif文件如下:
dn: uid=jack,ou=people,cn=Jack Wallen,dc=examplem,dc=com
uid: jack
cn: Jack Wallen
objectClass: person
sn: Wallen
UserPassword: 123456
``
dn: uid=sheldon,ou=people,cn=Sheldon Cooper,dc=examplem,dc=com
uid: sheldon
cn: Sheldon Cooper
objectClass: person
sn: Cooper
UserPassword: 1234567
但是当我尝试添加时
ldapadd -x -D "cn=Manager,dc=examplem,dc=com" -v -w secret -f ~/tmp/user.ldif
我知道
adding new entry "uid=jack,ou=people,cn=Jack Wallen,dc=examplem,dc=com"
ldap_add: Type or value exists (20)
additional info: objectClass: value #0 provided more than once
为什么?我的错误是什么
谢谢
答案 0 :(得分:0)
ldif文件中不允许空行