Line 3: |
Line 3: |
| | | |
| ===DESCRIPTION=== | | ===DESCRIPTION=== |
− | Creates or deletes user accounts on Mitel's SME servers (5.x/6.x). | + | Creates or deletes user accounts on Mitel's SME servers (5.x/6.x/7.x/8.x). |
| This tool is functionally equivalent to the 'User accounts' option in | | This tool is functionally equivalent to the 'User accounts' option in |
| the server-manager, but can be run from the command line or called from | | the server-manager, but can be run from the command line or called from |
Line 14: |
Line 14: |
| | | |
| See /usr/doc/lazy-admin-tools/example.users for the format of the input file. | | See /usr/doc/lazy-admin-tools/example.users for the format of the input file. |
| + | |
| ===Smecontribs repository for SME Server=== | | ===Smecontribs repository for SME Server=== |
| | | |
− | yum install --enablerepo=smecontribs smeserver-lazy_admin_tools | + | yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel smeserver-mailsorting |
| signal-event post-upgrade; signal-event reboot | | signal-event post-upgrade; signal-event reboot |
| | | |
Line 35: |
Line 36: |
| -a, --add | | -a, --add |
| Add a user account to the server. | | Add a user account to the server. |
| + | |
| + | -n |
| + | create pseudonyms firstname.lastname/firstname_lastname |
| | | |
| -c ""Arguments"", --command-line=""Arguments"" | | -c ""Arguments"", --command-line=""Arguments"" |
Line 84: |
Line 88: |
| lat-users -a -c "harry | Harry | Potter | Quidditch" | | lat-users -a -c "harry | Harry | Potter | Quidditch" |
| Creates user 'harry' from the command line, with password 'Quidditch'. | | Creates user 'harry' from the command line, with password 'Quidditch'. |
| + | |
| + | lat-users -a -c "harry ||| Quidditch" |
| + | Update the account 'harry' with the new password 'Quidditch'. |
| + | |
| + | lat-users -a -n -c "harry | Harry | Potter | Quidditch" |
| + | Creates user 'harry' from the command line, with password 'Quidditch' |
| + | and pseudonyms firstname.lastname/firstname_lastname |
| | | |
| lat-users -a -i /root/users.list | | lat-users -a -i /root/users.list |
Line 106: |
Line 117: |
| Creates user 'ron' and assigns him to groups quiddich and dada. If any | | Creates user 'ron' and assigns him to groups quiddich and dada. If any |
| of these groups doesn't exist, it will be created. | | of these groups doesn't exist, it will be created. |
| + | |
| + | ===Known issues=== |
| + | |
| + | ====Large user database==== |
| + | |
| + | it has been reported that large user imports might be really long ( 60s per user in SME server already containing 4000 users) (see [[bugzilla:7545]]). |
| + | This script is using sme internal processing. The purpose of doing so is to do everything that is included by other contribs. |
| + | |
| + | S95ldap-update-simple is called with user-modify user-create, group-modify and group-create events. S56update-domain-group-maps is called with the same events. These events allow also the full creation of the user, but have the adverse effect to be really long during large user importation. |
| + | |
| + | A workaround to avoid this could be to: |
| + | - disable ldap in the db configuration during the import (if you have not enable ldap auth) |
| + | - or temporally remove the link inside the events to this two scripts and create them back after import. |
| + | |
| + | and revert bacj theses change after importation and then running the signal event once (user-modify) |
| + | |
| + | |
| === Bugs === | | === Bugs === |
| Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla] | | Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla] |
| and select the e-smith-lazy_admin_tools component or use {{BugzillaFileBug|product=SME%20Contribs|component=e-smith-lazy_admin_tools|title=this link}}. | | and select the e-smith-lazy_admin_tools component or use {{BugzillaFileBug|product=SME%20Contribs|component=e-smith-lazy_admin_tools|title=this link}}. |
| [[Category:Howto]] [[Category:Administration]] | | [[Category:Howto]] [[Category:Administration]] |