掲示板

RESOLVED - LDAP String index out of range

13年前 に Matt Smith によって更新されました。

RESOLVED - LDAP String index out of range

New Member 投稿: 5 参加年月日: 09/10/28 最新の投稿
Hi,

I had LDAP integrated into AD working fine on v5.2.3 for several months.

Now new AD users don't get added.
Log error is

04:08:23,810 ERROR [PortalLDAPUtil:598] Error importing LDAP users and groups
java.lang.StringIndexOutOfBoundsException: String index out of range: 698
at java.lang.String.substring(String.java:1934)
at com.liferay.portal.kernel.util.StringUtil.replace(StringUtil.java:699)
at com.liferay.portal.kernel.util.PropertiesUtil.load(PropertiesUtil.java:106)
at com.liferay.portal.kernel.util.PropertiesUtil.load(PropertiesUtil.java:93)
at com.liferay.portal.security.ldap.PortalLDAPUtil.getUserMappings(PortalLDAPUtil.java:491)
at com.liferay.portal.security.ldap.PortalLDAPUtil.importLDAPUser(PortalLDAPUtil.java:684)
at com.liferay.portal.security.ldap.PortalLDAPUtil.importFromLDAP(PortalLDAPUtil.java:572)
at com.liferay.portal.security.ldap.PortalLDAPUtil.importFromLDAP(PortalLDAPUtil.java:541)
at com.liferay.portlet.admin.job.LDAPImportJob.execute(LDAPImportJob.java:62)
at com.liferay.portal.job.JobWrapper.execute(JobWrapper.java:69)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

The difference between the last user that was imported and the new user which isn't is that the new user is one OU deeper, which makes it in the 3rd OU from the root.

I moved it into a 2nd level OU to see if that helped, but it didn't...

I had the same error when I had an OU with a super weird and long name, but when I deleted the OU, all outstanding groups were imported, including ones which were created after the problem users.

Thanks for any insight anyone can shed on this error!
13年前 に Matt Smith によって更新されました。

RE: LDAP String index out of range

New Member 投稿: 5 参加年月日: 09/10/28 最新の投稿
My new users were missing an email address (users log in with screen names).

Added an address to the email field in AD (not in exchange, so it's just a dummy address).

So the error:
05:18:23,717 ERROR [PortalLDAPUtil:598] Error importing LDAP users and groups
java.lang.StringIndexOutOfBoundsException: String index out of range: 681

Seems to translate to - "There is something in your AD I don't like".

I got this error from:
- OU name (too long or special characters?) Maybe applies to goups and user names too?
- missing email address field.