Changeset 4019 in subversion for trunk/plugins/password/drivers/ldap.php
- Timestamp:
- Sep 30, 2010 3:02:52 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/password/drivers/ldap.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/password/drivers/ldap.php
r3775 r4019 81 81 return PASSWORD_CONNECT_ERROR; 82 82 } 83 84 // Updating PasswordLastChange Attribute if desired 85 if ($lchattr = $rcmail->config->get('password_ldap_lchattr')) { 86 $current_day = (int)(time() / 86400); 87 if (!$userEntry->replace(array($lchattr => $current_day), $force)) { 88 return PASSWORD_CONNECT_ERROR; 89 } 90 } 91 83 92 if (Net_LDAP2::isError($userEntry->update())) { 84 93 return PASSWORD_CONNECT_ERROR; … … 86 95 87 96 // All done, no error 88 return PASSWORD_SUCCESS; 97 return PASSWORD_SUCCESS; 89 98 } 90 99 … … 270 279 return $str; 271 280 } 272 273 ?>
Note: See TracChangeset
for help on using the changeset viewer.
