Description of problem: ipa-adduser doesn't have an option of "--setattr" as ipa-moduser does. What is the best way to set attributes value (such as workphone number) when we create a new user from command line? Can we add "--setattr" option to ipa-adduser cmd?
Created attachment 307203 [details] add options to ipa-adduser and ipa-addgroup Add two now options, --addattr and --setattr, to allow arbitrar y attributes to be added and set when a new user or group is created. Make the user password not mandatory and add new option, -P, to prompt for a password interactively.
master: 8f639ea9248dfdb38982d653e489866f3e33795a ipa-1-0: 32800a792b721d1bbe0d54b9a282e76419a4a037
QA Verified on June 9, 2008 (Yi) Build used: June 9, 2008 (64bit RHEL 5.2) server64[06/10/08 10:22]~ >ipa-adduser -c GECOS -f cli -l 101 -p redhat123 --setattr homeDirectory=/home/share cli101 cli101 successfully added server64[06/10/08 10:22]~ >ipa-finduser cli101 -a dn: uid=cli101,cn=users,cn=accounts,dc=ipaqa,dc=com Full Name: cli 101 GECOS: GECOS GID: 1002 First Name: cli Home Directory: /home/share krblastpwdchange: 20080610172234Z krbpasswordexpiration: 20080610172234Z krbprincipalname: cli101 Login Shell: /bin/sh memberof: cn=ipausers,cn=groups,cn=accounts,dc=ipaqa,dc=com objectclass: top person organizationalPerson inetOrgPerson inetUser posixAccount krbPrincipalAux radiusprofile Last Name: 101 Login: cli101 UID: 1124