Activity log for bug #1158077

Date Who What changed Old value New value Message
2013-03-21 01:46:50 Allan Feid bug added bug
2013-03-21 02:15:54 Allan Feid description When changing both user_id_attribute and user_name_attribute, the ldap schema for a new user becomes incorrect, at least when using the inetOrgPerson objectClass. An example being, if you take the following existing user schema: dn: uid=afeid,ou=People,dc=shuttercorp,dc=net objectClass: posixAccount objectClass: inetOrgPerson cn: Allan Feid sn: Feid uid: afeid gecos: Allan Feid gidNumber: 10000 uidNumber: 10031 homeDirectory: /home/afeid loginShell: /bin/bash The user_id_attribute makes sense to be mapped to uid and user_name_attribute to be mapped to cn. The problem here is that inetOrgPerson requires the sn attribute. A simple proposal is to add a new configuration option such as: user_additional_attribute_mappings = sn:name, description:email Where the format is <ldap_attribute>:<attribute_mapping_key> (from BaseLdap.attribute_mapping). These additional attributes would then be passed along when performing the related crud operations. When changing both user_id_attribute and user_name_attribute, the ldap schema for a new user becomes incorrect, at least when using the inetOrgPerson objectClass. An example being, if you take the following existing user schema: dn: uid=afeid,ou=People,dc=example,dc=net objectClass: posixAccount objectClass: inetOrgPerson cn: Allan Feid sn: Feid uid: afeid gecos: Allan Feid gidNumber: 10000 uidNumber: 10031 homeDirectory: /home/afeid loginShell: /bin/bash The user_id_attribute makes sense to be mapped to uid and user_name_attribute to be mapped to cn. The problem here is that inetOrgPerson requires the sn attribute in addition to uid and cn. A simple proposal is to add a new configuration option such as: user_additional_attribute_mappings = sn:name, description:email Where the format is <ldap_attribute>:<attribute_mapping_key> (from BaseLdap.attribute_mapping). These additional attributes would then be passed along when performing the related crud operations.
2013-03-21 15:45:01 Dolph Mathews keystone: importance Undecided Medium
2013-03-21 15:45:04 Dolph Mathews keystone: status New Triaged
2013-03-21 18:21:43 OpenStack Infra keystone: status Triaged In Progress
2013-03-21 18:21:43 OpenStack Infra keystone: assignee Allan Feid (crayz)
2013-04-26 02:40:37 OpenStack Infra keystone: status In Progress Fix Committed
2013-05-29 08:47:02 Thierry Carrez keystone: status Fix Committed Fix Released
2013-05-29 08:47:02 Thierry Carrez keystone: milestone havana-1
2013-10-17 12:35:25 Thierry Carrez keystone: milestone havana-1 2013.2