Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Custom identity drivers in Mitaka

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] __import__(mod_str) [Tue Mar 08 07:27:06.227591 2016] [:error] [pid 7613] [remote] ImportError: No module named sql2