GithubHelp home page GithubHelp logo

Comments (10)

joel-coffman avatar joel-coffman commented on June 10, 2024

I'll answer the easiest question:

What is the preferred way to run in version 0.4.1?

The PyKMIP server was added in version 0.5.0 (see CHANGES). Anything that existed prior to that time had very limited functionality -- essentially some sanity checks on the requests and responses for testing the client.

@PeterHamilton is the best person to address the rest of your questions.

from pykmip.

PeterHamilton avatar PeterHamilton commented on June 10, 2024

Hi @kecalli, thanks for filing this issue. I've been out on vacation so I apologize for not getting to this sooner.

@joel-coffman is correct regarding version 0.4.1. Version 0.5.0 introduced a more mature server implementation that actually supports basic key management functionality; the 0.4.1 version (and prior) was really only good for sanity checks and networking tests.

Let's sanity check things first. Did you install PyKMIP 0.5.0 via pip or did you clone master from the GitHub repo and install that?

from pykmip.

kecalli avatar kecalli commented on June 10, 2024

Hi Peter,

No problem. Hope you enjoyed your vacation.

I have tried either the stable 0.5.0 release or cloning the master from
Github. In all cases, I installed using the "setup.py build/install"
process which I believe uses pip directly? It appears that I experience the
same results either way.

Thanks,

Keith

On Mon, Sep 26, 2016 at 12:30 PM, Peter Hamilton [email protected]
wrote:

Hi @kecalli https://github.com/kecalli, thanks for filing this issue.
I've been out on vacation so I apologize for not getting to this sooner.

@joel-coffman https://github.com/joel-coffman is correct regarding
version 0.4.1. Version 0.5.0 introduced a more mature server implementation
that actually supports basic key management functionality; the 0.4.1
version (and prior) was really only good for sanity checks and networking
tests.

Let's sanity check things first. Did you install PyKMIP 0.5.0 via pip or
did you clone master from the GitHub repo and install that?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#193 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVVUubScYLAzWaPZFCBa3-UavhZTU7TMks5qt_MIgaJpZM4KDy2f
.

from pykmip.

vvadimka avatar vvadimka commented on June 10, 2024

Hi, Peter , just saw this topic and wanted to add that I am also getting the same error
I installed OpenKMIP release 0.5 and have a python 2.7 (latest version)
All certificates are installed and configured in the server and client configuration files

Getting the error from client when I tried to use as example:
c:\kmip\demos\pie>c:\Python27\python.exe create.py -a AES -l 256

2016-09-28 11:16:57,719 - kmip.server.session.00000001 - ERROR - 'NoneType' object has no attribute 'credential'
Traceback (most recent call last):
File "c:\Python27\lib\site-packages\pykmip-0.5.0-py2.7.egg\kmip\services\server\session.py", line 106, in _handle_message_loop
request
File "c:\Python27\lib\site-packages\pykmip-0.5.0-py2.7.egg\kmip\services\server\engine.py", line 142, in decorator
return function(self, _args, *_kwargs)
File "c:\Python27\lib\site-packages\pykmip-0.5.0-py2.7.egg\kmip\services\server\engine.py", line 252, in process_request
auth_credentials = header.authentication.credential
AttributeError: 'NoneType' object has no attribute 'credential'
2016-09-28 11:16:57,723 - kmip.server.session.00000001 - INFO - Stopping session: 00000001

I will very appreciate if you can maybe explain what does this error mean ?
Thanks,
Vadim

from pykmip.

PeterHamilton avatar PeterHamilton commented on June 10, 2024

Unfortunately something's come up that has taken over my time. I'm planning on looking into this tomorrow/Friday. I haven't forgotten!

from pykmip.

PeterHamilton avatar PeterHamilton commented on June 10, 2024

Ok, I'm running through some tests on this now. I suspect this is a bug on the server side, where it expects to see a credential coming from the client with the KMIP Create request. If I'm correct, a fix for this should be pretty easy. I'll post back once I've confirmed this.

from pykmip.

PeterHamilton avatar PeterHamilton commented on June 10, 2024

I think I've identified the problem, but I'll need to confirm something with you both.

First: are you both using the PyKMIP client, or one of the client demo scripts in kmip/demos?
Second: if so, do you have username/password fields defined in your pykmip.conf file?

If the answer to #2 is no, the PyKMIP client will not send a credential with the server request, causing the error you're both seeing. The username/password fields can be empty in the pykmip.conf file, like so:

[client]
hostname=127.0.0.1
port=5696
...
username=
password=

It's a quirk of how the client currently works that's apparently not covered in our tests. Add those two lines to your pykmip.conf and things should work.

Regardless, the server should not generate an error on missing credentials (especially since they're not required). I'll post a server-side fix for this shortly.

from pykmip.

vvadimka avatar vvadimka commented on June 10, 2024

Hi, Peter

Many thanks for your help. You are right , I used kmip/demos samples and user/passwords fields were missing
After I added them , the samples start working .
Again , thanks for your quick reply.

Thanks,
Vadim

from pykmip.

PeterHamilton avatar PeterHamilton commented on June 10, 2024

Awesome, glad that was the right fix. Once I patch the client and server, this shouldn't be a problem again.

from pykmip.

PeterHamilton avatar PeterHamilton commented on June 10, 2024

@kecalli - Going back to your first question regarding SQLAlchemy, that is a warning I've seen for a while now that I believe is related to a bug in how the Certificate object is mapped to the database. So far it hasn't produced any breaking behavior, so it hasn't been high on my fix list. I'll file a separate issue for it so that it can be tracked independently of this server bug.

from pykmip.

Related Issues (20)

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.