Two schemas for the same Application authentication

Hello everyone.

I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

I'm facing what I consider a difficult assignment.  I need to build an application that supports two types of connection authentication: authentication Windows LDAP and authentication in an Oracle table.

Is it still possible?  Someone knows how to do this?

I already have the operation of the application using LDAP.  Users are present page 101 and a form where they enter their Windows user name and password.  After clicking a "submit" button, a plsql after submit process page 101 distinguishes the user to log in as an ADMINISTRATOR or a user to type non-ADMIN looking at the username of connection in an Oracle table called APP_USERS.  This table looks like:

CREATE TABLE APP_USERS

(USERNAME VARCHAR2 (10))

PASSWORD VARCHAR2 (250)

)

/

If the user name contains a '@' character, then this is a non-ADMIN user. Otherwise, it's an ADMIN that connects to.

A plsql after submit the process is then called that looks like:

(app_security_pkg). Login

P_UNAME = >: P101_USERNAME,.

P_PASSWORD = >: P101_PASSWORD,.

P_SESSION_ID = > v ('APP_SESSION').

(P_FLOW_PAGE = >: APP_ID);

This works when an administrator user logs in and is authenicated via LDAP.

However, users of type non_ADMIN must be authenticated on this table APP_USERS.

Anyone know how to include such authentication with LDAP authentication all within the same application?  There is a concrete example of the work that I could shoot?

I looked through this and other instances of the Apex on this subject and have read several articles about setting up authentication.  Unfortunately, I have not seen what anyone who manages more than one type of authentication for a single application.

Thanks a lot for any help on this.

Elijah

Hey, Jari.

I thank very you much for helping me.

As mentioned in my post, LDAP Windows authentication works very well.  My question is how to make use of LDAP and custom in an Oracle table simultaneously in the same Apex application authentication.

I worked on it yesterday and, with the help of the articles I found on the web, I got it to work.

I figured out how to get my Apex application to use two different authentication schemes.  LDAP is used for a set of users and 'control against a table of type Oracle user and password name' is used for a different set of users.

I did use an article I found on the web (Blog of Duncan Mein) that shows how to create a custom authentication scheme.  Then, I modified it by adding in the LDAP Windows schema, I was already using.  Then, after yet another article I found, I also modified the underlying code of package to allow a re - direct to different application pages according to the user who was logged into type.

To make all this work, it is important to be able to distinguish one set of users to another.  In my particular case, users with a '@' character in their usernames are automatically authenticated against my Oracle called APP_USERS table.  If my custom function returns 'true', they are directed to a 2 page in my application.  And users with no not this character are authenticated against Windows LDAP and directed to a 1 page in my application.

It works well.  I wish I could put a demo of it on my work in apex.oracle.com area, but don't know how to get LDAP works on this site.

In any case, thanks, again, for your help.  It is appreciated.

Elijah

Tags: Database

