CORE DUMP LDAP_MODIFY_S FUNCTION SEG FAULT ERROR WHILE USING IN OAM PLUGIN (Doc ID 971396.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

COREid Identity - Version: 10.1.4 to 10.1.4.3.0 - Release: 10g to
Information in this document applies to any platform.

Symptoms


We are trying to generate a plugin that is going to be called from an authentication scheme and this plugin is going to use the ldap_modify_s() function to update some user attributes.
The plugin will be called as a Linux shared library

When we try to access any html file that is protected by this authentication scheme that is using that plugin we are getting segmentation fault and the following stack trace is going to be generated:

Core dump back trace shows this:

-----BACKTRACE-----
(gdb) bt
#0 0xf6dcd90b in strlen () from /lib/i686/libc.so.6
#1 0xf7eedf12 in ber_put_string () from ../../../lib/libobldap50.so
#2 0xf7eee84f in ber_printf () from ../../../lib/libobldap50.so
#3 0xf7eda4c7 in ldap_modify_ext () from ../../../lib/libobldap50.so
#4 0xf7eda735 in ldap_modify_ext_s () from ../../../lib/libobldap50.so
#5 0xf7eda6e9 in ldap_modify_s () from ../../../lib/libobldap50.so
#6 0xecd18abb in increaseLoginFailureCount (pLdapHost=0x8b66bc0 "quattro.exigengroup.lv", pLdapUser=0x8b64228 "cn=orcladmin",
pLdapPassword=0x8b643c8 "sys_oamias1", pUserSearchBase=0x8b647c8 "cn=Users,dc=exigengroup,dc=lv", pSearchFilter=0x8b63b08 "(uid=700000002)")
at cc_an_plugin.c:387
#7 0xecd194dd in ObAnPluginFn (pContext=0xf1cfca50, pFnBlock=0xf1a66338, pInfo=0x8b63f78, pResult=0xedbbd234) at cc_an_plugin.c:702
#8 0x0829ba43 in ObAuthnDSOElem::CallPluginFn ()
#9 0x0818135f in ObAuthenticationHandler::EvaluateCustomPlugin ()
#10 0x0816cbd4 in ObAuthenticationHandler::ExecutePlugin ()
#11 0x080f5de5 in ObAuthenticationHandler::ExecuteStep ()
#12 0x08136bcb in ObAuthenticationHandler::Authenticate ()
#13 0x080b0274 in ObAAAServiceServer::Authenticate ()
#14 0x080b3f2c in ObAAAServiceServer::AuthenticateWAudit ()
#15 0x081939de in ObAuthenticateWAuditHandler ()
#16 0x0818b06f in handleMsg ()
#17 0x081a265b in ServiceThread::Run ()
#18 0x082eca33 in ObThread::ThreadFunc ()
#19 0xf6f80ce1 in pthread_start_thread () from /lib/i686/libpthread.so.0
#20 0xf6e2e17a in clone () from /lib/i686/libc.so.6
-----END OF BACKTRACE-----


This trace shows a failure in the executing the plugin and especially the ldap_modify_s() function
If we comment out this function in the code then we can use the plugin without issue but we are not able to modify the user's attributes.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms