diff options
| author | Ryan Lane <laner@controller> | 2010-11-24 22:34:52 +0000 |
|---|---|---|
| committer | Ryan Lane <laner@controller> | 2010-11-24 22:34:52 +0000 |
| commit | d7515bcb1d35e2e558a01c381b1d3a22165daa4b (patch) | |
| tree | 95c880a2f187f09ebffd2eff9909835258c66aa7 | |
| parent | 309c8b8ff8732e8d80c445381aee7e1f9852def6 (diff) | |
| download | nova-d7515bcb1d35e2e558a01c381b1d3a22165daa4b.tar.gz nova-d7515bcb1d35e2e558a01c381b1d3a22165daa4b.tar.xz nova-d7515bcb1d35e2e558a01c381b1d3a22165daa4b.zip | |
Setting "name" back to "cn", since id and name should be separate
| -rw-r--r-- | nova/auth/ldapdriver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/auth/ldapdriver.py b/nova/auth/ldapdriver.py index d1ef37cf0..95519d000 100644 --- a/nova/auth/ldapdriver.py +++ b/nova/auth/ldapdriver.py @@ -507,7 +507,7 @@ class LdapDriver(object): if (attr.has_key('accessKey') and attr.has_key('secretKey') and attr.has_key('isAdmin')): return { 'id': attr['uid'][0], - 'name': attr['uid'][0], + 'name': attr['cn'][0], 'access': attr['accessKey'][0], 'secret': attr['secretKey'][0], 'admin': (attr['isAdmin'][0] == 'TRUE')} |
