Jason Gerard DeRose
e0b00d5981
Removed depreciated import of errors in frontend.py
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
0313f03277
Added ServiceError (KerberosError) and make rpc.KerbTransport raise it if appropriate
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
114b6b8577
Added some missing parameter unit tests; added docstring about Command._repr_iter() and Param.safe_value()
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
7a0f969a47
CLI now logs trace if it catches a non-public error and then exists with an InternalError; other CLI cleanup
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
c0bc2451dd
Fixed another small CLI decoding problem (multivalue args in a tuple now work)
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
e537dc89cb
Fixed a few problems in the CLI interactive prompting (wont prompt for Flag now)
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
244346dbcb
More work on xmlrpc stuff, started migrated more code to use errors2 instead of errors
2009-02-03 15:29:01 -05:00
Jason Gerard DeRose
833088955c
More xmlrpc tweaks: xmlserver.execute() now logs non-public exceptions; xmlclient.forward() now handles socket error; fixed some Python 2.4 problems in lite-xmlrpc2.py
2009-02-03 15:29:01 -05:00
Jason Gerard DeRose
24b6cb89d4
Further migration toward new xmlrcp code; fixed problem with unicode Fault.faultString; fixed problem where ServerProxy method was not called correctly
2009-02-03 15:29:01 -05:00
Jason Gerard DeRose
9f48612a56
Sundry work getting ready to switch to new XML-RPC client/server code
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
46c10d4608
Removed bogus CLI.set_defaults() method that was causing non-required values to get filled in
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
12c4879613
Added ca_host, ca_port, and ca_ssl_port Env variables that Andrew requested
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
6aadeb9aea
Added Object.params_minus() method; various small tweaks
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
529819b02b
Renamed f_misc.py plugin module to misc.py
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
f3a84683d2
Removed depreciated Command.args_to_kw() method; updated CLI to use Command.args_options_2_params() instead
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
ae39dece13
Added Command.args_options_2_params() method and its unit tests
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
4febb4dd14
Started roughing out new crud base classes
2009-02-03 15:28:59 -05:00
Jason Gerard DeRose
6e53d03c69
Command.takes_options and Command.takes_args class attributes can now also be a callable
2009-02-03 15:28:59 -05:00
Jason Gerard DeRose
5d82e3b35a
Changed ipauuid.py docstring slightly so epydoc formats it correctly
2009-01-21 13:36:53 -07:00
Jason Gerard DeRose
0c95e86cf3
Removed doctest +ELLIPSIS directive from some examples in ipauuid.py that didn't need it
2009-01-21 13:22:22 -07:00
Jason Gerard DeRose
c4702f3a1e
Fixed some Python2.4 issues in ipauuid.py doctests
2009-01-21 13:08:30 -07:00
Jason Gerard DeRose
5616af19b1
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2009-01-21 12:42:40 -07:00
Jason Gerard DeRose
f22f3eabb2
Fixed Param.validate() so that self.query is checked after self.required
2009-01-20 09:38:39 -07:00
Jason Gerard DeRose
55fba5420d
Added rpc.xmlclient backend plugin for forwarding; added corresponding unit tests
2009-01-19 21:10:42 -07:00
Rob Crittenden
aba16941ee
Skip doc testing of the uuid module since by nature it changes every time
2009-01-19 10:40:12 -05:00
Rob Crittenden
98ab09fafc
Initial implementation of netgroups
2009-01-19 10:40:12 -05:00
Rob Crittenden
8154131ce1
Use correct function for outputing a string
2009-01-19 10:40:11 -05:00
Rob Crittenden
bc40686b7f
Fix rule definition to match new API
2009-01-19 10:40:11 -05:00
Rob Crittenden
e708765d61
Include local copy of UUID generator for Python 2.4.
...
Python 2.5+ has a built-in RFC 4122-compliant UUID generator. Include a
copy of this file in our library and import it in a way that it will
work with Python 2.4.
2009-01-19 10:40:11 -05:00
Jason Gerard DeRose
bae9dd7c07
Added example to StrEnum docstring
2009-01-18 16:03:02 -07:00
Jason Gerard DeRose
364e05def1
Added missing enumerable parameters
2009-01-18 15:55:56 -07:00
Jason Gerard DeRose
7514f96173
New Param: fixed metavar bug in cli.py
2009-01-16 11:07:21 -07:00
Jason Gerard DeRose
462bac3c13
Added docstring cross-references between rpc and rpcserver modules
2009-01-16 01:56:39 -07:00
Jason Gerard DeRose
0227a12949
Added docstrings to the new rpc.xml_dumps() and rcp.xml_loads() functions
2009-01-16 01:23:55 -07:00
Jason Gerard DeRose
6be5e4a0a5
ipalib.rpc: now using allow_none=True after conversation with Rob; added xml_dumps() and xml_loads() functions; some name cleanup
2009-01-15 23:52:50 -07:00
Jason Gerard DeRose
4d4fa694ee
Small change in ipalib.cli to check if param is a Password instance instead of calling depreciated ispasswd() method
2009-01-14 23:15:46 -07:00
Jason Gerard DeRose
fdda31c50b
Fixed a problem in the host plugin module; added not in TODO about using Param.query
2009-01-14 22:59:44 -07:00
Jason Gerard DeRose
a10144be24
Updated service plugins module to where it can at least be imported
2009-01-14 22:35:13 -07:00
Jason Gerard DeRose
86b7ebf717
Updated ra plugins module to where it can at least be imported
2009-01-14 22:29:59 -07:00
Jason Gerard DeRose
a41a7f406f
Updated pwpolicy plugins module to where it can at least be imported
2009-01-14 22:25:45 -07:00
Jason Gerard DeRose
ec86208a90
Updated passwd plugins module to where it can at least be imported
2009-01-14 22:19:31 -07:00
Jason Gerard DeRose
64c072b7b3
Updated hostgroup plugins module to where it can at least be imported
2009-01-14 22:10:09 -07:00
Jason Gerard DeRose
ec14fbfbc5
Updated host plugins module to where it can at least be imported
2009-01-14 21:55:04 -07:00
Jason Gerard DeRose
29e5a58795
Updated group plugins module to where it can at least be imported
2009-01-14 21:23:20 -07:00
Jason Gerard DeRose
39068ab7ca
Fixed automount plugins module to where it can at least be imported
2009-01-14 21:11:14 -07:00
Jason Gerard DeRose
0327b83899
New Param: all docstring examples now pass under doctests
2009-01-14 20:36:17 -07:00
Jason Gerard DeRose
cd3508bace
New Param: added Param.query kwarg for crud operations like Retrieve and Search where criteria should not be validated
2009-01-14 14:04:05 -07:00
Jason Gerard DeRose
79422d0489
All unit tests now working (except for doctests and Rob's xmlrpc tests)
2009-01-14 13:51:37 -07:00
Jason Gerard DeRose
09e2f5d615
New Param: got most of unit tests ported (still have 6 errors); haven't ported doctests yet
2009-01-14 13:17:30 -07:00
Jason Gerard DeRose
69acff450c
New Param: removed more depreciated 'import ipa_types'
2009-01-14 12:00:47 -07:00
Jason Gerard DeRose
2b2e73e7df
Removed depreciated code from frontend.py; frontend.py no longer imports ipa_types
2009-01-14 11:39:29 -07:00
Jason Gerard DeRose
f3e0900ebc
New Param: ipalib.__init__ no longer import ipa_types and instead imports appropriate classes from parameters
2009-01-14 11:32:32 -07:00
Jason Gerard DeRose
47e8b1c0b7
Removed deprecited ipa_types.py and test_ipa_types.py
2009-01-14 11:25:26 -07:00
Jason Gerard DeRose
3e201dfff6
New Param: split common Bytes/Str functionality into new Data base class; Str no longer subclasses from Bytes
2009-01-14 10:58:05 -07:00
Jason Gerard DeRose
5d1e5a0aa9
New Param: renamed parameter.py to parameters.py
2009-01-14 10:25:33 -07:00
Jason Gerard DeRose
cc5d7e8adb
New Param: Small docstring change in Flag
2009-01-14 10:17:39 -07:00
Jason Gerard DeRose
05514292dc
New Param: Flag now fill-in default=False and also forces default to be a bool
2009-01-14 09:56:10 -07:00
Jason Gerard DeRose
8cc38e681f
New Param: added new Flag param class and its unit test
2009-01-13 20:27:19 -07:00
Jason Gerard DeRose
659bb4c142
New Param: added Param.clone() method and corresponding unit test
2009-01-13 19:49:23 -07:00
Jason Gerard DeRose
a0fb215a2c
New Param: updated Str._convert_scalar() so it raises a ConversionError
2009-01-13 18:29:45 -07:00
Jason Gerard DeRose
10747103fa
New Param: implemented a base Param._convert_scalar() method; added Param.type_error attribute for ConversionError message
2009-01-13 02:17:16 -07:00
Jason Gerard DeRose
c2b0d03f82
New Param: updated Bytes and Str length rules to use new rule(_, value) calling signature; updated corresponding unit tests
2009-01-13 01:07:33 -07:00
Jason Gerard DeRose
33db9fee60
New Param: ported create_param() function and unit tests
2009-01-13 00:27:06 -07:00
Jason Gerard DeRose
11dce19225
New Param: added Param.get_default() method and detailed docstring; added corresponding unit tests
2009-01-12 22:48:04 -07:00
Jason Gerard DeRose
5c7c0b35bb
New Param: added Param.validate() and Param._validate_scalar() methods; added corresponding unit tests
2009-01-12 16:14:46 -07:00
Jason Gerard DeRose
3e9eb0bda0
Changed PublicError so str(e) is untranslated (for logging) and added format=None kwarg for generic use
2009-01-08 00:07:18 -07:00
Jason Gerard DeRose
9e430755a5
Renamed PublicError.code attribute to PublicError.errno
2009-01-06 13:33:22 -07:00
Jason Gerard DeRose
ac89267c2f
Fixed type in KerberosError, droped LDAPError range to just 100 codes for now
2009-01-06 11:54:58 -07:00
Jason Gerard DeRose
f130da56c3
Additional work on the new error code tree in errors2.py
2009-01-06 11:15:41 -07:00
Jason Gerard DeRose
2462135da0
Added a few missing things to base.ReadOnly docstrings
2009-01-05 12:41:02 -07:00
Jason Gerard DeRose
4a24b49d5d
A few docstring improvements in Env
2009-01-05 03:28:27 -07:00
Jason Gerard DeRose
690ad4766d
New Param: added Str length rule methods; added corresponding unit tests
2009-01-05 02:45:07 -07:00
Jason Gerard DeRose
6d6c0d81dd
New Param: decided on calling signature for rules; added unit tests for Bytes._rule_minlength, _rule_maxlength, and _rule_length
2009-01-05 02:20:09 -07:00
Jason Gerard DeRose
c121d0064b
New Param: Added Param.get_label() method for a way to retrieve translated message at request time
2009-01-05 01:20:14 -07:00
Jason Gerard DeRose
6fe78a4944
Renamed all references to 'ipa_server' to 'ipaserver'
2009-01-04 18:39:39 -07:00
Jason Gerard DeRose
ff66c7ece6
Added more public exceptions and did some other cleanup in errors2
2009-01-04 18:20:39 -07:00
Jason Gerard DeRose
2608838ef1
Quite a bit of work on new public errors and their unit tests
2009-01-04 03:52:08 -07:00
Jason Gerard DeRose
c161784973
Added request.ugettext() and request.ungettext() functions; added corresponding unit tests
2009-01-04 00:46:21 -07:00
Jason Gerard DeRose
c081ce5460
request.create_translation() now sets context.ugettext and context.ungettext
2009-01-03 22:03:37 -07:00
Jason Gerard DeRose
912ab9e68b
Removed unneeded import of errors from plugable.py
2009-01-03 18:08:39 -07:00
Jason Gerard DeRose
bb6e9cfe9f
Plugin.call() now uses errors2 version of SubprocessError
2009-01-03 18:02:58 -07:00
Jason Gerard DeRose
6b6e6b1cab
Ported plugin registration errors into errors2.py; plugable.Registrar now raises new errors2 exceptions
2009-01-03 17:27:53 -07:00
Jason Gerard DeRose
d1517b95ca
Ported errors.SubprocessError to errors2
2009-01-03 15:35:54 -07:00
Jason Gerard DeRose
0d3ddef93b
Started fleshing out reoganization of errors in errors.py (with gettext support)
2009-01-03 02:35:36 -07:00
Jason Gerard DeRose
b32965dffe
Clarifed base.DefaultFrom.__call__() docstring
2009-01-02 17:27:44 -07:00
Jason Gerard DeRose
dae08b3ee6
Small docstring cleanup in parameters.py
2009-01-02 02:22:48 -07:00
Jason Gerard DeRose
72340a594d
Removed unneeded import of check_type, check_instance in plugable.py
2009-01-02 01:16:17 -07:00
Jason Gerard DeRose
7be459af0b
Added a bit to config.Env docstring about that variable names must pass check_name() function
2009-01-02 01:14:37 -07:00
Jason Gerard DeRose
b4dc333ee2
Removed depreciated code in ipalib.plugable that has been moving into ipalib.base
2009-01-02 00:46:45 -07:00
Jason Gerard DeRose
ea7f9594df
A few docstring edits in base.NameSpace
2009-01-02 00:35:42 -07:00
Jason Gerard DeRose
b3063dbb8a
A few base.NameSpace docstring tweaks
2008-12-31 15:47:28 -07:00
Jason Gerard DeRose
86325bf4eb
Copied plugable.NameSpace to base.NameSpace and made many docstring and unit test improvements
2008-12-31 02:28:49 -07:00
Jason Gerard DeRose
57dae28d9c
Added base.lock() and base.islocked() functions; added corresponding unit tests
2008-12-30 21:14:51 -07:00
Jason Gerard DeRose
e9be796950
Fixed Env._bootstrap() docstring typo
2008-12-30 15:14:33 -07:00
Jason Gerard DeRose
379c549fc1
Env now supports float values
2008-12-30 15:02:15 -07:00
Jason Gerard DeRose
ecccc5c236
Added my name to Athors of config.py
2008-12-30 14:05:08 -07:00
Jason Gerard DeRose
03c9114958
More docstring cleanup in ipalib.config
2008-12-30 13:52:36 -07:00
Jason Gerard DeRose
11e165073e
Docstring cleanup in the Env bootstraping methods
2008-12-30 03:11:45 -07:00
Jason Gerard DeRose
7012bed299
Small changes to base.ReadOnly docstring
2008-12-30 01:08:04 -07:00
Jason Gerard DeRose
8decf4d8c3
Decided against indenting the example code in the base.ReadOnly docstring
2008-12-30 00:57:56 -07:00
Jason Gerard DeRose
447c88a2bb
Started moving some core classes and functions from plugable.py to new base.py module
2008-12-30 00:45:48 -07:00
Jason Gerard DeRose
e14fc84dfc
Renamed Env._merge_config() to Env._merge_from_file()
2008-12-29 21:23:34 -07:00
Jason Gerard DeRose
7766f0be61
Yet more small docstring cleanup in Env
2008-12-23 01:59:31 -07:00
Jason Gerard DeRose
f7cae9a27c
More docstring cleanup in Env and its methods
2008-12-23 01:28:00 -07:00
Jason Gerard DeRose
16526142f3
Finished Env class docstring; more organizational cleanup in Env and its unit tests
2008-12-23 01:11:03 -07:00
Jason Gerard DeRose
fd43b39145
Moved setting of run-time variables from Env.__init__() to Env._bootstrap()
2008-12-22 23:09:35 -07:00
Jason Gerard DeRose
01cae56e0a
Some more reorganization in Env and added class docstring to Env with lots of examples
2008-12-22 21:02:43 -07:00
Jason Gerard DeRose
6b055b435f
Cleaned up Env.__setattr__() and Env.__setitem__() a bit updated their unit tests
2008-12-22 17:29:11 -07:00
Jason Gerard DeRose
014cca57ad
The Env.__setitem__() implied conversion is now case sensitive; Env.__setitem__() now also accepts None as a value
2008-12-22 16:16:57 -07:00
Jason Gerard DeRose
c070d390e9
Removed Env.__getattr__(); Env no longer accepts callables for values (no more dynamic/lazy values)
2008-12-22 15:51:54 -07:00
Jason Gerard DeRose
5b637f6a18
Removed depreciated code from config.py; removed corresponding unit tests
2008-12-22 15:41:24 -07:00
Jason Gerard DeRose
f82c48f775
Added note in Plugin.set_api() about Plugin.log attribute being depreciated
2008-12-21 19:58:48 -07:00
Jason Gerard DeRose
9d091c98f1
Plugin.__init__() now checks that subclass hasn't defined attributes that conflict with the logger methods; added corresponding unit test
2008-12-21 19:34:32 -07:00
Jason Gerard DeRose
4390523b7f
Improved Plugin.call() method and added its unit test
2008-12-21 17:12:00 -07:00
Andrew Wnuk
b3f95b1741
Merged in Andrew's RA plugin
2008-12-21 14:15:53 -07:00
Jason Gerard DeRose
6fdf5d1e7b
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-12-20 15:00:00 -07:00
Jason Gerard DeRose
9a69adeef0
Added request.create_translation() function and corresponding unit tests
2008-12-18 16:58:48 -07:00
Jason Gerard DeRose
dc54dee622
Started work on per-request gettext setup
2008-12-18 14:01:59 -07:00
Jason Gerard DeRose
46e37ab144
New Param: ported Param.__repr__() and corresponding unit test
2008-12-18 11:21:12 -07:00
Jason Gerard DeRose
4d1681176a
New Param: added unit tests for TypeError cases in DefaultFrom.__init__()
2008-12-18 02:08:41 -07:00
Jason Gerard DeRose
cb2f294cfe
New Param: added missing unit tests for TypeError and ValueError cases in parse_param_spec()
2008-12-18 01:57:39 -07:00
Jason Gerard DeRose
99363131df
New Param: swapped location of DefaultFrom class and parse_param_spec() function
2008-12-18 01:45:13 -07:00
Jason Gerard DeRose
a632c2935a
New Param: removed unneeded conversion to tuple() in Param.convert()
2008-12-18 01:27:03 -07:00
Jason Gerard DeRose
ac335bc7ea
New Param: fixed small bug in Param.convert() and added detailed docstring
2008-12-18 01:18:17 -07:00
Jason Gerard DeRose
bf8154fa50
New Param: fixed a few things in Param.convert() and added corresponding unit tests
2008-12-18 00:02:38 -07:00
Jason Gerard DeRose
8ef6819059
New Param: renamed Param.__normalize_scalar() to Param._normalize_scalar() as it might make sense for subclasses to override
2008-12-17 23:32:58 -07:00
Jason Gerard DeRose
b26894c166
New Param: changed naming convention for class rules to '_rule_%s' as these methods aren't part of the public interface
2008-12-17 23:30:29 -07:00
Jason Gerard DeRose
285fa3d330
Removed depreciated envtest command from f_user.py
2008-12-17 23:18:14 -07:00
Jason Gerard DeRose
4f24f0fd88
Plugin.doc instance attribute is now parsed out using inspect.getdoc(); added Plugin.summary instance attribute, created in Plugin.__init__()
2008-12-17 23:08:52 -07:00
Jason Gerard DeRose
171ed58367
Removed Plugin.doc property and replaced with instance attribute created in Plugin.__init__()
2008-12-17 21:57:58 -07:00
Jason Gerard DeRose
69041c3b1b
Removed Plugin.name property and replaced with instance attribute created in Plugin.__init__()
2008-12-17 21:47:43 -07:00
Jason Gerard DeRose
ba481e7712
New Param: split class_rules and *rules into separate attributes
2008-12-17 18:32:46 -07:00
Jakub Hrozek
360f95341a
Fix show_api command
2008-12-17 17:21:25 -07:00
Jakub Hrozek
f0bbe1b5a0
Add body for the NameSpaceError exception
2008-12-17 17:17:02 -07:00
Jakub Hrozek
67b688c7b2
Jakub Hrozek's patch to make textui.get_tty_width() actually work
2008-12-16 19:00:39 -07:00
Jason Gerard DeRose
e05fd7ab03
New Param: added basic rule logic
2008-12-12 04:48:25 -07:00
Jason Gerard DeRose
66faffdfb0
New Param: cleanup up readability of Param.__init__(); added unit tests for unknown kwargs
2008-12-12 03:38:02 -07:00
Jason Gerard DeRose
5272949bfd
New Param: added all logic for minlength, maxlength, and length in Bytes class (which Str inherits)
2008-12-12 03:13:58 -07:00
Jason Gerard DeRose
079721da2c
New Param: changed kwargs class attribute to a tuple so the subclass interface is simpler
2008-12-11 22:39:50 -07:00
Jason Gerard DeRose
64ae4bc986
Copied DefaultFrom into parameter.py; added docstring to new Param.normalize() method; more work and unit tests in new Param class
2008-12-11 20:30:59 -07:00
Jason Gerard DeRose
5c47b56d14
Finished kwarg validation and extension mechanism in parameter.Param
2008-12-11 18:07:54 -07:00
Rob Crittenden
c025ed6404
Remove some debugging statements
2008-12-11 16:06:26 -05:00
Rob Crittenden
e41fcf19fe
Raise an error on bad principals instead of printing one when changing passwords
...
Fix logic in determining what to do with an incoming principal
2008-12-11 10:31:27 -05:00
Jason Gerard DeRose
22209a0f03
Started roughing out the consolidated type/parameter system in parameters.py; started corresponding unit tests
2008-12-10 21:14:05 -07:00
Rob Crittenden
46bd3974af
Don't pass along the kw dictionary we were passed by XML-RPC.
...
We generally want to just search indexed attributes. We get this list
of attributes from the configuration, use it.
2008-12-10 16:45:07 -05:00
Rob Crittenden
af7b5645af
Convert to new output_for_cli() function
2008-12-10 16:42:45 -05:00
Rob Crittenden
c34d2b8923
Add helper for adding Indirect maps.
...
This creates the map and the key pointing to the map. By default the key
is associated with the auto.master map but it can be overriden.
2008-12-10 14:15:20 -05:00
Rob Crittenden
3583735c60
Set defaults even for optional arguments.
2008-12-10 14:15:20 -05:00
Rob Crittenden
039ee0fd56
Add a function to show all the maps under a given mapname, def. is auto.master
2008-12-10 14:15:20 -05:00
Rob Crittenden
fc8ac69372
Port plugins to use the new output_for_cli() argument list
...
Fix some errors uncovered by the nosetests
2008-12-10 14:15:19 -05:00
Jason Gerard DeRose
7e21ea5ad8
Fixed Warning messages about log dir in unit test
2008-12-08 16:56:24 -07:00
Jason Gerard DeRose
4591057203
Removed depreciated rpc code from ipalib.util; removed corresponding unit tests in test_util
2008-12-08 15:15:50 -07:00
Jason Gerard DeRose
29d680b211
Continued work on xmlrpc.dispatch() unit tests; fixed bug in Command.args_to_kw()
2008-11-25 13:52:40 -07:00
Jason Gerard DeRose
7350ccbffe
Started fleshing out doodles in xmlrpc.execute()
2008-11-25 11:54:51 -07:00
Jason Gerard DeRose
2d458a1233
Stared some RPC-related error cleanup; started work on ipa_server.rcp.xmlrpc plugin
2008-11-24 21:34:01 -07:00
Jason Gerard DeRose
237c16f0fd
Started moving xmlrpc-functions from ipalib.util to ipalib.rpc
2008-11-24 12:51:03 -07:00
Jason Gerard DeRose
2db738e899
Some changes to make reading dubugging output easier
2008-11-24 10:09:30 -07:00
Jason Gerard DeRose
75bdea29be
Added test_util.test_round_trip() test that tests use of xmlrpc_wrap() and xmlrpc_unwrap() with dumps(), loads(); fixed a bug in xmlrpc_unwrap()
2008-11-20 12:41:06 -07:00
Jason Gerard DeRose
cfe4ec2175
Added util.xmlrpc_wrap(), util.xmlrpc_unwrap() functions an corresponding unit tests
2008-11-19 16:11:23 -07:00
Jason Gerard DeRose
2478ccd357
Fixed some unicode encoded/decode issues in textui.prompt_password() and textui.prompt()
2008-11-19 03:31:29 -07:00
Jason Gerard DeRose
500b816681
Added unit test for Param.ispassword() method
2008-11-18 16:29:08 -07:00
Jason Gerard DeRose
4afee15d4b
Calling 'passwd' command now prompts for password using textui.prompt_password()
2008-11-18 13:43:43 -07:00
Jason Gerard DeRose
0a60a6bcc4
Added textui.prompt_password() method; added logic in cli for dealing with 'password' flag in param.flags
2008-11-18 11:30:16 -07:00
Jason Gerard DeRose
75d1918996
Added some experimental textui methods
2008-11-17 20:41:01 -07:00
Jason Gerard DeRose
8474bd01da
Command.get_defaults() now returns param.default if param.type is a Bool
2008-11-17 18:50:30 -07:00
Jason Gerard DeRose
5c16047092
user-lock and user-unlock commands now use textui, which finishes the user plugins
2008-11-17 18:15:40 -07:00
Jason Gerard DeRose
12dc0a0aa9
user-find now works again, uses textui
2008-11-17 16:40:42 -07:00
Jason Gerard DeRose
42bf555a3a
Started updated user_* commands to use textui
2008-11-17 15:27:08 -07:00
Jason Gerard DeRose
e7ec413158
Moved plugins command from ipalib.cli to ipalib.plugins.f_misc
2008-11-16 19:50:17 -07:00
Jason Gerard DeRose
e059591d6b
env command now supports * wildcard for searching
2008-11-14 22:21:36 -07:00
Jason Gerard DeRose
e3fec8f219
Fixed textui.print_keyval for cases when the row is a list instead of a tuple
2008-11-14 22:03:31 -07:00
Jason Gerard DeRose
9de56d43f0
env plugin now subclasses from RemoteOrLocal
2008-11-14 21:58:39 -07:00
Jason Gerard DeRose
36737c2d91
Added frontend.LocalOrRemote command base class for commands like env
2008-11-14 21:29:46 -07:00
Jason Gerard DeRose
3433840692
Fixed doctest in tutorial
2008-11-14 19:48:01 -07:00
Rob Crittenden
c513743e7c
Add autmount-specific location and default entries
2008-11-14 18:05:29 -05:00
Jason Gerard DeRose
f8f4058014
Tutorial: fixed typo in 'How your command should print to stdout' section
2008-11-14 14:53:55 -07:00
Jason Gerard DeRose
caa98476f0
Tutorial: fixed typo in 'First steps: A simple command plugin' section
2008-11-14 14:49:48 -07:00
Jason Gerard DeRose
1abe3abb87
Tutorial: another small change to section on using output_for_cli()
2008-11-14 14:35:52 -07:00
Jason Gerard DeRose
0f1ed3e904
Tutorial: command in output_for_cli() example now also takes an argument
2008-11-14 14:27:09 -07:00
Jason Gerard DeRose
c974451edf
Added print_plain() and print_paragraph() methods to textui plugin and cleaned up the order of its methods
2008-11-14 13:33:42 -07:00
Jason Gerard DeRose
6d1ec6360c
Tutorial: small improvements to section on using output_for_cli()
2008-11-14 12:43:10 -07:00
Jason Gerard DeRose
0313bb7ec0
Tutorial: added section on implementing an output_for_cli() method
2008-11-14 12:19:18 -07:00
Jason Gerard DeRose
44171a0bad
Tutorial: added section on allowed return values from a command's execute() method
2008-11-14 01:25:05 -07:00
Jason Gerard DeRose
82d3de773b
Added textui.prompt() method, which CLI.prompt_interactively() uses
2008-11-13 23:54:34 -07:00
Jason Gerard DeRose
f5594dd489
Started work on cleaning up how exceptions are caught and sys.exit() is called in ipalib.cli.CLI
2008-11-13 23:29:35 -07:00
Jason Gerard DeRose
860d391f3e
Change Param.__repr__() so it returns the exact expression that could create it; added unit test for Param.__repre__()
2008-11-13 22:16:04 -07:00
Jason Gerard DeRose
1f635269e8
Param.__repr__() now uses util.make_repr()
2008-11-13 21:17:33 -07:00
Jason Gerard DeRose
8ad5502354
Added util.make_repr() function; added corresponding unit tests
2008-11-13 21:07:47 -07:00
Jason Gerard DeRose
01a7f1f437
Calling ./ipa with no command now calls Command.help()
2008-11-12 10:15:24 -07:00
Jason Gerard DeRose
f04aaff97c
output_for_cli signature is now output_for_cli(textui, result, *args, **options)
2008-11-12 09:55:11 -07:00
Jason Gerard DeRose
09161e399a
Command.get_default() will now fill-in None for all missing non-required params
2008-11-12 01:47:37 -07:00
Jason Gerard DeRose
014af24731
Changed calling signature of output_for_cli(); started work on 'textui' backend plugin
2008-11-12 00:46:04 -07:00
Jason Gerard DeRose
f3869d7b24
Renamed ipalib.get_standard_api() to create_api()
2008-11-11 15:24:18 -07:00
Jason Gerard DeRose
1894513574
Tutorial: improved clarity of 'How this tutorial is written' section
2008-11-11 10:24:30 -07:00
Jason Gerard DeRose
786c965c12
Tutorial: fixed typo
2008-11-10 21:36:56 -07:00
Jason Gerard DeRose
16b86d559a
Tutorial: added intro section about Python interactive intepreter
2008-11-10 21:33:15 -07:00
Jason Gerard DeRose
2be9f2bba8
More tutorial work: made introduction more concise; moved note on markup to end; added note about Bazaar
2008-11-10 20:08:22 -07:00
Jason Gerard DeRose
9aa14333a4
Added 'conf_dir' env variable, which is directory containing config files
2008-11-10 15:53:10 -07:00
Jason Gerard DeRose
174af50f6d
Fixed typo and made sentance clearer in tutorial
2008-11-07 02:30:19 -07:00
Jason Gerard DeRose
c26a3c8542
Finished fist draft of plugin tutorial in ipalib/__init__.py docstring
2008-11-07 02:26:38 -07:00
Jason Gerard DeRose
5bdf860647
Added Plugin.call() method that calls an external executable via subprocess.call()
2008-11-06 11:57:21 -07:00
Rob Crittenden
e8adb59fd4
Fix some problems uncovered during automation test work
2008-11-04 16:21:10 -05:00
Rob Crittenden
e825bc7ccb
Revive the hostgroup_container and include add/remove hosts in hostgroups plugin
2008-11-04 14:03:43 -05:00
Rob Crittenden
4967002359
Add 'all' option to host-find and pull attributes into a global list
2008-11-04 14:02:42 -05:00
Rob Crittenden
f131480643
Move socket errors from the XML-RPC plugin to the client
2008-11-03 17:38:05 -05:00
Rob Crittenden
d53218a932
Handle exceptions in the command-line instead of in the XMLRPC client plugin
2008-11-03 17:19:29 -05:00
Rob Crittenden
dd9206deb6
Uncomment some logging statements ported over from v1.
2008-11-03 13:14:46 -05:00
Rob Crittenden
f18c84444d
Partially revert back change. Del shouldn't provide default options.
...
It can provide custom ones though, if defined with takes_params() in the class.
2008-11-03 13:14:46 -05:00
Jason Gerard DeRose
242a8183a7
Added custom log formatter util.LogFormatter that makes the human-readable time stamp in UTC
2008-10-31 20:25:33 -06:00
Jason Gerard DeRose
5e5a83e4e8
Renamed API.bootstrap_from_options() to bootstrap_with_global_options()
2008-10-31 19:03:07 -06:00
Jason Gerard DeRose
5269d1396c
Logging formats are now env variables; added log_format_stderr_debug format used when env.debug is True
2008-10-31 18:55:32 -06:00
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
Rob Crittenden
bc5edcf893
Gracefully handle keyboard interrupts (^C)
2008-10-21 14:42:13 -04:00
Jason Gerard DeRose
5e0a0fa745
In second example in NameSpace docstring, renamed 'member' class to 'Member' to make the example clearer
2008-10-21 08:47:08 -06:00
Jason Gerard DeRose
603baf6b10
Fixed typos in tables in docstrings for Attribute and Method
2008-10-21 08:42:52 -06:00
Rob Crittenden
475265ed37
Implement --all option to display all attributes.
...
Still need to strip the dn when not doing all.
2008-10-21 09:32:48 -04:00
Rob Crittenden
6b998ed479
Make boolean options work like standard OptionParser booleans
2008-10-21 09:32:48 -04:00
Jason Gerard DeRose
658ba6dc33
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-20 22:32:10 -06:00
Rob Crittenden
8c54f730c0
Framework for doing password changes
...
Need mechanism to prompt for new password twice and verify they are the same
2008-10-20 22:41:53 -04:00
Jason Gerard DeRose
461f547e6a
Added docstring (with example) to frontend.Attribute class
2008-10-20 20:28:24 -06:00
Jason Gerard DeRose
c818fe1d2d
Added docstring (with examples) to frontend.Method class
2008-10-20 19:57:02 -06:00
Jason Gerard DeRose
ac0a019605
Reworked 'plugins' command to use output_for_cli()
2008-10-20 18:57:03 -06:00
Jason Gerard DeRose
bb978e591b
Fixed bug in DefaultFrom where impleied keys were using entire func_code.co_varnames instead of an approprate slice
2008-10-20 16:45:32 -06:00
Rob Crittenden
d615e4dafb
Port pwpolicy plugin to use b_ldap
...
Add basic output_for_cli() function to user-show
2008-10-20 16:12:19 -04:00
Martin Nagy
18e74643a6
Add comments in config.py and fix Environment.get()
2008-10-20 19:54:30 +02:00
Jason Gerard DeRose
77a378bd61
Some PEP-257 and reStructuredText cleanup in plugable.py
2008-10-18 01:02:31 -06:00
Jason Gerard DeRose
5c5641e8c2
Added some more examples to Param docstrings
2008-10-18 00:16:22 -06:00
Jason Gerard DeRose
675fadc641
Some PEP-257 and reStructuredText fixes in ipalib/aci.py, ipa_server/ipaldap.py
2008-10-17 23:25:50 -06:00
Jason Gerard DeRose
80ccf8b1c6
Reworked load_plugins so it doesn't use imp.load_module() to load from the plugins/ sub-packages, which previously caused them to be loaded multiple times when runnig the doctests
2008-10-17 22:09:50 -06:00
Jason Gerard DeRose
721982870e
Removed generic Command.output_for_cli() method; CLI.run_interactive() now only calls output_for_cli() if it has been implemented
2008-10-17 21:05:03 -06:00
Jason Gerard DeRose
f1eb74e22c
make-test now runs doctests also; fixed several broken doctests
2008-10-17 20:50:34 -06:00
Jason Gerard DeRose
8322138f38
Added new Param.flags attribute (set with flags=foo kwarg)
2008-10-17 19:34:26 -06:00
Jason Gerard DeRose
f7b7fa5553
Cleaned up ipalib package-level docstring, removed broken cross-referce to
2008-10-17 19:11:26 -06:00
Martin Nagy
3a80297b04
Reworking Environment, moved it to config.py
2008-10-17 23:11:51 +02:00
Rob Crittenden
ae8370be44
Port f_service to LDAP backend
...
Add new keyword, 'filter', that can be passed to the search function.
This is globbed onto the filter that is auto-created.
2008-10-17 19:20:23 -04:00
Rob Crittenden
b045f22069
Add mod_python-based XML-RPC server.
...
Use -e kerberos on the command-line to use the mod_python server, otherwise
it defaults to use the simple-server URL.
2008-10-16 23:33:44 -04:00
Rob Crittenden
f777f72de6
Use the search fields from the configuration when searching
...
Generalize the attribute -> objectclass search helper
2008-10-16 15:00:30 -04:00
Rob Crittenden
5748fce84c
Remove references to ipa_server.* and port group plugin to ldap backend
2008-10-16 10:59:03 -04:00
Rob Crittenden
12f1e7fdf7
Remove all references to ipa_server.* from user plugin
2008-10-16 10:32:20 -04:00
Rob Crittenden
1a8317ff74
Port group-add to use LDAP backend
...
Have create and update return the record that was just added/modified
2008-10-15 17:46:01 -04:00
Rob Crittenden
14a33d4619
Fix some remaining merge issues and don't use forward() in user-*lock()
2008-10-15 16:50:46 -04:00
Rob Crittenden
3268b65ae0
Initial implementation of a generic search routine.
2008-10-15 16:12:27 -04:00
Jason Gerard DeRose
af7c0ee595
Resolved conficts in Rob's merge
2008-10-15 12:24:15 -06:00
Rob Crittenden
789a248daa
Port user-mod to use ldap update() method
2008-10-15 09:58:29 -04:00
Rob Crittenden
e7937f2944
Add missing * to *kw to make it pass named arguments instead of positional
2008-10-15 09:57:49 -04:00
Rob Crittenden
f7c044495a
Port user_del to CrudBackend
...
Override output_for_cli() to generate nicer output
2008-10-14 22:48:57 -04:00
Rob Crittenden
cfc8450efd
Port user-show to new CrudBackend framework
2008-10-14 22:22:01 -04:00
Rob Crittenden
1c3f81852c
Move some functionality from user-add to the backend ldap create function
2008-10-14 21:28:06 -04:00
Jason Gerard DeRose
0ebdbaa450
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-14 15:45:57 -06:00
Rob Crittenden
30664cde88
Move some functionality from user-add to the backend ldap create function
2008-10-14 17:46:36 -04:00
Martin Nagy
ff88652a40
Convert string values to boolean when generating environment
2008-10-14 21:22:44 +02:00
Jason Gerard DeRose
9788800aa4
More work on making user-add use Backend.ldap
2008-10-14 02:23:56 -06:00
Jason Gerard DeRose
1480224724
Started roughing out user_add() using api.Backend.ldap; added Command.output_for_cli() to take care of formatting print output
2008-10-14 01:45:30 -06:00
Jason Gerard DeRose
20fa90cfb6
Some small cleanup on Environment, filled in docstrings
2008-10-14 00:39:23 -06:00
Jason Gerard DeRose
149912d0e7
Added ldap.get_user_dn() method
2008-10-14 00:38:17 -06:00
Jason Gerard DeRose
446037fd60
Added Object.get_dn() method; added corresponding unit tests
2008-10-13 23:26:24 -06:00
Jason Gerard DeRose
22669f1fc2
CLI.run_interactive() now uses Param.cli_name instead of Param.name for prompts and errors
2008-10-13 22:00:18 -06:00
Jason Gerard DeRose
2357360e2a
Command.params are now sorted the same way as Object.params (make user-add prompt for first, last before login)
2008-10-13 21:53:03 -06:00
Jason Gerard DeRose
b6dcd183a6
CLI now maps Param.cli_name to Param.name
2008-10-13 20:31:10 -06:00
Jason Gerard DeRose
8674086b85
Param now takes cli_name kwarg that sets Param.cli_name attribute
2008-10-13 17:24:23 -06:00
Jason Gerard DeRose
367143adf3
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-13 15:39:14 -06:00
Rob Crittenden
6d2705b363
Implement user lock and unlock
2008-10-13 17:17:00 -04:00
Rob Crittenden
19465318ce
Fix up a comment
2008-10-13 15:17:31 -04:00
Rob Crittenden
fc9f057792
Initial implementation of password policy
2008-10-13 15:01:08 -04:00
Rob Crittenden
0ebaad6462
Do a more specific search for the user
2008-10-13 14:59:48 -04:00
Jason Gerard DeRose
225e2b0c93
Added CrudBackend abstract class defining generic CRUD API
2008-10-13 09:50:29 -06:00
Rob Crittenden
39ad5ccffa
Stub out delegations
...
Add ACI class
2008-10-11 00:49:05 -04:00
Rob Crittenden
250734aea5
Fix syntax error
2008-10-10 14:38:09 -04:00
Rob Crittenden
75bad44c27
Enable the verbose flag to pass thru xmlrpc
2008-10-10 05:23:00 -04:00
Rob Crittenden
42cdca3e83
Use new options handler
2008-10-10 03:40:52 -04:00
Rob Crittenden
dbe49423ab
Start service principal plugin
2008-10-10 03:36:57 -04:00
Rob Crittenden
5d2a99925d
Implement group-mod
2008-10-10 03:36:57 -04:00
Rob Crittenden
8a97b3e8a8
Implement group-del
2008-10-10 03:36:57 -04:00
Rob Crittenden
5c07d97865
Slight change to how exceptions are handled
2008-10-10 03:36:57 -04:00
Rob Crittenden
83bb41faeb
Mechanism to convert from xmlrpclib.Fault to an IPAError exception
...
Include slew of new exceptions, not all of which are used yet
2008-10-10 03:36:56 -04:00
Rob Crittenden
672c07566d
Implement user-del
...
rename is_user_unique() to user_exists()
2008-10-10 03:36:56 -04:00
Jason Gerard DeRose
87390665f6
crud.Add.get_args() and get_options() now yield static values in takes_args, takes_options after the automagic ones
2008-10-09 11:33:35 -06:00
Jason Gerard DeRose
887016e69d
Base Command.execute() method now raises NotImplementedError; updated unit tests
2008-10-08 18:18:13 -06:00
Jason Gerard DeRose
b7fe92f44f
Reorganized Command methods so it is easier to understand and added lots of docstrings
2008-10-08 18:01:22 -06:00
Jason Gerard DeRose
fec6fc2e8c
Fixed example in raise_TypeError() docstring (thanks, mnagy)
2008-10-07 22:35:45 -06:00
Jason Gerard DeRose
7721443a62
Moved ipalib/tests/ into tests/test_ipalib/
2008-10-07 20:41:15 -06:00
Jason Gerard DeRose
b2b5b904bc
Made package-level docstrings more consistent so they read better in generated documentation
2008-10-07 20:07:16 -06:00
Jason Gerard DeRose
c747c12fb2
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-07 17:00:36 -06:00
Martin Nagy
732785b997
Add tests for config.py
2008-10-08 00:07:44 +02:00
Martin Nagy
4a1c4a3fe3
Implement argument parsing for the CLI
2008-10-08 00:07:44 +02:00
Martin Nagy
4a68c719f0
Implement config file reading
2008-10-08 00:07:44 +02:00
Rob Crittenden
db9d8dd3e0
Implement a real user_find and move existing user_find to user_show
2008-10-07 06:15:34 -04:00
Rob Crittenden
e012e860b4
Implement user-mod
2008-10-07 04:31:22 -04:00
Rob Crittenden
69bc5ad77a
Add some more supporting functions
...
Do a little bit more error handling and checking
2008-10-07 02:10:15 -04:00
Rob Crittenden
cb795fa14b
Add group plugin, routine to get cn=ipaconfig
2008-10-04 05:17:11 -04:00
Rob Crittenden
7e4b0a072e
Implement user-find and user-add backend functions so they work over XML-RPC
...
Change port to 8880 to not conflict with a running IPA v1 instance
Encode incoming values from unicode as utf-8 before sending to LDAP
2008-10-04 01:50:59 -04:00
Jason Gerard DeRose
3ffbaac64c
Backend.xmlrpc and simple-server.py now use the xmlrpc_marshal() and xmlrpc_unmarshal() functions respectively
2008-10-02 19:42:06 -06:00
Jason Gerard DeRose
d84e27f0d4
Added ipalib/util.py with xmlrpc_marshal() and xmlrpc_unmarshal() functions; added corresponding unit tests
2008-10-02 19:09:13 -06:00
Jason Gerard DeRose
ed3a5855f3
-m
2008-10-02 17:51:50 -06:00
Jason Gerard DeRose
993b9f4f63
Command.get_default() now only returns a defaults for required values
2008-10-02 17:46:48 -06:00
Martin Nagy
149429f305
Environment is now subclassed from object, rather then dict. Added tests for Environment and config.py
2008-10-02 17:22:41 -06:00
Jason Gerard DeRose
6000b6b5c6
Implemented basic Command.forward() method
2008-10-02 17:02:24 -06:00
Jason Gerard DeRose
0e137110c7
Started on skeleton for xmlrcp client/server
2008-10-02 16:12:19 -06:00
Jason Gerard DeRose
2507b7c674
Clarified docstrings in */plugins/__init__.py; renamed ipa_server/plugins/ipa_ldap.py to b_ldap.py
2008-10-01 16:17:02 -06:00
Jason Gerard DeRose
c846c7d91f
Removed the everything except the envtest command and the user related plugins from f_user.py
2008-10-01 16:10:41 -06:00
Jason Gerard DeRose
e963be1dda
Renamed plugins/example.py to plugins/f_user.py
2008-10-01 15:56:04 -06:00