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 [#2838] Prefs overwrites modified Horde prefs in some cases
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. .\ /.__ . . |__|\ / >< [ __\ / | | \/ / \[_./ \/
Comment
> Background: > > I'm using the Horde-Framwork with imp and ingo. > > In the Horde configuration I have choosen (Authentication): > > Let a Horde application handle authentication: imp > > > > The preferencies backend is LDAP. > > > > > > > > When I'm including ingo in imp then the last_login preference from > Horde is not stored in the preferencies-backend! > > > > Reason: > > - When imp comes up the preferencies are retrieved (Horde and IMP prefs) > > The old value for last_login is retrieved > > - horde/lib/Horde/Auth.php sets the new value for last_login > > - Then Ingo retrieves the preferencies (ingo is used in imp) > > The preferencies from HORDE and INGO are retrieved > > - At this time the HORDE-Prefs are retrieved a second time and the > previous set last_login attribute is overwritten! > > - After this the HORDE-preferencies are stored back to LDAP the first > time in this session. > > > > Resolution: > > Store the new "dirty-value" for last_login after setting it: > > > > Code snippet from horde/lib/Horde/Auth.php: > > (Last line added) > > > > // Set the user's last_login information. > > $last_login = array('time' => time(), > > 'host' => > @gethostbyaddr($_SERVER['REMOTE_ADDR'])); > > $GLOBALS['prefs']->setValue('last_login', serialize($last_login)); > > //NEW: ************************Store it ! ********************* > > $GLOBALS['prefs']->store(); > > //END NEW ************************
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