LDAP authentication scheme has stopped working

I have two servers, each with its own DB and APEX applications. To simplity, let's call them A and b. authentication is handled through a LDAP schema - and this regime is the same on both servers. After a few patches on A (I have yet to find out what that this application of fixes) I am no longer able to connect to one of the applications. However, using the same user/pass I can connect fine on server b (not talking dev backend for APEX, just the connection of the ordinary user in an application). Also, I changed absolutely nothing about the applications or the authentication scheme. So for now, I'm running with the idea that something happened during the patch.

Here are the APEX vs on both servers:

A: APEX 3.2

B: APEX 4.0

Looking at the authentication scheme, trying to detect the differences, the only thing I could find is that B also has a "Use SSL" option. But it is set to N, in any case. Yet once, these worked very well they were until now.

I decided to test and run the following code on both servers:

BEGIN
IF APEX_LDAP.AUTHENTICATE(
    p_username =>     'user.name',
    p_password =>     'ultrasecretpassword',
    p_search_base =>  'cn=users dc=my, dc=domain, dc=com',
    p_host =>         'host.my.domain.com',
    p_port => 389) THEN
    dbms_output.put_line('authenticated');
ELSE
    dbms_output.put_line('authentication failed');
END IF;


END;

Not surprisingly, that said "authenticated" on B, and 'authentication failed' in a.. So, I decided to go a little further and run the following:

-- Code by Scott Spadofore
-- OTN: https://forums.oracle.com/forums/thread.jspa?threadID=954602
DECLARE
  l_retval PLS_INTEGER;
  l_retval2 PLS_INTEGER;
  l_session dbms_ldap.session;
  l_ldap_host VARCHAR2(256);
  l_ldap_port VARCHAR2(256);
  l_ldap_user VARCHAR2(256);
  l_ldap_passwd VARCHAR2(256);
  l_ldap_base VARCHAR2(256);
BEGIN

  l_retval := -1;
  dbms_ldap.use_exception := TRUE;
  l_ldap_host := 'host.my.domain.com';
  l_ldap_port := '389';
  l_ldap_user := 'cn=user.name,cn=users, dc=my,dc=domain,dc=com';
  l_ldap_passwd := 'ultrasecretpassword';

  l_session := dbms_ldap.init(l_ldap_host, l_ldap_port);
  l_retval := dbms_ldap.simple_bind_s(l_session,
  l_ldap_user,
  l_ldap_passwd);
  dbms_output.put_line('Return value: ' || l_retval);
  l_retval2 := dbms_ldap.unbind_s(l_session);

EXCEPTION
  WHEN OTHERS THEN
    dbms_output.put_line(rpad('ldap session ', 25, ' ') || ': ' ||
    rawtohex(substr(l_session, 1, 8)) || '(returned from init)');
    dbms_output.put_line('error: ' || SQLERRM || ' ' || SQLCODE);
    dbms_output.put_line('user: ' || l_ldap_user);
    dbms_output.put_line('host: ' || l_ldap_host);
    dbms_output.put_line('port: ' || l_ldap_port);

    l_retval := dbms_ldap.unbind_s(l_session);
END;

VERY surprisingly (or unfortunately), it displays the same thing on both A and B: "return value: 0.

Go to B and APEX LDAP test, I found that if I enable SSL, auth begins without too much. Clearly, it should be turned off to make it work. I'm picking on it because it's the only difference I could find between the two: A, being an older version does not have any what specifications on whether or not to use SSL (and I guess it's not, because I can't find anything in the docs).

In the APEX, the DN is:

cn=%LDAP_USER%,cn=users, dc=my,dc=domain,dc=com

... and uses no edit function, or anything like that. It's as simple as the host name, port, DN

I am at a loss here, so any help would be appreciated! Thanks in advance!

Finally two thoughts.

During the ACL test - make sure this isn't a privileged account.   Users like SYS will bypass the ACL and give false positives.

