Custom identity drivers in Mitaka

asked 2016-03-08 09:35:04 -0500

pentatonic gravatar image

Since Keystone does not provide password complexity rules for local users (sql driver), I was experimenting with writing my own, extending the existing. I'm having this basic problem: how do you configure your driver to be picked up in /etc/keystone/keystone.conf?

You used to be able to say: driver = keystone.identity.backends.[sql | yourcustom module here].Identity

But now with the shortcut syntax: driver = sql

I'm not sure how to map to a custom driver. Something like this doesn't work: driver = keystone.identity.backends.sql2.Identity

I get this at runtime: line 30, in import_class [Tue Mar 08 07:27:06.227535 2016] [:error] [pid 7613] [remote 192.168.228.127:68] __import__(mod_str) [Tue Mar 08 07:27:06.227591 2016] [:error] [pid 7613] [remote 192.168.228.127:68] ImportError: No module named sql2

edit retag flag offensive close merge delete