by Iñaki Arenaza.
If all your AD users have sammaccountname with dots, then tell Moodle to use samaccountname to authenticate your users, instead of the cn.
Just set "Site administration >> Plugins >> Authentication >> LDAPserver>> User attribute" to 'samaccountname' (it uses 'cn' if you leave it empty).
Saludos. Iñaki.