def _populate_user_from_dn_regex_negation(self):
for field, regex in self.settings.USER_FLAGS_BY_DN_REGEX_NEGATION.items():<EOL><INDENT>field_value = True<EOL>if re.search(regex, self._get_user_dn(), re.IGNORECASE):<EOL><INDENT>field_value = False<EOL><DEDENT>setattr(self._user, field, field_value)<EOL><DEDENT>
Populate the given profile object flags from AUTH_LDAP_PROFILE_FLAGS_BY_DN_REGEX.
Returns True if the profile was modified