發表文章

目前顯示的是 3月, 2017的文章

Sever 資料權限 分類別設定

只修改 /var/www/html/abc 底下所有資料夾的權限 find /var/www/html/abc -type d -exec chmod 755 {} \; 只修改 /var/www/html/abc 底下所有資料夾的權限 find /var/www/html/abc -type f -exec chmod 644 {} \;

LDAP安裝於Ubuntu

就我所知有三個需要注意的地方: 安裝LDAP主程式 安裝LDAP圖形化介面 安裝LDAP網頁服務相關應用套件 以Ubuntu主機為例LDAP為OpenLDAP,圖形化介面為phpldapadmin 步驟 安裝OpenLDAP sudo apt-get install slapd ldap-utils 設定admin的密碼 sudo dpkg-reconfigure slapd 做詳細設定 Omit OpenLDAP server configuration? No DNS domain name: localhost Organization name: localhost Administrator password: ******* Confirm password: ******* Database backend to use: MDB Do you want the database to be removed when slapd is purged? No Move old database? Yes Allow LDAPv2 protocol? No 設定LDAP的ldap.conf 把BASE跟URI改一改 安裝phpldapadmin sudo apt-get install phpldapadmin 修改phpldapadmin config裡的資訊(紅色部分) sudo nano /etc/phpldapadmin/config.php $servers->setValue('server','host',' server_domain_name_or_IP '); $servers->setValue('server','base',array(' dc=test,dc=com ')); $servers->setValue('login','bind_id',' cn=admin,dc=test,dc=com '); $config->custom->appearance[...