[SOLVED] Can't add new user, Postfix/LDAP throwing error

Hello,
I have LDAP all setup and followed the instructions on the Combining Virtualmin with LDAP site. however whenever I try to add a user I get this error:

Failed to save mailbox : LDAP add of mailLocalAddress=example@example.com,dc=Virtual,dc=example,dc=com failed : invalid DN

Can’t anyone tell my why I get this error, and help me fix it? Thank you very much!

Howdy,

Unfortunately, LDAP really isn’t my area of expertise… however, I just wanted to verify, is this the document you used here:

https://www.virtualmin.com/documentation/installation/ldap

Your description sounded like it may have been an older one.

You’d want to review the whole thing, but in particular, make sure you take a peek at the documentation under the “Storing Email Aliases in LDAP” section.

Also, which distro/version is it that you’re using there?

-Eric

Your correct, I was using the older one. Thank you very much for pointing this out to me :slight_smile:

Ok, I guess I spoke too soon, I still have the same error, is there anything else anyone can think of thats causing this?

Which distro/version was it that you were using there?

-Eric

ubuntu 14.04
virtualmin 4.18.gpl

Any ideas?

I got it figured out, Thanks for your help!
for anyone else with the same issue, the “misc” schema for some reason is not enabled, to make your changes (STRUCTURAL) to /etc/ldap/schema/misc.ldif and then apply it with (ldapadd -Q -Y EXTERNAL -H ldapi:/// -f misc.ldif). Thanks again!

Thanks hyper3xpl0iter that fixed it! wtf? LOL

the “misc” schema for some reason is not enabled, to make your changes (STRUCTURAL) to /etc/ldap/schema/misc.ldif and then apply it with (ldapadd -Q -Y EXTERNAL -H ldapi:/// -f misc.ldif).