Results 1 to 6 of 6

Thread: Change Password URL

  1. #1
    Join Date
    Feb 2008
    Posts
    30
    Rep Power
    7

    Default Change Password URL

    I was hoping someone could tell me a method to change the URL that zimbra points to when a user clicks "Change Password"

    It looks like this process is handled by the following:

    Code:
    // Popup the change password dialog.
    ZmPreferencesPage.prototype._changePasswordListener =
    function(ev) {
            var url = appCtxt.get(ZmSetting.CHANGE_PASSWORD_URL);
            if (!url) {
                    url = appCtxt.get(ZmSetting.PUBLIC_URL) + "/h/changepass";
            }
            if (!url) {
                    var isHttp      = appCtxt.get(ZmSetting.PROTOCOL_MODE) == ZmSetting.PROTO_HTTP;
                    var proto       = isHttp ? ZmSetting.PROTO_HTTP : ZmSetting.PROTO_HTTPS;
                    var port        = appCtxt.get(isHttp ? ZmSetting.HTTP_PORT : ZmSetting.HTTPS_PORT);
                    url                     = AjxUtil.formatUrl({protocol:proto, port:port, path:"/zimbra/h/changepass", qsReset:true});
            }
            var args  = "height=465,width=705,location=no,menubar=no,resizable=yes,scrollbars=no,status=yes,toolbar=no";
            window.open(url, "_blank", args);
    };
    We have a web portal that enables our users to change passwords, reset locked accounts, etc. We would like to use this page to manage password changes, but I can't seem to figure out how to change ZmSetting.CHANGE_PASSWORD_URL.

    Anyone have any advice?

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    very simple..just happen to do this the other day thanks to mmorse

    zmprov md domain.com zimbraPublicServiceHostname mail.domain.com

    where mail.domain.com is the ZmSetting.PUBLIC_URL


    cheers

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Feb 2008
    Posts
    30
    Rep Power
    7

    Default

    I'm not sure if that will work for me. From what I read about zimbraPublicServiceHostname is that it will change REST URLs for briefcase, document, calendar, etc.

    The site I want "Change Password" to point to is an entirely separate server from our Zimbra install (it just handles password resets for Active Directory). If I set zimbraPublicServiceHostname as that server name, won't it break ann the services that get rewritten to that URL?

  4. #4
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    then your best bet is to directly modify the page itself.

    /opt/zimbra/jetty-6.1.5/webapps/zimbra/h/changepass

    its a simple JSP page..you can simply redirect it or put your code directly in it.

    * it will fail the upgardes and in new version this page may not be used at all.

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  5. #5
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    Default

    Just set zimbraChangePasswordURL in globalconfig or on the domain. No need to set zimbraPublicHostname or modify the JSP pages. This was introduced in 5.0.12
    Bugzilla - Wiki - Downloads - Before posting... Search!

  6. #6
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    ::::::::::::::::::::
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

Similar Threads

  1. New User/Must Change Password oddity...
    By ssatre in forum Administrators
    Replies: 5
    Last Post: 07-26-2009, 12:19 AM
  2. [SOLVED] Change Password Not Working
    By tansyuan in forum Administrators
    Replies: 6
    Last Post: 06-25-2009, 09:09 AM
  3. Replies: 4
    Last Post: 02-10-2009, 05:30 AM
  4. [SOLVED] "zimbra" user password change.
    By nishith in forum Administrators
    Replies: 3
    Last Post: 08-27-2008, 02:27 AM
  5. Replies: 4
    Last Post: 12-13-2007, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •