[PATCH] Add support for the realm command