Disable the user home folder creation

后端 未结 4 492
醉酒成梦
醉酒成梦 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

    # Create home folders (unless disabled, see next property) as people are created (true) or create them lazily (false)
    home.folder.creation.eager=true
    # Disable home folder creation - if true then home folders are not created (neither eagerly nor lazily
    home.folder.creation.disabled=false
    

    Use the second property to disable home folder creation completely. The properties are meant to be static and system-wide.

    If you want to fine-tune the creation according to some other logic, you can wire in your own homeFolderManager bean.

提交回复
热议问题