Add zuser_realm and use it We do not consistently (or correctly) extract the realm from a zuser. Add a function and use it instead of ad-hoc strchr munging.