LDAP 与 PHP

来源:互联网 发布:如何成为社交高手 知乎 编辑:程序博客网 时间:2024/06/03 15:19

LDAP is the Lightweight Directory Access Protocol, and is a protocol used to access "Directory Servers". The Directory is a special kind of database that holds information in a tree structure. 

LDAP:轻量级目录访问协议:

一个用来访问“目录服务器群”的协议。这个目录是一个特别的数据库,用来存储在树状结构的信息。

The concept is similar to your hard disk directory structure, except that in this context, the root directory is "The world" and the first level subdirectories are "countries". Lower levels of the directory structure contain entries for companies, organisations or places, while yet lower still we find directory entries for people, and perhaps equipment or documents.

除了所在的环境,这个概念跟我们的硬盘目录结构比较相似。根目录是“这个世界”,第一层分目录是“国家”;目录中比较低的就包括公司实体,组织,或者更低的一些地方。

To refer to a file in a subdirectory on your hard disk, you might use something like: 

需求:

You will need to get and compile LDAP client libraries from either ? OpenLDAP or ? Bind9.net in order to compile PHP with LDAP support.


同样,php的这个服务,包含很多的常量、函数等。

// basic sequence with LDAP is connect, bind, search, interpret search
// result, close connection



原创粉丝点击