Provisioning / Concepts |
Resources are used to delineate different name spaces and are also used in provisioning. Resources are implement as a bit mask in a 32 bit field and as such there may be 32 resources. Values for Resources are 1,2,4,8,...
# ----- The billmax resource number (1-31) # | # V $SERVICES{1}{name} = "radius"; $SERVICES{1}{provision} = "yes"; $SERVICES{1}{data} = [ "-p", "{NEW_d02}" ]; # NOTE HOW THE PASSWORD FIELD IS INDICATED!!! $SERVICES{1}{cmd}{create} = "/usr/sbin/useradd -M -g radius -s /bin/true -c " . escR("$ENV{USER_fname} $ENV{USER_lname}") . " -p " . escR($ENV{NEW_d02}) . " " . $ENV{NEW_d01}; $SERVICES{1}{cmd}{delete} = "/usr/sbin/userdel $ENV{NEW_d01}"; $SERVICES{1}{cmd}{disable} = "/usr/sbin/usermod -L $ENV{NEW_d01}"; $SERVICES{1}{cmd}{enable} = "/usr/sbin/usermod -U $ENV{NEW_d01}"; $SERVICES{1}{cmd}{rename} = "/usr/sbin/usermod -l $ENV{NEW_d01} $ENV{OLD_d01}"; $SERVICES{1}{cmd}{update} = "/usr/sbin/usermod"; $SERVICES{1}{remotecmd} = "/usr/bin/ssh 192.168.1.1";