2017-06-12 86 views
-3

當我使用sudo apt-get -y install slapdsudo dpkg-reconfigure slapd安裝和配置ubuntu16.04 slapd的,我遇到了這種情況,如何通過命令行安裝和設置LDAP?

enter image description here

enter image description here

我怎樣才能讓這個GUI(選擇或輸入)成爲完全命令行?

還是隻需點擊一下安裝和配置ldap?

預先感謝您。

+1

歡迎來到stackoverflow.com。請花些時間閱讀[幫助頁面](http://stackoverflow.com/help),尤其是名爲「[我可以在這裏詢問什麼主題?](http://stackoverflow.com/help/on -topic)「和」[我應該避免詢問什麼類型的問題?](http://stackoverflow.com/help/dont-ask)「。也請[參觀](http://stackoverflow.com/tour)並閱讀[如何提出好問題](http://stackoverflow.com/help/how-to-ask)。最後,請學習如何創建[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve)。 – ArturFH

+3

這個問題應該轉到[Ask Ubuntu](http://askubuntu.com) – ArturFH

+0

Stack Overflow是一個編程和開發問題的網站。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](http://unix.stackexchange.com/)會是一個更好的地方。如果你覺得它在其他地方的話題,然後[請求遷移](http://meta.stackoverflow.com/q/254851) – jww

回答

0

爲14.04我用命令

apt-get update && \ 
echo 'slapd/root_password password password' | debconf-set-selections &&\ 
echo 'slapd/root_password_again password password' | debconf-set-selections && \ 
DEBIAN_FRONTEND=noninteractive apt-get install -y slapd ldap-utils 

試試吧。