A homeless man posing as law enforcement was arrested after he was found with a gun and phony IDs at Nassau County government building Wednesday morning.