def get_user_info_for_username(self, username, _connection=None):
ldap_filter = '<STR_LIT>'.format(<EOL>self.config.get('<STR_LIT>'),<EOL>username,<EOL>self.config.get('<STR_LIT>')<EOL>)<EOL>return self.get_object(<EOL>dn=self.full_user_search_dn,<EOL>filter=ldap_filter,<EOL>attributes=self.config.get("<STR_LIT>"),<EOL>_connection=_connection,<EOL>)<EOL>
Gets info about a user at a specified username by searching the
Users DN. Username attribute is the same as specified as
LDAP_USER_LOGIN_ATTR.


Args:
    username (str): Username of the user to search for.
    _connection (ldap3.Connection): A connection object to use when
        searching. If not given, a temporary connection will be
        created, and destroyed after use.
Returns:
    dict: A dictionary of the user info from LDAP