Update User.php

Added LDAP support