> On Nov 29, 2016, at 11:37 AM, Rob Crittenden <rcrit...@redhat.com> wrote:
> 
> Robert Kudyba wrote:
>> I知 trying to use the script posted on
>> 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=
>>  .
>> I知 getting the below error. Have the options for ipa user-add changed
>> recently? Here痴 what the error looks like in context from the CLI:
>> 
>> Password for admin@ourdomain:
>> User login:
>> ipa: ERROR: Could not get User login interactively
>> 
>> Here is what痴 in the script:
>> 
>> ipa user-add $USER --first=$FIRST --last=$LAST --cn="$FULL"
>> --displayname="$FULL" --uid=$UUID --gidnumber=$GID --setattr
>> userpassword='{crypt}$CRYPT'
>> 
>> 
> 
> Are you sure $USER has a value?
> 
> It looks like it is falling back on interactive prompting for required
> fields.

Thanks that gave me a clue. The script was looking for a group ID of 8 
characters long I changed it to 4:
for line in "$(echo $p | grep "x:[0-9][0-9][0-9][0-9]*:")" # Only grep user 
accounts with IDs of 4 digits or more

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.

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Reply via email to