#1279 user-add without UID creates account, but can't change password
Closed: Fixed None Opened 12 years ago by admiyo.

To recreate:

Using the webui , create a new user. Only fill out First and Last name, leave login blank.

click add and edit

click change password. After typing the new password, you'll get a message "No such record."

Expected behavior
Either the add should fail, or the account should be usable.


Martin needs to investigate.

In fact, UID is created in this case. It is automatically derived from first name and surname. From --first=Foo --last=Bar a new user "fbar" is created.

I tested this scenario in the WebUI. When I created a new user with only First ("Foo") and Last ("Bar") name filled, user "fbar" was correctly created (with UID filled).

I think the problem lies in WebUI which should either make user to fill the login or work properly with the new login automatically created by the backend.

This has to be fixed on the back end. The CLI munges the uid on the front end and sends it, but the webUI doesn't have that luxury. The plugin seems to fill in the UID correctly, but something is broken once that happens.

Can be reproduced from the web UI or using CURL

Martin, krbprincipalname isn't getting set.

You can test with this JSON:

{
    "method":"user_add",
    "params":[[],{"givenname":"tim","sn":"user","all":true}
    ],
    "id":1
}

You are right Rob, I see it now.

Wrong commit IDs. These are the correct ones:

master: 04bc564[[BR]]
ipa-2-0: d7bed10

Metadata Update from @admiyo:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.1 - 2011/06

7 years ago

Login to comment on this ticket.

Metadata