If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Custom login page - Change password

Started by yoniw, 27 Nov 2014 08:12:35 AM

Previous topic - Next topic

yoniw

Hey everyone,

We are using Cognos 10.2.1 fp4 on linux.we have a custom authentication provider in Java.

I would like to give to the user a possibility to change his password when it was expired or whenever he wants to do it.
Right now even when in the login page there is a message that the password has expired, i can still see the user and password text box prompts and not "new password" and confirm.

I tried to modify the system.xml file to point to a custom login page - <base-template-name></base-template-name>
with this login page (just as a test case,took it from the first website i saw looking for Cognos custom login page):



<style type="text/css">
.customWelcome { font-weight: bold; font-family: sans-serif; font-size: 14pt; }
</style>
<div id="loginBoxWithShadow">
<div id="loginBox" style="width:260px">
        <div id="loginBoxInner">
                <span class="customWelcome">Welcome to Cognos 10</span>


                <div id="%CL_PROMPT%"></div>

                <input type="submit" value="Log In"
                 onclick="javascript:executeOKCommand();" />
                <input type="button" value="Cancel"
                 onclick="javascript:executeCancelCommand();" />
               

               


                <div id="%CL_PROMPT_namespace_label%">Namespace</div>
                <div id="%CL_PROMPT_username_label%">User Name: </div>
                <div id="%CL_PROMPT_password_label%">Password: </div>
                <div id="%CL_PROMPT_oldPassword_label%">Old Password:</div>
                <div id="%CL_PROMPT_newPassword_label%">New password:</div>
                <div id="%CL_PROMPT_newPasswordConfirm_label%">Confirm old password:
                <img style="vertical-align:middle"
                 src="../ps/portal/images/state_warning_lrg.gif"/>
                </div>
                <div id="%CL_PROMPT_selectNamespace_caption%">
                        <span style="color:gray">Please select a namespace.</span>
                </div>
                <div id="%CL_PROMPT_enterCredentials_caption%">
                        <span style="color:gray;">Enter your credentials.</span>
                </div>
                <div id="%CL_PROMPT_badCredentialsEntered_caption%">
                        <span style="color:red">The username or password
                                 you entered are not valid.</span>
                </div>
                <div id="%CL_PROMPT_passwordExpiry_caption%">
                        <span style="color:red">Your password has expired.</span>
                </div>
                <div id="%CL_PROMPT_general_caption%">
                        <span style="color:red">Authentication</span>
                </div>
        </div>
</div></div>


But it didn't work when i the password was expired,
i didn't see a "new password" and "confirm" textbox prompts, just the regular user and password.

Someone has an idea why the "new password" and "confirm" textbox prompts didn't appear? maybe i am doing something wrong?
if someone can send an example with a working custom login page, with this functionality wroking, it will be very helpful.

Thanks!!!!
Yoni


ronaldoqueiroz

Hi Yoni,

Were you able to get it working?
I am using cognos 10.2.2 with openldap and even when the password is expired or has the pwdReset=true, I am not able to show a page asking the user to change the password.
Even worse ... the users are able to login into cognos even i the password is expired.

Have you faced the same problem? How do you fixed it?

Thanks a lot for sharing your experience.