Drupal CMS: Password protect
Learn to password protect content in Drupal.
This guide is aimed at
- PG Students
Before you start
You need to be a Senior Editor
When editing use Chrome, Firefox or Safari but NOT Internet Explorer
You may want to protect one or more pages with a password so that nobody can see those pages unless they:
- belong to the LDAP group you've assigned to the password protected page(s)
For an explanation of LDAP group see the related information link box.
- are allowed to see these pages with their UCL userID
- CMS password protection is merely intended to protect external users and search engines from information that is only relevant to internal communities and is NOT intended to provide secure document storage.
- You can password protect Drupal sections (these must be menu pages), but please be aware that if you link to PDFs, Word documents or other documents that are embedded in the page you have protected, then these will not be password protected themselves and anyone with the document link can access the content.
- If you want to password protect documents so that your department staff can access them from your site then we would recommend you place documents into SharePoint and link to the documents via your Drupal page. That way it will always require a user to have UCL staff credentials to access the document content. Find out more about requesting a SharePoint team site for your department at SharePoint and OneDrive for Business
Setting up password protection for an Intranet or page using LDAP groups or UCL userIDs
- Ensure you are in editing mode
- Click on Structure | Menus | Main menu in the top toolbar
- You should see a list of all your pages
- To the right of the page you want to password-protect, click on the word 'edit'
- Scroll down to 'Menu fields':
If it is an LDAP group you are using to password protect a page / section, type in the LDAP group and click on 'Add another item' for each group you would like to add.
If it is a user you want to give access, type in their UCL userID in the 'User list'.
- Senior Editor: click on 'Publishing options - Draft (Current)' in the left-hand menu, choose 'published' from the drop-down menu
Once set up correctly, when a user clicks on the protected page / section, they will be directed to the UCL log in.
If they belong to the right group/username, they will log in successfully.