While importing users, I created a connection type to the AD using LDAP connections. Following were my settings: Hostname ldap://ldap.abc.com:389 Base Context DC=cs,DC=myabc,DC=net Specify the DNS name prefexed with DC. Example: DC=Americas,DC=securonix,DC=com Filter (&(objectCategory=person)(objectClass=User))

Test connection on the UI was successful for these settings. When tried the same settings on the Apache LDAP browser, it was successful.

But when I tried to import users, it gave me following error.

Please help resolve this issue.

Thanks in advance!

19:15:55,693 DEBUG [UserLdapReader] [JobId:15] /home/secure_onyx/securonix_home/import/in/15-ldap.csv moved? true 19:15:55,695 ERROR [QuartzJob] [JobId:15] Error in job execution - User_TestLdap_LDAP_2014_10_13_18_59_27 com.securonix.application.exception.matcher.MatcherReaderException: LDAP NamingException error, Please check the configurations at com.securonix.application.matcher.reader.ldap.UserLdapReader.processLinesFromLdap(UserLdapReader.java:431) at com.securonix.application.matcher.reader.ldap.UserLdapReader.executeImport(UserLdapReader.java:97) at com.securonix.application.matcher.reader.HRDataReader.processImportData(HRDataReader.java:68) at com.securonix.application.scheduler.quartz.userimport.UserImportJob.setup(UserImportJob.java:42) at com.securonix.application.scheduler.quartz.framework.QuartzJob.execute(QuartzJob.java:116) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: DomainDnsZones.cs.myabc.net:389 [Root exception is java.net.UnknownHostException: DomainDnsZones.cs.myabc.net]] at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:242) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:189) at com.securonix.application.matcher.reader.ldap.UserLdapReader.processLinesFromLdap(UserLdapReader.java:369) ... 6 more Caused by: javax.naming.CommunicationException: DomainDnsZones.cs.myabc.net:389 [Root exception is java.net.UnknownHostException: DomainDnsZones.cs.myabc.net] at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:92) at com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:150) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(LdapNamingEnumeration.java:357) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:226) ... 8 more Caused by: java.net.UnknownHostException: DomainDnsZones.cs.myabc.net at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:208) at com.sun.jndi.ldap.Connection.createSocket(Connection.java:368) at com.sun.jndi.ldap.Connection.<init>(Connection.java:203) at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:136) at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1608)

asked 13 Oct '14, 22:42

Mandar's gravatar image

Mandar
1715
accept rate: 0%


The issue is with the port number specified with the connection. Port numbers should be specified based on the base context and the type of LDAP connection created (LDAP or LDAPS).

When searched against the entire tree in LDAP ( in this case, DC=cs,DC=myabc,DC=com ( in the base context)), we need to use the port 3268 ( 3269 incase of LDAPS) in the connection, else it would throw PartialResultException. When going against a subtree within the LDAP ( say base context = OU=Accounts,DC=cs,DC=myabc,DC=com), ports 389 (636 incase of LDAPs) can be used.

link

answered 13 Oct '14, 22:53

Aditya's gravatar image

Aditya
10017
accept rate: 6%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×5

Asked: 13 Oct '14, 22:42

Seen: 7,346 times

Last updated: 13 Oct '14, 22:53