6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3390] ldap code overwrite last_login pref
*
Your Email Address
*
Spam protection
Enter the letters below:
. .._..__ __ .___ |\/| | [ __/ `[__ | |_|_[_./\__.[___
Comment
> I use ldap backend for preferences. > > In horde+imp last_login works. > > In horde+imp+ingo last_login does not work anymore. > > > > When imp loads preferences, it load horde preferences as well. > > In that step it set last_login with the ldap value, > > "display" last_login value > > and set last_login to current time. > > > > When ingo loads preferences, it load horde preferences as well. > > In that step it set last_login with the ldap value and the > > last_login value from imp is lost. > > > > If my workaround is usefull you can use it, > > modify it, ... > > > > ------------------------------------------------------------ > > *** ldap.php.orig Thu Feb 2 09:41:30 2006 > > --- ldap.php Thu Feb 2 14:34:01 2006 > > *************** > > *** 382,389 **** > > > > /* Retrieve this preference. */ > > if (isset($this->_prefs[$pref])) { > > ! $this->_setValue($pref, base64_decode($val), false); > > ! $this->setDefault($pref, false); > > } else { > > $this->add($pref, base64_decode($val), _PREF_SHARED); > > } > > --- 382,398 ---- > > > > /* Retrieve this preference. */ > > if (isset($this->_prefs[$pref])) { > > ! # when imp loads, the last_login is read from ldap > > ! # then imp set new value for last_login, but it > does not write it to ldap yet > > ! # then ingo loads and last_login is read from > ldap: last_login is overwriten with old value > > ! # so we need to check if last_login is globaly > dirty and use global last_login value instead > > ! if ($GLOBALS['prefs']->isDirty($pref)) { > > ! $this->_setValue($pref, > $GLOBALS['prefs']->getValue($pref), false); > > ! $this->setDefault($pref, false); > > ! } else { > > ! $this->_setValue($pref, base64_decode($val), false); > > ! $this->setDefault($pref, false); > > ! } > > } else { > > $this->add($pref, base64_decode($val), _PREF_SHARED); > > }
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers