Commit Graph

29 Commits

Author SHA1 Message Date
Martin Nagy
f7ca405716 Wrap up the raw_input() to user_input() for convenience and uniformity. 2008-07-23 10:05:06 -04:00
Martin Nagy
b95c05f5c6 Fix attribute parsing so that you can add a DN or an attribute with a '=' character in it. Fixes #454630 2008-07-09 16:54:19 -04:00
Rob Crittenden
8f639ea924 Add two now options, --addattr and --setattr, to allow arbitrary 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.

449006
2008-05-30 11:22:56 -04:00
Rob Crittenden
e3ba80e3d3 Actually pass along the verbose option to IPAClient.
443987
2008-05-29 16:04:28 -04:00
Rob Crittenden
3daa94ccc0 Catch name resolution errors coming from the socket module.
442650
2008-05-13 12:00:21 -04:00
Rob Crittenden
12ea8efc0b Add --verbose option so the HTTP headers and XML request/response can be seen.
Also re-do the way modules are imported. I was attemping to have ^C handled
gracefully but the way I did it could mask other problems.

443987
2008-04-25 10:35:22 -04:00
Rob Crittenden
3ec54383f9 Fix error where password was getting set wrong if passed in on command-line.
439905
2008-04-08 15:44:05 -04:00
Rob Crittenden
c3fedca013 Don't define bogus realm/server in configuration file by default
Add default exception handler to avoid backtraces in cmdline tools
Enhance error message when the IPA server or realm can't be found

437565
2008-03-17 13:16:56 -04:00
Rob Crittenden
ad8096b51f - Centralize try/except so the entire program is covered. This make it
possible to catch KeyboardInterrupt during the import process.
- Add function for handling python differences with GSSError

434798
2008-02-27 10:40:18 -05:00
Rob Crittenden
64cce8f82e Handle the --usage option by actually displaying the usage
Fix some missing options in --usage
Remove a few debugging statements
Resolves 430704
2008-01-31 10:52:05 -05:00
Rob Crittenden
00489597d8 Rework input validation to more closely match what we require in the UI 2007-12-07 17:07:03 -05:00
rcritten@redhat.com
c32a960cae Compatibility changes to work on RHEL 5 with python 2.4 2007-11-30 15:53:02 -05:00
Rob Crittenden
1967aafa39 Implement the password policy UI and finish IPA policy UI
This includes a default password policy
Custom fields are now read from LDAP. The format is a list of
  dicts with keys: label, field, required.
The LDAP-based configuration now specifies:
    ipaUserSearchFields: uid,givenName,sn,telephoneNumber,ou,title
    ipaGroupSearchFields: cn,description
    ipaSearchTimeLimit: 2
    ipaSearchRecordsLimit: 0
    ipaCustomFields:
    ipaHomesRootDir: /home
    ipaDefaultLoginShell: /bin/sh
    ipaDefaultPrimaryGroup: ipausers
    ipaMaxUsernameLength: 8
    ipaPwdExpAdvNotify: 4
This could use some optimization.
2007-11-16 12:59:32 -05:00
Rob Crittenden
bfcc044db2 If unable to connect to the XML-RPC server print a more useful error msg. 2007-11-15 10:27:59 -05:00
Rob Crittenden
6b0587726a Actually return a value to the shell 2007-10-19 09:59:07 -04:00
Simo Sorce
cfac4acf9f Rely more on kerberos.
Don't read ipa.conf to get the realm, the kerberos libs do that for you.
Use the krbPrincipalName to change passwords
Make it possible to specify the principal at user creation.
Mail is not a required attribute so far, don't require it.
2007-10-01 17:33:16 -04:00
rcritten@redhat.com
7b96973711 Give ipa-adduser, ipa-addgroup and ipa-usermod an interactive mode
Add ipa-passwd tool
Add simple field validation package
This patch adds a package requirement, python-krbV. This is needed to
 determine the current user based on their kerberos ticket.
2007-09-21 10:24:36 -04:00
rcritten@redhat.com
ed6ab17c9c Add function to allow user's to set/reset their kerberos password
Remove some unused calls to retrieve the current realm
2007-09-11 02:48:53 -04:00
rcritten@redhat.com
861cda3cb5 Initial support for Groups
Create separate object for Users and Groups (using same base class)
Check for uniqueness before adding new users and groups
Remove user_container from everything but add operations
Abstract out a number of functions that are common across users and groups
Make sure all strings passed in to be in a filter are checked
Add new error message: No modifications specified
2007-08-24 15:42:56 -04:00
Kevin McCarthy
cb03961ff1 Convert add_user to take a user instead of a dict. 2007-08-20 12:10:50 -07:00
Kevin McCarthy
a0e2fa00f1 Manual merge changes in for the cidict/ipaclient add_user() 2007-08-17 14:27:54 -07:00
Karl MacMillan
8d36f03f83 Merge simple fix from Rob Crittenden. 0001-01-01 00:00:00 +00:00
rcritten@redhat.com
05f6a22110 Implement user inactivation
Comment some functions
Add attribute argument to get_user()
2007-08-17 10:03:33 -04:00
rcritten@redhat.com
993f76fe60 - Abstracted client class to work directly or over RPC
- Add mod_auth_kerb and cyrus-sasl-gssapi to Requires
- Remove references to admin server in ipa-server-setupssl
- Generate a client certificate for the XML-RPC server to connect to LDAP with
- Create a keytab for Apache
- Create an ldif with a test user
- Provide a certmap.conf for doing SSL client authentication
- Update tools to use kerberos
- Add User class
2007-08-06 10:05:53 -04:00
kmccarth@redhat.com
88ab86fa37 Rename 'gn' to 'givenName' 2007-08-02 15:01:59 -07:00
Karl MacMillan
aed1f91105 Add local-dist target.
Remove hard-coded config.
0001-01-01 00:00:00 +00:00
Karl MacMillan
cef59d76eb Minor fix to adduser.
Make ipa-server-install restart htppd
0001-01-01 00:00:00 +00:00
Karl MacMillan
8cf45633fe Fixed broken patches and server spec. 0001-01-01 00:00:00 +00:00
Karl MacMillan
7d95cd612c Final reorginzation to reflect packaging. 0001-01-01 00:00:00 +00:00