禁用用户主文件夹创建

编程入门 行业动态 更新时间:2024-10-21 11:26:35
本文介绍了禁用用户主文件夹创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当管理员用户创建用户时,我自定义代码以打开和关闭 homeFolderCreationEager,但它只能延迟文件夹的创建。当相应的用户登录时,将自动创建该用户的文件夹。

When the admin user create the user, I customize the code to switch on and off "homeFolderCreationEager" but it can only delay the creation of the folder. When the corresponding user logs in, the folder for that user is automatically created.

如何防止这种情况发生? 可以提供任何帮助。

How can I prevent this from happening ? Any kind help is appreciated.

推荐答案

如 wiki ,您可以配置用户共享公司主页空间。如果您使用的是LDAP同步,则可以使用

As stated in the wiki, you can configure the users to share the Company Home space. If you're using LDAP synchronization, you can configure it with

ldap.synchronization.defaultHomeFolderProvider=companyHomeFolderProvider

否则,您需要否决默认的Spring配置并定义以下bean(名称属性当然很重要,因为您需要覆盖默认配置):

Otherwise you need to overrule the default Spring configuration and define the following bean (the name attribute is of course important as you need to override default configurations):

<bean name="homeFolderManager" class="org.alfresco.repo.security.person.HomeFolderManager" init-method="init"> <property name="nodeService"> <ref bean="nodeService" /> </property> <property name="policyComponent"> <ref bean="policyComponent" /> </property> <property name="defaultProvider"> <!-- here's the custom part: --> <ref bean="companyHomeFolderProvider" /> </property> <property name="enableHomeFolderCreationAsPeopleAreCreated"> <value>${home.folder.creation.eager}</value> </property> </bean>

还有其他默认提供程序,请查看 authentication-services- context.xml 了解更多。

There are other default providers available, have a look at authentication-services-context.xml for more.

更多推荐

禁用用户主文件夹创建

本文发布于:2023-11-28 16:49:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643193.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主文   用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!