After doing some research I found that com.liferay.portal.security.ldap.LDAPImportUtil.java has to be changed.
Change line 218 from:
while (enu.hasMore()) {
to
while (enu.hasMoreElements()) {
and Change line 219 from:
SearchResult result = (SearchResult)enu.next();
to
SearchResult result = (SearchResult)enu.nextElement();
========================================================
portal-ext.properties:
ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.base.provider.url=ldap://HostName:389
ldap.base.dn=ou=xyz,dc=domain,dc=locale
ldap.security.principal=principal@domain.local
ldap.security.credentials=secret
ldap.auth.enabled=true
ldap.auth.required=false
ldap.auth.method=bind
ldap.auth.search.filter=(&(objectCategory=person)(userPrincipalName=@email_address@))
ldap.auth.password.encryption.algorithm=
ldap.auth.password.encryption.algorithm.types=MD5,SHA
ldap.users.dn=ou=user,ou=xyz,dc=domain,dc=locale
ldap.user.mappings=fullName=cn\nscreenName=sAMAccountName\nemailAddress=userPrincipalName\n
ldap.user.impl=com.liferay.portal.security.ldap.LDAPUser
ldap.user.default.object.classes=top,person,inetOrgPerson,organizationalPerson
ldap.groups.dn=OU=user,ou=xyz,dc=domain,dc=locale
ldap.import.enabled=true
ldap.import.on.startup=true
ldap.import.interval=10
ldap.import.search.filter=(objectClass=person)
ldap.import.user.search.filter=(objectClass=person)
ldap.import.group.search.filter=(objectClass=group)
ldap.import.method=user
ldap.export.enabled=false
ldap.password.policy.enabled=false
ldap.error.password.age=age
ldap.error.password.expired=expired
ldap.error.password.history=history
ldap.error.password.not.changeable=not allowed to change
ldap.error.password.syntax=syntax
ldap.error.password.trivial=trivial
ldap.error.user.lockout=retry limit
分享到:
相关推荐
MyEclipse8+Liferay开发环境搭建
cas服务端自定义数据库所需jar包,集成liferay6.2源码改动
ArcGIS+ Liferay +Flex 安装部署
liferay配置AD.学习liferay的可以看下学习交流下。
通过liferay ide 和liferay sdk 6.1实现的插件形式的portlet 集成了liferay和struts2,适合初学者
7z压缩 三合一LifeRay资料: 1、LifeRay开发参考手册(温兵) 2、LifeRay二次开发指南 3、LifeRay4.3中文开发指南
NULL 博文链接:https://hanchaohang.iteye.com/blog/1064360
Liferay Portal针对不同的用户会展现出不同的服务网页。当浏览Portal主页网址http://localhost:8080/时,自动转入网址http://localhost:8080/web/guest/home调出面向所有人的Guest社区公共主页。一个注册用户登录...
liferay 6.2 开发指南+用户手册 官方文档
在MyEclipse8环境下搭建liferay开发环境,文档包含搭建步骤及相应的配置
Liferay(5.1.2)的数据库由自身绑定的HSQLDB转成oracle(10G)虽然步骤不多,但因英文的参考资料说的太笼统,而网上相关资料又太少,所以操作起来很费时费力,尤其是当某个错误的操作,出现一大堆的错误提示,可能误导...
sql Server liferay 的数据导入,关于大量的数据导入时的处理
新建Liferay的DB,然后将该文件导入该DB后,即可创建Liferay所需要的Table,并insert提供的初始值。
Liferay_Portal_6.1源码导入到eclipse
基于Liferay+Portal技术的校园信息门户研究与实现
liferay_系列初始Ide_SDK入门教程,Eclipse的lifeRay配置使用
Liferay工作流简要配置
包括liferay的用户配置,系统接口,包括Liferay Portal 6 企业应用开发,Liferay 用户开发接口,Liferay+in+Action,Liferay 系统开发等
Liferay Portal Liferay IDE
Liferay5.2.3和CAS配置成SSO