Need help reading ldap data

Now, I just have to get the email and build a dictionary