How can I make the ERP Oracle connection same powers as company IDs?

Hello

I have to run business with Oracle ERP authentication authentication.

We have the same credentials for our company interrnal (Gmail and Helpdesk, Jira) Portal, but we have different credentials (username and password) for ERP, as these two password are kept in two separate systems.

Please suggest me how can I do ERP Oracle qualifications from the society Gmail (AD) identification information so that if we change the passowrd of gmail, then with the same password society we should be able to connect to oracle ERP.

We are unable to perform such a LDAP authentication through recommonded EBS with SSO and OID integration solution. As for the SSO and the OID, we will require OAM, who is the licensed version. We are 8000 + employees and it will be a huge cost to society. So we dropped this idea.

Our idea is the following:

We will define a password hardcoded to the LES for all users to identify the user is a valid user for Oracle EBS.

When click on Login , happen internal authentication LDAP that identify this same password hardcoded as a password valid internally and then the user is able to see the Oracle ERP homescreen.

Please suggest me how can I do the LDAP using the OPS (JDeveloper 10.1.3.3.0) authentication.

Is it possible to do this?

Assume that POC, we have 2 fields username and password, and properly integrate into our company AD, this means that if I put my AD company credentials, it should allow me to login in there.

Please suggest how can I do this? is there an API for it? Also suggest me another possible solution for ERP Oracle credentials identical to that of AD.

Kind regards

Monika

Hi Monika,

First to write all your calls of dbms_ldap in the procedure a pl/sql. Do not call dbms_ldap api functions separately in java.

Didn't test it, but it should work.

1 Wrrite a pl/sql package. You can also add create api user.

create or replace package apps.xxanil_pkg as

    function authenticate(p_dn in varchar2, p_password in varchar2 ) return varchar2;

    function password_operation ( username varchar2, newpassword varchar2 ) return varchar2;

end;                      

/

create or replace package body apps.xxanil_pkg as

    function authenticate(p_dn in varchar2, p_password in varchar2 ) return varchar2 is
        l_ldap_port   number        := 389; --ldap port
        l_ldap_host   varchar2(100) := '';
        l_out         varchar2(1);

        l_retval      pls_integer;
        l_retval2     pls_integer;
        l_session     dbms_ldap.session; 

        l_string      varchar2(256);

        my_attrs     dbms_ldap.string_collection;
        my_message   dbms_ldap.message;
        my_dn        varchar2(256);
        my_entry     dbms_ldap.message;
        x_retval     pls_integer;
        x_dn         varchar2(256);

        ldap_base     varchar2(256):= '';
        l_admin_dn    varchar2(256):= '';
        l_admin_pass  varchar2(256):= '';
    begin
        if p_password is null then
            return 'N';
        end if;

        l_retval                    := -1;
        dbms_ldap.use_exception     := true;       

        begin
            l_session   := dbms_ldap.init( l_ldap_host , l_ldap_port );
            l_retval    := dbms_ldap.simple_bind_s( l_session, l_admin_dn, l_admin_pass );
            my_attrs(1) := 'distinguishedName';
            x_retval    := dbms_ldap.search_s( l_session, ldap_base,  dbms_ldap.scope_subtree, 'sAMAccountName='||p_dn ,my_attrs , 0, my_message);
            my_entry    := dbms_ldap.first_entry(l_session, my_message);
            my_dn       := DBMS_LDAP.get_dn( l_session, my_entry );
            l_retval2   := dbms_ldap.unbind_s( l_session );
            if my_dn is not null then
               x_dn := my_dn;
            end if;
        exception when others then
            x_dn := null;
        end;      

        begin
            l_session       := dbms_ldap.init( l_ldap_host , l_ldap_port );
            l_retval        := dbms_ldap.simple_bind_s( l_session, x_dn, p_password );
            l_retval2       := dbms_ldap.unbind_s( l_session );
            l_out := 'Y';
        exception when others then
            l_retval2       := dbms_ldap.unbind_s( l_session );
            l_out := 'N';
        end;  

        if l_out = 'Y' then
            return 'Y';
        end if;            

        return 'N';
    exception when others then
        return 'N';
    end;

    function password_operation ( username varchar2, newpassword varchar2 ) return varchar2 is
        l_result                    boolean;
        l_out                       varchar2(1) :='N';
        l_user_exist                varchar2(1);
        l_user_password_correct     varchar2(1);
    begin

        select decode(count(*),0,'N','Y') into l_user_exist from fnd_user where user_name = username ;

        if l_user_exist = 'Y' then  -- user exists

            l_user_password_correct := fnd_web_sec.validate_login(username,newpassword);
            if l_user_password_correct = 'N' then  -- user exists but password is wrong. change the password

                l_result := fnd_user_pkg.changepassword(username,  newpassword );
                commit;

                if l_result then
                    l_out := 'Y';
                else
                    l_out := 'N';
                end if;

            else -- user exists, password is correct, do nothing
                l_out := 'N';
            end if;

        else -- user not exists. create user here
            null;
        end if;  

        return l_out;
    exception when others then
        l_out := 'E';
        return l_out;
    end;   

