mass import of users

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

mass import of users

Postby rnelson » Fri Feb 17, 2006 10:32 am

Needing to do a mass import of over 400 users. Am trying to write a simple shell script that will run the command

omaddu -n "user name/mailnode,name/" -p scalix

when I place this command in the shell script named test.sh and execute I get the following response:

servername:~ # ./test.sh
Usage: omaddu [-extCQ] -n name/mailnode[/internet-address]
[-a alias[/internet-address]]...
[-p password] [-l language] [-u unix-login]
[-c capabiltity,...] [-M {+|-}vvaccess]
[-R filename] [authentication-id]

or: omaddu -bulk [-exmQ] [-noMsgStore] [-noPDL] [-nofreebusy] [-few]
[-p password] [-l language]
[-u 'authid username']... [-startUxId n] [-B n] [-procs n]
[-M {+|-}vvaccess] mailnode [filename]

Capabilities are admin, extauth and mboxadmin
servername:~ #


Can I import users using a script? Any help you can give me concerning the importing of 400+ users is greatly appreciated.

Thanks in advance for your help!!!

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Fri Feb 17, 2006 1:36 pm

Sure you can, full scripting capability is one of the real strongholds of the scalix solution.

Could you post your test.sh script?

You may also want to look at the omaddu manpage; it offers a -bulk option that might be helpful. or use the omloadfile script we provide in the admin_resource_kit subdirectory of our download.

--f .
Florian von Kurnatowski, Die Harder!

rnelson
Posts: 13
Joined: Mon Feb 13, 2006 2:19 pm

Postby rnelson » Fri Feb 17, 2006 3:06 pm

thanks for the quick reponse. In responding to this post I realized I made a mistake in the script and included a space where there shouldn't have been one....DUH!!!!!!!!! I made the correction and it worked fine....DUH again!!!! But just for giggles...The name of the script is test.sh. Contents are:

#!/bin/sh
omaddu -n "user name/mailnode name/" -p scalix

My plan is to create a script with all my usernames and process this way. But I have a few more questions.....

#1 Should I be doing it another way?

#2 I would like to force a password change on first login for everyone. Is this possible?

As you have probably guessed, I'm a Linux NEWBIE and any assistance you can give is greatly appreciated.

Thanks again!

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Fri Feb 17, 2006 3:12 pm

Well, hard to tell... :-) never mind - we all started small.

Well, in UNIX scripting, there is no right or wrong way - so if this works for you and you can automate successfully, that's fine. The two other methods I've mentioned in my previous post will also work.

As for the password change thing, just add the -e option to your command line. The documentation for this can be found in the reference manual page that can be accessed by typing "man omaddu".

-e Specifies that the password you supplied with the -p option
has already expired for every user created. This forces the
users to enter the password you supply and change it immedi-
ately to a password of their own choice at their next sign on.


So, hope this helps and enjoy your Scalix experience.

-- F.
Florian von Kurnatowski, Die Harder!


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 5 guests