def _populate_profile_from_attributes(self, profile):
save_profile = False<EOL>for field, attr in self.settings.PROFILE_ATTR_MAP.items():<EOL><INDENT>try:<EOL><INDENT>setattr(profile, field, self.attrs[attr][<NUM_LIT:0>])<EOL>save_profile = True<EOL><DEDENT>except Exception:<EOL><INDENT>logger.warning("<STR_LIT>", self.dn, attr)<EOL><DEDENT><DEDENT>return save_profile<EOL>
Populate the given profile object from AUTH_LDAP_PROFILE_ATTR_MAP.
Returns True if the profile was modified.