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.
[link][2 comments]