Dear all, I'm not sure is it the correct setting, but the setting is working for me. Please find the steps as follows.
1. Download LDAP packages sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev sudo pip install python-ldap 2. Install Django LDAP Library pip install django - auth - ldap 3. LDAP connection setup vi /edx/app/edxapp/venvs/edxapp/lib/python2.7/site-packages/django_auth_ldap/backend.py 4. Add DB model for select database record <https://lh3.googleusercontent.com/-wNd8pz7xFNc/WGtrnJ_YqbI/AAAAAAAAAiE/W_raWhKJm7sYRgmoh0qN4uReXeL8xRx3QCLcB/s1600/4.jpg> 5. Add the checking function in “if save_user” <https://lh3.googleusercontent.com/-AqiE-rFHExg/WGtrvzuuHcI/AAAAAAAAAiI/_HNKe6WKTzcbeLAQvqLc8I7dN6MYpClZwCLcB/s1600/5.jpg> 6. Edit “LDAPSettings(object)” <https://lh3.googleusercontent.com/-bkrcqYZ2Gp0/WGtr3cz7b1I/AAAAAAAAAiM/VNArF13HAw8a-QR38rGbnEVlC2Il6lEJACLcB/s1600/6.jpg> 7. Save and Exit. 8. Collect the user value and add create profile function in “views.py” vi /edx/app/edxapp/edx-platform/common/djangoapps/student/views.py 9. Add the following code after “if not third_party_auth_successful:” <https://lh3.googleusercontent.com/-0HUy9gLgUlI/WGtr_qXooFI/AAAAAAAAAiQ/R7gTUOzq9XM6-5p2YxWP-t-AupQObobiQCLcB/s1600/9.jpg> 10. Add the backend function to “common.py” vi /edx/app/edxapp/edx-platform/lms/envs/common.py 11. Edit “AUTHENICATION_BACKENDS” <https://lh3.googleusercontent.com/-cogjBxBEY0g/WGtsGWcTUnI/AAAAAAAAAiU/hAA94EmdppwTFBG50T3tUN5iy7rre0ERACLcB/s1600/11.jpg> 12. Edit “INSTALLED_APPS” <https://lh3.googleusercontent.com/-XEYdxrTebuI/WGtsM3Zd0bI/AAAAAAAAAic/Qi3myAV52h8EaVPs88j4ZaDGVPuXwN-PQCLcB/s1600/12.jpg> 13. Add the backend function to “common.py” vi /edx/app/edxapp/edx-platform/cms/envs/common.py 14. Edit “AUTHENICATION_BACKENDS” <https://lh3.googleusercontent.com/-zuCAwEdAy-8/WGtsTrQcBFI/AAAAAAAAAig/2jw7-z-U_eIb2dKP_kmWaEnB6R44e4r9wCLcB/s1600/14.jpg> 15. Edit “INSTALLED_APPS” <https://lh3.googleusercontent.com/-TX2msGeFu5g/WGtsaHWaHjI/AAAAAAAAAik/DI9Obk13tO8aofGP-Fd52xvVqWB2YBC8ACLcB/s1600/15.jpg> 16. Update the database record cd /edx/app/edxapp/edx-platform sudo -H -u edxapp bash source /edx/app/edxapp/edxapp_env paver update_db --se ttings=aws paver update_assets lms --settings=aws 17. Restart Service sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp: sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp _worker: Thanks and Regards, Terence Yip Yip Terence於 2015年2月10日星期二 UTC+8下午12時00分30秒寫道: > > Dear All, > > I have been installed the open edx and django_auth_ldap package ( > http://code.edx.org/) in our environment. However, I'm not successful to > config the Auth with LDAP. Could anyone could provide the guide to me? I > don't know where is the settings.py file path in open edx. > > Please help. > > Thanks and Regards, > Terence Yip > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7d13d75a-aa76-4ec0-a29a-198b6f67dea3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

