Koozali.org: home of the SME Server

My Account Tab

jsheets

My Account Tab
« on: October 12, 2006, 02:53:08 PM »
I was looking at somebody else's SME 7 install and in their webmail they have a tab called "My Account" which has a link under it to allow people to change their password from within webmail.  I am not sure how they got that or if there is something I need to enable to get it to work but I would like to have this feature if anybody knows how to do it.  Thanks!

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: My Account Tab
« Reply #1 on: October 13, 2006, 12:54:58 AM »
Quote from: "jsheets"
I was looking at somebody else's SME 7 install and in their webmail they have a tab called "My Account" which has a link under it to allow people to change their password from within webmail.  I am not sure how they got that or if there is something I need to enable to get it to work but I would like to have this feature if anybody knows how to do it.  Thanks!


That is something I added to my horde script for sme 6.x.  I have not adapted it for SME 7.  At this point, I don't know if I will, because the horde project dropped support for the accounts module in favor of adding the functionality into horde 3.1.x via the portal layout.  What I did was to modify the old accounts module to make it display what I wanted.  It's possible that someone could do this for SME 7.  I haven't looked into what it may take.

John Bennett
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: My Account Tab
« Reply #2 on: October 13, 2006, 09:04:56 AM »
Quote from: "jsheets"
I was looking at somebody else's SME 7 install and in their webmail they have a tab called "My Account" which has a link under it to allow people to change their password from within webmail.  I am not sure how they got that or if there is something I need to enable to get it to work but I would like to have this feature if anybody knows how to do it.  Thanks!
Users can change theire password using the http://server-name or ip/user-password option I believe.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: My Account Tab
« Reply #3 on: October 13, 2006, 02:54:03 PM »
Quote from: "cactus"
Quote from: "jsheets"
I was looking at somebody else's SME 7 install and in their webmail they have a tab called "My Account" which has a link under it to allow people to change their password from within webmail.  I am not sure how they got that or if there is something I need to enable to get it to work but I would like to have this feature if anybody knows how to do it.  Thanks!
Users can change theire password using the http://server-name or ip/user-password option I believe.


It is https://www.domain.com/user-password
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
My Account Tab
« Reply #4 on: April 04, 2007, 04:37:26 AM »
Once the mirrors sync, you will find a new smeserver-smeaccounts rpm in my contribs area that adds this back.  Haven't done a lot of testing, but it works from my local lan.  You will need to search for smeserver-userpanel as their may be an issue with allowing access to user-manager from the public side.  Also make sure you take note if the warning on the accounts pages.

http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/horde3.1.x/

John
......

Offline shell

  • ****
  • 117
  • +0/-0
My Account Tab
« Reply #5 on: April 04, 2007, 08:20:10 AM »
awesome - thank you for your work!!!  i have been keeping an eye open for this as really liked the feature on 6.x

thought some feedback might be appreciated:
download johns rpm and yum localinstall --enablerepo=dungog stops the worry for smeserver-userpanel dependency.

at the moment my userpanel won't allow change of password - simply refreshes after hitting the change password button - but i'm guessing this is because my user passwords strength has been lowered (i recall reading this is an issue with 7.1.x upgrades - will do more reading and update this message tonight).

apart from this is works great.  thanks

let me know if you would like any further help with testing.  

also there are a couple of very minor grammar / spelling issues on the my account page inside horde
Quote
Do to the new cookie-based authenticaion for SME Server,  you need to make sure that when you logout of webmail, &nbspyou close your browser.   If not,  and you have accessed user-manager from  the above link,  when a different user accesses user-manger,  they will be making changes to your account.    The only way to prevent this is to close your browser when you are finished!!!


Do --> Due
Authenticaion --> Authentication
and the &nbsp showing
(don't hate me for being pedantic  :roll: - i know some people want all the feedback and others couldn't care less about such minor things, not sure where you fit!?)

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
My Account Tab
« Reply #6 on: April 04, 2007, 04:04:54 PM »
Quote from: "shell"
...
thought some feedback might be appreciated:
download johns rpm and yum localinstall --enablerepo=dungog stops the worry for smeserver-userpanel dependency.

at the moment my userpanel won't allow change of password - simply refreshes after hitting the change password button - but i'm guessing this is because my user passwords strength has been lowered (i recall reading this is an issue with 7.1.x upgrades - will do more reading and update this message tonight).

apart from this is works great.  thanks

let me know if you would like any further help with testing.  

...

Do --> Due
Authenticaion --> Authentication
and the &nbsp showing
(don't hate me for being pedantic  :roll: - i know some people want all the feedback and others couldn't care less about such minor things, not sure where you fit!?)


Thanks for the feedback.  I'll update the spelling errors.  I can also verify that user password strength set to none, seems to have no effect when changing the password via user-manager.  Is there a bug open for that, or where did you see information regarding this?  Settings at normal and strong do yield a successful password change.  Just viewed the page with Firefox and can now see the &nbsp as well.

Thanks,

John
......

Offline shell

  • ****
  • 117
  • +0/-0
