3
ܓi @ s d dl mZ G dd deZdS ) )SoSMapc @ s$ e Zd ZdZdZdZdZdd ZdS )SoSUsernameMapa Mapping to store usernames matched from ``lastlog`` output.
Usernames are obfuscated as ``obfuscateduserX`` where ``X`` is a counter
that gets incremented for every new username found.
Note that this specifically obfuscates user_names_ and not UIDs.
Tr c C s: d| j }| j d7 _ || jj kr6| j|j S |S )z@Obfuscate a new username not currently found in the map
Zobfuscateduser )
name_countZdatasetvalues
sanitize_itemlower)selfitemZob_name r "/usr/lib/python3.6/username_map.pyr s
zSoSUsernameMap.sanitize_itemN)__name__
__module____qualname____doc__Zignore_short_itemsZmatch_full_words_onlyr r r r r r r s
r N)Zsos.cleaner.mappingsr r r r r r