On Wed, 2021-02-03 at 12:34 -0500, Robert Kudyba via FreeIPA-users wrote: > On Wed, Feb 3, 2021 at 12:18 PM Jochen Kellner <joc...@jochen.org> wrote: > > > Robert Kudyba via FreeIPA-users <freeipa-users@lists.fedorahosted.org> > > writes: > > > > > So now I put: > > > ipa user-add $username --first=$first --last=$last \ > > > --setattr userpassword='{CRYPT}$password1' --gidnumber=$gid > > > > Try: > > --setattr "userpassword={CRYPT}$password1" --gidnumber=$gid > > > > Nice, that worked as well as: > --setattr userpassword="{CRYPT}$password1" --gidnumber=$gid > > Now any idea why the original '$gecos' inserts the actual string $gecos > into FreeIPA/LDAP?
It's a shell issue, single quotes prevents any argument expansion, use double quotes. > Logs also spit out this warning after every user is added: > Failed to set perms (3140) on file (/run/ipa/ccaches/ad...@ourdomain.edu)!, > referer: https://oudomain.edu/ipa/xml > _______________________________________________ > FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org > To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org -- Simo Sorce RHEL Crypto Team Red Hat, Inc _______________________________________________ FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org