Comment 5 for bug 980085

Revision history for this message
Boden R (boden) wrote :

Another update...

I ran into some issues with create_user as well when using the LDAP driver... Although I don't have the output handy is was related to invalid 'email' attribute which gets passed down on the REST API when you create a user and specify an --email..

To fix it I updated the UserApi class to look like this (so the email is mapped to mail):

    attribute_mapping = {'password': 'userPassword',
                         'email': 'mail',
                         'name': 'sn'}

Also I ran into an issue when creating tenants. The tenant Id comes in as 'tenantId' these days via the REST API so I added it to the attribute_ignore list in the UserApi class:

    attribute_ignore = ['tenantId', 'enabled', 'tenants']

I'm sure my changes are not 'production ready' but they got me working.

Thx