django ldap integration

40 views
Skip to first unread message

Ahmad Rezazadeh

unread,
Mar 4, 2021, 2:46:32 AM3/4/21
to django-wiki
hi all, 

i have recently integrated my django app with our corporate LDAP. but since then, anytime i go to wiki it requires me to login, first, and i can not see anything without login it. 

i need to share the wiki page with other teams whom i dont want to necessarily login to the app to see some content. 

do you guys have any suggestion as how to fix this, i tried the doc, but didnt help. 

thanks in advance.
Ahmad. 

Benjamin Balder Bach

unread,
Mar 4, 2021, 10:59:41 AM3/4/21
to djang...@googlegroups.com

Hi Ahmad

Django-wiki uses the built-in Django permission system from django.contrib.auth

I'm not sure what LDAP integration that you use and how it handles the Django permission groups. But quite likely, all of this is not handled anymore, hence no one can see them.

You would have to either remove the permissions from all pages or write your own integration that matches your LDAP.

While customization of permission stuff hasn't been widely applied, you can find many settings (wiki.conf.settings.CAN_*) which you can replace with callables that return True/False given a user account and an article:

https://django-wiki.readthedocs.io/en/master/settings.html


Good luck!
B

--
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-wiki/b8c0dbb0-5ae9-4739-b6d9-900af98e6aean%40googlegroups.com.

Ahmad Rezazadeh

unread,
Mar 4, 2021, 1:25:10 PM3/4/21
to Benjamin Balder Bach, djang...@googlegroups.com
Hi Benjamin, 

thanks so much, you are right it was not related to LDAP. i had to change the permission of the pages and it worked. :) 

Thanks again. 
Ahmad. 

Reply all
Reply to author
Forward
0 new messages