Second - the script you have above is designed for the APEX 4.1 (APEX_040100).  Make sure you adjust respectively for APEX 3.2 or 4.2.

Also, if you want a few quick scripts to test / display the ACL settings, there are examples all over the internet.  I've added a few to the pile here: Oracle ACL configuration Scripts. W.P. Hill Tech

Maybe they will help.

Good luck.

-Tim St.

Tags: Database

Similar Questions

  • "gss authentication provider has stopped working".

    Start the laptop.  Connect, 3 seconds after full boot Oi get this error

    'gss authentication provider has stopped working' and this program needs to close etc...  Error sent no known nothing... Well, all you ideas?

    Try a system restore to a Date before the problem began:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • Internet Explore has stopped working - question of the biometric authentication service

    My Elitebook 8540p has developed a problem where I get the error message - Internet Explorer has stopped working... Turn it back on.     I am running Windows 7 32 bit.   And using IE9.

    After some internet reading, I started my services of neutralization.    I finally got down to a service that is causing the problem.

    Biometric Authentication Service Digital Persona Inc.

    When I disable the service in the services of the MSconfig System Configuration and reboot, I use internet explore without any problem.    (I've identified some Web pages which would agrivate the question.)

    The deactivation of the Service of Authenticaton of Biomitric causes the scanner to not work.     I tried to reload the driver for fingerprint reader, and the HP Protect tools Security Manager.

    Any idea how I can activate the biometric authentication Service and not IE stopped working the issue?

    j1bissig

    I had the same problem on my HP Pavilion dv7 and had the chance of getting a solution.

    I, too, put the finger on biometric authentication as the problem Service.  By disabling the service, Internet Explorer worked well; except, now, I had no finger analysis feature.  I installed the latest version and it worked for a few sessions and then the problem comes back.

    Looking at my updates, I realized that the Flash is set to update at the same time, the problem started.  I tested by activating the biometric authentication Service.  Instead, I disabled the Flash add-on in Internet Explorer and it did not work again; except, now, I had no Flash.

    Searching online, I came across this post from Adobe:

    Post on the Adobe Forum: IE9, Windows 7 64-bit Flash causes "Internet Explorer has stopped working".

    I followed the instructions in this post, including the "clean install" and reverted to version 10.3 of Flash.

    Post on the Adobe Forum: how to return to a previous version of Flash Player?

    Now, all the features work correctly.

    I hope this helps!

  • Aero in Windows has stopped working

    I am running Windows Vista Home Premium with Service Pack 2. Aero in Windows has stopped working. When this happened once before going to the control panel > change the color scheme and selected Windows Aero, but now this option is not listed. Checked the help and as advised checked my screen resolution and I saw 32-bit color, the verified value Advanced Configuration monitor and I saw this refresh rate is 60 Hz. Then forums got advice to run sfc/scannow and it came back and told me to Resource Protection Windows did not find any breach of integrity. Finally, taking advice to check that the graphics card by going to Device Manager but no device had anything by them which suggests that they do not work.

    Help the old windows look terrible after using Windows Aero

    Brett

    Hello

    Make sure that you are logged on as ADMINISTRATOR

    My Vista Aero Glass is turned off, how can I enable them again?
    http://www.howtogeek.com/HOWTO/Windows-Vista/my-Vista-Aero-Glass-turned-itself-off-how-do-i-enable-it-again/

    To the need to update or reinstall the video driver (it's a good idea in any case).

    Solve problems with Windows Aero
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Aero

    How to enable or disable transparent Aero Glass on Vista
    http://www.Vistax64.com/tutorials/75413-Aero-Glass-transparency.html

    --------------------------------------------------------------------

    This utility, it is easy see which versions are loaded: (updated video/Display drivers and others)
    According to the needs.)

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system. For
    each driver in the list, additional useful information is displayed: load address of the driver, description,.
    version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - Device Manager - Display Adapter - note the brand and complete model of your
    video card - double - tab of the driver - write version information. Now click on UPdate Driver (this
    cannot do anything as MS is far behind the certification of drivers) - then do a right click - Uninstall - REBOOT
    This will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party with their
    own the software and drivers and all other main drivers that you have.

    Now go to the site of the manufacturer of system (Dell, HP, Toshiba as examples) (restoration) and then of the manufacturer of the device
    (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for the BIOS, Chipset and software)
    updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after each installation.

    Always check in the Device Manager - tab drivers version you install actually shows up. This
    because some restore drivers before the most recent is installed (particularly that audio drivers) so install a
    pilot - reboot - check that it is installed and repeat if necessary.

    Repeat to the manufacturers - BTW on device at the DO NOT RUN THEIR SCANNER - manually check by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver in the Windows updates,
    This leaves ONE of Windows updates, but it will not install the drivers who are generally older and cause
    questions. If updates offers a new driver and then hide it (right click on it) and then go look for new ones
    manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Tycoon Zoo 2 executable has stopped working, please help!

    Basically I just got ultimate collection of zoo tycoon 2 and the installation of the part went well but when I tried to play the game of the color scheme changed on windows 7, then this message popped up.
    "executable of zoo tycoon 2 has stopped working" I tried loads, we're talking about compatibility and I tried but I don't understand how it works, please, please help!

    Hello

    Method 1: If the program is not compatible, then try to install and run the program in compatibility mode.
    Use the following steps:
    Right-click on the program
    Click on properties
    Click on the Compatibility tab
    Select run this program in compatibility mode and select Windows Vista or other operating system, the program has been run successfully.

    Check out the link here: make sure to run older programs in this version of Windows
    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Method 2: I would say allows you to clean start, then download and install the update from the following link.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Follow step 7 of section of boot KB929135 to the computer in normal mode.

    See also:
    Game hangs or quits unexpectedly
    http://support.Microsoft.com/kb/303032

    You can also check the event viewer for the detailed error message.

    Hope this information helps.

  • Executable of Zoo Tycoon 2 has stopped working

    Hello

    I have installed and run my Zoo tycoon 2: Ultimate Collection on my laptop Windows 7 successfully and it has now stopped working. When I try to load the game it changes the color scheme to windows 7 basic and then a little black box arrives, he has a messagethen of error appears saying: Zoo Tycoon 2 executable has stopped working and it closes the program. I tried changing the settings in "run programs made for previous versions of windows" but when he checked the mobile Zoo Tycoon 2: Ultimate Collection is not listed. My laptop meets the minimum requirements of the system and tried to download a patch, but it hangs just at the end of the installation. Any ideas?

    Hello

    Method 1:

    I suggest you perform the clean boot and check.

    Place the computer in a clean boot state, then check if it helps. You can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    To set up the computer in a clean boot, follow the steps in the link: How to perform a clean boot

    http://support.Microsoft.com/kb/929135

    Note: After checking in the clean boot, follow step: 7 article to reset your computer to normal startup.

    Method 2:

    I also suggest you to see link and check.

    Game hangs or quits unexpectedly

    http://support.Microsoft.com/kb/303032

    Microsoft Games: Error "game has encountered a problem and needs to close."

    http://support.Microsoft.com/kb/300963/en-us

  • my iPhoto has stopped working

    My iPhoto has stopped working. I did clean up. Now, when I click it shows cannot be opened because of a problem. The problem has not said.

    What version of OS X (or, if all goes well, Mac OS) are you running?

    What version of iPhoto do you run?

    iPhoto was not maintained or updated updated by Apple for about eighteen months.  Photos taken app supported since that time.

  • Click force has stopped working

    Hi, I'm on MacBook Pro (15-inch, mid-2015, retina), freshly updated for Sierra, force click has stopped working.

    I have checked all the options, rebooted the system, still no clear sign of what is the problem.

    Does anyone have the same problem? How to check weather force/pad touch works well?

    Any suggestions what to do?

    A pointer more, I also started to use the new keyboard to work, but my memory then click force was working well.

    This is the Office Mac Pro forum. I asked that your post moved to the forum of laptop MacBook Pro or another appropriate forum.

  • 12.5.1.21 iTunes has stopped working. APPCRASH on Windows 7. WebKit.dll 7602.1050.4.5 error

    iTunes64Setup - 12.4.3.1 worked very well and no problems on Windows 7.

    After the update iTunes6464Setup - 12.5.1.21 or iTunes64Setup - 12.5.1.21, APPCRASH arrived.

    Get 2 x "iTunes has stopped working" and the messages to "Close the program" when you try to view the store / App Store or view account.

    Possible only "close program"...

    Tried to uninstall ALL Apple software (with deletion of all files) and reinstall again but still the same error!

    All software average iTunes to Apple, Apple Software Update, Apple Mobile Device Support, iCloud, Hello, Apple Application Support (32-bit and 64-bit).

    Checked the event viewer:

    1. error message:

    Name of the failing application: iTunes.exe, version: 12.5.1.21, time stamp: 0x57cfb09f

    Name of the failed module: WebKit.dll, version: 7602.1050.4.5, time stamp: 0x57c11f7f

    Exception code: 0xc0000005

    Offset: 0x004f0e09

    ID of the process failing: 0xcc4

    Start time of application vulnerabilities: 0x01d218b3194e2f01

    The failing application path: C:\Program Files\iTunes\iTunes.exe

    Path of the failing module: C:\Program Files (x 86) \Common Files\Apple\Apple Application Support\WebKit.dll

    Report ID: 68f80588-84a6-11e6-8df8-4851b741621f

    2. Windows Error Reporting

    Fault of type 1024926102, bucket 25

    Event name: APPCRASH

    Answer: No available

    Cabin ID: 0

    Signature of the problem:

    P1: iTunes.exe

    P2: 12.5.1.21

    P3: 57cfb09f

    P4: WebKit.dll

    P5: 7602.1050.4.5

    P6: 57c11f7f

    P7: c0000005

    P8: 004f0e09

    P9:

    P10:

    Hello, follow the instructions If you see 7 error (error Windows 193) when you try to install iTunes for Windows - Apple Support

  • iMovie has stopped working since iOS 10

    iMovie has stopped working since iOS 10

    Now, all I see is a black screen and then it throws me out of the app however does not close the app and the problem does not improve. I lost my summer and extra time making a super great way to 5 hours difficulty megaforce and now I can't watch it

    Hello iMovie does not work,

    After reviewing your post, it looks like the iMovie app is black and take you to the home on its own screen.
    I recommend you read these articles, there are a few things that we can try to get the application running again.

    Force an application to close on your iPhone, iPad or iPod touch - Apple Support
    Restart your iPhone, iPad or iPod touch - Apple Support

    If an application you have installed unexpectedly closes, unresponsive, or will not open - Apple Support

    Thank you for using communities of Apple Support. Good day.

  • Error "iTunes has stopped working".

    After update itunes to the latest version of 12.5.1.21, its does not and always give an error like "iTunes has stopped working". Even I tried to reinstall the same version and earlier versions of it. Always the same question.

    Kindly resolve.

    Bene-

    Hello, this article could help you Fix unexpectedly closes or launch issues in iTunes for Windows - Apple Support

  • "Share" feature in the Finder (or other applications) has stopped working.

    Use OS X El Capitan on a Mac Book Pro, the function in the Finder (or other applications) has stopped working "share."  From the Finder, I select a file and to 'Share', select say "Mail", nothing happens. Even when selecting other sharing options such as 'Notes', etc.  He used to work.  Now it is not.  In system preferences > Extensions all the sharing options are regularly controlled.  The same problem occurs in other applications such as Photos.  Selection of a photo and trying to "share."  Nothing happens, the application crashes. Does anyone have a solution?

    The Share button shows 'No. Service' or missing menu items?

    https://support.Apple.com/en-us/HT203129

    If this does not help, backup the computer and reinstall OS X El Capitan of OS X Recovery.

    https://support.Apple.com/en-us/HT204904

  • How to make the new version, I just installed as the old work that has stopped working?

    I used Thunderbird for many years and have always been very satisfied.

    A few days earlier, he has stopped working on my computer. I think that this was due to an update of AVG Free 2015. (When I restarted after the automatic update, Tbird and Chrome and Firefox broke everything. AVG has since been removed and replaced with Avast. Chrome and Firefox, both work very well after I installed the latest versions.) I took the opportunity to get the latest version of Tbird (I was 37) and installed it. TBird is OK, but the operation is a total disaster!

    He used to see me just like the user. Now I have to choose my Inbox by clicking, and then open it in a new tab. I could accept this pain if things worked OK. The first email that I click appears in the message pane. But I can't delete it unless I double click to open in a new tab! I can not get the following message to be displayed in the messages pane. It's used to work if I simply clicked on the message.

    How can I make Tbird work as he did? I used to love, now I hate it! Please help me before I dump Tbird and switch to Gmail!

    Thanks for any help.

        -jim
    

    And it still works like that for me.

    First define your default account
    Account settings, mark your account, thoroughly open stock account and 'set as default '.

    To see how it works

  • "Plugin - container.exe has stopped working" error during installation of Firefox 36.0 via SCCM if Firefox is open during installation.

    When installing Firefox 36.0 via SCCM (System Center Configuration Manager), if the previously installed version of Firefox is open during the new installation, an error, "Plugin - container.exe has stopped working. A problem caused the blocking of the program works correctly. Please close the program. This problem occurs only if Firefox is open during the installation, otherwise the installation is successful. Note: I have included a taskkill to 'firefox.exe' in my installation script to stop Firefox runs.

    There are new logic in Firefox 36 monitor to stop crashes while the Mozilla Crash Reporter can capture data. This could have the effect of killing her task, I'm not sure. Maybe you have to kill plugin - container.exe before firefox.exe? I'm not familiar with SCCM and it might have a more graceful way to close an application.

  • FDM has stopped working with firefox

    Free Download Manager has stopped working with firefox after I speedup firefox opening. (not after restart or update of firefox) Before that, I used FDM on firefox. I already try with restart firefox and follow-up of the implementation under the quiz "Windows Media or other plugins stopped working after Firefox update | Firefox Help", but none of them worked.

    When you say after you speed up Firefox, do you mean you used the reset feature? You can tell because Firefox will create a new 'Old Firefox Data' folder on your desktop when you reset.

    The Reset function deletes your extensions as part of the cleaning process. You probably need to reinstall FDM from its original source. Maybe the Addons site? https://addons.Mozilla.org/Firefox/

Maybe you are looking for

  • Error message from photos

    I just updated my iMac with OS X Yosemite 10.10.5 and when I try to click on the Photos icon on my iMac, I get this error message "the application built with PhotoLibraryPrivate version 209.52.00 but works with version 215.65.00" and pictures does no

  • HP Pavilion 15-e091eo Ram and ssd upgrade.

    Hello! My computer is HP Pavilion e091eo 15 and I expected to make it even faster. I found these two products on amazon and I was wondering if they are not suitable for my computer. RAM: http://www.amazon.com/gp/product/B00CQ35GYE SSD: http://www.ama

  • Why I need to update LVLIB

    Hello I don't understand why I have to update the lvlib I have add this vi in the lvlib and these items appear in the lvlib WHY

  • How to set the partition active windows 7 using the command line

    I activated the system recovery partition, so the windows partition is disabled and I can't start Windows

  • "Automatically detect settings in WIN7 IE8 does not work with the particular user account

    Hi all For the moment that I recreate the account user as workaround, but it takes a long time. End users in our enviourment cannot site external brower without the correct "automatically detection of parameters. I checked the support.microsoft and t