LDAP - apt-get 和从源安装构建之间的区别

LDAP - Difference between apt-get and build from sources installation

我想在 Ubuntu 中使用伯克利数据库后端设置 openLDAP。服务器是远程的,所以我必须使用 ssh 客户端 (secureCRT)。

通过(apt-get install slapd ldap-utils)安装和从源代码构建(make & make install)有什么区别?

有些网站说命令行安装提示window设置密码,所以无法通过secureCRT安装,我试过了,没有提示windows。

命令行安装后,我可以set/modify通过使用secureCRT更改配置文件来获得管理员密码和数据库后端类型吗?它会导致相同的重新配置结果吗?

您不会获得完全相同的安装。

通过 apt-get 脚本安装 Debian 软件包 与通过 'make & install' 构建它大致 相同,但 apt 脚本通常提供额外的 post-安装脚本、调整和配置文件以更好地适应系统。

在这种情况下,使用或不使用 SSH 客户端 运行 安装应该没有任何区别。

命令行安装后,我可以set/modify通过使用secureCRT更改配置文件来set/modify管理员密码和数据库后端类型吗?

是的,您可以在两种情况下执行此操作(apt/make 安装)。

您唯一应该检查的是您的系统与后端要求的兼容性。这里有一件重要的事情要注意,引用自doc

OpenLDAP's slapd(8) BDB and HDB deprecated database backends require Oracle Corporation's Berkeley DB. If not available at configure time, you will not be able to build slapd(8) with these deprecated database backends.

Your operating system may provide a supported version of Berkeley DB in the base system or as an optional software component. If not, you'll have to obtain and install it yourself. Berkeley DB is available from Oracle Corporation's Berkeley DB download page if required.

如果您的系统确实提供了 Berkeley DB,除非您已经对 openLDAP 配置感到满意,否则我强烈建议您选择 'apt' 而不是 'make' 到 运行 您的安装。