hdknr / pypam Goto Github PK
View Code? Open in Web Editor NEWlibpam-python extension
License: Other
libpam-python extension
License: Other
Hello,
I followed the documentation at https://github.com/hdknr/pypam/blob/master/docs/source/setup.rst
I am stuck there :
# python app/auth.py username password
Authcatiion for username password :
Traceback (most recent call last):
File "app/auth.py", line 171, in <module>
print ":", authenticate(*sys.argv[1:])
File "app/auth.py", line 161, in authenticate
settings, 'PAM_AUTH', 'auth.Django')).rsplit('.', 1)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting PAM_AUTH, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
I am a sysadmin - but not familiar with Python nor django at all. I've seen the part of the doc suggesting app/env.py
may be tweaked but I'm really clueless on what this does... I can only guess that $VE
should be changed, but I don't know what for.
If this project is still active I'm OK with submitting the PR to get the documentation better.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.