Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-2009, 02:40 PM
Active Member
 
Posts: 30
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?
Reply With Quote
  #2 (permalink)  
Old 08-24-2009, 02:56 PM
raj raj is offline
Moderator
 
Posts: 759
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
Reply With Quote
  #3 (permalink)  
Old 08-24-2009, 03:16 PM
Active Member
 
Posts: 30
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?
Reply With Quote
  #4 (permalink)  
Old 08-24-2009, 04:09 PM
raj raj is offline
Moderator
 
Posts: 759
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
Reply With Quote
  #5 (permalink)  
Old 08-24-2009, 04:33 PM
Zimbra Employee
 
Posts: 601
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!
Reply With Quote
  #6 (permalink)  
Old 08-24-2009, 04:55 PM
raj raj is offline
Moderator
 
Posts: 759
Default

::::::::::::::::::::
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.