Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17856

Awk / Freeipa bulk update question.

$
0
0

Trying to batch update my freeipa accounts with some information that I have in a csv file.

The csv file format is as follows

Singapore ,"Gu, Fa", Fa,Gu,fa.gu,Chief Dingbag Title,333-444-2222,,testemail@testmemail.com

I am able to do run this command.

awk -F, '{system("ipa user-mod "$6 )}' < employeestest.csv

This allows me to test if my modification works, however I am unable to pass any other parameters in the system command aka something like this

awk -F, '{system("ipa user-mod "$6 --title=$7)}' < employeestest.csv

Have tried different variations of this but without any luck.

  • First what am i doing wrong ?
  • Second, am I doing this whole process in an incorrect way. Using freeipa 3.0.0

Thanks guys.

submitted by hkdanalyser
[link][2 comments]

Viewing all articles
Browse latest Browse all 17856

Trending Articles