[Openstack] [Keystone] LDAP identity backend configuration issue

Lohit Valleru lohitv at gwmail.gwu.edu
Sat Oct 18 07:06:48 UTC 2014


I am using keystone 0.9.0 , RDO Openstack Icehouse on Centos 6.5 with


In short - I am trying to use external authentication with keystone
identity - where LDAP is used as a backend database for users and groups,
while kerberos is used for authentication with HTTPD remote_user.
Roles/Tenants are used from mysql backend.

In /etc/keystone/keystone.conf

# Search base for users. (string value)

# LDAP search filter for users. (string value)

# LDAP objectClass for users. (string value)
user_objectclass = posixAccount

# LDAP attribute mapped to user id. (string value)
user_id_attribute = displayName

# LDAP attribute mapped to user name. (string value)
user_name_attribute = displayName

# LDAP attribute mapped to user email. (string value)
user_mail_attribute = mail

I see that, no matter what i change in user_id_attribute, the
keystone/auth/plugins/external.py always uses "uid" as its search term.

This creates an issue, for remote_user since the remote_user under my
environment includes the domain (for example: "lohit.valleru at example.com")

And whenever i try to authenticate using my kerberos ticket - with external
authentication as:


I see the following in the log:

DEBUG keystone.common.ldap.core [-] LDAP search:
dn=ou=People,dc=example,dc=come, scope=1, query=(&(uid=
lohit.valleru at example.com)(objectClass=posixAccount)), attrs=['mail',
'userPassword', 'enabled', 'uid'] search_s
2014-10-18 02:34:36.459 5592 DEBUG keystone.common.ldap.core [-] LDAP
unbind unbind_s
2014-10-18 02:34:36.460 5592 WARNING keystone.common.wsgi [-] Authorization
failed. Unable to lookup user lohit.valleru at example.com from

As you can see above, i do not want it to search with "uid" , but instead
with "displayName"

In our ldap structure, uid just contains the username and does not contain
the domain.

As a workaround -
I have tried to use other deprecated classes such as
"external=keystone.auth.plugins.external.LegacyDomain", but i see no

Also when i do - Keystone user-list

I clearly see that the uid attribute does not take up my changes in the
configuration file - keystone.conf

In addition to above issues, i observed that -  whenever i do : keystone
user-role-add - It does take up my value in configuration - but it will not
work, since it always gets uid instead of displayName, and displayName
lookup will not result in a successful return.

May i please request some help regarding above.

I wish to modify the code, or write my wrapper around it, but it would be
helpful if i could see any documentation regarding compilation/deployment
of keystone code.

Please do let me know, if i need to provide any more information.

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141018/a8ee2d5c/attachment.html>

More information about the Openstack mailing list