-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Since my web app is only used internally, I want to switch from form based login (by suppling our AD username and AD password) to SSO via Windows Authentication in IIS.
This works fine when I witch Symfony to the remote_user instad of the LDAPtools Guard but only when I use the user_db provider. This means that a user must exist in the database before login is allowed.
I want to mix SSO and LDAP login to login to the web app without the need for the user to exist in the database first. The reason why I want to use LDAP too is so I can use AD Group Membership to allow different parts of the web app.
Currently IIS fills the PHP REMOTE_USER with NETBIOSDOMAIN\username. LDAPtools queries the ldap with sAMAccountName=NETBIOSDOMAIN\5cusername which doesnt exist because sAMAccountName is only the username and not the full string with domain included (also it translates the backslash to 5c)
Is it possible for LDAPtools to for example strip the NETBIOSDOMAIN\ and query with only the last part provided in REMOTE_USER? Or am I completely taking the wrong approach?