next up previous contents
Next: markasjunk Plugin Up: Roundcube Webmail Previous: Managesieve Plugin   Contents

Password Plugin

  1. 複製 password 插件設定範例。
    [root@mail plugins]# cp password/config.inc.php.dist password/config.inc.php
    
  2. 編輯 password 插件設定檔,本系統使用 ldap 認證帳號,所以 driver 使用 ldap,有關 ldap 的設定參數必須配合 ldap server。
    [root@mail plugins]# vim password/config.inc.php
    [root@mail plugins]# grep ldap password/config.inc.php | grep -v '//'
    $config['password_driver'] = 'ldap';
    $config['password_ldap_host'] = '192.168.122.1';
    $config['password_ldap_port'] = '389';
    $config['password_ldap_starttls'] = false;
    $config['password_ldap_version'] = '3';
    $config['password_ldap_basedn'] = 'dc=deyu,dc=wang';
    $config['password_ldap_method'] = 'user';
    $config['password_ldap_adminDN'] = null;
    $config['password_ldap_adminPW'] = null;
    $config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=deyu,dc=wang';
    $config['password_ldap_searchDN'] = 'ou=People,dc=deyu,dc=wang';
    $config['password_ldap_searchPW'] = 'secret';
    $config['password_ldap_search_base'] = 'ou=people,dc=deyu,dc=wang';
    $config['password_ldap_search_filter'] = '(uid=%login)';
    $config['password_ldap_encodage'] = 'crypt';
    $config['password_ldap_pwattr'] = 'userPassword';
    $config['password_ldap_force_replace'] = true;
    $config['password_ldap_lchattr'] = '';
    $config['password_ldap_samba_pwattr'] = '';
    $config['password_ldap_samba_lchattr'] = '';
    [root@mail plugins]# cp password/config.inc.php.dist password/config.inc.php
    



2018-03-16