Changeset f767654 in github
- Timestamp:
- Jun 20, 2010 5:27:32 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 8dfe51e
- Parents:
- d7a5dfa2
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/rcube_ldap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r16e8314 rf767654 2 2 =========================== 3 3 4 - Add %dc variable support in base_dn/bind_dn config (#1486779) 4 5 - Add button to hide/unhide the preview pane (#1484215) 5 6 - Fix no-cache headers on https to prevent content caching by proxies (#1486798) -
config/main.inc.php.dist
r5852c14d rf767654 410 410 // %u - The username prior to the '@'. 411 411 // %d - The domain name after the '@'. 412 // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com" 412 413 'base_dn' => '', 413 414 'bind_dn' => '', -
program/include/rcube_ldap.php
rbb8721aa rf767654 133 133 $fu = $RCMAIL->user->get_username(); 134 134 list($u, $d) = explode('@', $fu); 135 135 $dc = 'dc='.strtr($d, array('.' => ',dc=')); // hierarchal domain string 136 136 137 // Replace the bind_dn and base_dn variables. 137 $replaces = array('% fu' => $fu, '%u' => $u, '%d' => $d);138 $replaces = array('%dc' => $dc, '%d' => $d, '%fu' => $fu, '%u' => $u); 138 139 $this->prop['bind_dn'] = strtr($this->prop['bind_dn'], $replaces); 139 140 $this->prop['base_dn'] = strtr($this->prop['base_dn'], $replaces); 140 141 } 141 142 142 143 if (!empty($this->prop['bind_dn']) && !empty($this->prop['bind_pass'])) 143 144 $this->ready = $this->bind($this->prop['bind_dn'], $this->prop['bind_pass']);
Note: See TracChangeset
for help on using the changeset viewer.
