我怎样才能看到我的发行版(OpenSuSE)提供的OpenLDAP可执行文件是如何编译的?
经过长时间的debugging,我认为我的TLSconfiguration是简单的忽略。 我想检查slapd是否用–with-tls编译。 有什么方法可以查看编译到可执行文件中的内容吗?
slapd -VVV只显示覆盖和后端,但没有告诉我有关TLS的信息。
从http://download.opensuse.org/repositories/network:/ldap:/OpenLDAP:/RE24/openSUSE_11.2/src/查看源代码RPM
openldap2-2.4.25-141.1.src.rpm在openldap2.spec文件中给出了这个构buildconfiguration。
%configure \ --localstatedir=/var/run/slapd \ --libexecdir=/usr/lib/openldap \ --enable-wrappers \ --enable-spasswd \ --enable-modules \ --enable-shared \ --enable-dynamic \ --with-tls \ --with-cyrus-sasl \ --enable-crypt \ --enable-ipv6=yes \ %if "%{name}" == "openldap2" --enable-aci \ --enable-bdb \ --enable-hdb \ --enable-rewrite \ --enable-ldap=yes \ --enable-meta=mod \ --enable-monitor=yes \ --enable-perl=mod \ --enable-sql=mod \ --enable-slp \ --enable-overlays=mod \ --enable-syncprov=yes \ --enable-ppolicy=yes \ %else --disable-slapd \ %endif --enable-lmpasswd \ --with-yielding-select
看第8个标志,我看到–with-tls指定。
如果你需要一个不同版本的openSuSE的configuration,我相信你可以在另一个源代码RPM中find类似的行,然而,我怀疑编译标志从发行版到发行版都有很大的变化。
您可以下载SRPM并检查spec文件。 链接到SSL共享库是一个很好的指示,它是:
$ ldd /usr/sbin/slapd | grep ssl libssl.so.6 => /lib64/libssl.so.6 (0x00002b1e90a8b000)