end;                      

2. decompile LoginCO.class and add after the code before "hashmap.put ("username", s1);". Launch OAExceptions if any statement that may be called by error occurs.

OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
OADBTransaction txn = am.getOADBTransaction();

CallableStatement csLdap = null;
String ldapResult =null;
String sqlldap = "Begin :1 := APPS.xxanil_pkg.authenticate(:2, :3); End;";
csLdap = txn.createCallableStatement(sqlldap, 1);
try {
  csLdap.registerOutParameter(1, Types.VARCHAR);
  csLdap.setString(2, s1);
  csLdap.setString(3, s2);
  csLdap.execute();
  ldapResult = csLdap.getString(1);
} catch (SQLException e) {
  //throw OAException here, cut the process
} finally {
  try {
  if (cs != null)
  cs.close();
  } catch (SQLException e) {
  //throw OAException here, cut the process
  }
}

if("Y".equals(ldapResult)) {
  CallableStatement cs = null;
  String result =null;
  String sql = "Begin :1 := APPS.xxanil_pkg.password_operation(:2, :3); End;";
  cs = txn.createCallableStatement(sql, 1);
  try {
  cs.registerOutParameter(1, Types.VARCHAR);
  cs.setString(2, s1);
  cs.setString(3, s2);
  cs.execute();
  result = cs.getString(1);
  } catch (SQLException e) {
  //throw OAException here, cut the process
  } finally {
  try {
  if (cs != null)
  cs.close();
  } catch (SQLException e) {
  //throw OAException here, cut the process
  }
  }
}

Kind regards

Anil

Tags: Oracle Applications

