I've finally got LDAP auth working on Ubuntu 18.04, however it only works if I first create the local user account (eg john.smith).
If I don't create the account first, it fails to bind to the LDAP server (AD).
Interestingly, it finds the user (auth.log shows the OU) however it then tries to bind with cn=john smith (missing the period in the middle).
Can I have PAM automatically create the local account and assign to a local Unix group?
Any help or pointers appreciated. Tim