private bool TestHasSecurityKeyCommand(IRpcBroker broker, string key)
        {
            Assert.IsNotNull(broker);

            OrwuHasKeyCommand command = new OrwuHasKeyCommand(broker);

            command.AddCommandArguments("WEBM ADMIN");

            RpcResponse response = command.Execute();

            Assert.AreEqual(RpcResponseStatus.Success, response.Status);

            return(command.HasKeyResult);
        }
Ejemplo n.º 2
0
        private void TestHasSecurityKeyCommand(IRpcBroker broker, string key)
        {
            Assert.IsNotNull(broker);

            this.SignonToBroker(broker, 2);

            OrwuHasKeyCommand command = new OrwuHasKeyCommand(broker);

            command.AddCommandArguments("WEBM ADMIN");

            RpcResponse response = command.Execute();

            Assert.AreEqual(RpcResponseStatus.Success, response.Status);
        }
        public AdminResult GetUserAdmin()
        {
            AdminResult returnVal = new AdminResult();

            if (this.broker != null)
            {
                OrwuHasKeyCommand command = new OrwuHasKeyCommand(broker);

                command.AddCommandArguments("DSIO ADMIN");

                command.Execute();

                if (command.Response.Status == RpcResponseStatus.Success)
                {
                    returnVal.UserHasAdminSecurityKey = command.HasKeyResult;
                }
            }

            return(returnVal);
        }