Improved it so that it does not bind to LDAP when it is getting from redis