Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将liferay用户组导出到OpenLDAP_Liferay_Openldap - Fatal编程技术网

将liferay用户组导出到OpenLDAP

将liferay用户组导出到OpenLDAP,liferay,openldap,Liferay,Openldap,我用OpenLDAP配置了liferay-portal-6.2-ce-ga4。用户从liferay导入OpenLDAP。但是liferay的用户组没有导出到OpenLDAP中。以下是我的portal-ext.properties: ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory ldap.server.name=ldapadmin ldap.auth.enabled=true ldap.import.enabled=true ldap

我用OpenLDAP配置了liferay-portal-6.2-ce-ga4。用户从liferay导入OpenLDAP。但是liferay的用户组没有导出到OpenLDAP中。以下是我的portal-ext.properties:

ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.server.name=ldapadmin
ldap.auth.enabled=true

ldap.import.enabled=true
ldap.export.enabled=true


ldap.import.on.startup=true
ldap.export.on.startup=true

ldap.export.method.0=group
ldap.export.method.0=user

ldap.password.policy.enabled=true


ldap.base.provider.url.0=ldap://localhost:389
ldap.base.dn.0=dc=test,dc=com
ldap.security.principal.0=cn=admin,dc=test,dc=com
ldap.security.credentials.0=secret

ldap.auth.search.filter.0=(mail=@email_address@)
ldap.import.user.search.filter.0=(objectClass=inetOrgPerson)

ldap.user.mappings.0=userId=uid\nscreenName=cn\nemailAddress=mail\npassword=userPassword\nfirstName=givenName\nlastName=sn



ldap.import.group.search.filter.0=(objectClass=posixGroup)
ldap.group.mappings.0=groupName=cn\ndescription=description\nuser=memberUid
ldap.users.dn.0=ou=people,dc=test,dc=com
ldap.groups.dn.0=ou=groups,dc=test,dc=com

ldap.user.default.object.classes.0=inetOrgPerson, top
ldap.group.default.object.classes.0=posixGroup, top, groupOfUniqueNames,organizationalUnit

我已经通过点击“测试LDAP组”按钮进行了检查,我可以看到大约5个使用OpenLDAP GUI在OpenLDAP中创建的组,但看不到我在liferay中创建的任何组。它不导出用户组,它只导出用户。请给出一些解决方案。

我认为您在portal-ext.properties文件上使用的键是错误的

在文档中,我们可以阅读:

#
# Settings for exporting users from the portal to LDAP. This allows a user
# to modify his first name, last name, etc. in the portal and have that
# change pushed to the LDAP server. This setting is not used unless the
# property "ldap.auth.enabled" is set to true.
#
ldap.export.enabled=false

#
# Set this to true if groups and their associations should be exported from
# the portal to LDAP. This setting is not used unless the property
# "ldap.auth.enabled" is set to true.
#
ldap.export.group.enabled=true
因此,您应该使用:

ldap.export.enabled=true
ldap.export.group.enabled=true

我也试过这个。但这也不会导出用户组。能否检查LDAP.group.mappings.0键中是否缺少必需的属性(取决于您的LDAP架构)?您的LDAP服务器上有日志吗?我已经检查过了,没有缺少必需的属性。