Enforcing directory access control using categories