Commit Graph
5502 Commits
Author SHA1 Message Date
Rob Crittenden 88960f1597 Sort updates by DN length and by default process all files in the updates dir.
The updates directory is currently hardcoded to /usr/share/ipa/updates.

All of the files are read into memory and then sorted by the length of the DN.
This is so we can be sure that parent entries are added before children.

Also add a man page.
2008-09-12 20:07:48 -04:00
Rob Crittenden 1eec34393b Update files for the schema compatibility plugin and RFC4876 profiles
Also handle syntax errors a bit more gracefully and allow the updater to
work on more than one file at a time.

Adjust to new config.py and use a custom exception class for syntax errors.

Also fix a error in parsing the separate files

Include slapi-nis in Requires

Includes work provided by Martin Nagy

460055
2008-09-12 20:07:41 -04:00
Rob Crittenden ec57bc3e44 Tool for doing configuration updates over LDAP
This tool takes as input a file which contains basically an LDIF, prefixed
with a command: default, add, remove or only. These define the operations
to perform such as adding new entries, adding new sub-entries to an existing
entry, adding or modifying attributes in a record.

If an index entry is modified a task is created to re-create the index.

Schema may be added using this tool.

454031
2008-09-12 20:06:46 -04:00
Rob Crittenden d33b7fc839 The True/False logic was reversed, so "no" meant remove the existing instance 2008-09-12 19:38:48 -04:00
Rob Crittenden 567bab9850 Fix error where usage wasn't being updated properly 2008-09-12 18:14:22 -04:00
Jason Gerard DeRose 0e60036bb4 290: Applyied Rob's patch 2008-09-12 16:36:04 +00:00
Martin Nagy b5ee09c097 Fix spelling. 2008-09-12 00:03:50 +02:00
Martin Nagy f33c57e6f8 Fix the -G option of ipa-adduser. Don't add the user if one of the groups doesn't exist. Fixes: 459801 2008-09-11 23:39:28 +02:00
Martin Nagy fa019e932d Ignore GSS exception when iterating through server list. Fixes: 459864 2008-09-11 23:38:41 +02:00
Martin Nagy a9e8a72059 Try servers from ipa.conf even if we specified them on the command line. 2008-09-11 23:34:01 +02:00
Martin Nagy 7206a6d43c More strict input checks in ipa-pwpolicy and return non-zero when unsuccessful. Fixes: 461213, 461325, 461332, 461543 2008-09-11 23:34:01 +02:00
Martin Nagy 885103c321 Rework config.py and change cli tools. Maintain order of IPA servers from command line, config and DNS. Parse options before detecting IPA configuration. Don't ignore rest of the options if one is missing in ipa.conf. Drop the --usage options, we will rely on --help. Fixes: 458869, 459070, 458980, 459234 2008-09-11 23:34:01 +02:00
Jason Gerard DeRose c1ef2d05e8 289: Command.convert(), normalize(), and validate() now use self.params instead of self.options 2008-09-11 00:04:49 +00:00
Jason Gerard DeRose 23e251a605 288: CLI now uses Command.group_args() to check for required arguments 2008-09-10 23:33:36 +00:00
Jason Gerard DeRose c17c5efb4e 287: Renamed Command.args_to_kw() to Command.group_args(), which now returns a tuple instead of dict; updated unit tests 2008-09-10 23:18:29 +00:00
Jason Gerard DeRose 7c40226500 286: Finished Command.args_to_kw(); finished unit tests for args_to_kw() 2008-09-10 21:34:29 +00:00
Jason Gerard DeRose 100492d98a 285: Started work on Command.args_to_kw() method; added unit test for functionality so far in args_to_kw() 2008-09-10 20:05:45 +00:00
Simo Sorce 57669ba432 Add script to simplify operations to fix CVE 2008 3274
Import all of change master key directly into the help fix,
allows for better control
2008-09-10 15:07:42 -04:00
Simo Sorce 8e7c98eb7f CVE 2008 3274 related fixes 2008-09-10 15:07:33 -04:00
Simo Sorce 89ed5a0277 Add a tool to change the kerberos Master Key in case an admin wants to.
This tool will dump and re-encrypt all keys, then reload and change
the master key in LDAP and in the stash file.
It will also restart the Directory Server and the the KDC
2008-09-10 15:07:26 -04:00
Simo Sorce 86afc680cd Retrieve the kerberos configuration every time a new, it will be a bit slower
but will allow for changing configurations without having to restart DS.
Password operations are slow and rare enough this is an acceptable compromise.
2008-09-10 15:07:17 -04:00
Jason Gerard DeRose 687f603562 284: Removed depreciated Command.Option property; removed corresponding unit tests; updated affected code 2008-09-10 15:31:34 +00:00
Jason Gerard DeRose bde377a2da 283: Renamed generate_argument() to generate_option() 2008-09-10 15:16:17 +00:00
Jason Gerard DeRose 7de450363b 282: Added Command.__check_options() method; added unit tests for Command.options instance attribute 2008-09-10 15:14:26 +00:00
Jason Gerard DeRose 2d85a6daa3 281: Completed unit tests for Command.args 2008-09-10 14:54:01 +00:00
Jason Gerard DeRose cbfacf7c2e 280: Renamed Options.options to takes_options; updated related unit tests 2008-09-10 14:46:20 +00:00
Jason Gerard DeRose 8062075f84 279: Fixed cli and public.Method re new Command.args attribute 2008-09-10 02:02:26 +00:00
Jason Gerard DeRose 0d3be2f421 278: Completed unit tests for Command.args instance attribute 2008-09-10 01:54:48 +00:00
Jason Gerard DeRose 51b6395958 277: Added public.generate_argument() function; added corresponding unit tests 2008-09-10 01:03:59 +00:00
Jason Gerard DeRose 0215bc8009 276: Option.__init__(): doc is now 3rd kwarg instead of 2nd positional arg; updated unit tests and other affected code 2008-09-10 00:21:40 +00:00
Jason Gerard DeRose 349fc660e7 275: Added Command.__check_args(); added basic unit tests for Command.args instance attribute 2008-09-09 23:46:16 +00:00
Jason Gerard DeRose 0453aa465f 274: NameSpace.__init__() now takes sort=True keyword arument to allow for non-sorted NameSpaces; updated and improved NameSpace unit tests 2008-09-09 23:10:49 +00:00
Jason Gerard DeRose 97b01a4891 273: Added Command.get_args() method; added corresponding unit tests 2008-09-09 21:18:44 +00:00
Jason Gerard DeRose 21a0bab79e 272: Add a quick positional arg experiment 2008-09-09 01:41:15 +00:00
Jason Gerard DeRose 13f030d91e 271: Improved __repr__ methods for better output from the show-plugins command 2008-09-08 21:51:05 +00:00
Jason Gerard DeRose cb9c442708 270: show-plugins now only shows namespaces with at least one member 2008-09-08 21:44:53 +00:00
Jason Gerard DeRose 03fd184e8e 269: Renamed print_api command to show_plugins 2008-09-08 21:42:48 +00:00
Jason Gerard DeRose 7d3d607b55 268: Fixed broken unit test for Plugin.__repr__() 2008-09-08 21:40:46 +00:00
Jason Gerard DeRose e74713a076 267: Finished builtin CLI api command 2008-09-08 21:37:02 +00:00
Jason Gerard DeRose 641403278e 266: Started work on new cli.print_api Command 2008-09-04 18:35:04 +00:00
Jason Gerard DeRose 22d9b8c078 265: Fixed small formatting error with use of CLI.print_commands() 2008-09-04 09:27:28 +00:00
Jason Gerard DeRose 553b0c596d 264: Cleaned up docstrings on all example plugins 2008-09-04 09:22:18 +00:00
Jason Gerard DeRose 6b9ba734e1 263: CLI.print_commands() now seperates Command subclasses from Application subclasses 2008-09-04 09:04:35 +00:00
Jason Gerard DeRose 86035c8655 262: Fixed crossreference in public.Application docstring 2008-09-04 08:39:27 +00:00
Jason Gerard DeRose 6f95249d52 261: More work on demo using Option.__call__() for interactive input 2008-09-04 08:33:41 +00:00
Jason Gerard DeRose 915486dadc 260: Option.normalize() now does same conversion for multivalue as Option.convert() does 2008-09-04 08:16:12 +00:00
Jason Gerard DeRose c7cd694d4f 259: Option.__normalize_scalar() now raises a TypeError if not isinstance(value, basestring); updated corresponding unit tests 2008-09-04 07:47:07 +00:00
Jason Gerard DeRose 71d36aa6a0 258: Added some experimental features for interactively prompting for values 2008-09-04 07:18:26 +00:00
Jason Gerard DeRose 01b73e6910 257: Improved help command, now parsing options with optparse 2008-09-04 06:33:57 +00:00
Jason Gerard DeRose b16deabdff 256: Fixed cli.help plugin so it looks up commands in CLI instead of API 2008-09-04 05:18:14 +00:00