What's the encryption method does the openstack user password use?

asked 2017-09-07 06:13:45 -0500

liaodalin19903 gravatar image

updated 2017-09-07 06:22:26 -0500

if we register a user in openstack, like admin, or demo, we give it a password.

but I don't know the before password stored in the database , what the encryption method does the password use.

who know with that?


Because, from the openstacksdk login demo:

def create_connection(auth_url, region, project_name, username, password):
    prof = profile.Profile()
    prof.set_region(profile.Profile.ALL, region)

    return connection.Connection(
        profile=prof,
        user_agent='examples',
        auth_url=auth_url,
        project_name=project_name,
        username=username,
        password=password
    )

I use the method to connect:

conn = connect.create_connection(settings.AUTH_URL, 'RegionOne', 'admin', username, password)

But I get the error:

HttpException: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-6ed9ff3f-d04f-43e9-aa9b-5bc03793134c), Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.

The password did not encrypt, I connect failure, and I am not sure whether the password should encrypt, then connect it.Or something goes wrong.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-07 06:19:56 -0500

ppeereb1 gravatar image

It's an bit oldish document but occording to this page its sha512: https://wiki.openstack.org/wiki/Secur...

edit flag offensive delete link more

Comments

And I don't know whether need I encrypt the password, then connect it.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-09-07 06:28:30 -0500 )edit

Nope thats not necessary. You're using keystonev3 so you require a project_domain_id which is usually default. This page can help you: https://pypi.python.org/pypi/python-k...

ppeereb1 gravatar imageppeereb1 ( 2017-09-07 06:32:20 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-09-07 06:13:45 -0500

Seen: 162 times

Last updated: Sep 07 '17