[ckan-dev] ckanext_ldap
Adrian Fish
adrian.r.fish at gmail.com
Sun Dec 4 11:44:38 UTC 2016
Hi Thomas,
I found it pretty easy to write an extension. I'm a Python novice although
I have a lot of development experience in other languages. If you follow
this tutorial ...
http://docs.ckan.org/en/latest/extensions/tutorial.html
... and pay particular attention to the toolkit as that is the gateway to
all of ckan's api from your plugin, you should be fine. I used python-ldap
inside my plugin, which was easy enough. Once you've written yourself a
basic plugin and you know that it's talking to CKAN, have a look at:
https://github.com/adrianfish/ckanext-ssoldap
All my python-ldap code is in there. The good news is that Python is a nice
language and the CKAN community have put a considerable amount of effort
into the docs.
The PAM bit I can't help you with, I'm afraid. Good luck :)
Cheers,
Adrian.
On 1 December 2016 at 12:26, Thomas Heetderks - MSU <
thomas.heetderks at montana.edu> wrote:
> Thanks Adrian -
>
> I actually have the CKAN server's local PAM auth working with our campus
> LDAP,
> so if I can just get CKAN to auth through PAM, that would do it. How hard
> was
> writing a custom extension when you're new to CKAN?
>
> But also, this OSError [Errno 13] Permission denied: '/tmp/...' -- is
> getting me in
> some other places as well... I also run into it when I hit /stats/. So any
> other help
> on it would be greatly appreciated!
>
> - Thomas
>
> On 12/1/16 1:10 AM, Adrian Fish wrote:
>
> Hi Thomas,
>
> I ended up writing a custom extension for Lancaster university (UK). We
> use Cosign for auth, so I just wanted something simple that picked up
> REMOTE_USER and then populated the user from our LDAP. I also had problems
> using ckanext_ldap but I put that down to my inexperience with CKAN
> generally and moved on.
>
> Cheers,
> Adrian.
>
> On 1 December 2016 at 02:02, Thomas Heetderks - MSU <
> thomas.heetderks at montana.edu> wrote:
>
>> Hi All -
>>
>> I am trying to get ckanext_ldap working for authentication on our campus,
>> and have been running into this error--
>>
>> OSError: [Errno 13] Permission denied: '/tmp/default/sessions/contain
>> er_file_lock/6'
>>
>> followed by a lot of stack-dump info. Anyone have any suggestions...?
>> Also any addtional info on getting the LDAP
>> extension configured and working would be greatly appreciated! There
>> isn't much in the way of documentation.
>>
>> Thanks in advance!
>> - Thomas
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> _______________________________________________
> ckan-dev mailing listckan-dev at lists.okfn.orghttps://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161204/ea671d1d/attachment-0003.html>
More information about the ckan-dev
mailing list