Disable the user home folder creation

后端 未结 4 451
醉酒成梦
醉酒成梦 2021-01-23 15:20

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 correspondi

4条回答
  •  清酒与你
    2021-01-23 16:08

    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
    

    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):

    
        
            
        
        
            
        
        
            
            
        
        
            ${home.folder.creation.eager}
        
    
    

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

提交回复
热议问题