Example of AutoCreate setting?

I’m not Perlish enough to know what a ‘hashref’ should
look like.

 If C<$WebExternalAuto> is set to 1, C<$AutoCreate>
 will be passed to User's Create method.  Use it to
 set defaults, such as creating Unprivileged users
 with C<{ Privileged => 0 }> This must be a hashref.

Can someone provide a literal example of the setting,
ideally for a ‘least privilege’ new user account?

Just

 Set($AutoCreate, { Privileged => 0 });

??

Jeff,

What you have is fine to “autocreate” Unprivileged users.

KennOn Thu, Dec 29, 2011 at 2:08 PM, Jeff Blaine jblaine@kickflop.net wrote:

I’m not Perlish enough to know what a ‘hashref’ should
look like.

If C<$WebExternalAuto> is set to 1, C<$AutoCreate>
will be passed to User’s Create method. Use it to
set defaults, such as creating Unprivileged users
with C<{ Privileged => 0 }> This must be a hashref.

Can someone provide a literal example of the setting,
ideally for a ‘least privilege’ new user account?

Just

Set($AutoCreate, { Privileged => 0 });

??


RT Training Sessions (http://bestpractical.com/**services/training.htmlhttp://bestpractical.com/services/training.html
)

  • Boston March 5 & 6, 2012