<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 14, 2013 at 5:20 PM, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>while (<FILE>)</div><div>{</div><div>  $user->Load( $_ );</div>


<div>  $group->AddMember( $user->PrincipalObj->Id );</div><div>}</div></blockquote></div><br>I found the hint from another email with subject CLI Question - Add Users to group per Scrip from Feb 28, 2007 from Joe Casadonte at <a href="http://oracle.com">oracle.com</a>.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">I removed the PrincipalObj and it is working now. So from the script this is part that I needed to fix.</div><div class="gmail_extra"><div class="gmail_extra"><br>

</div><div class="gmail_extra">while (<FILE>)</div><div class="gmail_extra">{</div><div class="gmail_extra" style>  chop($_);</div><div class="gmail_extra">  $user->Load( $_ );</div><div class="gmail_extra">  $group->AddMember( $user->id );</div>

<div class="gmail_extra">}<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I also had to add more use lib for the extensions to be loaded or failing to run</div><div class="gmail_extra"><br></div>

<div class="gmail_extra"><div class="gmail_extra">use lib '/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib';</div><div class="gmail_extra">use lib '/opt/rt3/local/plugins/RT-Extension-CommandByMail/lib';</div>

<div><br></div><div><br></div><br clear="all"><div><br></div>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>

Q: Why is top-posting such a bad thing?<br><br>
</div></div>