Permalink
Browse files

Added missing argumet

  • Loading branch information...
1 parent 1742fcc commit e8a7fa9afd52c1d90a447862136f8ae617dedd9e paca70 committed Apr 4, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/ldap/lib.php
View
@@ -910,7 +910,7 @@ function auth_user_update_password($username, $newpassword) {
switch ($CFG->ldap_user_type) {
case 'edir':
//Change password
- $result = ldap_modify($ldapconnection, $user_dn, array('userPassword' => $newpassword));
+ $result = ldap_modify($ldapconnection, $user_dn, array('userPassword' => $newpassword));
if(!$result){
error_log('LDAP Error in auth_user_update_password(). Error code: '
. ldap_errno($ldapconnection) . '; Error string : '
@@ -1160,7 +1160,7 @@ function auth_ldap_unix2expirationtime ($time) {
$result = false;
switch ($CFG->ldap_user_type) {
case 'edir':
- $result=date('YmdHis').'Z';
+ $result=date('YmdHis', $time).'Z';
break;
case 'posix':
$result = $time ; //Already in correct format

0 comments on commit e8a7fa9

Please sign in to comment.