LDAP Implementation

Allows the user to log in using both databases: Weby or LDAP
Use the new Ruby 1.9 hash syntax.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.