Changeset c8a1e6e in github


Ignore:
Timestamp:
Jun 26, 2009 4:31:14 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
41caad8
Parents:
7fbfd45
Message:
  • Password plugin: added LDAP driver
Location:
plugins/password
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/password/README

    r4534ab8 rc8a1e6e  
    3030 2.2.   Cyrus/SASL (sasl) 
    3131 2.3.   Poppassd/Courierpassd (poppassd) 
     32 2.4.   LDAP (ldap) 
    3233 3.     Driver API 
    3334 
     
    152153 
    153154 2.3. Poppassd/Courierpassd (poppassd) 
    154  ---------------------------- 
     155 ------------------------------------- 
    155156 
    156157 You can specify which host to connect to via `password_pop_host` and 
    157158 what port via `password_pop_port`. See config.inc.php file for more info. 
     159 
     160 
     161 2.4. LDAP (ldap) 
     162 ---------------- 
     163  
     164 See config.inc.php file. Requires PEAR::Net_LDAP2 package. 
    158165 
    159166 
  • plugins/password/config.inc.php

    r4534ab8 rc8a1e6e  
    3838$rcmail_config['password_pop_port'] = 106; 
    3939 
     40 
     41// LDAP Driver options 
     42// ------------------- 
     43// LDAP server name to connect to.  
     44// You can provide one or several hosts in an array in which case the hosts are tried from left to right. 
     45// Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com'); 
     46// Default: 'localhost' 
     47$rcmail_config['password_ldap_host'] = 'localhost'; 
     48 
     49// LDAP server port to connect to 
     50// Default: '389' 
     51$rcmail_config['password_ldap_port'] = '389'; 
     52 
     53// TLS is started after connecting 
     54// Using TLS for password modification is recommanded. 
     55// Default: false 
     56$rcmail_config['password_ldap_starttls'] = false; 
     57 
     58// LDAP version 
     59// Default: '3' 
     60$rcmail_config['password_ldap_version'] = '3'; 
     61 
     62// LDAP base name (root directory) 
     63// Exemple: 'dc=exemple,dc=com' 
     64$rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com'; 
     65 
     66// LDAP connection method 
     67// There is two connection method for changing a user's LDAP password. 
     68// 'user': use user credential (recommanded, require password_confirm_current=true) 
     69// 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW) 
     70// Default: 'user' 
     71$rcmail_config['password_ldap_method'] = 'user'; 
     72 
     73// LDAP Admin DN 
     74// Used only in admin connection mode 
     75// Default: null 
     76$rcmail_config['password_ldap_adminDN'] = null; 
     77 
     78// LDAP Admin Password 
     79// Used only in admin connection mode 
     80// Default: null 
     81$rcmail_config['password_ldap_adminPW'] = null; 
     82 
     83// LDAP user DN mask 
     84// The user's DN is mandatory and as we only have his login, we need to re-create his DN using a mask 
     85// '%login' will be replace by the current roundcube user's login 
     86// Exemple: 'uid=%login,ou=people,dc=exemple,dc=com' 
     87$rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com'; 
     88 
     89// LDAP password hash type 
     90// Standard LDAP encryption type which must be one of: crypt, 
     91// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear. 
     92// Please note that most encodage types require external libraries 
     93// to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info. 
     94// Default: 'crypt' 
     95$rcmail_config['password_ldap_encodage'] = 'crypt'; 
     96 
     97// LDAP password attribute 
     98// Name of the ldap's attribute used for storing user password 
     99// Default: 'userPassword' 
     100$rcmail_config['password_ldap_pwattr'] = 'userPassword'; 
     101 
    40102?> 
Note: See TracChangeset for help on using the changeset viewer.