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

8 posts / 0 new
Last post
#1 Sat, 08/01/2015 - 12:20
hyper3xpl0iter
hyper3xpl0iter's picture

[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!

Sat, 08/01/2015 - 13:41
andreychek

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

Sat, 08/01/2015 - 13:53 (Reply to #2)
hyper3xpl0iter
hyper3xpl0iter's picture

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

Andre Mattie email: hyper3xpl0iter@gmail.com website: https://www.th3c1inic.org GPG: 9B5E 079D A91E 74AC 333C D3C3 6398 151B BFE5 FB4C bitcoin: 3Nfs74EJcdHB3ewnvW6ynF2EexkMDfCexd

Services: Virtualmin Pro, Cloudmin Pro, Webmin OS: Ubuntu 16.04.2

Sat, 08/01/2015 - 14:18
hyper3xpl0iter
hyper3xpl0iter's picture

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

Andre Mattie email: hyper3xpl0iter@gmail.com website: https://www.th3c1inic.org GPG: 9B5E 079D A91E 74AC 333C D3C3 6398 151B BFE5 FB4C bitcoin: 3Nfs74EJcdHB3ewnvW6ynF2EexkMDfCexd

Services: Virtualmin Pro, Cloudmin Pro, Webmin OS: Ubuntu 16.04.2

Sat, 08/01/2015 - 20:19
andreychek

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

-Eric

Sun, 08/02/2015 - 19:34
hyper3xpl0iter
hyper3xpl0iter's picture

ubuntu 14.04 virtualmin 4.18.gpl

Any ideas?

Andre Mattie email: hyper3xpl0iter@gmail.com website: https://www.th3c1inic.org GPG: 9B5E 079D A91E 74AC 333C D3C3 6398 151B BFE5 FB4C bitcoin: 3Nfs74EJcdHB3ewnvW6ynF2EexkMDfCexd

Services: Virtualmin Pro, Cloudmin Pro, Webmin OS: Ubuntu 16.04.2

Sun, 08/02/2015 - 20:05
hyper3xpl0iter
hyper3xpl0iter's picture

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!

Andre Mattie email: hyper3xpl0iter@gmail.com website: https://www.th3c1inic.org GPG: 9B5E 079D A91E 74AC 333C D3C3 6398 151B BFE5 FB4C bitcoin: 3Nfs74EJcdHB3ewnvW6ynF2EexkMDfCexd

Services: Virtualmin Pro, Cloudmin Pro, Webmin OS: Ubuntu 16.04.2

Fri, 04/28/2017 - 23:24
1baud

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).

1BAUD