Scalix plugin Change user mailnode in SAC.

Discuss Scalix Management Services ( formerly Scalix Admin Console )

Moderator: ScalixSupport

nuno.mesquita

Scalix plugin Change user mailnode in SAC.

Postby nuno.mesquita » Fri Jun 06, 2008 6:06 am

Code: Select all

#!/bin/bash
#
# Nuno Mesquita.
#

help() {
   echo ""
   echo ""
   echo "VERSION:"
   echo "1.0"
   echo ""
   echo "NAME:"
   echo "Change User MailNode"
   echo ""
   echo "DESCRIPTION:"
   echo ""
   echo "ommodu changes user attributes."
   echo "PARAMETERS:"
   echo "-u   User      string   single   User Name"
   echo "-n    New Mailnode       string   single   New Mailnode of the User"
   echo "-a   AuthenticationID      string   single   User Authentication ID"
   echo "--help   Help   \"\"   \"\"   \"\"   Usage Information"
   echo ""
   echo "OUTPUT:"
   echo ""
   echo "text/plain"
}
#
# main script
#

declare params
declare authenticationid
declare Newmailnode
declare user
params=""
authenticationid=""
Newmailnode=""
user=""

while [ "$1" != "" ]; do
   case "$1" in
      --help) help;
                    exit 0
         shift;;
      -u) user="$2";
            shift;;
      -n) Newmailnode="$2";
                shift;;
      -a) authenticationid="$2";
            shift;;
      *) params="$params $1 $2";
                shift;;
   esac
   shift
done

/opt/scalix/bin/omshowu -n "$user" > /dev/null

if [ "$?" = "0" ];  then
   echo "/opt/scalix/bin/ommodu -o "$user/$Newmailnode" $authenticationid"
   /opt/scalix/bin/ommodu -n "$user/$Newmailnode" $authenticationid
  fi

exit 0

hafiz
Posts: 28
Joined: Wed Jun 25, 2008 11:33 pm

Postby hafiz » Thu Sep 04, 2008 10:04 am

nuno.mesquita,

thanks for the script! works great!

jaydenrussell
Posts: 11
Joined: Thu Aug 06, 2009 2:34 pm

Re: Scalix plugin Change user mailnode in SAC.

Postby jaydenrussell » Thu Aug 06, 2009 2:36 pm

I can't seem to implement this script. Its added but I have no selection of users on scalix 11.4.4


Return to “Scalix Management Services”



Who is online

Users browsing this forum: No registered users and 1 guest