Giter Site home page Giter Site logo

pypam's Introduction

pamOIDC-python

pypam's People

Contributors

hdknr avatar

Watchers

 avatar

pypam's Issues

I can't get the sample to run

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.