Similar Questions

  • the use of tables of two schemas in the same application

    I have the table 1 of scheme A and table 2 of Figure B. In my worksapce I has the permissions to access the two schemas. In aplication wizzard, I have a listbox put what schema I work with and I can onli 1 patterns. but I want to work with the two tables in my applications, how can I do.

    Notice: I have recently started using APEX. In my work I use Oracle Forms, and now I'm trying to use APEX.

    -Select the schema of analysis in the application.
    -Grant insert, update, select and delete on a table the other schemas to the schema of the analysis.
    -Create a private synonym (create a synonym for other_schema.other_table other_table) in the scheme of the analysis.
    -Work with the two tables in the schema of analysis as if they resided in this scheme.

    Dave

  • These two types of schema cache can co-exist for the same application?

    Can these two types of cache-regimes co-exist for the same application in coherence?
    1. close to support-maped by regime distributed cache
    2-reading-writing-support-card system

    From what you describe, that you're on track.

    I think that you have a number of servers that have a size limit near cache and stored disabled for distributed share. Then you have a number of servers that are responsible for the part of writeback (active storage) distributed.

    You can also take a look at the [best practices for consistency | http://coherence.oracle.com/display/COH35UG/Best+Practices]

  • Two inflow for the same box of FMS?

    Hello

    I'm trying to understand whether or not it is possible to have two incoming streams to the same FMS server. Whenever I try to search for this information, I find stuff on having multiple outgoing flows, but nothing about multiple streams of incoming data.

    Two water courses will have the same content, but will use different video codecs / audio and be paid at different resolutions / bitrates.

    I don't want to spend money on another server, and it would be good to know if the FMS can do this.  Thank you.

    Yes, you can have multiple streams of data into FMS. If they come from the same application, they just need to have unique names.

  • pay again for the same application?

    I have 2 questions

    1. I bought CorelCad, 2013 at the time recently I restarted my Mac and did not return to the top of the application. In the App store now CorelCad 2016, with the same price I paid years ago. Because this is not to say GET, it looks that the system does not recognize that I bought the app previously. Will I be charged again if I download? "

    2. I started downloading already and now keep on break without any possibility to cancel the download. Can I cancel somehow in case I would be charged again if I download?

    Thank you!

    Have you already bought it on the app store or from another source? If it was not purchased from the app store, then the app store has no way to recognize that you already own. You will have to pay to download on the app store.

    In addition, simply because you bought the 2013 version does NOT mean that you get the version from 2016 for free. Not all updates are free. 2013 to 2016 would be a major version upgrade. I wouldn't know that it's free.

    You have probably already been asked for the purchase. Contact iTunes store support if you want to cancel the purchase.

  • Two indicators for the same graph.

    How to connect the same indicators for the chart even if you have it in different tabs?

    Looks like you want to use the same indicator in two different cases. It is not really possible, unless you want to use a local variable - which I would not recommend it. If you want something wire to the same flag from various cases, you need to place the flag outside the structure of the case, which makes a tunnel through the structure of the case.

    In addition, it seems that you want to the same graph in two different tabs in a tab control. Why use different tabs if you want the same information? Maybe you could redesign your GUI?

    But once again, as everyone said, share your code and it will be much easier for us to help :-)

  • I can't open two windows for the same file type

    I want to work with files xls two side by side. If I try to open another file of the same type, it is replaced in the same window.  How to open a file in another window please?

    Open the first file, and then run a separate instance of Excel and the inside, this instance has open the second file

  • AS3 two buttons for the same function?

    I have the next scenerio, a main.swf that loads SWFs on top, the code below

    Stop();

    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("swfs/home.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////
    Function universal BTNS
    function btnClick(event:MouseEvent):void {}


    SoundMixer.stopAll ();
    removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    addChild (loader);
    }

    Enter btn
    /*
    btn_enter.addEventListener (MouseEvent.CLICK, btnEnterClick);

    function btnEnterClick(evt:MouseEvent):void
    {
    gotoAndPlay (2)
    }
    */

    Listeners of BTN
    home.addEventListener (MouseEvent.CLICK, btnClick);
    about.addEventListener (MouseEvent.CLICK, btnClick);

    press_.addEventListener (MouseEvent.CLICK, btnClick);
    contact.addEventListener (MouseEvent.CLICK, btnClick);
    blog.addEventListener (MouseEvent.CLICK, btnClick);
    dresses.addEventListener (MouseEvent.CLICK, btnClick);
    rompers.addEventListener (MouseEvent.CLICK, btnClick);
    separates.addEventListener (MouseEvent.CLICK, btnClick);

    I need to call the dresses of another button that is on the scene, but I can't cite the dresses of button that I already used name and the swf file is called dresses. How can I get a second call button the .swf of dresses within the same service.

    I have a feeling I'll need to add another auditor evenrt and another function to run this, if so call a second charger with the same arameters than the first?

    If I could have this release, it would be useful that a simple Yes or no won't teach me if I run again on this scenerio.

    THX

    RD

    Use the code that I have suggested.  you are declaring newSWFRequest twice which causes this error.  check my code more carefully.

  • Two icons for the same program when pinned to the taskbar

    I get two icons in my taskbar for Yahoo.  One is pinned and there all the time, but another opens when I run Yahoo.

    I have this marking of the icon and then began to Yahoo and PIN the icon that appears when does Yahoo.  But at the time when I do, I get two new icons!

    It doesn't on my laptop... but I don't see anything different in my settings!  It makes me crazy!

    You have probably some duplicates in this folder:

    c:\Users\Heather\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

  • Can we have two textures for the same project?

    Hi all

    I use Captivate4. In my project, the transparency of the background for reading bar controls is 100%. If the texture would be considered to be the background of the PlayBar. I have a requirement to hide the commands of reading in a few slides. Then I would change my texture to another image. In short, I want to show a single texture when the play bar is visible and another texture when the play bar is invisible.

    Is this possible?

    Thank you and best regards,

    Kartik.

    In Captivate 4, to achieve something like this, you must use a picture placed on the layer immediately above your background layer with your PlayBar in the overlay mode.  Then turn off your PlayBar would reveal the image below instead.

  • Multiple PhoneListeners in the same application

    Hi all

    I'm trying to add two PhoneListeners in the same application and find that the other will not get invoked. I have an application that has two entry points in one of them being a module system and start-up of the unit. Which will record an instance of the class with Phone.addPhoneListener a. Then the user starts the user interface of the application that, at some point, also recorded a PhoneListener, this time a failure of class B. The recording goes, class static fields B get initialized I see in newspapers (which is still quite a strange story...) but this second listening port methods are never called, while the first will be. Now, if I Uncomment the a-class record in the background then case process, auditor of class B in the user interface will receive reminders... What is happening here?

    Thank you

    Laszlo

    I was pulling my hair. I just redid my request so that the daemon starts listening when the GUI is finished to do. Now for some strange reason, that it works always, although I tried several times commenting on the listener in the daemon and then put it again and it showed that the problem is caused by several headphones. Then after refactoring it still does not work...

    and then I found this thread http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=23282 that describes the same problem. Mark Sohm replied that it was a known issue and it has been fixed in the latest versions of 4, 5-7. It is what explains why it manifests for me not in 4.6 and 4.7 and 4.5 I downloaded most recently.

    In fact, he illuminates it is better because it seems that the problem is to have several applications to listen. I was not sure if the same main method with entries multiple points count as one or more applications. And fits in your comments, because you seem to be OK with having more listeners in a single application. The posts above also shows (and that's what I lived just know) that the problem is with the method of callInitiated only.

    And the solution to why my application has not worked despite the refactoring was I tried an app called "Black & Whitelist" a few days ago on the emulator. But "of course" it did not work from my previously installed application and was, therefore, receive notifications. However after that the other application refactoring stole the notifications, so the GUI of mine still did not. This is a very nasty bug . BTW is there a db official bug somewhere? Bugs like this shouldn'tbe forgot that even if they are fixed with the new OS releases they will survive for years in millions of handsets than ever (or rearly) will receive an update.

    Thus, it would be nice to know the version, in that it appeared and that fixed it. (Same for the other bugs of course.) Then there might be a database that can be queried for the class names & method and it could even be integrated with the IDEs popular to display popup messages when you type the code or with static analysis tools, etc. Integration is the easy part and can be made by the community, effective maintenance of the db. probably need to RIM.

  • Both inputs of printer with different names for the same printer

    I try to add a new printer in Windows 7 64 bit laptop.  I chose to add a printer in printers and peripherals and selected add a network, wireless or Bluetooth printer.  I have two tickets for the same printer

    Why are there 2 inputs and one which should I use?

    These entries are actually at the same network address (192.168.1.10).  The second address Specifies a particular port (3910).  Software print server HP Jetadmin 'web-based' uses the 3910 port to receive the print requests.  See http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c03975926

    The second is probably 'discovery of Web Services' (see http://en.wikipedia.org/wiki/WS-Discovery).  You probably don't want to use it from the "Add printer" Wizard

    I suggest to select the first entry.  This is the normal way to network printers appear in the add a Printer Wizard.  For example:

    If you have any problems with printing, post back and I'll see if I can diagnose the things for you.

  • Two users on the same PC. How to run the application even for two users at the same time?

    Hello friends,

    I have two user accounts on my pc. Is it possible to run the same application (for example: DEFRAG or disc cleanup utlities) for two users at the same time? I mean, these utlilities work by all of the computer or user account? That would mean the same application to perform for a single user in the background and foreground to the user, or I'm totally lost in space?

    Thank you for your comments

    You should run Disk Cleanup in each user account. Do not try to shut it down or change user when defragmentation; system files may be damaged. You must stop the defragmentation, log off, restart the defragmentation and don't really no point for it. MS - MVP - Elephant Boy computers - don't panic!

  • two user profiles on vista will share the same applications on hard drive

    my granddaughter has created two user profiles on vista with variations of his name.  can copy icons above his profile from first to second?

    Hello

    Yes, it is possible to share the same applications on the hard drive by using two or more different user accounts in Windows Vista.

    For more information see the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/demo-understanding-user-accounts

  • Why I have two different execution plans for the same query on two different servers

    Hello everyone.

    I need your help to solve the problem quickly.

    In a nutshell, we have two servers that have the same version of Oracle RDBMS (11.2.0.4 EE). One of them for purposes of development and another is a production one.

    We have therefore two different execution plans for the same query executed on both servers. The only case of execution is OK and another is too slow.

    So I have to slow down the work of query using the same scheme to explain that young.

    Fence wire.

Maybe you are looking for