Hippo2000 (2000/7/28)
URI::ldapモジュールなのです。
作者はGisle Aasさんです。メールで許可をいただきました。
URI::ldap - LDAP 定型資源位置(Uniform Resource Locators )
use URI;
$uri = URI->new("ldap:$uri_string");
$dn = $uri->dn;
$filter = $uri->filter;
@attr = $uri->attributes;
$scope = $uri->scope;
%extn = $uri->extensions;
$uri = URI->new("ldap:"); # 開始 空っぽ
$uri->host("ldap.itd.umich.edu");
$uri->dn("o=University of Michigan,c=US");
$uri->attributes(qw(postalAddress));
$uri->scope('sub');
$uri->filter('(cn=Babs Jensen)');
print $uri->as_string,"\n";
URI::lapはRFC2255で記述されているように、その構成要素部分でのLDAP URIを解析し、URIを組みたてるインターフェースを提供します。
URI::lapはURIで定義されるすべての汎用とサーバメソッドをサポートし、さらに以下のものをサポートします。
以下のメソッドそれぞれはURIでの値を設定あるいは取得するために使うことが出来ます。値はエスケープされない形式で渡されます。これらはすべて未定義値を返しませんが、デフォルトがない要素は空にすることできます。与えられた引数はURIの与えられた部分の新しい値に設定されます。
RFC-2255
Graham Barr <gbarr@pobox.com>
URIディストリビューションに合わせるためにGisle Aasにより少し修正
Copyright reserved. This program is free software; you can redistribute it and/or modify it under the same (c) 1998 Graham Barr. All rights terms as Perl itself.
ご意見、ご質問はこちらの掲示板で受け付けています。
またメールは河馬屋(Nifty)にお願いします。