Generate a temporary directory name based on the DN / role / group.