merge of working dsrolegetprimdominfo() client code from APP_HEAD