Extension Lcrnz


Extension Basics

Title
Lcrnz
Name
ckanext-lcrnz
Type
Public extension
Description
The **lcrnz** extension for CKAN is designed to enhance the CKAN platform for organizations, specif
CKAN versions
Download-Url (zip)
Last commit
9 years ago (2016-05-17 01:40:37)
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

ckanext-lcrnz

CKAN extension for the Landcare Research Datastore

Dependencies

Installation

  1. Activate your virtualenv, eg:

    source /usr/lib/ckan/default/bin/activate
    
  2. Install ckanext-repeating:

    cd /usr/lib/ckan/default/src
    git clone https://github.com/open-data/ckanext-repeating.git
    cd ckanext-repeating
    python setup.py develop
    
  3. Install ckanext-ldap:

    # Install required libraries
    apt-get install libldap2-dev libsasl2-dev libssl-dev
    
    cd /usr/lib/ckan/default/src
    git clone https://github.com/okfn/ckanext-ldap.git
    cd ckanext-ldap
    pip install -r requirements.txt
    python setup.py develop
    
  4. Install ckanext-lcrnz:

    cd /usr/lib/ckan/default/src
    git clone https://github.com/okfn/ckanext-lcrnz.git
    cd ckanext-lcrnz
    python setup.py develop
    
  5. Update the necessary settings in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini):

    # ...
    
    ckan.plugins = repeating lcrnz ldap
    
    
    # LDAP settings (adjust uri to the actual one)
    ckanext.ldap.uri = ldap://localhost:389
    ckanext.ldap.base_dn = ou=users,dc=landcareresearch,dc=co,dc=nz
    ckanext.ldap.search.filter = uid={login}
    ckanext.ldap.username = uid
    ckanext.ldap.email = mail
    ckanext.ldap.fullname = cn
    
    # This is the id of the Landcare Research CKAN organization
    # You can get it from http://datastore.landcareresearch.co.nz/api/action/organization_show?id=landcare-research
    ckanext.ldap.organization.id = cfa490ed-d9e4-46a6-8c43-a7057cfebd1c
    ckanext.ldap.organization.role = member
    
    
    # Custom i18n folder (for replacing "organizations" with "collections")
    # Update
    
Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
  1. Activate your virtualenv, eg:

    source /usr/lib/ckan/default/bin/activate
    
  2. Install ckanext-repeating:

    cd /usr/lib/ckan/default/src
    git clone https://github.com/open-data/ckanext-repeating.git
    cd ckanext-repeating
    python setup.py develop
    
  3. Install ckanext-ldap:

    # Install required libraries
    apt-get install libldap2-dev libsasl2-dev libssl-dev
    
    cd /usr/lib/ckan/default/src
    git clone https://github.com/okfn/ckanext-ldap
    
Plugins to configure (ckan.ini)
repeating lcrnz ldap
CKAN Settings (ckan.ini)
# ckanext.ldap.uri = ldap://localhost:389
# ckanext.ldap.base_dn = ou=users,dc=landcareresearch,dc=co,dc=nz
# ckanext.ldap.search.filter = uid={login}
# ckanext.ldap.username = uid
# ckanext.ldap.email = mail
# ckanext.ldap.fullname = cn
# ckanext.ldap.organization.id = cfa490ed-d9e4-46a6-8c43-a7057cfebd1c
# ckanext.ldap.organization.role = member
DB migration to be executed
(not set)
<< back to Extensions