Author: ralfbecker
New Revision: 54937
URL: http://svn.stylite.de/viewvc/egroupware?rev=54937&view=rev
Log:
- ActiveDirectory: fixed user who never changed his password get forced to change his password
pwdlastset attributes seems not set, if password was never changed, different from 0 value for forced password change
Modified:
trunk/phpgwapi/inc/class.auth_ads.inc.php
— trunk/phpgwapi/inc/class.auth_ads.inc.php (original)
+++ trunk/phpgwapi/inc/class.auth_ads.inc.php Fri Feb 5 15:02:00 2016
@@ -124,7 +124,8 @@
* Required by EGroupware to force user to change password.
*
* @param string $username username of account to authenticate
-
-
@return mixed false on error, 0 if user must change on next login, or timestamp of last change
-
-
@return mixed false on error, 0 if user must change on next login,
-
- or NULL if user never changed his password or timestamp of last change
*/
static function getLastPwdChange($username)
{
@@ -132,10 +133,10 @@
if (($adldap = accounts_ads::get_adldap()) &&
($data = $adldap->user()->info($username, array(‘pwdlastset’))))
{
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs