Jason Gerard DeRose
3b9df638ce
151: Rearanged tests in test_plugable.py to match definition order in plugable.py
2008-08-14 05:54:15 +00:00
Jason Gerard DeRose
ba8d32a110
150: NameSpace.__iter__() now iterates through the names, not the members; added NameSpace.__call__() method which iterates through the members; NameSpace no longer requires members to be Proxy instances; updated unit tests and affected code; cleaned up NameSpace docstrings and switch to epydoc param docstrings
2008-08-14 05:46:20 +00:00
Jason Gerard DeRose
d95133b66f
149: CLI.run() now does an arg.decode('utf-8') for args in sys.argv so that non-ascii characters work
2008-08-14 01:09:11 +00:00
Simo Sorce
cee4b2cc1e
Fix usage of mozldap libraries,
...
thanks to W. Michael Petullo <mike@flyn.org > for finding the problem.
2008-08-13 15:57:43 -04:00
Simo Sorce
44689b93c9
Remove unused stuff.
2008-08-13 15:57:35 -04:00
Simo Sorce
afad6d96ae
apparently the "configure" target is never used
2008-08-13 15:57:28 -04:00
Simo Sorce
f5177e6b84
Install the ca.crt file early on so that we can always enforce SSL
...
protected connections to other LDAP servers
Fix error reporting on replica creation.
2008-08-13 15:36:57 -04:00
Jason Gerard DeRose
fe7440735d
148: Added some basic out put for cli.help.__call__() method
2008-08-13 07:20:10 +00:00
Jason Gerard DeRose
024345e1f0
147: Changed cmd calling signature to __call__(self, *args, **kw)
2008-08-13 06:41:39 +00:00
Jason Gerard DeRose
d422ef1134
146: Removed CLI.parse_kw() method and corresponding unit tests
2008-08-13 06:40:25 +00:00
Jason Gerard DeRose
337c9964d4
145: Added new CLI.parse() method; added corresponding unit tests
2008-08-13 06:25:42 +00:00
Jason Gerard DeRose
6924d5e25e
144: Made properties in example plugins all required
2008-08-13 05:25:00 +00:00
Jason Gerard DeRose
b4ad681f41
143: Added errors.RequirementError exception; cmd.validate() now raises RequirementError if a required option is missing
2008-08-13 05:14:12 +00:00
Jason Gerard DeRose
47fed6c4c2
142: python2.4: Fixed custom exceptions in errors.py as exceptions in Python2.4 are not new-style classes
2008-08-13 04:11:26 +00:00
Jason Gerard DeRose
c9072183a6
141: Fixed unit tests for CLI.finalize()
2008-08-13 04:10:23 +00:00
Jason Gerard DeRose
14cdb57b50
140: Added a skeleton help command in cli.py
2008-08-13 04:02:39 +00:00
Jason Gerard DeRose
b9fa9dc240
139: Removed dummy gettext _() func from cli.py; improved CLI.print_commands()
2008-08-13 03:15:00 +00:00
Jason Gerard DeRose
0fed74b56d
138: Added ProxyTarget.doc property; CLI.print_commands() now uses cmd.doc instead of cmd.get_doc()
2008-08-13 02:34:36 +00:00
Jason Gerard DeRose
69f7132365
137: Removed depreciated PublicAPI.max_cmd_len property
2008-08-13 02:12:08 +00:00
Jason Gerard DeRose
05cefc2af6
136: CLI.print_commands() now prints cmd.get_doc() as well
2008-08-13 02:10:09 +00:00
Jason Gerard DeRose
76df64954d
135: Added unit test for CLI dictoinary interface
2008-08-13 02:00:31 +00:00
Jason Gerard DeRose
0b5efa2a62
134: Added CLI.mcl (Max Command Length) property; added corresponding unit tests
2008-08-13 01:52:17 +00:00
Jason Gerard DeRose
c0b5069fa0
133: Renamed run.py to api.py
2008-08-13 01:26:30 +00:00
Jason Gerard DeRose
66bbe8bf2f
132: Removed test util.py file
2008-08-13 01:20:01 +00:00
Jason Gerard DeRose
12d662c1b7
131: Renamed Plugins/ to plugins/
2008-08-13 01:18:00 +00:00
Jason Gerard DeRose
13a3de7442
130: Renamed startup.py to load_plugins.py
2008-08-13 01:03:32 +00:00
Jason Gerard DeRose
8212be5c4b
129: Deleted the test mod1.py, mod2.py files
2008-08-13 00:58:49 +00:00
Jason Gerard DeRose
e9b715f2c4
128: Fixed startup.py, example.py to work with new plugin locations
2008-08-13 00:56:46 +00:00
Jason Gerard DeRose
ba6cb2bf92
127: Removed depreciated identity.py
2008-08-13 00:47:54 +00:00
Jason Gerard DeRose
f8d9a62c29
126: Renamed plugins.py to Plugins/example.py
2008-08-13 00:43:23 +00:00
Jason Gerard DeRose
d5b0bc1b54
125: Added some generic auto-import stuff
2008-08-13 00:40:13 +00:00
Jason Gerard DeRose
70cbe10624
124: Fixed case in example in ReadOnly class docstring
2008-08-12 23:45:36 +00:00
Jason Gerard DeRose
7db3aae1b2
123: API.finalize() now raises AssetionError if called more than once; added corresponding unit tests
2008-08-12 23:40:36 +00:00
Jason Gerard DeRose
64054a673c
122: The dictorary interface to CLI now has keys build using to_cli(), rather than converting at each call
2008-08-12 23:33:02 +00:00
Jason Gerard DeRose
b72cfa5dcc
121: Renamed API.__call__() method to API.finalize()
2008-08-12 22:52:37 +00:00
Jason Gerard DeRose
f767543fe7
120: Moved ProxyTarget below Proxy to emphasize relationship with Plugin; added docstrings for ProxyTarget.implements() and implemented_by() classmethods; fixed typo in Plugin.finalize() docstring
2008-08-12 22:40:06 +00:00
Jason Gerard DeRose
8640523632
119: Added ProxyTarget.implemented_by() classmethod; added corresponding unit tests
2008-08-12 21:45:54 +00:00
Jason Gerard DeRose
9ac8a8b499
118: Added user_login.default() method as another example; print_call() now prints sorted by the keys in ascending order
2008-08-12 19:22:48 +00:00
Simo Sorce
0d6b6fa084
Implement password operation checks and key material generation for the
...
ldap add and modify operation performed on the userPassword attribute.
Add helper functions to reduce code duplication.
Do not enforce encrypted connections on ldap add/ldap mod for compatibility
reasons. (We cannot enforce people not to send the password in the clear
anyway, we can only refuse to accept it at the most which does not gain
you much if someone then re-send you the same password previously exposed)
2008-08-12 14:48:41 -04:00
Jason Gerard DeRose
4acb7567c4
117: Improved readability of cmd.print_call()
2008-08-12 18:02:49 +00:00
Jason Gerard DeRose
7bbeb2db69
116: Added a user_initials property plugin to demostrate default() method
2008-08-12 17:42:21 +00:00
Jason Gerard DeRose
99d7638ff5
115: CLI now parses out kw args; cmd.__call__() now uses print_n_call() to give feedback on the calling
2008-08-12 16:49:23 +00:00
Jason Gerard DeRose
bc4b26ffca
114: Fixed cmd.__get_options(); more work on CLI
2008-08-12 02:03:47 +00:00
Simo Sorce
9648da8f5f
Fix versioning for configure.ac and ipa-python/setup.py
...
Fix make maintainer-clean
Also make RPM naming consistent by using a temp RELEASE file.
This one helps when testing builds using rpms.
Just 'echo X > RELEASE' to build a new rpms (X, X+1, X+2 ...)
Version 1.1.0 was released some times ago, bump up to 1.1.1
2008-08-11 18:31:05 -04:00
Simo Sorce
0368d4329a
Used the encrypt_file and decrypt_file utility functions to encrypt replica
...
information. This way we do not risk to leave around sensitive data.
Set the destination host in the replica file too and do checks against
in ipa-replica-install
2008-08-11 18:30:57 -04:00
Simo Sorce
5cbc453d89
Add encrypt_file and decrypt_file utility functions.
...
We will use them to encrypt the replica file so that we can
transport it over more safely.
It contains sensitive data, by encrypting it we assure that
even if a distracted admin leaves it around it cannot be accessed
without knowing the access passphrase (usually the Directory Manager
password)
Along the way fix also ipautil.run which was buggy and not passing
in correctly stdin.
Add dependency for gnupg in spec file
2008-08-11 18:30:50 -04:00
Simo Sorce
599fe1a0f5
Use larger set from which to choose chars for random passwords.
...
Use SystemRandom() instead of Random() so that the randomicity
is non-deterministic.
2008-08-11 18:30:40 -04:00
Jason Gerard DeRose
902614a762
113: Fixed regex used in attr.__init__(); added unit tests for mthd.get_options()
2008-08-11 22:12:23 +00:00
Jason Gerard DeRose
afdbc42b2e
112: More work on cli.py
2008-08-11 21:38:30 +00:00
Jason Gerard DeRose
c1a125256b
111: Minor changes to mthd and prop classes; updated mthd and prop unit tests
2008-08-11 21:14:07 +00:00