<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 29, 2016, at 11:37 AM, Rob Crittenden <<a href="mailto:rcritten@redhat.com" class="">rcritten@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Robert Kudyba wrote:<br class=""><blockquote type="cite" class="">I知 trying to use the script posted on<br class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__shellonearth.net_import-2Dlocal-2Daccounts-2Din-2Dfreeipa-2Drhelcentos_&d=DgIDAw&c=aqMfXOEvEJQh2iQMCb7Wy8l0sPnURkcqADc2guUW8IM&r=X0jL9y0sL4r4iU_qVtR3lLNo4tOL1ry_m7-psV3GejY&m=qUO21wyGfiMBRaZk6rjEMSMEMYZB0QpBVyQTCq3U6lw&s=9CmZV-vE0Nle4yup0VrHuHVnMuPNCBaOcJQkR4GzebM&e=" class="">https://urldefense.proofpoint.com/v2/url?u=https-3A__shellonearth.net_import-2Dlocal-2Daccounts-2Din-2Dfreeipa-2Drhelcentos_&d=DgIDAw&c=aqMfXOEvEJQh2iQMCb7Wy8l0sPnURkcqADc2guUW8IM&r=X0jL9y0sL4r4iU_qVtR3lLNo4tOL1ry_m7-psV3GejY&m=qUO21wyGfiMBRaZk6rjEMSMEMYZB0QpBVyQTCq3U6lw&s=9CmZV-vE0Nle4yup0VrHuHVnMuPNCBaOcJQkR4GzebM&e=</a> .<br class="">I知 getting the below error. Have the options for ipa user-add changed<br class="">recently? Here痴 what the error looks like in context from the CLI:<br class=""><br class="">Password for admin@ourdomain:<br class="">User login:<br class="">ipa: ERROR: Could not get User login interactively<br class=""><br class="">Here is what痴 in the script:<br class=""><br class="">ipa user-add $USER --first=$FIRST --last=$LAST --cn="$FULL"<br class="">--displayname="$FULL" --uid=$UUID --gidnumber=$GID --setattr<br class="">userpassword='{crypt}$CRYPT'<br class=""><br class=""><br class=""></blockquote><br class="">Are you sure $USER has a value?<br class=""><br class="">It looks like it is falling back on interactive prompting for required<br class="">fields.</div></div></blockquote><br class=""></div><div>Thanks that gave me a clue. The script was looking for a group ID of 8 characters long I changed it to 4:</div><div><pre class="prettyprinted wp-code-highlight prettyprint" style="box-sizing: border-box; overflow: auto; font-family: monospace, monospace; border: 1px solid rgb(204, 204, 204); line-height: 16px; margin-top: 6px; margin-bottom: 6px; padding: 2px 7px; word-wrap: normal; width: 676.188px; color: rgb(51, 51, 51); font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">for</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> line </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">in</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="str" style="box-sizing: border-box; color: rgb(0, 136, 0);">"$(echo $p | grep "</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">x</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">:[</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">-</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">9</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">][</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">-</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">9</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">][</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">-</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">9</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">][</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">-</span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">9</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">]*:</span><span class="str" style="box-sizing: border-box; color: rgb(0, 136, 0);">")"</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="com" style="box-sizing: border-box; color: rgb(136, 0, 0);"># Only grep user accounts with IDs of 4 digits or more</span><br class=""></pre><div class=""><br class=""></div><div class="">But now the script just “hangs” and no response. I confirmed permissions of the shadow and passwd files and just using 20 login names from each file. Nothing shows up in the user search of the FreeIPA GUI.</div></div><br class=""></body></html>