Users import.

  • Good morning,


    I try to import some users on OMV.


    # <name>;<uid>;<comment>;<email>;<password>;<group,group,...>;<disallowusermod>

    So, I wrote this :


    user1;;User1's name;;pa$$word;;
    user2;;User2's name;;pa$$word2;;


    Etc...


    Bout, each time OMV return this error :

    Error
    Invalid line: user1;;User1's name;;pa$$word;;
    Error #6000:
    exception 'OMVException' with message 'Invalid line: user1;;User1's name;;pa$$word;;' in /var/www/openmediavault/rpc/usermgmt.inc:669
    Stack trace:
    #0 [internal function]: UserMgmtRpc->importUsers(Array)
    #1 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('UserMgmt', 'importUsers', Array)
    #3 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
    #4 {main}


    Have you any ideas?


    Best regards from France.


    Fabrice.

  • First, big thanks to Yannig for his respond...


    If you want to use the Users Import module, you must write all the fields, so :


    # <name>;<uid>;<comment>;<email>;<password>;<group,group,...>;<disallowusermod>
    user1;1001;Last Name-First Name;none;pa$$word1;group1,group2;false
    user2;1002;Last Name-First Name2;none;pa$$word2;group2;false
    Etc...


    Best regards,


    Fabrice.


    EDIT : The UID must > 1000 or OMV don't display it...

  • In OMV 4[/b] you have to make it this way:


    You can omit fields with ;; (like I did it here with email and shell)


    # <name>;<uid>;<comment>;<email>;<password>;<shell>;<group,group,...>;<disallowusermod>
    user1;1001;some comment;;pa$$w0rd;;users;false
    user2;1002;some comment;;t0pSecret;;users;false

  • Try it in the UI. It gives instructions on how to format the text. (OMV5)

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!