I am creating a django application that need to authenticate against our organization's LDAP server which I have successfully done using django-auth-ldap. After authentication, I need to authorize each authenticated user against a local database to check if they have privileges to use the application. How do I go about doing this? I've tried to go through the documentation for django-auth-ldap but cannot find anything relevant.
How do I authorize separetely from authentication using django-auth-ldap
221 views Asked by tks At
1
There are 1 answers
Related Questions in DJANGO-AUTHENTICATION
- How can I authenticate a user based on correct/incorrect credentials, but ignore their "is_active" state if I want to handle it separately?
- ByPass Django Basic Auth
- How do I add another gmail account to an existing user
- Django Auth fails, even if user/pass exist in DB
- Auth email in Django
- How to implement a Signup opeartion based on Django buit in authentification system?
- Save the current user when saving a model in Django admin backend
- Django DRF problem with authentication using oauth2
- Google OAuth: How to convert authorization code to access token
- Substitute auth_user model not authenticating properly (Django)
- I am trying to integrate the MLflow UI with an existing Django application that utilizes JWT authentication for user management
- Django can login but can't logout - 405 Method Not Allowed
- ImportError: attempted relative import beyond top-level package in Django while importing from different django apps
- Nginx django failed to redirect auth callback requests to secure https using django-auth-adfs
- Issue in email login with customUser in Django rest framework
Related Questions in DJANGO-1.3
- How to upgrade Django 1.3.1 to 1.3.7 on Ubuntu in Docker
- Is there a way debug all progress of the django app?
- Add a column from another object to an existing listview
- Django ORM extra with multiple returns
- Django upgrade from 1.2.5 to 1.3 error in admin
- Switch Case in Django Template
- django/south : redundant add_column?
- Uploaded Files Not Available Django 1.3
- How to override password change form in django 1.3?
- django product of annotate
- django count annotation field
- Django count number of times each ForeignKeyField value appears in table & retain __unicode__()
- How do I authorize separetely from authentication using django-auth-ldap
- Want to know the raw sql query when user other than superuser logs in the system
- Django won't recognize my static files on my dev machine
Related Questions in DJANGO-AUTH-LDAP
- Django LDAP authentication fails: SERVER_DOWN
- setting user model ID with django ldap auth
- Django-auth-ldap configuration
- NetBox AD Authentication
- Retrieve dn with django-auth-ldap
- Django configuration LDAP using Django-auth-ldap
- How do I authorize separetely from authentication using django-auth-ldap
- How install django-auth-ldap==1.2.7 in Heroku servers?
- Switching from LDAP to AD LDAPS using Python Django
- How do I perform django authentication using a ldap?
- django_auth_ldap custom AUTH_USER_MODEL IntegrityError
- how to install django-auth-ldap
- django-auth-ldap default values for newly created user
- Not sure how django and ldap work together
- No module named 'django_auth_ldap'
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In you login view I would check the local database and add permissions programmatically after the user has been authenticated, see https://docs.djangoproject.com/en/dev/topics/auth/default/#topic-authorization
If the database you need to check differs from the database you specified for use by the Django ORM
Then just create a connection to the database using your favorite driver/SQL expression language (pymssql, SA, pyMySQLdb, etc.) and query the table containing the permissions you need.