Giter Club home page Giter Club logo

pykerberos's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

pykerberos's Issues

Error on pip install

I get the following error when I run pip install pykerebos. I notice the project hasn't been updated in a while, am I missing anything or is this a valid error?

I am using:

python --version
Python 2.7.8 :: Anaconda 2.1.0 (64-bit)
[root@base admin]# pip install pykerberos
Downloading/unpacking pykerberos
  Downloading pykerberos-1.1.5.tar.gz
  Running setup.py (path:/tmp/pip_build_root/pykerberos/setup.py) egg_info for package pykerberos
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/pykerberos/setup.py", line 44, in <module>
        universal_newlines=True
      File "/tmp/pip_build_root/pykerberos/setup.py", line 31, in check_output
        process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
      File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
        errread, errwrite)
      File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 1327, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/pykerberos/setup.py", line 44, in <module>

    universal_newlines=True

  File "/tmp/pip_build_root/pykerberos/setup.py", line 31, in check_output

    process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)

  File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 710, in __init__

    errread, errwrite)

  File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 1327, in _execute_child

    raise child_exception

OSError: [Errno 2] No such file or directory

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pykerberos
Storing debug log for failure in /root/.pip/pip.log

checkPassword should fail if service doesn't exist?

The checkPassword documentation says:

"This function provides a simple way to verify that a user name and password match
those normally used for Kerberos authentication. It does this by checking that the
supplied user name and password can be used to get a ticket for the supplied service.
If the user name does not contain a realm, then the default realm supplied is used.
..."

Shouldn't this function return False if the service doesn't exist?

>>> import kerberos
>>> kerberos.checkPassword('demo', 'demo', '', 'DOCKERDOMAIN')
True
>>> kerberos.checkPassword('demo', 'demo', 'doesNotExist/kerberos.dockerdomain', 'DOCKERDOMAIN')
True

I would expect the second call to return False.
Is this a bug or am I wrong?

Thanks

Error while loading shared libraries: libopcodes-2.27.so

When I try to pip install pyKerberos I get:

Error while loading shared libraries: libopcodes-2.27.so

The file is actually available on my machine, but it cannot be found.

Is there any way I can specify the path where it should look for it?

Pip install failure: popenargs not defined

I tried both

pip install requests-kerberos

and downloading master.zip and pip installing that way.

Both ways result in stderr Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1gTsvg/pykerberos/

It also spits out a ton of stuff to stdout

Collecting https://pypi.python.org/packages/source/r/requests-kerberos/requests-kerberos-0.8.0.tar.gz
  Using cached requests-kerberos-0.8.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): requests>=1.1.0 in /usr/local/lib/python2.7/dist-packages (from requests-kerberos==0.8.0)
Collecting pykerberos<2.0.0,>=1.1.8 (from requests-kerberos==0.8.0)
  Using cached pykerberos-1.1.10.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 57, in <module>
        krb5_ver = check_krb5_version()
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 50, in check_krb5_version
        if len(krb5_vers) == 4:
    TypeError: object of type 'NoneType' has no len()
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 57, in <module>
        krb5_ver = check_krb5_version()
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 49, in check_krb5_version
        krb5_vers = check_krb5_config("--version")
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 43, in check_krb5_config
        return check_krb5_config(*options, command_name="krb5-config.mit")
      .........lots of repeat........
              return check_krb5_config(*options, command_name="krb5-config.mit")
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 43, in check_krb5_config
        return check_krb5_config(*options, command_name="krb5-config.mit")
      File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 37, in check_krb5_config
        cmd = popenargs[0]
    NameError: global name 'popenargs' is not defined

    ----------------------------------------

krb5-config dependency is not handled at all

Installing pykerkeros (v1.1.9) from source fails with the error:
File "/tmp/pip-build-SpfsFD/pykerberos/setup.py", line 57, in
krb5_ver = check_krb5_version()
File "/tmp/pip-build-SpfsFD/pykerberos/setup.py", line 50, in check_krb5_version
if len(krb5_vers) == 4:
TypeError: object of type 'NoneType' has no len()

Shouldn't this dependency with krb5-config be handled by the pykerberos lib?

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.