7. X.500
7.1. 什么是 X.500
X.500 是一种基于 OSI(开放系统信息)的目录服务协议,由 CCITT(国际电报电话咨询委员会)设计.X.500 为网络用户提供分布式目录服务.X.500 目录指定了一种连接目录服务以形成一个分布式全球目录的模型.每个目录服务持有全球数据库的一部分,目录信息通过一个服务器(称为 Directory System Agent - DSA)提供.数据库在本地维护.从用户的角度来看,整个目录都可以从本地服务器访问.虽然目前通过 X.500 可用的大多数信息是关于人员和组织的,但 X.500 目录的设计也适合存储关于其他实体(或对象)的信息,例如网络资源,应用程序或硬件.若干项目正在利用这些目录能力(例如,Internet RFCs (Request For Comments) 被列在全球目录中).X.500 目录中的每个项目(条目)描述一个对象(例如一个人,一项网络资源,一个组织),并具有一个 Distinguished Name - DN(唯一标识符).它由一组属性组成(例如,对于一个人,有姓氏,组织名称,电子邮件等).X.500 目录(或 Directory Information Base - DIB)中保存的信息按层次结构排列.这种组织方式称为 Directory Information Tree (DIT).顶层是根条目(the World),然后是国家级,再是组织级,最后在层次结构的底层是人员,资源等.
7.2. 谁可以使用 X.500
尽管 X.500 是 OSI 标准定义的一部分,但使用目录服务并不需要 OSI 访问.Internet 上有许多 X.500 服务可用.此外,任何网络上的用户都可以通过电子邮件访问 X.500 目录.详细信息见下面 Using X.500 一节.
7.3. 如何访问 X.500
访问 X.500 服务有三种方式:通过本地客户端,交互式会话(Telnet 或 X.25 访问)或电子邮件.每种访问方式都在下面 Using X.500 一节中描述.此外,其他网络工具(例如 WWW 和 Gopher)通过网关提供对 X.500 目录服务的访问.访问远程客户端是开始查询 X.500 目录的简便方法.有些站点允许通过 Telnet 或 X.25 公开访问客户端.公共访问用户界面可用于:
+---------------------------------------------------------------+
| |
| Telnet (login) Public X.25 (login) Country |
| |
+---------------------------------------------------------------+
| jethro.ucc.su.oz.au (fred) Australia |
| elem4.vub.ac.be (dua) 222100611 Belgium |
| login.dkuug.dk (ds) Denmark |
| nic.funet.fi (dua) Finland |
| 20800603053201 France |
| (login: dua, password: ucom.x) France |
| 26245050230303 Germany |
| ashe.cs.tcd.ie (de) Ireland |
| jolly.nis.garr.it (de or fred) 22225010083212 Italy |
| zoek.nic.surfnet.nl (zoek) Netherlands|
| elc1.mat.torun.edu.pl (de or dish) Poland |
| chico.rediris.es (directorio) 2142160234013 Spain |
| hypatia.umdc.umu.se (de) 240374810306 Sweden |
| nic.switch.ch (dua) 22847971014540 Switzerland|
| paradise.ulcc.ac.uk (dua) 23421920014853 Paradise |
| |
+---------------------------------------------------------------+
Paradise 是一个欧洲项目,旨在鼓励欧洲各国使用 X.500.要连接到这些站点之一,请选择一种访问方式(Telnet 或 X.25),并在 login: 提示符处键入指定的登录名(如果需要).
7.4. 使用 X.500
X.500 支持数据管理功能(条目的添加,修改和删除)以及强大的查找能力.使用 X.500 主要是为了它的查找能力,即在数据库中查询有关某个人的信息(邮政地址,电话号码,电子邮件地址等).搜索的基本字段是人名,此人所在组织的名称(以及该组织内的部门)和国家.在下文中,尖括号(<>)表示可选参数;竖线 (|) 表示参数的选择.
7.4.1. 使用本地客户端:
在 X.500 世界里,本地客户端称为 Directory User Agent (DUA).公共领域和商业 DUA 可用于从大型机到个人计算机的众多平台.有关 DUA 的完整列表,描述及获取位置,请查阅 Internet 文档 RFC 1292 - A Catalog of Available X.500 Implementations.可用的 DUA 从简单的行命令到需要指点设备的复杂图形用户界面不等.
7.4.2. 使用 Telnet 或 X.25:
远程站点可能提供三类用户界面:* 面向行的:de, dish, fred * 菜单驱动的:sd(以前称为 widget)* 基于 X-Windows 的:Xdi, Xlookup(或 xlu), pod 这些 DUA 的能力从基本搜索功能到完整的 X.500 功能不等.de (directory enquiries) 推荐给新手用户,因为它是一个非常简单的用户界面.它被设计为作为公共访问 DUA 运行,可从任何种类的终端访问.它支持基本的 X.500 功能:read, search, list.Simple 查询模式适合刚接触 X.500 目录查询的用户.de 调用 X.500 查询用户界面.q 退出 de.?
Organization name
the name (or an acronym) of the organization where the
person works. Wildcard characters may be used anywhere in
the name. Typing only "*" will match all organizations. If no
person's name or department name has been entered, details on
the organization are displayed, otherwise, the search is
carried out with the selected name.
Country name 此人工作所在国家的名称.键入 "*" 将列出所有国家.国家名称可以是两个字母的国家代码(例如 DK 代表 Denmark),名称或其不带通配符的一部分(例如用 nether 代替 The Netherlands).如果找到大量匹配的条目,它们会被列出,以便用户选择一个条目获取更多详细信息.
7.4.3. 使用电子邮件:
挪威网络组织 (UNINETT) 提供 X.500 的电子邮件界面.要使用它,请发送一封邮件到:[email protected],并在 Subject: 字段中写入 find 一词.正文部分包含搜索请求,每条消息一个请求.搜索请求的格式是:
+---------------------------------------------------------------+
| |
| find <person-name> <: org-name <; country-name>> | |
| <; country-name> |
| |
+---------------------------------------------------------------+
如果省略 org-name 和 country-name,则使用发件人的组织名称和国家名称作为默认值.邮件界面从你邮件的 From: 字段中猜测这些值,因此如果你的地址以 .bitnet 结尾,结果可能出人意料!"*" (星号) 是通配符,可以替代任何名称中的任何其他字符.它可以出现在名称的任何位置.查询的结果通过邮件消息发回.搜索不区分大小写.注意:为避免目录服务过载,不允许用户在未选择组织的情况下搜索某个人.要获得帮助文件,请发送 help 一词代替 find 命令.
7.5. 示例
使用 de,你可以用以下请求搜索英国 University College of London 的 Anthropoloy 系:Person's name, q to quit, * to browse, ? for help :-Department name, * to browse, ? for help :- a* Organisation name, * to browse, ? for help :- ucl Country name, * to browse, ? for help :- uk 一些条目与所选部门匹配,全部列出以供进一步选择:United Kingdom University College London Got the following matches. Please select one from the list by typing the number corresponding to the entry you want. United Kingdom University College London 1 A.U.T. Office 2 American Institute for Foreign Study 3 Anatomy and Developmental Biology 4 Anthropology 5 Audio Visual Centre Department name, * to browse, ? for help :- 4 United Kingdom University College London Anthropology Telephone Number +44 71-387-7050 x2455 fax +44 71 380 7728 如果你要查找丹麦 UNI-C 的 Erik Lawaetz,可以输入以下请求(默认值来自上一个请求):Person's name, q to quit, * to browse, ? for help :- law* Department name, * to browse,
If you send mail to [email protected] with the request:
find geir ped* : *oslo ; no
你将得到以下结果:
-----------------------------------------------------------------
此消息是对你向目录发出的查找 geir ped* 请求的响应:*oslo ; no
This is interpreted as a request to find a person with a name
matching "geir ped*" in an organisation with name matching
"*oslo" in a country with a name matching "no".
There were 8 organisations with a name matching the
organizational name you specified. Within those organisations
there were 7 persons that had a name matching the personal name
you specified. Directory information for the located persons is
shown below.
Geir Pedersen : Universitetet i Oslo ; Norway Alternate Geir Kenneth Pedersen Alternate Geir K. Pedersen E-Mail (RFC) [email protected] E-Mail (X.400) /G=geir/S=pedersen/OU=usit/O=uio/PRMD=uninett/ADMD= /C=no/Postal Address Postboks 1059 - Blindern 0316 Oslo 3 NORWAY Phone +47-22-852478 Phone +47-22-852470 (front-office) Fax-phone +47-22-852730 Description Project leader for UNINETTs X.500 projects User ID geirp Favorite Drink Farris Street Address Gaustadalleen 23 Home Address Gaustadveien 17A 0372 Oslo 3 NORWAY See also Geir Pedersen : UNINETT ; Norway Entry updated Tue Jun 15 11:51:31 1993
-----------------------------------------------------------------
以及另外 6 个条目.
7.6. 了解更多 X.500 信息
若干 Internet RFC 文档涉及 X.500:RFC 1292 A Catalog of Available X.500 Implementations.
RFC 1308 Executive Introduction to Directory Services Using the
X.500 Protocol,
RFC 1309 Technical Overview of Directory Services Using the
X.500 Protocol,
关于 X.500 的官方信息来源是 CCITT 发布的 X.500 建议书(Blue Book, Volume VIII -Fascicle VIII.8, Data Communication Networks Directory, Recommendations X.500-X.521, CCITT, 1988, ISBN 92-61-03731-3).该文档也可以电子方式获得:向 [email protected] 发送命令 GET ITU-5233,或通过 Gopher 到 gopher.itu.ch 查阅 ITU 文档库.这不是面向普通用户的!