From The Document Foundation Wiki
- go to ▸ ;
- select the desired section name;
- check the box With password;
- in the dialog that appears, enter a password and confirm it (minimum length of password: 5 characters);
- click OK in the password dialog; and
- click OK in the Edit section dialog.