Feature #2666
Import users from a file
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-directory | |||
Target version: | v6.5 | |||
Resolution: | NEEDINFO: | No |
Description
Create a lot of users at the same time on NethServer can be a little expensive in terms of time, it might be useful import the list from a file CSV or something similar.
Associated revisions
import_users script. Import users from a text file. Refs #2666
import_users script: use whitespaces instead of tabs. Refs #2666
History
#1 Updated by Davide Principi over 7 years ago
- Target version set to ~FUTURE
#2 Updated by Davide Principi over 7 years ago
- Status changed from NEW to TRIAGED
- Assignee set to Davide Principi
- Target version changed from ~FUTURE to v6.5
- % Done changed from 0 to 20
#3 Updated by Davide Principi over 7 years ago
- Status changed from TRIAGED to ON_DEV
- % Done changed from 20 to 30
#5 Updated by Davide Principi about 7 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
Test case
Prepare a tab-separated text file, with the following columns:
username firstName lastName email password
Launch the script:
/usr/share/doc/nethserver-directory-<ver>/import_users <youfilename>
Check all fields, email and password are set correctly.
#6 Updated by Davide Principi about 7 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
In nethserver-testing:
nethserver-directory-2.0.2-9.0gita715ad97.ns6.noarch.rpm
#7 Updated by Massimo Palazzetti about 7 years ago
- Assignee set to Massimo Palazzetti
#8 Updated by Massimo Palazzetti about 7 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Massimo Palazzetti) - % Done changed from 70 to 90
The import tool work fine.
If the mail server module is not installed and you try to import a user list it faild with this message:- /usr/share/doc/nethserver-directory-2.0.2/import_users /root/import_test
Can't open directory /etc/e-smith/events/pseudonym-create
once installed the right packet the alla the user are correctly import exept the first one.
#9 Updated by Giacomo Sanchietti about 7 years ago
Wait for #2757
#10 Updated by Giacomo Sanchietti about 7 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
Released in nethserver-updates repository:
- nethserver-directory-2.0.3-1.ns6.noarch
Documentation added to Administrator Manual.