Add missing variable in the info plugins common list
for city.
Fix the mapping in the infosssd plugin where locality
was being passed in as state. It is now set as city
and st as state.
Care needs to be taken with LDAP attributes as Ipsilon
doesn't currently handle attribute aliases.
https://fedorahosted.org/ipsilon/ticket/161
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
'gender': 'Gender',
'postcode': 'Postal Code',
'street': 'Street Address',
'gender': 'Gender',
'postcode': 'Postal Code',
'street': 'Street Address',
'state': 'State or Province',
'country': 'Country',
'phone': 'Telephone Number',
'state': 'State or Province',
'country': 'Country',
'phone': 'Telephone Number',
SSSD_ATTRS = ['mail',
'street',
'locality',
SSSD_ATTRS = ['mail',
'street',
'locality',
'postalCode',
'telephoneNumber',
'givenname',
'postalCode',
'telephoneNumber',
'givenname',
['REMOTE_USER_LASTNAME', 'surname'],
['REMOTE_USER_STREET', 'street'],
['REMOTE_USER_STATE', 'state'],
['REMOTE_USER_LASTNAME', 'surname'],
['REMOTE_USER_STREET', 'street'],
['REMOTE_USER_STATE', 'state'],
+ ['REMOTE_USER_CITY', 'city'],
['REMOTE_USER_POSTALCODE', 'postcode'],
['REMOTE_USER_TELEPHONENUMBER', 'phone'],
]
['REMOTE_USER_POSTALCODE', 'postcode'],
['REMOTE_USER_TELEPHONENUMBER', 'phone'],
]
<Location /${instance}>
LookupUserAttr sn REMOTE_USER_LASTNAME
<Location /${instance}>
LookupUserAttr sn REMOTE_USER_LASTNAME
- LookupUserAttr locality REMOTE_USER_STATE
+ LookupUserAttr st REMOTE_USER_STATE
+ LookupUserAttr locality REMOTE_USER_CITY
LookupUserAttr street REMOTE_USER_STREET
LookupUserAttr telephoneNumber REMOTE_USER_TELEPHONENUMBER
LookupUserAttr givenname REMOTE_USER_FIRSTNAME
LookupUserAttr street REMOTE_USER_STREET
LookupUserAttr telephoneNumber REMOTE_USER_TELEPHONENUMBER
LookupUserAttr givenname REMOTE_USER_FIRSTNAME