My Account Tab
« Reply #7 on: April 05, 2007, 12:51:40 AM »
john - don't have any links but recall reading about it when i updated from 7.1.1 to 7.1.2, have been testing with my server so haven't looked at the old forums notes or any bugs reported.  i recall it was when looking at problems with updates as some of the dungog rpms had to be removed first - otherwise server-manager access lost, fairly sure it was in this reading.  haven't had any joy resolving my issue so will be looking more into this and will post findings here.

anywho heres an update on my issue with userpanel not changing passwords:

i removed the custom password strength setting - putting it back to strong for users and as john mentioned above this did not alter the incorrect behaviour of the user-panel.  which to be more accurate is not refreshing but simply attempting to contact the server and then returning to the change password screen - but with the old and new passwords still on the screen (***).

this behaviour either from opening user-manager from inside webmail and also from putting the address straight into a browser

both smeserver-userpanel 0.9-10 and smerserver-userpanels 1.0-4 were installed from dungog.  these are currently the latest.

i also noted after the install of the user-panel rpm's that i have a strange password prompt going into server-manager - asking for password for " ", and not responding to the admin username and password.  this didn't occur if i removed the domain-name from the address and went straight to the local ip ie - https://###.###.###.###/server-manager as opposed to https://servername.domain/server-manager

i then removed all three rpms (the user-panel /s and the smeserver-smeaccounts), post-up / reboot (which i also did after install steps).

this removed the server-manager prompt issue immediately.

i then reinstalled only the 2 rpm's for user-panel (which installed at all times without error), post-up / reboot.  issue with server-manager doesn't return, however the user-manager didn't have the change password option.  

into server-manager and the user panel access page shows that password option is enabled globally (all users).  disabling and saving then re-enabling and saving allows the option to return to user-manager.  however it is still functioning incorrectly (*** all show, but change password button only attempts to contact the server (as shown in the browser - then browser returns done) but the input page stays the same - *** all still in place, no errors.  password unchanged.

have tested from firefox 2 and IE6 - same result.  made sure cookies enabled in both browsers, emptied browser cache, tested with closing all browsers and opening cleanly.  no change to test results.

am assuming then that if i get the user-panel issue resolved the webmail my account link to it will work well - tested last night from wan and all worked as expected (excepting the pw didn't actually change!!).  so will follow this fault along the lines of the user-panel.  will do some reading / searching on this first, and if i can't find anything will open a bug - and will post any of my findings back here.

only note that could be related to the webmail addon was the server-manager not enjoying the fully qualified address after the addon was installed - but hard to say for sure if this is a fault until the user-manager issue is resolved.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
My Account Tab
« Reply #8 on: April 05, 2007, 02:05:08 AM »
Do this from the console, while changing your password via user-manager - tail -f /var/log/httpd/admin_error_log.  See if you are getting this error:

[Wed Apr 04 18:39:31 2007] [error] [client 127.0.0.1] Failed to set Unix password for account user1: Authentication token manipulation error, referer: https://www.yourdomain.com/user/cgi-bin/userpanel-password

I am getting this on both of my test servers while only using user-manager.

I'm going to reload soon without the smeaccounts rpm just to verify that I see the same thing.  I did notice there are newer rpms available from dungog, so I will try those as well.

By the way, the very first time I go to user-manager as a new user, I am able to change the users password (only tested with setting on strong), after that I can't change any passwords.  Interesting.  I'll have to keep testing as well.

John
......

Offline shell

  • ****
  • 117
  • +0/-0
My Account Tab
« Reply #9 on: April 05, 2007, 02:15:45 AM »
yep - getting the same error.

in regards to the latest rpms - my beef in transcribing my rpm - it was smeserver-userpanel 0.9-10 and smerserver-userpanels 1.0-5 that were installed.  i note dungog still have the -9 and -4 rpms in repository.  no explanation as to why (should say -that i can find!), or which ones to use in specific situations.

have been arguing with another issue this morn, so haven't followed this any further.  if you used the -9 and -4 rpms then i won't test with those, but if your using the latest i can remove mine and test with the old ones.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
My Account Tab
« Reply #10 on: April 05, 2007, 02:28:20 AM »
I am using
smeserver-userpanel-0.9-10
smeserver-userpanels-1.0-3
......

Offline shell

  • ****
  • 117
  • +0/-0
My Account Tab
« Reply #11 on: April 05, 2007, 06:39:45 AM »
can confirm that the issue is also with the user-panels-1.0-4

can't test with -3 as it isn't available on the dungog site anymore.

have fired a email to dungog, with details.  will update this (and / or open a bugzilla report) after feedback from dungog.

also as food for thought i am also getting a language error in the httpd/admin_error_log.  r u using a language other than en-us?

and the problem with the server-manager login to " " prompt occurs after fresh install of user-panel /s - but is removed after using login to ipaddress/server-manager.

Offline skydivers

  • *
  • 178
  • +0/-0
My Account Tab
« Reply #12 on: April 06, 2007, 10:01:47 AM »
Quote from: "mrjhb3"

Is there a bug open for that, or where did you see information regarding this?


http://bugs.contribs.org/show_bug.cgi?id=2686

user-password bug, probably the cause of everything about changing passwords...