Login local user only and authentication by ldap server

Add a code for three files for user local authentication. Because I need to centralize authentication by ldap and resctrictive authentication for local user only.