java - 在 ldif 文件中使用 sAMAccountName 和 distinctName
问题描述
我正在尝试使用打开的 ldap 容器和 spring boot 测试我的 ldap 代码,但是当我在我的文件中使用sAMAccountName
和时,容器无法启动。distinguishedName
.ldif
我的 ldif 文件如下所示:
dn: ou=people,dc=example,dc=org
objectclass: organizationalUnit
ou: people
dn: ou=groups,dc=example,dc=org
objectclass: organizationalUnit
ou: groups
dn: uid=john,ou=people,dc=example,dc=org
objectclass: inetOrgPerson
cn: John Doe
sn: John
uid: john
sAMAccountName: john
distinguishedName: uid=john,ou=people,dc=example,dc=org
userPassword: secret
dn: uid=john_admin,ou=people,dc=example,dc=org
objectclass: inetOrgPerson
cn: John Doe
sn: John
uid: john_admin
sAMAccountName: john_admin
distinguishedName: uid=john_admin,ou=people,dc=example,dc=org
userPassword: secret
我怎样才能在这个文件中使用sAMAccountName
和?distinguishedName