LDAP

I am running Virtualmin (GPL) on a freebsd system and started using LDAP to store users and groups to avoide max username length of 16 characters. But for some reason I still recieve the error when I try and add username.domain
But everything works fine when adding shorter names, I am checking with the Ldap users and groups module for webmin.
Am I missing something?
Do I need to setup the Qmail-ldap in virtualmin config.

Nevermind I fixed it.