るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.082秒)

別のキーワード

  1. etc passwd
  2. passwd each
  3. etc passwd=
  4. passwd age
  5. passwd dir

検索結果

Struct::Passwd (54052.0)

Alias of Etc::Passwd

Alias of Etc::Passwd

Etc::Passwd (54022.0)

Etc.#getpwent で得られる構造体。

...ステムには反映されません。

全てのシステムで提供されているメンバ。
* name
* passwd
* uid
* gid
* gecos
* dir
* shell

以降のメンバはシステムによっては提供されません。
* change
* quota
* age
* class
* comment
* expire...

WEBrick::HTTPAuth::Htpasswd (18040.0)

Apache の htpasswd 互換のクラスです。 .htpasswd ファイルを新しく作成することも出来ます。 htpasswd -m (MD5) や -s (SHA) で作成された .htpasswd ファイルには対応していません。

Apache の htpasswd 互換のクラスです。
.htpasswd ファイルを新しく作成することも出来ます。
htpasswd -m (MD5) や -s (SHA) で作成された .htpasswd ファイルには対応していません。




require 'webrick'
include WEBrick
htpd = HTTPAuth::Htpasswd.new('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')
htpd.flush
htpd2 = HTTPAuth::Htpassw...

WEBrick::HTTPAuth::Htdigest (40.0)

Apache の htdigest 互換のクラス。

Apache の htdigest 互換のクラス。



require 'webrick'
include WEBrick
htd = HTTPAuth::Htdigest.new('dot.htdigest')
htd.set_passwd('realm', 'username', 'supersecretpass')
htd.flush
htd2 = HTTPAuth::Htdigest.new('dot.htdigest')
p htd2.get_passwd('realm', 'username', false) == '65fe03e5b0a199462186848...

WEBrick::HTTPAuth::BasicAuth (22.0)

HTTP の Basic 認証のためのクラスです。

HTTP の Basic 認証のためのクラスです。



require 'webrick'
realm = "WEBrick's realm"
srv = WEBrick::HTTPServer.new({ :BindAddress => '127.0.0.1', :Port => 10080})

htpd = WEBrick::HTTPAuth::Htpasswd.new('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')

authenticator =...

絞り込み条件を変える

WEBrick::HTTPAuth::DigestAuth (22.0)

HTTP の Digest 認証のためのクラスです。

HTTP の Digest 認証のためのクラスです。

2617 も参照してください。

例:
require 'webrick'
config = { :Realm => 'DigestAuth example realm' }

htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
htdigest.set_passwd config[:Realm], 'username', 'password'
htdigest.flush

config[:UserDB] = htdigest

dige...