Unable to Authenticat against active directory
Hi Im trying to auth against active directory with the following config:
ldap: enabled: true host: 'ad.host' port: 3268 uid: 'userPrincipalName' method: 'plain' # "tls" or "ssl" or "plain" bind_dn: 'bindpass' password: 'binduser' sync_time: allow_username_or_email_login: false base: 'dc=valid,dc=com,dc=au' user_filter:
I have tried a combination of uid: sAMAccountName, and uid: 'userPrincipalName' but I always get this in the rails application log:
(OAuth) Email []. Username ["can contain only letters, digits, '', '-' and '.'. It must start with letter, digit or '', optionally preceeded by '.'. It must not end in '.git'."]
My sAMAccountName is "chris portman" (with a space) and my userPrincipalName is my email address (obviously with a @)
Thanks. Chris