Similar Questions

  • created a 2nd model - how can I make the default value

    Hello

    I added a 2nd model for a data definition. How can I make the new value by default so that the user doesn't have to go in as soon as completion/Options and choose the model whenever they perform simultaneous program? The other model is still necessary, but not as often as the other.

    Also my form once displays only a (former) model recording. The form allows me to create a second record (select the new model), but then ignores him. My only choice was to replace the first record by selecting the new model. I wasn't expecting a grid behaves this way. Is this a known bug or have I something properly configured? Couldn't find anything on MettaLink...?

    Thank you for your help.

    The Administration guide shows you how to assign a default template.

    Connect as the administration of the system (for the Applications of Web Self-Service, not the system administrator):

    Navigator > System Administration > simultaneous > programs > Search > enter the model name > go > update > on-site adjustment > model > select > apply > Ok

    It is also covered in this white paper...

    http://www.Oracle.com/technology/products/XML-Publisher/docs/XMLEBSRep.PDF

  • How can I make the biggest impression

    How can I make the biggest impression on all Web sites? where is the setting? Thank you!

    To temporarily make more big, click on 'view' in the menu, then choose 'Zoom' & then it will allow you to set the zoom to larger or smaller.

    If you want to definitely bigger, if you have a Mac, click on 'Firefox', then 'Préférences' / If you have Windoze choose 'Tools', then 'Options' (both look the same from here...), then click the "Content" icon and change the font size.

    That should do it...

  • On another PC I want to save my favorites, but my browser Firefox does not work how can I make the backup, before I reinstall Firefox

    On another PC I want to save my favorites, but my browser Firefox does not work how can I make the backup, before I reinstall Firefox.
    Firefox cannot renew its tabs and now won't run and let me do a backup

    This may be considered to be solve my problem.
    I decided to uninstall the rogue program Firefox download and reinstall the same version (No. 8). I used Windows XP Add Remove programs who asked if I wanted to save the settings of Firefox until I uninstalled Firefox. I said yes and operated with the uninstall. I couldn't find a Firefox 8 so I went for the 12 version and installed on the laptop. This version 12 now works with all the passwords one favorite of the uninstalled 8.
    Thank you for all your help and advice.

  • Re: Satellite A300 - how can I make the webcam work on Win7

    Hello everyone.

    I had Win Vista installed on this Satellite A300 and it worked well.
    I had no problem at all.

    Then I moved to Win7 and now I'm going through the test of the work of webcam.
    I tried to install all types of drivers, even those for A500, but it would be of no use.

    So, how can I make the webcam work on my A300?

    I've tried everything, even the installation of Ubuntu on this laptop and still it wouldn't work. If this is your interest, I'm under Win7 in Spanish, x 32, Home Edition.

    I really need your help here, please, I beg you, I spent 5 days ago almost try ANYTHING!
    And yet, I get the message after each installation/reboot of the: "the camara web esta disabled o ha Fall.» "Por favor, it check las web camara su configs", which would result in something like "the webcam is disabled or it has failed. Please check the configuration of your webcam. I've been browsing the forum for related issues, but I have not found any solution :(

    Thanks in advance,

    Ozma.

    Hello

    Seems the webcam software has not been installed correctly.
    That Win 7 OS do you use? 32-bit or 64-bit?

    Here you can find Chicony webcam driver for Win 7 64 bit
    http://Support1.toshiba-tro.de/Tedd-files2/0/webcam-20091026100013.zip

    and here you can find Chicony webcam driver for Win 7 32 bit
    http://Support1.toshiba-tro.de/Tedd-files2/0/webcam-20091023184836.zip

    Good luck

  • When I get e-mails, printing is so so small I can barely read. How can I make the biggest impression

    When I open my emails to read, printing is so tiny that I can hardly read them. How can I make the biggest impression?

    Hello
    Try to view/Zoom/full Zoom In (ctrl + +).

  • How can I make the best use of a new external hard drive and a new catalog full of photos just loaded into Photoshop elements 14 Organizer?

    How can I make the best use of a new external hard drive and a new catalog full of photos just loaded into Photoshop elements 14 Organizer?

    Keep all the files on external hard drive image?  Nothing else and no pictures on the desktop?

    Keep all image files both places?

    What is the best way to go through thousands of images in the Organizer to identify and place them in files?

    Once I've placed a file, I just leave it in the entire catalog or a way indicate to me that it has been sorted?

    As overwhelming, any tips/shortcuts/schemes, you can offer are welcome!

    As I only have the version of the EP, here is some info on the organiser:

    https://helpx.Adobe.com/Photoshop-elements/how-to/use-elements-Organizer.html

    Independent of how this feature works, you want to have your photos in one place and have a backup (second copy) somewhere else. All hard drives will not be successful at some point - some more early, some late - never trust to have your files in any safety devices if they are on a single disc. Once you have your sorted, it would be useful that you will organize/name/tag new photos immediately if the task is relatively short and simple. I copy my photos on my internal hard drive for my camera, take a quick look with preview to see who needs some changes and then decide where to put them - either drop them immediately after naming them or bring in an editing application and then file them away.

  • How can I make the screen keyboard on disappear?

    How can I make the screen keyboard on disappear?

    Press the key at the bottom far right (icon with an arrow to the bottom of the keyboard).

  • My 6s iphone shows that I have an email unread in my Inbox.  I have read and open any emails in my Inbox, but my phone shows an unread email.  How can I make the 1 red go?

    My 6s iphone shows that I have an unread email.  I have read and open any emails in my Inbox.  How can I make the 1 red go?

    Go to settings > Mail, Contacts, calendars > press e-mail account. Put the Mail DISABLE (display white side). To return to the home screen (it's essential!). Phone power off. Turn the phone to power back on. Mail switch must stay off - if enabled, you will need to repeat this process. If it is disabled, you did it right - turn it on and the 'ghost' post should have gone - for now. That they will probably come back until this bug is fixed permanently.

  • How can I make the computer asks for a password before downloading a program?

    How can I make the computer asks for a password before downloading a program?

    Hello

    You can configure the computer to request the password when you install any program using the User Account Control (UAC) on the computer. But you will not be able to make windows to ask password when you try to download and program.

    You can check the link next on change control settings of user account for more information.

    http://Windows.Microsoft.com/en-us/Windows-Vista/your-permission-please-understanding-user-account-control-in-Windows-Vista

    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-change-the-behavior-of-the-user-account-control-message

    You can use any program of third-party download manager in which you can set a password when you download any file/program on the computer. You can use your favorite search engine to find any Download Manager for the browser software.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • How can I make the computer sleep after 5 minutes of inactivity on the logon screen?

    Original title: How to sleep in the login screen?

    How can I make the computer sleep after 5 minutes of inactivity on the logon screen? Currently, on the login screen, white screen, but the computer is still running. Sleeping would save a lot of energy because the computer is used most of the time.

    Hi Phil.Ganchev,
     
    Using a laptop or a desktop computer?
     
    The reason for this question is, if you have a plugged AC adapter you must set power accordingly as opposed to laptop settings battery operated.
     
    I suggest you head over to the power settings and create your own power management.
     
    a. power by clicking on the Start button, open the Options click on the Control Panel, clicking system and security, and then clicking Power Options.

    (b) according to the plan you want to change, click on change plan settings.

    c. on the parameters of change in the plan page, choose "Put the computer to sleep" that you want to use when your computer is running on battery (if applicable) and when it is plugged.
    (Change in 5 minutes for the batteries and sector)
     
    Reference:
     
    Power plans: frequently asked questions

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • How can I make the tΓches play a mp3 file at some point please?

    I would like to that task scheduler to open windows media player and play an MP3 for me at a given time. I followed the instructions here, but nothing helps. The windows media player window does not open, but it does not play mp3.

    http://www.Vistax64.com/tutorials/132903-Task-Scheduler-create-task.html

    In the program/script box, I put in "C:\Program Files\Windows Media Player\wmplayer.exe '.

    In the Add arguments box, I put in: Wildlife.mp3

    At the beginning of area (optional), I put in: C:\Reminders

    which is a folder that I created in the C drive.

    Wildlife.MP3 file is of course in the C\Reminders folder.

    I have Windows 7.

    How can I make the tΓches play a mp3 file at some point please?

    In the arguments to the full path of the file in quotes, "c:\reminders\wildlife.mp3."

    http://Windows.Microsoft.com/en-us/Windows7/schedule-a-task

  • How can I make the header fixed while scrolling?

    forget that, how can I make the header while scrolling fixed?
    until this that no point visible in the header, it disappears as well.

    [title amended to reflect content]

    Please keep to one question per thread.

    You can assign the sticky HeaderMode...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__stacklistlayout.html#propert...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__listheadermode.html#enum-Typ...

  • How can I make the start menu bigger?

    How can I make the start menu bigger? GO BROWNS!

    What do you mean largest? More Articles?

    If so, right click on the ORB start and select Properties.

    Click Customize, and then down, to increase the number of programs to display.

  • Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello

    The fastest internet connection depends on your internet speed provided by her Internet (ISP) Service provider. Therefore, contact them to receive a best speed of the internet.

    For more information:

    How to increase the speed of navigation: 7 ways to work faster on slow connections

    http://www.Microsoft.com/atwork/remotely/connections.aspx#fBid=TN-_TCHYDMB

    10 tips to help improve your wireless network

    http://www.Microsoft.com/athome/Setup/wirelesstips.aspx#fBid=1vrPRuhAhAg

    Internet Explorer is slow? 5 things to try

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

    It will be useful.

Maybe you are looking for