Page 1 of 1

Setting user type & auth id from the command line

Posted: Thu Mar 30, 2006 6:15 pm
by btisdall
Hi,

Is there any way to set the user type (community/enterprise) from the command line?

Also, I know that the auth id is set as an argument to omaddu, but can I stop Scalix appending the default domain to this?

Cheers,

Ben Tisdall
RedCircle IT Ltd

Posted: Thu Mar 30, 2006 8:37 pm
by ScalixSupport
Hi Ben,

ommodu is the command you're looking for (see the man pages for details). To change a user from full to limited use the --class switch:

Code: Select all

ommodu -o "Ben Tisdall" --class limited
ommodu -o "Ben Tisdall" --class full


Changing the AuthID is done with the --authid switch:

Code: Select all

ommodu -o "Ben Tisdall" --authid btisdall


Thanks,
Rachel

Posted: Fri Mar 31, 2006 4:19 am
by btisdall
Thanks Rachel!

A couple of Qs though:

[1] Does setting the AuthID via ommodu set the case exactly as supplied by the argument or does it convert it to proper case as occurs when setting via omaddu? Or is the behaviour in both cases governed by a rule set in general.cfg?

[2] If the AuthID is set using ommodu then is '@example.com' appended, as it is when set via omaddu? I looked at the autogen rule in general.cfg but it doesn't seem to explicity append the default domain.

Thanks & regards,

Ben Tisdall
RedCircle IT Ltd

Posted: Fri Mar 31, 2006 9:36 am
by ScalixSupport
Hi,

casing is exactly as provided on the command line. ommodu only changes the entry you specify on the commandline.

Cheers,

Sascha.

Posted: Fri Mar 31, 2006 2:21 pm
by btisdall
Excellent, thanks so much guys.

BTW, I didn't find a reference to the '--class' flag in the omaddu/ommodu manpages or anywhere in the admin guide. Is the full list documented somewhere? I'd really like to able to do stuff like add users to groups non-interactively too.

Regards,

Ben Tisdall
RedCircle IT Ltd

Posted: Fri Mar 31, 2006 3:51 pm
by ScalixSupport
Hi Ben,

It sounds like you're on 9.4.x and you're right, the --class flag didn't make it into those man pages. Once you upgrade to 10.0, they're in there. Adding people to Distribution Lists (i.e. groups) via the CLI is done with the omaddpdln command.

Thanks,
Rachel