Bug 449006 - ipa-adduser options
Summary: ipa-adduser options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-admintools
Version: 1.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 429034
TreeView+ depends on / blocked
 
Reported: 2008-05-29 20:57 UTC by Rob Crittenden
Modified: 2015-01-04 23:32 UTC (History)
2 users (show)

Fixed In Version: freeipa-2.0.0-1.fc15
Clone Of:
Environment:
Last Closed: 2012-03-27 07:14:27 UTC
Embargoed:


Attachments (Terms of Use)
add options to ipa-adduser and ipa-addgroup (8.92 KB, text/x-patch)
2008-05-30 14:27 UTC, Rob Crittenden
no flags Details

Description Rob Crittenden 2008-05-29 20:57:15 UTC
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?

Comment 1 Rob Crittenden 2008-05-30 14:27:11 UTC
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.

Comment 2 Rob Crittenden 2008-05-30 15:24:02 UTC
master: 8f639ea9248dfdb38982d653e489866f3e33795a
ipa-1-0: 32800a792b721d1bbe0d54b9a282e76419a4a037

Comment 3 Yi Zhang 2008-06-10 17:44:30 UTC
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



Note You need to log in before you can comment on or make changes to this bug.