https://bugs.contribs.org/show_bug.cgi?id=10224

--- Comment #5 from John H. Bennett III <[email protected]> ---
Some of this isn't necessarily a horde issue, it's an issue with trying to
maintain backwards compatibility, the horde hook, and my non-progamming skills.

Please have a look starting here,
https://forums.contribs.org/index.php/topic,50969.msg271235.html#msg271235,
then go down to miroj's post.

Same here, which links you to the above,
https://forums.contribs.org/index.php/topic,50969.msg271792.html#msg271792

The issue is that since e-smith-3, the users have been saved to the MySQL DB as
[email protected].  So over the changes, I had tried to preserve that.  Now that
horde changed their hooks, it's not easy for me to maintain that part, as I am
not a coder.  So, this can either be hard-coded to use the primary domain of
the server, which then all users are saved as [email protected].  If that
hook is removed, then if you access the site as www.primarydomain.com, then the
users are saved to the db as [email protected], and all preferences
are lost.

Add to that, https://bugs.contribs.org/show_bug.cgi?id=9865, where we want to
look at allowing imap logins using [email protected], then the users will be
saved as [email protected]@domain.com, again losing any previous preferences.

I tested logins with no hook, and setting dovecot to permit imap login using
full email address, using [email protected], and my preferences were preserved,
but, I was still able to login with just a userid, and had two identities, with
different preferences.

Hardcoding the $vdomain to the primary domain, was where things were headed,
until someone said what if I have more than one domain, I want my users to have
unique preferences based on the domain.  It was also discussed to set it by
reading a DB variable, but the multiple domain comment wasn't solved.
For what's there now, I made work for my and other simple situations using a
domain.tld.  But, if I login to my system using the IP address, then I will
have yet another profile.  

IMO, what is think is needed is a hook that will remove the www|mail|webmail
any prefixes, and if the user is logging in as [email protected]. then horde
shouldn't append anything.  If the @ sign isn't present, then save with the
$vdomain name.  I can't write this, and I don't think what you attached does it
either.  Also your file removes the ability to remove a users horde preference
settings if this condition is met -  if (filter_var($vdomain,
FILTER_VALIDATE_IP))

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to