OpenLDAP研究

85 阅读1分钟

在企业目录服务领域,OpenLDAP凭借开源、灵活的特性备受青睐。本文围绕《OpenLDAP研究》,从剖析其底层架构入手,详解实用命令与核心配置信息,展示web控制台便捷管理方式,还会梳理相关文档资源,助你全面掌握OpenLDAP的运行逻辑与使用技巧。 

架构

主要模块

  • lloadd - stand-alone LDAP Load Balancer Daemon (server or slapd module)
  • slapd - stand-alone LDAP daemon (server)
  • libraries implementing the LDAP protocol, and
  • utilities, tools, and sample clients.

相关的工程

  • Fortress - Role-based identity access management Java SDK
  • JLDAP - LDAP Class Libraries for Java
  • JDBC-LDAP - Java JDBC - LDAP Bridge Driver
  • LMDB - Lightning Memory-Mapped Database

树状的层级结构,比如组织的划分

图片按照 DNS 来划分层次图片

命令

open ldap 的 bin 目录下的命令:图片查询命令图片结果:图片其他一系列命令:图片查询所有图片

这里存储的 kerberos 的 keytab 实际是

  • 经过了 ASN.1 加密,包含了一些其他信息
  • 再做了 base64

类似下面解码过程

图片

配置信息

/opt/openldap/etc/openldap/ cat slapd.ldif图片

Key Components of an LDIF File:

  • dn: Distinguished Name, the unique identifier of an entry.
  • objectClass: Defines the entry’s structure and allowed attributes.
  • changetype: Specifies the operation (e.g., add, modify, delete).

Core Abbreviations

图片

web控制台

界面图片

文档

往期推荐