Integration of Okta with LDAP Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmdbqaq&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Ranjini ShastryRanjini Shastry 

Integration of Okta with LDAP

I'm trying to integrate Forgerock OpenDJ directory with Okta. The OpenDJ has been installed on a RHEL 4 VM. I have downloaded the RPM package for the OktaLDAPAgent from the setup page . The installation of the rpm package succeeds . When I try to execute configure_agent.sh script , the LDAP details are configured and the bind is successful . Post which , I see an error as shown below :

[ 2017-04-13 11:30:36.941 ] [ main ][ ERROR] [LdapAgentRuntime:71] [] - Agent encountered runtime error: Failed to fetch OAuth Codes from Okta
java.io.EOFException: No content to map to Object due to end of input
        at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2775)
        at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718)
        at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1935)
        at com.okta.agent.api.http.RestClient.getOAuthCodes(RestClient.java:227)
        at com.okta.ldap_agent.config.LdapAgentConfigLoader.getToken(LdapAgentConfigLoader.java:258)
        at com.okta.ldap_agent.config.LdapAgentConfigLoader.register(LdapAgentConfigLoader.java:213)
        at com.okta.ldap_agent.config.LdapAgentConfigLoader.buildConfig(LdapAgentConfigLoader.java:162)
        at com.okta.ldap_agent.LdapAgentRuntime.main(LdapAgentRuntime.java:55)


I'm not able to find resources to lead me towards the solution for the issue . Please help !
Ranjini ShastryRanjini Shastry
A response on this question would be highly appreciated :) 
Alana CottenAlana Cotten (Okta, Inc.)
this case may have to be consulted to the Developer Team of Okta
Christian SchultzeChristian Schultze
@Ranjini Shastry @Alana Cotten
I've exactly the same issue:

[ 2017-04-21 15:44:00.341 ] [ main ][  INFO] [UnboundIDLdapClient:132] [] - Connected bind successful
[ 2017-04-21 15:44:01.403 ] [ main ][ ERROR] [LdapAgentRuntime:71] [] - Agent encountered runtime error: Failed to fetch OAuth Codes from Okta
java.io.EOFException: No content to map to Object due to end of input
        at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2775)
        at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718)
        at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1935)
        at com.okta.agent.api.http.RestClient.getOAuthCodes(RestClient.java:227)
        at com.okta.ldap_agent.config.LdapAgentConfigLoader.getToken(LdapAgentConfigLoader.java:258)
        at com.okta.ldap_agent.config.LdapAgentConfigLoader.register(LdapAgentConfigLoader.java:213)
        at com.okta.ldap_agent.config.LdapAgentConfigLoader.buildConfig(LdapAgentConfigLoader.java:162)
        at com.okta.ldap_agent.LdapAgentRuntime.main(LdapAgentRuntime.java:55)

I've no idea to fix it. Who can help me?
David HunsingerDavid Hunsinger
Same error. No response from Okta.