Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create a new users choosing LDAP on satellite through CLI 2. A password should be passed even if it is unnecessary as it won't be used Satellite cannot write to ldap hammer user create --auth-source-id 3 --firstname foobar --login foobar --mail 'foobar' --roles 'Viewer' Could not create the user: Missing arguments for 'user[password]' [root@qe-testing-rhel7 ~]# hammer user create --auth-source-id 3 --firstname foobar --login foobar --mail 'foobar' --roles 'Viewer' --password apple User [foobar] created. Actual results: If auth-source is specified , user still need to add password to create user Expected results: When auth-source is specified user should not need to add password to create user Additional info:
Martin, is this easily doable in hammer and does it fit to how hammer works? Basically the option would be optional and only required when auth source is internal. Sanket, would you be fine with keeping the --pasword option but make it optional? We'd just mention in documentation it's required for internal auth sources.
Yes, password should be optional for the auth sources that are external , and user should be created without specifying it.
Seems it was already reported, closing as dup *** This bug has been marked as a duplicate of bug 1561691 ***
I prefer to have this fixed on the API side. The original bug has proper fix in API doc.