This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Set up LDAP in Snap WebHost

This assumes that you have an independent installation of LDAP running and that the Windows authentication is not running on your installation of Snap WebHost. You will need to restart services after making any changes to globalsettings.py.

  1. Install the python ldap library files for your installation. The file is supplied in the folder ldap.
  2. Open your globalsettings.py file (normally in C:\Python25\Lib\site-packages\snap2).
  3. Set ALLOW_LDAP, in globalsettings.py, to True.
  4. Set SURVEYS_LDAP_AUTH in globalsettings.py to True.
  5. Save the changes.
  6. Log into Snap WebHost as the root user.
  7. Select the System Admin tab.
  8. Change Authentication in the Security Settings to LDAP.

  9. Click [Save] to save your settings.
  10. Scroll down to the LDAP Settings. Completing these requires a knowledge of your LDAP installation.
    • Server URL: Set to the LDAP server (e.g. ldap://Rootserver).
    • TLS: Check to enable Transport Layer Security.
    • SASL: Check to enable Simple Authentication and Security Layer.
    • Login: LDAP login name with rights for user search (e.g. CN=LDAP admin,OU=SnapUsers, OU=Users,OU=Your Company,DC=yourcompany,DC=local). This is only necessary if your LDAP installation does not permit searches via an anonymous bind.
    • Password: Password for the login account (if used).
    • Base object: The LDAP base object at which to start the search for Snap WebHost users (e.g. OU=SnapUsers, OU=Users,OU=Your Company,DC=yourcompany,DC=local).
    • Search expression: The LDAP search expression to find Snap WebHost users within LDAP (e.g. sAMAccountName=[NAME]).
    • Search scope: Set to Base to search only in the base level specified in Base object. Set to OneLevel to search in the base level and the level below. Set to Subtree to search the base level and all levels below.

  11. Click [Save] to save your settings.
  12. Check that Snap WebHost can check user authentication correctly by clicking the [Test LDAP] button and searching for an authenticated username.

Set up an authenticated user with root access

You need to ensure that an authenticated user has administrative access to Snap WebHost.

  1. Select the User Admin tab.
  2. Find the root user and click Edit researcher.

  3. Add the authenticated usernames of the people you wish to have root access to the Authenticated Username field, separated by commas.

  4. Click [Save] to save your settings.

See Also

Set up Windows Authentication in Snap WebHost

Creating new users for Snap WebHost for single sign-on

Mapping authenticated users to Snap WebHost users retrospectively

Resetting back to Snap WebHost security

Setting up authentication for surveys