問題描述
在 GForge、LDAP 身份驗證中,如何設置屬性 authenticatedBind 的值? (In GForge, LDAP Authentication, how do I set the value for the property authenticatedBind?)
在此鏈接的身份驗證部分下,它用於匿名搜索和綁定:只需將 authenticatedBind 設置為 false。你能告訴我該怎麼做嗎?
參考解法
方法 1:
<p>@esyana In GForge 6.3.x and earlier, each of the modules (plugins) in GForge has its own configuration file. They're all located in /etc/gforge, with the core settings in gforge.conf and plugin‑specific settings in the appropriate folder under plugins/. You'll find the setting ldap.authenticatedBind in/etc/gforge/plugins/ldap/ldap.conf
</p> If you update the value there, then run cd /opt/gforge/bin && php create_config_cache.php
to make the change take effect.
In GForge 6.4 and newer, all settings are stored in the database and accessible using a shell script. Run /opt/gforge/bin/gf‑config set "ldap.authenticatedBind" false
to make the change. It takes effect immediately.