Branch v2

First commit for the LDAP authentication, issues #1076, #1077, #1055 and #1054.
These issues have been solved and the rspec file is incomplete, some tests still need to be implemented.
Im finishing them for the next commit.