Control after ...authentication...

I am following Form based authentication. I have a login page. I have specified the security constraints in the web.xml.
I would like to know after the execution of login where will the controller go to?? will it go the controller servlet, followed by an action class??
For any typical event (such as create customer)---the following has been the flow:
controller servlet--> createAction-->createUserBD (business delegate) --> customerManagerEJB --> customerDAO;
Now in case of login..
After the execution of login (authentication is by form based authentication ) where will the controll go to?
My requirement is to store the logged in userID details in Stateful Session bean. how will the flow look like?

Hi!
Have you tried this (cite from the article, you have mentioned, and which I have written some years ago ...):
"If an LDAP bind operation should be performed by the construction of an InitialLdapContext (e.g. to implement logon functionality), and this creation fails, there is no way to examine the response controls. An exception is thrown, and there is no context object available to invoke getResponseControls. It is not possible in this situation to learn from a Password Policy Control that the account used for the bind is locked. One option is to bind anonymously (or with a technical user) first, and afterward use the context obtained by this call to rebind with the actual credentials. When the request control for Password Policy is set before the rebind, the corresponding response control is available after catching possible exceptions. The download code contains an example (file "FailedBindWithControls.java"). Unfortunately, this workaround is not always applicable."
Or does it not apply, because an anonymous bind is no option?
Greetings from Hamburg,
Stefan
---8<---
Stefan Zoerner
Committer :: PMC Member
[Apache Directory Project|http://directory.apache.org]
http://directory.apache.org

Similar Messages

  • ISE Wired guest portal redirect even after authentication

    Hi
    I have configured both Wired and Wireless guest authentication via guest portal. Wireless is working fine, however the when trying with Wired, the redireciton page is keep getting even after user authenticated.
    I'm not seen the redirection authorization policy in my logs however I can see only the user authentication logs (successful). Attached is my configuration and logging output.
    Here is what I see on the interface
    ABQT-3FLR-ACC-01#sh authentication sessions interface gigabitEthernet 4/0/19
                Interface:  GigabitEthernet4/0/19
              MAC Address:  a0b3.ccca.2ab1
               IP Address:  10.1.3.16
                User-Name:  A0-B3-CC-CA-2A-B1
                   Status:  Authz Success
                   Domain:  DATA
           Oper host mode:  multi-auth
         Oper control dir:  both
            Authorized By:  Authentication Server
              Vlan Policy:  N/A
         URL Redirect ACL:  ACL-WEBAUTH-REDIRECT
             URL Redirect:  https://xxxx-TW-ISE-2.xxx.xxx.qa:8443/guestportal/gateway?sessionId=AC14011F000001571E52779F&action=cwa
          Session timeout:  N/A
             Idle timeout:  N/A
        Common Session ID:  AC14011F000001571E52779F
          Acct Session ID:  0x00000309
                   Handle:  0xE6000158
    Runnable methods list:
           Method   State
           dot1x    Failed over
           mab      Authc Success
    Here is the ACL
    Extended IP access list ACL-WEBAUTH-REDIRECT
        10 deny udp any any eq domain (1344 matches)
        20 deny ip any host 172.20.5.12 (8122 matches)
        30 deny ip any host 172.20.5.14
        40 permit tcp any any eq www (3124 matches)
        50 permit tcp any any eq 443 (202927 matches)
        60 permit tcp any any eq 8080 (114 matches)
        70 permit ip any any (8056 matches)

    Hi Mohannad,
    Thanks for your response.
    Actually the as per the configuration it should work, I'm still trying to find out what is what has gone wrong with this configuration. Infact I have tested with 3560 switch with the same config and it worked. only difference here is we used 2960S switch.
    We need to find out why the next Auth policy is not hitting once user is authenticated.
    Here is the port configuration and the authen status of the port.
    ABQT-3FLR-ACC-01#sh running-config interface gig4/0/19
    Building configuration...
    Current configuration : 427 bytes
    interface GigabitEthernet4/0/19
    switchport access vlan 103
    switchport mode access
    switchport voice vlan 135
    authentication event fail action next-method
    authentication host-mode multi-auth
    authentication order dot1x mab
    authentication priority dot1x mab webauth
    authentication port-control auto
    authentication violation restrict
    mab
    dot1x pae authenticator
    dot1x timeout tx-period 10
    spanning-tree portfast
    end
    ABQT-3FLR-ACC-01#
    Mar 31 12:32:14.127: %AAA-3-BADSERVERTYPEERROR: Cannot process accounting server type tacacs+ (UNKNOWN)
    ABQT-3FLR-ACC-01#
    ABQT-3FLR-ACC-01#sh atuh
    ABQT-3FLR-ACC-01#sh atu
    ABQT-3FLR-ACC-01#sh authe
    ABQT-3FLR-ACC-01#sh authentication se
    ABQT-3FLR-ACC-01#sh authentication sessions in
    ABQT-3FLR-ACC-01#sh authentication sessions interface gi
    ABQT-3FLR-ACC-01#sh authentication sessions interface gigabitEthernet 4/0/19
                Interface:  GigabitEthernet4/0/19
              MAC Address:  0015.c5b4.fd4a
               IP Address:  10.1.3.23
                User-Name:  00-15-C5-B4-FD-4A
                   Status:  Authz Success
                   Domain:  DATA
           Oper host mode:  multi-auth
         Oper control dir:  both
            Authorized By:  Authentication Server
              Vlan Policy:  N/A
         URL Redirect ACL:  ACL-WEBAUTH-REDIRECT
             URL Redirect:  https://ABQ-TW-ISE-2.abq.gov.qa:8443/guestportal/gateway?sessionId=AC14011F0000018A32B4D906&action=cwa
          Session timeout:  N/A
             Idle timeout:  N/A
        Common Session ID:  AC14011F0000018A32B4D906
          Acct Session ID:  0x00000394
                   Handle:  0x3E00018B
    Runnable methods list:
           Method   State
           dot1x    Failed over
           mab      Authc Success

  • Robo HTML 9 will not open our project from Source Control after initial start.

    We have a project in version control that we have been using forever, since 2003 or so and many versions of RH.  Now that we have upgraded to 9, this project will open the first time in version control and work normally.  Once you close the project and attempt to reopen from the starter screen, it opens just great, just not in version control.  The files are still set to read only.  I have done this several times and the only way i can work on my project in version control is to act like i am opening a project from scratch, then it needs to overwrite all of my local files with the server files.  It would not be so bad but I am 3000 miles away from the server and 13 hops plus a slow firewall on the other end.  While this has never been a problem in the past it is a big problem because it takes hours for all the files to download and overwrite my local files.
    This only happens with RH9 and Version Control 3.1.  RH8 works no problem.  So, I don't know if this is a RH9 starter problem or a Source Control Problem.  Maybe I will make a similar thread in the RH area.  I'll wait to see if I get any useful hits from this one first.
    It is very strange, I had RH9 open for several days because I was afraid to close the project for this reason and yesterday I published for the month so the heat is less right now but today, it opened with no source control.  If I go to Source Control the only thing i can select is put project in source control.  That is how it got into source control after converting to RH9.
    We have another project that seems to open from version control normally but we can only save topics in HTML view.  No useful answers to that topic after a week.
    Got any ideas???
    I have tried different folder names, different paths, etc.
    Thanks,
    dv

    Ok, here is a wierd one, I used the add to version control icon in the menu bar, It already knew the path so I figured I'm the only one who has been editing these files for the past few days so I clicked add to version control.  It added it. I closed and reopeded and still had the same files checked out.  Closed, checked in all, then reopened and it is working in SourceControl.  Strange that after opening from source control and closing that you need to reopen and tell it to put the project into source control.  Obviously some flag is not getting set somewhere.  This might help others having problems reopening source control files.
    dv

  • To Disble the Field in Table Control after clicking Save button

    Hi,
    I have a requirement as follows. i need to disable one field in the table control after clicking save button. i tried with SCREEN elements but it disabling whole the table control but i need to disable that particular one record only in the table control. i found Structure CXTAB_COLUMN in documentaion. it has the properties like invisible. can any body tell how can we disble that particular field in table control only for the one record. and how can we use CXTAB_COLUMN.
    Thanks in advance.

    hi,
    do like this...
    in USER_COMMAND_1000 module of PAI,
    MODULE user_command_1000 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
        WHEN 'SAVE'.
          fl = 1.
          GET CURSOR LINE lin.
      ENDCASE.
    ENDMODULE.                 " user_command_1000  INPUT
    and make on module disable in Loop Endloop in PBO.
    and write like this...
    MODULE disable OUTPUT.
      LOOP AT SCREEN.
        IF tab1-current_line = lin AND fl = 1.
          screen-input = 0.
        ELSEIF tab1-current_line < lin.
          screen-input = 0.
        ELSE.
          screen-input = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.                 " disable  OUTPUT
    here fl and lin both are type i.....
    and there will b one module in PBO
    MODULE tab1_change_tc_attr.
    in that put if condition....
    MODULE tab1_change_tc_attr OUTPUT.
      IF sy-ucomm <> '' AND sy-ucomm <> 'SAVE'.
        DESCRIBE TABLE itab LINES tab1-lines.
      ENDIF.
    ENDMODULE.                    "TAB1_CHANGE_TC_ATTR OUTPUT
    ur problem will solve...
    reward if usefull....
    Edited by: Dhwani shah on Jan 2, 2008 1:17 PM

  • J_security_check not redirecting after authentication - in one environment

    Hi all,
    I have a J2EE web application developed in JDeveloper 10.1.3 which uses JAAS security with a custom authentication provider class. I can configure this is both a windows and unix based OC4J. The windows OC4J is stand alone, the unix one is part of a managed instance (OPMN).
    When I deploy to windows, attempts to access a protected resource cause the authentication to fire off perfectly and redirect to the appropriate url after login is successful. Absolutely no problems.
    When I deploy to unix with the same configuration, the authentication fires off perfectly but after authentication the redirect attempts to go to Base URL/j_security_check which results in a 404 not found as j_security_check is a logical name and not a real url.
    I have tried setting the ocfj.formauth.redirect flag in the oc4j startup options and this did not seen to help. I still got the 404 error.
    Can anyone advise me on whether there are any switches or parameters I need to set for the j_security_check redirection to work correctly, or is there something else I need to do in a unix (Solaris) environment to cause the redirections to work?
    thanks for any suggestions
    Ben

    Hi,
    you are always seeing the j_security_check in the URL. It seems that this problem is OC4J rekated and I suggest to post the question on the Application Server or the J2EE forum here on OTN
    Frank

  • WS not created in application server control after deployment

    Hi,
    I just tried to deploy fulfillmentESB project(SOADemo Projects) from Jdev to Oracle App server control. But there was no webservice created in Oracle application server control under webservices link....plz help me...
    Actually the steps which i had followed to deploy that fulfillment project are:
    * right-click fulfillmentESB
    * select Register with ESB, Integration connection
    after which the fulfillment webservice can be seen in ESB control as well as application server control. But i could not able to see webservice created in application server control.
    Also i tried deploying the fulfillmentESB using EAR file - no use
    So kindly give me some steps to solve this issue...
    -Indhu

    Here is an example of the two steps required to deploy a Web Service application, using the ant task for the 10.1.3.x release.
    <project name="CalculatePrice" default="all" basedir="." xmlns:o="antlib:oracle">
      <property file="build.properties"/>
      <property name="deployeruri"        value="deployer:oc4j:${oc4j.host}:${oc4j.admin.port}"/>
    <!--
      <property name="deployeruri" value="deployer:oc4j:opmn://${oc4j.host}:${oc4j.opmn.port}/home" />
    -->
      <property name="bindweb.website" value="default-web-site"/>
      <property name="app.name" value="sdots"/>
      <target name="deploy">
        < o :deploy file="${basedir}/dist/${app.name}.ear"
                  deploymentname="${app.name}" deployeruri="${deployeruri}"
                  userid="${oc4j.admin.user}" password="${oc4j.admin.password}"/>
        < o :bindWebApp deploymentname="${app.name}" deployeruri="${deployeruri}"
                      userid="${oc4j.admin.user}" password="${oc4j.admin.password}"
                      webmodule="webservice-web" websitename="${bindweb.website}"
                      contextroot="/sdots"/>
      </target>Not sure if this applies to your specific scenario.
    ps. cross posting on the different OTN forums is generally not a good idea as you get threads out of sync. In this specific case, you are running into an issue with a specific ESB demo, and the ESB-SOA forum is definitly a better palce to get specific help.
    WS not created in application server control after deployment
    ps2. I guess you should got it by now, as I am not the first one to make this comment.
    Webservice not created in oracle application server after deployment
    ps3. We still don't have details about the versions you are using and the specific about THE SOADemo Projects - provide the information someone else would need in the forum that best correspond to your issue; the SOA one in this case ;-)

  • WS not found in application server control after deployment

    Hi,
    I just tried to deploy fulfillmentESB project(SOADemo Projects) from Jdev to Oracle App server control. But there was no webservice created in Oracle application server control under webservices link....plz help me...
    Actually the steps which i had followed to deploy that fulfillment project are:
    * right-click fulfillmentESB
    * select Register with ESB, Integration connection
    after which the fulfillment webservice can be seen in ESB control as well as application server control. But i could not able to see webservice created in application server control.
    Also i tried deploying the fulfillmentESB using EAR file - no use
    So kindly give me some steps to solve this issue...
    -Indhu

    Here is an example of the two steps required to deploy a Web Service application, using the ant task for the 10.1.3.x release.
    <project name="CalculatePrice" default="all" basedir="." xmlns:o="antlib:oracle">
      <property file="build.properties"/>
      <property name="deployeruri"        value="deployer:oc4j:${oc4j.host}:${oc4j.admin.port}"/>
    <!--
      <property name="deployeruri" value="deployer:oc4j:opmn://${oc4j.host}:${oc4j.opmn.port}/home" />
    -->
      <property name="bindweb.website" value="default-web-site"/>
      <property name="app.name" value="sdots"/>
      <target name="deploy">
        < o :deploy file="${basedir}/dist/${app.name}.ear"
                  deploymentname="${app.name}" deployeruri="${deployeruri}"
                  userid="${oc4j.admin.user}" password="${oc4j.admin.password}"/>
        < o :bindWebApp deploymentname="${app.name}" deployeruri="${deployeruri}"
                      userid="${oc4j.admin.user}" password="${oc4j.admin.password}"
                      webmodule="webservice-web" websitename="${bindweb.website}"
                      contextroot="/sdots"/>
      </target>Not sure if this applies to your specific scenario.
    ps. cross posting on the different OTN forums is generally not a good idea as you get threads out of sync. In this specific case, you are running into an issue with a specific ESB demo, and the ESB-SOA forum is definitly a better palce to get specific help.
    WS not created in application server control after deployment
    ps2. I guess you should got it by now, as I am not the first one to make this comment.
    Webservice not created in oracle application server after deployment
    ps3. We still don't have details about the versions you are using and the specific about THE SOADemo Projects - provide the information someone else would need in the forum that best correspond to your issue; the SOA one in this case ;-)

  • Regain mouse control after movement

    Hello,
    I'm trying to do something that seems simple. While executing my vi, I'm trying to move the mouse to another open window to specific coordinates, click on a button of another program that starts that program running (it's not a labview program) and then move my mouse to another location and perform another click. I'm trying to use the user32.dll to do the mouse movement and clicking as several people have suggested on earlier threads.
    My problem is that while the first movement of the mouse works fine, when it clicks on the other application I seem to lose all control of the mouse and cannot get control back unless I physically move the mouse and click back on my labview vi. I've tried changing the active window to switch back to my vi window as well as making the vi window on top, but those don't seem to give me control of the mouse again.
    Any thoughts on if there's another function I should be using instead of user32.dll to move the mouse or any other ways I can regain control after that first movement? Thanks!

    This reminds me on an issue i have while manual using Windows XP and Windows 7.
    When initiating the shut down of the system, i am used to end all applications before hand. I do either terminate each application as it is recommended (Quit button), using the X of the Titlebar or simply pressing Alt+F4.
    The latest option initiates the shut down of the active application. If used properly, you can shut down all application one after another without interacting with the PC otherwise (no mouse move, no other keys pressed).
    The issue i observe in more than 50% times when doing so is: After closing the last application, the desktop is "in focus". But pressing Alt+F4 doesn't bring up the system shut down dialog. In this case (remember: more than 50% of all times!) i have to CLICK on the desktop and THEN can press Alt+F4 in order to get the system shut down dialog.
    I assume that this situation is created by the way how Windows shuts down applications and manages "Active Application". I am confident that there is some kind of race condition: An application, which is still in shut down gets the focus, but then is terminated. Which means, no application is in focus now....
    It is the same as during starting up applications with windows. Starting e.g. Firefox, i enter some URL (e.g. "forums.ni.com") and press enter. During load of the page, i start another application (e.g. LV). The LV launcher appears and suddenly, the Firefox window pops in front and displays the forums. I hate this behavior, as with other applications, the swapping of the active window takes place even during typing (e.g. entering passwords).
    So i would expect you to run into a bug of the OS which is present for years now but never being addressed by Microsoft.
    Norbert
    PS: Sorry, i have no solution for you except the recommendtion: Try to set the "active application" programmatically. Don't know if this is possible if the calling application is not already in focus. Meaning: I am not sure if this programmatic approach can only be used to pass the "active" flag from the active application to another.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Conditional branch, after authentication

    We have recently implemented a list of passwords that users are not allowed to use. Basic stuff like 1234, abcd etc.
    I currently use a custom authentication, so i can quite easily stop a user from changing their password to a dissallowed one. But my issue is that i want to force current users to changer their current password if it breaks the new rules.
    I think that i should allow them to authenticate themselves using their current password, and then do a check to see if they should be branched to a specific screen to change their password.
    Basically i want to do a conditional branch after authentication.
    anybody implemented something similar? or anyone have any ideas?

    Create an application process - On Load: Before Header ....
    using a similar PL/SQL block like in my case:
    BEGIN
       IF NOT custom_authentication_pkg.password_valid (:app_user)
       THEN
          HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
          OWA_UTIL.redirect_url
                               ('f?p=&APP_ID.:102:&APP_SESSION.:PASSWORD_INVALID');
       END IF;
    END;and make this process conditional so it doesn't fire if the current page is in
    101 - login page
    102 - page for changing passwords
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Use db control after rman duplication

    One might wish to access Oracle Enterprise Mananger database
    control after duplicating a database with
    rman (e.g. with "DUPLICATE TARGET DATABASE TO mydb FROM ACTIVE
    DATABASE NOFILENAMECHECK"). Typically, we will find ourselves on
    a new maching hosting the duplicate db.
    Obviously the cloned repository of database control is still
    configured for the source host, and, as per Doc ID 293678.1, if
    the Hostname, Domainname, or Listener configuration changes after
    an installation, DB Control needs to be reconfigured:
    "<ORACLE_HOME>/bin/emca -config dbcontrol db -repos recreate"
    Thus, all user-defined events and job definitions will be
    lost. Are there any ways to avoid this?
    Regards, Tom

    Unfortunately there's no way to avoid recreation - maybe an enhancement request for the future:
    After Creating A Database Using the Rman Duplicate Command There is no DBConsole [ID 308853.1]
    Werner

  • Get control after key press in listview?

    how to get control after key press in listview ????
    example
    after keyboard key PAGE_DOWN  from listview
    execute my routine ?????
    Thank' s

    PavelSafrata, your solution is right, but in my case it does not work properly, because it has to be "setOnKeyPressed", then he picks up the current line and not after the jump PAGE_DOWN.
    used the routine below, but in this case when pressed SHIFT + PAGE_DOWN, does not bring the line "new" correct.
    this.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {
                @Override
                public void changed(ObservableValue<? extends Number> observableValue, Number old, Number n ) {
                    if( my_last_keyborard_registered == KeyCode.PAGE_DOWN  ) {
                        System.out.println( n.intValue() );    // when pressed SHIFT + PAGE_DOWN
                                       // get -1  << error
    Thank's

  • Accessing j_username after authentication

    Using Weblogic Server 8.1, I am authenticating a user with FORM based authentication.
    Posting j_username and j_password to j_security_check.
    Is there a way to access the j_username variable after authentication? After
    the user is authenticated, I need a unique identifier to match that user to his/her
    data in another database. Is there anything in the request/response headers or
    in the session?
    Jay

    "Jay Wright" <[email protected]> wrote in message
    news:3f81ebc0$[email protected]..
    >
    >
    Using Weblogic Server 8.1, I am authenticating a user with FORM basedauthentication.
    Posting j_username and j_password to j_security_check.
    Is there a way to access the j_username variable after authentication?After
    the user is authenticated, I need a unique identifier to match that userto his/her
    data in another database. Is there anything in the request/responseheaders or
    in the session?
    I would ask in the weblogic.developer.interest.servlet newsgroup.

  • Policy Agent 2.2, IIS 6.0, CDSSO and redirects after authentication

    Hi
    I've got a problem where a HTTP/1.1 200 and 302 are returned by the Policy Agent / Application, after the Javascripted POST by the CDCServlet content is performed.
    The expected functionality is that the user is authenticated with the AM, the CDC Servlet serves the JavaScript page that will do a POST to the Policy Agent. The Policy Agent should then do what it needs to do with the POST, and forward request to the Application. The Application then does what it needs to do, and in this case, serves a HTTP/1.1 302 for redirection back to the browser.
    However, it seems that the Policy Agent might be returning a HTTP/1.1 200, and setting the iPlanetDirectoryPro cookie, quickly followed by the HTTP/1.1 302 and the setting of whatever cookies it wants to set.
    The Policy Agent should be respecting the return code of the Application. This problem does not appear when run against the Policy Agent for the Sun ONE Web Server.
    Wondering if anyone has seen this before?
    Here is sanitized output from a trace on the POST and resulting response.
    POST /oslp/?sunwMethod=GET HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Accept-Language: en-au
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Host: sco88342744.corp.qed.qld.gov.au
    Content-Length: 3496
    Connection: Keep-Alive
    Cache-Control: no-cache
    X-ProcessAndThread: IEXPLORE.EXE [904; 2908]
    LARES=<snip>
    HTTP/1.1 200 OK
    Date: Wed, 16 May 2007 22:25:42 GMT
    Server: Microsoft-IIS/6.0
    Set-Cookie: iPlanetDirectoryPro=AQIC5wM2LY4Sfcz8tCfJ96AXxjIgRzuZJDgE7gMeTO0iIS4%3D%40AAJTSQACMDQ%3D%23;Path=/
    HTTP/1.1 302 Found
    Date: Wed, 16 May 2007 22:25:42 GMT
    Server: Microsoft-IIS/6.0
    X-AspNet-Version: 1.1.4322
    Location: /oslp/user/signon.aspx
    Set-Cookie: ASP.NET_SessionId=lh4sus55y1iy2r5514onnjuj; path=/
    Cache-Control: no-cache
    Pragma: no-cache
    Expires: -1
    Content-Type: text/html; charset=utf-8
    Content-Length: 139
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href='/oslp/user/signon.aspx'>here</a>.</h2>
    </body></html>

    Hi,
    we had the same problem, but we got support
    from readme.txt
    Bug#: 6789020
    Agent type: All Agents
    Description: In CDSSO mode non enforced POST requests cannot be accessed
    Bug#: 6736820
    Agent type: IIS 6 Agent
    Description: IIS 6 agent doesn't work properly with ASP pages in CDSSO mode
    Both bugs should be fixed in this version:
    Sun Java System Web Agents 2.2-02 hotpatch2

  • How to redirect to a page dynamically after authentication Apex

    We have developed an application and the application id is 333.
    we have developed a login screen(page No. 111).
    After login Company page (Page No.1) will appear where the user selects the company name.
    Once company is selected, the control goes to Menu Page(Page No.10). The menu will be displayed based on the user rights.
    In shared Components - Authentication scheme,
         In session Not Valid region, URL option is selected and URL is assigned as "we have given "f?p=&APP_ID.:111:&SESSION."
         In Logout URL, URL option is enabled and URL is assigned as "f?p=&APP_ID.:111"
    In shared Components - Security Attributes,
         In Authentication region, in HOME link "f?p=&APP_ID.:1:&SESSION." is assigned
    In login page (Page No. 111), we have created a process "On Submit - After computation and validations".
         in that
              we are checking a condition like
              if the user has access to Only one company then he will be redirected to Menu_page(Page No.10).
              if the user has access to more than one company then he will be redirected to Company Page(Page No.1).
    if "No. of company access" =1 then
    wwv_flow_custom_auth_std.login (p_uname => :p111_username,
    p_password => :p111_password,
    p_session_id => v ('APP_SESSION'),
    p_flow_page => :app_id||':10'
    else
    wwv_flow_custom_auth_std.login (p_uname => :p111_username,
    p_password => :p111_password,
    p_session_id => v ('APP_SESSION'),
    p_flow_page => :app_id||':1'
    end if;
    The above condition is not working. ie. it is always loading Company Page(Page No.1) even if the user has access to one company alone.
    Can anyone point out the place where I have done wrong. Or please suggest me a method to achieve the above said task.

    Hi User490632,
    During the login,
    it using the custom authentication function which I mentioned below,
    *create or replace FUNCTION custom_auth_g (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2)
    RETURN BOOLEAN IS
    BEGIN
    FOR c1 IN (SELECT 1
    FROM login_table
    WHERE upper(username) = upper(p_username)
    AND upper(password) = upper(p_password))
    LOOP
    RETURN TRUE;
    END LOOP;
    RETURN FALSE;
    END;*
    its working fine, If I give the username and password which exist in the table login_table.
    Now I need to redirect to 2 different pages.
    if the username is 'guru' then when he clicked the login button he has to redirect to page 2,
    if username is any other name except 'guru' they have to be redirected to page 3.
    Can you please give the step by step procedure to follow?
    Thank you.
    Regards,
    gurujothi

  • Policy agent error code 21 after authenticating

    Hi,
    I get the following error in my amAgent logs after successfully authenticating to Sun Policy Manager 7.1:
    PolicyEngine: am_policy_evaluate: InternalException in AuthService::submitRequirements() with error message:Error sending client submitted requirements to server. and code:21
    A 500 Internal Server Error page is returned with the message: This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log.
    The Policy Manager auth access log shows: "Login Success" for the login attempt.
    My configuration:
    Solaris 10
    Apache 2.0.54
    Sun Java System Access Manager Policy Agent 2.2
    Has anyone seen or experienced this error before?
    Thanks
    Edited by: tutro on Aug 7, 2008 7:31 AM

    A control character was being read from the password (even though both the encrypted and unencrypted password did not contain any control characters). A password reset resolved the issue.

Maybe you are looking for

  • IPhone in the Enterprise

    If i buy the 5people family plan, only me use the iphone and buy netword, so i buy $25netword per month,  5people need play $125 per month? can i pay myself

  • I did the update today and now itunes can't see my ipod, uninstalled iTunes and all the recommended things, nothing has worked

    I did the update today and now itunes can't see my ipod, uninstalled iTunes and all the recommended things, nothing has worked. It worked just fine last weekend. I have windows 8.1 and a brand new pc, new iPod also, the new Nano. now after the update

  • Formula that creates additional rows

    Greetings everyone. I am fairly new to Apple numbers. I have a spreadsheet that calculates an investment return for clients year by year based on their age. I need the spreadsheet to go out to the clients age 100. There is an input page that I put in

  • IPhone 4S...new computer

    Hi! So I just got a new computer and I have already transferred all my music with Home Sharing. However, I also want everything (all apps, contacts, pictures, etc) on my iPhone 4S to be transferred onto my new computer so I don't lose everything when

  • Error running Application

    Hey , I have an aaplication using RFC from SAP in Web Dynpro. I can Deploy the application properly, but during running the application i get following error Web Develpoer Studio : version 2.0.10 Error stacktrace: com.sap.tc.webdynpro.services.except