Changeset 2869 in subversion
- Timestamp:
- Aug 24, 2009 3:18:47 PM (4 years ago)
- Location:
- trunk/roundcubemail/plugins/password
- Files:
-
- 2 edited
-
config.inc.php.dist (modified) (1 diff)
-
drivers/ldap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/plugins/password/config.inc.php.dist
r2817 r2869 88 88 89 89 // LDAP user DN mask 90 // The user's DN is mandatory and as we only have his login, we need to re-create his DN using a mask 91 // '%login' will be replace by the current roundcube user's login 90 // The user's DN is mandatory and as we only have his login, 91 // we need to re-create his DN using a mask 92 // '%login' will be replaced by the current roundcube user's login 93 // '%name' will be replaced by the current roundcube user's name part 94 // '%domain' will be replaced by the current roundcube user's domain part 92 95 // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com' 93 96 $rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com'; -
trunk/roundcubemail/plugins/password/drivers/ldap.php
r2817 r2869 22 22 // Building user DN 23 23 $userDN = str_replace('%login', $_SESSION['username'], $rcmail->config->get('password_ldap_userDN_mask')); 24 25 $parts = explode('@', $_SESSION['username']); 26 if (count($parts) == 2) 27 { 28 $userDN = str_replace('%name', $parts[0], $userDN); 29 $userDN = str_replace('%domain', $parts[1], $userDN); 30 } 31 24 32 if (empty($userDN)) {return PASSWORD_CONNECT_ERROR;} 25 33
Note: See TracChangeset
for help on using the changeset viewer.
