<NME> base.ldif
<BEF> dn: dc=example,dc=com
objectClass: dcObject
objectClass: organizationalUnit
ou: users

dn: mail=testuser@example.com,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
dn: ou=users,dc=example,dc=com
objectClass: organizationalUnit
ou: users
sn: User
mail: testuser@example.com
userPassword: {SSHA}AIzygLSXlArhAMzddUriXQxf7UlkqopP
uid: mailadmin
givenName: Mail
sn: Admin
mail: mailadmin@example.com
userPassword: {SSHA}AIzygLSXlArhAMzddUriXQxf7UlkqopP

dn: cn=testuser,ou=users,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
cn: testuser
uid: testuser
givenName: Test
sn: User
mail: testuser@example.com
userPassword: {SSHA}AIzygLSXlArhAMzddUriXQxf7UlkqopP

<MSG> Try different syntaxes.

see #870

<DFF> @@ -3,7 +3,7 @@ objectClass: dcObject
 objectClass: organizationalUnit
 ou: users
 
-dn: mail=testuser@example.com,dc=example,dc=com
+dn: cn=testuser,dc=example,dc=com
 objectClass: inetOrgPerson
 objectClass: organizationalPerson
 objectClass: person
@@ -13,3 +13,14 @@ givenName: Test
 sn: User
 mail: testuser@example.com
 userPassword: {SSHA}AIzygLSXlArhAMzddUriXQxf7UlkqopP
+
+dn: mail=testuser2@example.com,dc=example,dc=com
+objectClass: inetOrgPerson
+objectClass: organizationalPerson
+objectClass: person
+objectClass: top
+cn: testuser
+givenName: Test
+sn: User
+mail: testuser2@example.com
+userPassword: {SSHA}AIzygLSXlArhAMzddUriXQxf7UlkqopP

Try different syntaxes.