If you comment out that code, it’s not pulling data from the Active Directory, it’s just adding a new user to the WordPress database. I am having much difficulty successfully connecting to the AD for my company. It says it successfully creates the ldap object but then gives me the Authentication Failed error and warns that “storing failed login for rpeters”. I know I’m putting in a correct network username and password.