Jason Gerard DeRose
a23d41a57f
Reoganized global option functionality to it is easy for any script to use the environment-related global options; lite-xmlrpc.py now uses same global options
2008-10-31 18:17:08 -06:00
Jason Gerard DeRose
cdfb7bfd5e
Logging is now configured in API.bootstrap(); removed depreciated util.configure_logging() function
2008-10-31 13:27:42 -06:00
Jason Gerard DeRose
140458cfc6
API.finalize() now cascades call to API.load_plugins()
2008-10-31 12:29:59 -06:00
Jason Gerard DeRose
3352069309
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-30 17:05:07 -06:00
Rob Crittenden
62876ccee3
Initial implementation of automount support
...
Add argument handling to crud.Del
Make get_list handle LDAP scope
2008-10-30 17:29:22 -04:00
Jason Gerard DeRose
3076cb4d2f
Plugin.set_api() now sets convience instance attributes from api for env, context, log, and all NameSpace
2008-10-30 14:11:24 -06:00
Jason Gerard DeRose
6879140db7
Added ipalib.plugins.f_misc with new 'context' Command; moved 'env' Command from cli to f_misc
2008-10-30 02:20:28 -06:00
Jason Gerard DeRose
2fee6a3e20
Added tests.util.get_api() function to create a standard (api, home) tuple for unit testing
2008-10-30 01:34:46 -06:00
Jason Gerard DeRose
ddb5449c7f
Did some initial work for Context plugins
2008-10-30 01:11:33 -06:00
Jason Gerard DeRose
9f45cdbe2f
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-29 18:10:38 -06:00
Jason Gerard DeRose
138305b365
Added an example CLI-specific env command
2008-10-28 02:23:13 -06:00
Jason Gerard DeRose
fbcb55bd11
lite-xmlrpc.py now uses api.bootstrap() property, logs to api.logger
2008-10-28 02:10:56 -06:00
Jason Gerard DeRose
a9f1c74a7f
util.configure_logging() now only configures file logging if it can create the log_dir
2008-10-28 01:45:02 -06:00
Jason Gerard DeRose
316bd855d5
Added util.configure_logging() function; API.bootstrap() now calls util.configure_logging()
2008-10-28 01:39:02 -06:00
Jason Gerard DeRose
2307d4ddd0
Fixed use of depreciated env.get() in b_xmlrpc.py module
2008-10-27 23:56:22 -06:00
Jason Gerard DeRose
83d6c95e46
API.load_plugins() no longer takes dry_run=False kwarg and instead checks in env.mode == 'unit_test' to decide whether to load the plugins; it also only loads ipa_server.plugins in env.in_server is True
2008-10-27 23:39:43 -06:00
Jason Gerard DeRose
6e456cc749
More CLI cleanup, got all basics working again
2008-10-27 23:30:55 -06:00
Jason Gerard DeRose
9b1e3f5946
More docstrings, functionality, and unit tests for improved CLI class
2008-10-27 19:21:49 -06:00
Jason Gerard DeRose
bb9691099b
API.bootstrap() now calls Env._finalize_core(); updated unit tests
2008-10-27 15:36:41 -06:00
Jason Gerard DeRose
e6254026fe
Implemented basic CLI.bootstrap(); added corresponding unit tests
2008-10-27 15:19:49 -06:00
Jason Gerard DeRose
17fd9cc431
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
2008-10-27 14:49:34 -06:00
Jason Gerard DeRose
10026284db
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
2008-10-27 14:48:02 -06:00
Rob Crittenden
54f37503d2
Implement host groups
2008-10-27 12:24:17 -04:00
Rob Crittenden
201a963930
Fix comment
2008-10-27 12:23:49 -04:00
Jason Gerard DeRose
d76202fea3
API.env is now an Env instance rather than an Environment instance
2008-10-27 01:35:40 -06:00
Jason Gerard DeRose
25a7df9615
Env._finalize_core() now also loads config from Env.conf_default
2008-10-27 01:09:53 -06:00
Jason Gerard DeRose
28dd8e74bd
Env._bootstrap() now also sets Env.conf_default
2008-10-27 00:58:25 -06:00
Jason Gerard DeRose
c8b3f65165
Removed depreciated load_plugins.py module; changed all places where load_plugins was imported to now call api.load_plugins()
2008-10-27 00:41:37 -06:00
Jason Gerard DeRose
03accc5fb3
Copied plugin loading function from load_plugins.py to util.py; API.load_plugins() method now calls functions in util
2008-10-27 00:23:43 -06:00
Jason Gerard DeRose
4fe03f5e17
Added API.load_plugins() place-holder, which cascades call to API.bootstrap()
2008-10-26 23:53:44 -06:00
Jason Gerard DeRose
6b8abb0d78
Implemented placeholder API.bootstrap() method; added API __doing(), __do_if_not_done(), isdone() methods borrowed from Env; API.finalize() now cascades call to API.bootstrap()
2008-10-26 23:28:06 -06:00
Jason Gerard DeRose
ff5cb4cf6f
Added more needed config in DEFAULT_CONFIG
2008-10-24 20:59:11 -06:00
Jason Gerard DeRose
759734864e
Finished Env._finalize() and corresponding unit tests
2008-10-24 20:21:27 -06:00
Jason Gerard DeRose
ac4efac394
Finished Env._finalize_core() and corresponding unit tests
2008-10-24 20:02:14 -06:00
Jason Gerard DeRose
2a41db33c6
Env._bootstrap() now raises StandardError if called more than once
2008-10-24 15:35:58 -06:00
Jason Gerard DeRose
39dfffd280
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-24 15:11:27 -06:00
Jason Gerard DeRose
f80beb948b
Added ipalib/constants.py; added Env._load_config() method along with comprehensive unit tests for same
2008-10-24 15:07:07 -06:00
Rob Crittenden
34520981ee
Don't allow service-add to create host/ principals
2008-10-24 14:17:20 -04:00
Rob Crittenden
8788afe184
Use posixAccount instead of person to identify users
...
Add output_for_cli to service-find
2008-10-24 11:41:39 -04:00
Rob Crittenden
6a8026f974
If a password is supplied then this host will be bulk-enrolled
...
A bulk-enrolled host does not get a kerberos service principal until
enrollment time.
2008-10-24 11:41:38 -04:00
Jason Gerard DeRose
2ec0312eb6
Finished doodle with stricter version of Environment
2008-10-24 01:51:36 -06:00
Jason Gerard DeRose
59a2cffff4
IPAError now more appropriately subclasses from StandardError instead of Exception
2008-10-23 21:21:51 -06:00
Rob Crittenden
d2b46f176e
Use common display function for user-show and user-find.
...
Add --all option to user-find
Fix command-line help to make sense on searches as well
2008-10-23 14:36:24 -04:00
Rob Crittenden
06a82bf4b6
Fix ipa command running in server_context=True
...
Make the LDAP host and port environment variables
More changes so that commands have a shell return value
lite-xmlrpc no longer hardcodes the kerberos credentials cache location
2008-10-23 11:00:50 -04:00
Rob Crittenden
1daf319a19
Implement the host commands
...
In order for this to work against a v1 database the update host.update needs to
be applied
2008-10-22 17:54:04 -04:00
Rob Crittenden
f189b02996
Return a value to the shell that called ipa
2008-10-22 17:52:32 -04:00
Jason Gerard DeRose
f8ffede3b9
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-21 17:35:42 -06:00
Rob Crittenden
245969858d
Implement group member add/remove
...
Add gidNumber to the group command-line
2008-10-21 16:33:34 -04:00
Rob Crittenden
3cbb5c6eeb
Don't import servercore
2008-10-21 16:32:45 -04:00
Rob Crittenden
8d07faed4d
Update the command-line options to more closely match v1
2008-10-21 16:32:30 -04:00