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 <[email protected]> wrote: > > > Robert Kudyba via FreeIPA-users <[email protected]> > > 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/[email protected])!, > referer: https://oudomain.edu/ipa/xml > _______________________________________________ > FreeIPA-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > 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/[email protected] -- Simo Sorce RHEL Crypto Team Red Hat, Inc _______________________________________________ FreeIPA-users mailing list -- [email protected] To unsubscribe send an email to [email protected] 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/[email protected]
