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):
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:
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