{"action":"created","issue":{"url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/161","labels_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/161/comments","events_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/161/events","html_url":"https://github.com/GluuFederation/oxTrust/issues/161","id":123174576,"number":161,"title":"Import users feature doesn't work","user":{"login":"aliaksander-samuseu","id":11802046,"avatar_url":"https://avatars.githubusercontent.com/u/11802046?v=3","gravatar_id":"","url":"https://api.github.com/users/aliaksander-samuseu","html_url":"https://github.com/aliaksander-samuseu","followers_url":"https://api.github.com/users/aliaksander-samuseu/followers","following_url":"https://api.github.com/users/aliaksander-samuseu/following{/other_user}","gists_url":"https://api.github.com/users/aliaksander-samuseu/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksander-samuseu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksander-samuseu/subscriptions","organizations_url":"https://api.github.com/users/aliaksander-samuseu/orgs","repos_url":"https://api.github.com/users/aliaksander-samuseu/repos","events_url":"https://api.github.com/users/aliaksander-samuseu/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksander-samuseu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GluuFederation/oxTrust/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"yurem","id":6104200,"avatar_url":"https://avatars.githubusercontent.com/u/6104200?v=3","gravatar_id":"","url":"https://api.github.com/users/yurem","html_url":"https://github.com/yurem","followers_url":"https://api.github.com/users/yurem/followers","following_url":"https://api.github.com/users/yurem/following{/other_user}","gists_url":"https://api.github.com/users/yurem/gists{/gist_id}","starred_url":"https://api.github.com/users/yurem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurem/subscriptions","organizations_url":"https://api.github.com/users/yurem/orgs","repos_url":"https://api.github.com/users/yurem/repos","events_url":"https://api.github.com/users/yurem/events{/privacy}","received_events_url":"https://api.github.com/users/yurem/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-20T17:57:47Z","updated_at":"2015-12-20T17:58:40Z","closed_at":null,"body":"Unfortunately, there are still multiple problems with this feature. Please see attached picture for more details.\r\n![user_import 1](https://cloud.githubusercontent.com/assets/11802046/11919174/98b0ba80-a75b-11e5-8dbc-84fd6cb06ff3.png)\r\nHere is [the xls file](https://github.com/GluuFederation/oxTrust/files/67898/libreofic-mfo2003f.zip) I used to import users when testing.\r\n1. Imported users have one less object class definition then those which were created manually using web UI. I suppose as only their creation methods differ, not their purpose, they should be represented by exactly the same objects.\r\n2. Imported users don't have value \"active\" assigned to the \"gluuStatus\" attribute, so it won't be possible to use them right away. I'm not sure whether it's by design, or not.\r\n3. Even after setting \"gluuStatus\" to \"active\" manually, you won't be able to log in to this account, as there is some ambiguity or issue with providing passwords using an import file. If passwords Gluu expects to find there should be in pre-encoded (hashed) form, then it shouldn't accept a simple alpha-numeric string at all, as according to RFC 2307 draft 02, item 5.2.2.1 (https://tools.ietf.org/html/draft-howard-rfc2307bis-02) hashed password value must has schema prefix, so it would be more logical to expect that hashes there - most likely exported from some directory - will have it too. If it's supposed to be a cleartext string, then it computes the hash incorrectly, because in my case I was able to log in to imported account only after resetting password via jxplorer using the same cleartext string. At least it should explicitly inform user about a password field's format somehow (hints, docs' article, etc)"},"comment":{"url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/comments/166141220","html_url":"https://github.com/GluuFederation/oxTrust/issues/161#issuecomment-166141220","issue_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/161","id":166141220,"user":{"login":"aliaksander-samuseu","id":11802046,"avatar_url":"https://avatars.githubusercontent.com/u/11802046?v=3","gravatar_id":"","url":"https://api.github.com/users/aliaksander-samuseu","html_url":"https://github.com/aliaksander-samuseu","followers_url":"https://api.github.com/users/aliaksander-samuseu/followers","following_url":"https://api.github.com/users/aliaksander-samuseu/following{/other_user}","gists_url":"https://api.github.com/users/aliaksander-samuseu/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksander-samuseu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksander-samuseu/subscriptions","organizations_url":"https://api.github.com/users/aliaksander-samuseu/orgs","repos_url":"https://api.github.com/users/aliaksander-samuseu/repos","events_url":"https://api.github.com/users/aliaksander-samuseu/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksander-samuseu/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T17:58:40Z","updated_at":"2015-12-20T17:58:40Z","body":"**Yuriy M. wrote:**\r\nI offer to move it to 2.4.1 because it's very old code (4 years old) and in depends on file: https://github.com/GluuFederation/community-edition-setup/blob/master/templates/gluuImportPerson.properties\r\nI think we can write more smarter import dialog in 2.4.1 which not depends on gluuImportPerson.properties\r\n"}}