Setting user type & auth id from the command line

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Setting user type & auth id from the command line

Postby btisdall » Thu Mar 30, 2006 6:15 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Mar 30, 2006 8:37 pm

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

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Fri Mar 31, 2006 4:19 am

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Mar 31, 2006 9:36 am

Hi,

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

Cheers,

Sascha.

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Fri Mar 31, 2006 2:21 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Mar 31, 2006 3:51 pm

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


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 15 guests