This discussion is archived
1 2 Previous Next 17 Replies Latest reply: Dec 4, 2008 8:13 AM by 807574 RSS

Custom login screens by org -- Anyone get this working??

807574 Newbie
Currently Being Moderated
Hello All,

I've posted this before, but never got an answer so I thought I would try again.

One of the features that the portal offers is to have the login re-direct to a custom set of templates for rach org if you provide the login module the name of the org, i.e. "org=myOrg".

I've been trying to get this working for a very long time without success. Anybody get it working?

Thanks,
Jason
  • 1. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    I have never tried this on my own but as far as I remember you have to create a directory in the template-auth dir which is the same as the orgs name.
    then the auth module takes these templates.

    have you had a look at the IS documentation, auth-module ??

    HTH
    /ulf
  • 2. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    You can try this very easy by copying the default directory (/opt/SUNWam/web-apps/services/WEB-INF/config/auth/default) to a directory with your organisation name. And edit something in the edit templates in your new directory. You will see that when you provide the organisationname for that specific organisation you get to see your edited templates and for the other organistaions not.
  • 3. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    Thanks for your suggestion guys.

    Ulf, I've read the docs, but they haven't been that much help.

    Nathalie, I've already tried moving the templates...by the logs, it almost looks like there is some configuration missing....not sure what exactly yet.
    Have you managed to get this working? Ccording to SUn, it should be as simple as copying the templates to a dir named the same as the org, but.....

    Will this feature work if you're using the Membership module.....LDA..etc...?

    Thanks for the help.

    Jason
  • 4. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    When you look in the default directory, you see a lot of files. It is possible to put less files in the directory of your organisation. When the browser does not find the file it is looking for it automatically looks in the default directory. Maybe that is what happening?
    Maybe you can try to put some text in the templates in the default directory so that you are sure you are copying the right templates.
    (I guess your problem is that you cannot see your modified templates, as opposed to you are not able to login)

    I have this working. At the moment i have only one organisation and the files are in the directory named as the organisation. In my case it was as simple as copying.

    good luck
  • 5. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    When you look in the default directory, you see a lot of files. It is possible to put less files in the directory of your organisation. When the browser does not find the file it is looking for it automatically looks in the default directory. Maybe that is what happening?
    Maybe you can try to put some text in the templates in the default directory so that you are sure you are copying the right templates.
    (I guess your problem is that you cannot see your modified templates, as opposed to you are not able to login)

    I have this working. At the moment i have only one organisation and the files are in the directory named as the organisation. In my case it was as simple as copying.

    good luck
  • 6. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    Hi Nathalie,

    I've copied all of the files from the default dir into my org dir which is called FDC. I've changed some of the wording in each template so I will know which is which.

    When I call my login url with org=FDC, here is what I see in my amAuth log file:
    Calling FileLookup : filename=LDAP.xml, domain=/anywaregroup, locale : en_US, filePath=/html, filename=LDAP.xml, templateDir=/opt/SUNWam/web-apps/services/config/auth, orgPath : /FDC 
    so it appears to be looking for the proper dir....but for some reason always fetches the templates from the default dir.

    Could you check your /var/opt/SUNWam/debug/amAuth file to see what your FileLookup value looks like?

    Thanks for all of your help,
    Jason
  • 7. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    Hi Jason,

    I have done different logins "look and feel" per org.
    Which portal version do you use?
    (There are some little differences between the versions.)

    Also do you use just different login pages or
    different anonymous(guest) portal landing pages?

    PS: Just a hint: If you have suborgs in "root org",
    then the suborg templates should be in "root org" dir.
    e.g. ...o=customer,o=FDC...-> .../auth/FDC/customer

    Cheers,
    Alex :-)
  • 8. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    Hi Alex,
    We're currently using 6.1 but will be moving to 6.2 very soon.

    We're not using anonymous login pages.
    We want to use different login pages (i.e. branded by customer) to access the portal.

    For some reason, I can't get the server to fetch the templates out of the org directory.

    All of our customers are under the top lever org. The customers do not have any sub-orgs.

    I copy the default directory from: "/opt/SUNWam/web-apps/services/config/auth" and name it the name of the org.
    I've tried using LDAP, or membership modules with the same result.

    Thanks for all the help.

    Jason
  • 9. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    There are only few things, which can go wrong:

    1) You copy .../auth/default directory to .../auth/FDC
    Then you change e.g. text in membership.jsp
    Using amconsole make sure that Membership
    module is available and selected for your
    organization and restart server.

    2) If you have gateway and you pulling some images
    from some .../images/myimages directory make sure
    that this directory is not protected by gateway.

    3) Finally in the browser URL you specify
    http://host.domain.com/amserver/UI/Login?org=FDC&module=Membership

    If everything is cool, but you still have problems,
    check for "typo" (these things are hard to find!)

    Cheers,
    Alex :-)
  • 10. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    Hi Jason,

    I got the same error, and the amAuth is giving me what I think is the correct path, so I don't know what else to do since I keep seeing the default Login.jsp that is in the default directory.

    Thanks!
  • 11. Re: Custom login screens by org -- Anyone get this working??
    793920 Newbie
    Currently Being Moderated
    From my experience if your webserver is not running as root, think about files ownership and permission.
  • 12. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    Hi all,

    I've been watching this thread for a while,
    followed all of the suggestions, but I am
    still experiencing exactly the same issue
    as Rapapel: unable to customize the
    authentication interface for an organization!

    [1] I have a top-level organization,
    which loads the auth/default authentication pages; right?

    [2] I have created an organization (say, ORG1)
    under the top-level, and then duplicated the
    contents of auth/default to auth/ORG1, then changed
    the bgcolor of auth/ORG1/Login.jsp

    [3] thru the amconsole, I created 2 users under top-level > ORG1 > Users

    Then, I load ...../UI/Login?org=ORG1

    - the changes made in auth/ORG1/Login.jsp never get reflected;
    only changes made in auth/default/Login.jsp are visible,
    which means the auth/ORG1 are not even being looked-up;

    - none of the 2 users can authenticate ("Athentication Failed" message),
    nor can the top-level users;

    - I have even copied the edited files from auth/ORG1 to
    auth/default/ORG1 but no luck either.

    So, Rapapel and I are really stuck until now.
    FYI, I am using the ID Server 2004Q2, and the Portal 6.2

    Thanks to all!
  • 13. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    II will take a stab at this because Jason A will not respond since he is no longer and never was a real developer :)

    When we installed the portal (JES 2003Q4 - Portal 6.2) our main top level organization was dc=company,dc=com so everything is under "company" in the Identity server. To have the Portal pick up the customer files, we put them under:

    /opt/SUNWam/web-apps/services/config/auth/company directory and not
    /opt/SUNWam/web-apps/services/config/auth/default

    When we create a new organization (I.E ORG1), the custom files will go in:

    /opt/SUNWam/web-apps/services/config/auth/company/ORG1

    I can then type in my browser
    http://www.company.com/amserver/UI/Login?org=ORG1 and voila!

    BTW: Jason A and I work on the same project.

    Steve
  • 14. Re: Custom login screens by org -- Anyone get this working??
    807574 Newbie
    Currently Being Moderated
    hi all,

    Thanks Steve. It's working like a charm now!

    I'd like to remind everyone that you MUST restart the server each time you make a change in the organization structure, or move/change the actual file dirs.

    Also note this additional required step in order to allow users to access the Desktop:
    Enabling Existing Users to Access the Sun Java System Portal Server found at http://docs.sun.com/source/817-5324/dsameadm.html#wp27088

    Cheers,

    Antonic.
1 2 Previous Next