[bug] new line character at the end of LDIF template and then you cannot add new users
I spent 7 hours and 10 minutes finding a surreal bug, the LDIF template must be trimmed appropiately
I had one environment working and the other one no (error text=: empty AttributeDescription)
The faulty LDIF template was:
dn: uid={UID},ou=users,{BASE}
objectClass: inetOrgPerson
uid: {UID}
displayName: {UID}
cn: {UID}
sn: {UID}
userPassword: {PWD}
the good one
dn: uid={UID},ou=users,{BASE}
objectClass: inetOrgPerson
uid: {UID}
displayName: {UID}
cn: {UID}
sn: {UID}
userPassword: {PWD}
the patch
dn: uid={UID},ou=users,{BASE}
objectClass: inetOrgPerson
uid: {UID}
displayName: {UID}
cn: {UID}
sn: {UID}
userPassword: {PWD}
-
the error was the last newline character that generated a new attribute list item without anything on it, and that made slapd to protest saying text=: empty AttributeDescription

Hello, I have the same issue. I use samba domain controller as ldap server. I am able to connect nextcloud to the ldap server and use ldap users whitin nextcloud. I want to be able to create and manage ldap users from nextcloud using the ldap_write support extension but also using your solution i get the error message.
Oh god you saved my day ! I was having the same bug I was getting crazy ...
In logs : "Exception: Cannot create user: Undefined attribute type"
In user creation panel : pop-up "Bad request"
Thanks