I have an application running on a linux server that can only authenticate using the local repository. However, I have LDAP configured on the machine and want to authenticate users using LDAP. Is there a redirection I can do to have the application think it is authenticating with local users but have the end authentication be LDAP.
Application (local authentication) ---> maybe access.conf or something ---> LDAP server
I would add my users to access.conf or some other file manually. Not sure if that is the appropriate file to use for this method.
So real example:
User goes to web based application (www.application.com) and types in LDAP username and password. Application reads some local file and sees the username as a local authentication. The local file says to go to the LDAP server to authenticate.
The LDAP users would all be mapped to the application server. So if I type 'id username', the LDAP information would display (the mapped user drives and such).
So far, I have the LDAP users mapped and if I try to add that user to the application, it says it doesn't exist. If I try to create a local user with the same name, it says it already exist.
'id ldapuser' prints all the ldap information
'application adduser command ldapuser' user does not exist
'useradd ldapuser' user already exist