Opers up.
        Required arguments:
        * name - Oper name.
        * password - Oper password.
17352
def oper(self, name, password):
        
        with self.lock:
            self.send('OPER %s %s' % (name, password))
            snomasks = ''
            new_umodes = ''
            if self.readable():
                    msg = self._recv(expected_replies=( \
                                                    'MODE', '381', '008'))
                    if msg[0] == 'MODE':
                            new_umodes = msg[2].replace(':', '', 1)
                    elif msg[0] == '381':
                            return new_umodes, snomasks
                    elif msg[0] == '008':
                            snomasks = msg[2].split('(')[1].split(')')[0]
211263
def up(self):
        '''  '''
        # Set new flags
        flags = self.ifflags | IFF_UP
        self.ifflags = flags
        self.get_mtu()
556832
def raises(cls, sender, attrname, error, args=ANYTHING, kwargs=ANYTHING):
        ""
        def raise_error():
            raise error
        return cls(sender, attrname, returns=Invoke(raise_error), args=ANYTHING, kwargs=ANYTHING)
659542
def updatePassword(self,
                       user,
                       currentPassword,
                       newPassword):
        """"""
        return self.__post('/api/updatePassword',
                           data={
                               'user': user,
                               'currentPassword': currentPassword,
                               'newPassword': newPassword
                           })
493579
def create_user(username, password)
      new_action = { 'UserName' => username, 'Password' => password, 'Oem' => { 'Hp' => { 'LoginName' => username } } }
      response = rest_post('/redfish/v1/AccountService/Accounts/', body: new_action)
      response_handler(response)
      true
    end
653987
def required_string(name)
      required_custom(name) do |env|
        if value = env[name.to_s.upcase]
          {name => value}
        else
          raise ConfigError.new("A value must be provided for #{name.to_s.upcase}")
        end
      end
    end
88247
def add_auth_args(parser, config):

    """"""

    parser.add_argument('-p', '--provider', default=config.DEFAULT_PROVIDER)
    parser.add_argument('-u', '--userid', default=config.DEFAULT_USERID)
    parser.add_argument('-k', '--secret_key', default=config.DEFAULT_SECRET_KEY)
    return parser
366914
def assert_valid_name(name: str) -> str:
    """"""
    error = is_valid_name_error(name)
    if error:
        raise error
    return name
369850
def password(name, options = {})
      field name, CharField.new(options.merge(widget: Widgets::PasswordInput.new))
    end
976720
async def authenticate(self, username: str, password: str) -> None:
        """"""
        self._credentials = {
            'username': username,
            'password': password,
        }

        await self._get_security_token()
539820
def extend_initials(*arguments)
      arguments.each do |with_first, for_last|
        names.each do |name|
          name.extend_initials(with_first, for_last)
        end
      end

      self
    end
1180460
def set_user_password(environment, parameter, password):
    
    username = '%s:%s' % (environment, parameter)
    return password_set(username, password)
677217
def cli(obj, name, email, password, status, text):
    """"""
    client = obj['client']
    if not email:
        raise click.UsageError('Need "--email" to sign-up new user.')
    if not password:
        raise click.UsageError('Need "--password" to sign-up new user.')
    try:
        r = client.signup(name=name, email=email, password=password, status=status, attributes=None, text=text)
    except Exception as e:
        click.echo('ERROR: {}'.format(e))
        sys.exit(1)
    if 'token' in r:
        click.echo('Signed Up.')
    else:
        raise AuthError
652156
def authenticate(self, account_name, password):
        
        self.auth_token = self.authenticator.authenticate(self.transport,
                                                          account_name,
                                                          password)
325728
def update_credentials(self, password):
        
        data = {
            'Password': password,
        }
        self._conn.patch(self.path, data=data)
746815
def update_userpass_password(self, username, password, mount_point='userpass'):
        
        params = {
            'password': password
        }
        return self._adapter.post('/v1/auth/{}/users/{}/password'.format(mount_point, username), json=params)
495021
def up(self, n=1, interval=0, pre_dl=None, post_dl=None):
        
        self.delay(pre_dl)
        self.k.tap_key(self.k.up_key, n, interval)
        self.delay(post_dl)