Pavel Zuna
3620135ec9
Use ldap2 instead of legacy LDAP code from v1 in installer scripts.
2010-04-19 11:27:10 -04:00
Pavel Zuna
34ee09e243
Fix ipa-dns-install. It was failing when DNS was reinstalling.
2010-04-19 11:38:40 +02:00
Pavel Zuna
bc5b5a82d9
Fix DNS plugin: proper output definitions, --all, dns-add-rr overwritting
...
The DNS plugin is getting old, tired and already looking forward to his
pension in the Carribean. It will be replaced soon by a younger, faster,
safer, shorter (in terms of code) and more maintainable version.
Until that happens, here's some medicine for the old guy:
- proper output definitions: the DNS plugin was created before we
had the has_output attribute in place
- --all: this is related to the output definitions as
Command.get_options() adds the --all and --raw options automatically
if has_output contains entries
- dns-add-rr overwritting: missing .lower() caused records to be
overwritten everytime a new one was added from the CLI
2010-04-19 11:38:19 +02:00
Pavel Zuna
18349dda0f
Enable LDAPObject subclasses to disable DN normalization in their methods.
2010-04-16 14:24:20 -04:00
Pavel Zuna
671bb9c978
Add interface for baseldap plugins to register additional callbacks.
2010-04-16 13:43:05 -04:00
Pavel Zuna
e143c22d69
Fix output of env plugin. It displayed more than it should.
2010-04-16 11:06:54 -04:00
Pavel Zuna
2736177938
Add ipa man page.
2010-04-07 08:59:04 -04:00
Pavel Zuna
9dd082eb33
Fix http(s)_request in dogtag. Was blowing up because of unicode strings.
2010-03-30 15:11:56 -04:00
Pavel Zuna
c7a35f95c5
Fix output for commands that do not return entries.
...
I also changed the default value of the print_all argument in
textui.print_entry from False to True. It think it makes more sense this
way, because:
1) if order is None, it will still print something
2) if order is not None, it will print what's in order first and then the
rest
3) commands that care about the print_all argument have to set it in any
case, those that don't care usually want to print everything
2010-03-26 16:56:47 -04:00
Pavel Zuna
c9831d1cc6
Use ldap2.make_*dn* methods in pwpolicy plugin.
...
Fixes #572423 .
2010-03-22 11:49:20 -04:00
Pavel Zuna
43ab2c483d
Add INTERNAL flag to frontend plugins. If set, the plugin won't show in UI.
2010-03-22 10:41:36 -04:00
Pavel Zuna
b0f302bd99
Provide more detailed NotFound error messages from baseldap classes.
2010-03-09 16:52:47 -05:00
Pavel Zuna
41312ca166
Code cleanup: remove unused stuff, take 1.
2010-03-01 16:53:30 -05:00
Pavel Zuna
aa2c124e7d
Make the --all option work in Add/Remove Member commands.
2010-02-24 14:56:34 -05:00
Pavel Zuna
6833a5e2b4
Complete netgroup attributes.
2010-02-23 17:54:54 -05:00
Pavel Zuna
5db8ebb48e
Replace incorrect use of str.index with str.find in host plugin.
2010-02-23 17:54:52 -05:00
Pavel Zuna
899f318359
Fix bug where parameter cloning didn't clone validation rules.
2010-02-23 17:54:49 -05:00
Pavel Zuna
03f16810ee
Use unicode instead of str for environmental variables in Env.
2010-02-19 14:38:58 -05:00
Pavel Zuna
93a09b2dd1
Make error message in migration plugin unicode.
2010-02-17 12:47:36 -05:00
Pavel Zuna
c0c86232f4
Convert password policy integer values to unicode instead of str.
2010-02-17 10:56:11 -05:00
Pavel Zuna
3785ec49ab
Convert integer and boolean values to unicode, don't leave them as str.
2010-02-17 10:56:08 -05:00
Pavel Zuna
03967f62e9
Auto-generate --all and --raw for commands, that return entries.
2010-02-17 10:56:06 -05:00
Pavel Zuna
b31f259b1a
Add default automount location. Auto-create auto.direct in new locations.
2010-02-12 10:46:20 -05:00
Pavel Zuna
00b2f240f7
Fix condition bug in ipa-pwd-extop plugin. Variable used uninitialized.
2010-02-04 11:09:59 -05:00
Pavel Zuna
c092f3780d
Fix schema loading in the ldap backend.
2010-01-27 16:24:20 -05:00
Pavel Zuna
c15c1eee72
Add DS migration plugin and password migration page.
2010-01-20 16:54:17 -05:00
Pavel Zuna
41a7a8d3d4
Add --enable-migration option in config plugin.
2010-01-20 16:54:02 -05:00
Pavel Zuna
ba0e7b9c68
Add BIND pre-op for DS->IPA password migration to ipa-pwd-extop DS plugin.
2010-01-20 16:53:51 -05:00
root
fd5742cc79
Allow adding entries with pre-hashed passwords, but don't generate keys for them.
...
Fix bug #528922 .
2010-01-20 16:53:41 -05:00
Pavel Zuna
cfe47a3553
Temporary fix for name collision of textui.print_entry.
...
Somehow there's two of them... rename old one to print_entry1.
2010-01-20 16:53:28 -05:00
Pavel Zuna
54631247a7
Make DNS plugin support output validation and thus make it work again.
2010-01-20 19:29:48 +01:00
Pavel Zuna
f262a132be
Use 'l' instead of 'localityname' in host plugin.
...
It seems that 'localityname' and 'locality' aliases were dropped in
newer versions of DS.
2010-01-14 16:02:16 -05:00
Pavel Zuna
ce87e04af0
Make host objects aware of their membership and that l==localityName.
2010-01-14 16:01:22 -05:00
Pavel Zuna
2e22963a2d
Add default values for krb ticket policy attributes during installation.
2010-01-13 13:43:51 -05:00
Pavel Zuna
a11436113b
Add Kerberos Ticket Policy management plugin.
2010-01-13 13:40:44 -05:00
Pavel Zuna
0023ffb881
Fix backend.Executioner unit test.
...
Before the patch that allows to create unshared instances of Connectible
objects, all Connection object were deleted at once in destroy_context().
It made sense at the time, because there was always at most one Connection
per Connectible subclass and Connectible.disconnect() was called only
internally by the Executioner class. Now that we can make arbitrary
connections, it makes more sense to delete the Connection object when
Connectible.disconnect() is called.
2010-01-13 13:39:50 -05:00
Pavel Zuna
e1c1f077c0
Improve modlist generation in ldap2. Some code cleanup as bonus.
...
ldap2._generate_modlist now uses more sophisticated means to decide
when to use MOD_ADD+MOD_DELETE instead of MOD_REPLACE.
MOD_REPLACE is always used for single value attributes and never
for multi value.
2010-01-11 12:27:04 -07:00
Pavel Zuna
314fe71787
Allow creation of new connections by unshared instances of backend.Connectible.
2010-01-11 13:51:05 -05:00
Pavel Zuna
74a5384169
Add --all to LDAPCreate and make LDAP commands always display default attributes.
2010-01-11 13:28:05 -05:00
Pavel Zuna
f3bd9bfb59
Remove ldap2.convert_attr_synonyms. Turns out python-ldap can replace it.
2009-12-02 13:04:00 +01:00
Pavel Zuna
2f8129a17c
Add ipaUserGroup objectClass to default groups where missing.
2009-12-01 10:41:27 -05:00
Pavel Zuna
34deb3fef3
Rename GeneralizedTime to AccessTime.
2009-12-01 10:38:56 -05:00
Pavel Zuna
40368f0d01
Add {user,host,sourcehost}Category to HBAC and make accessTime multivalue.
2009-12-01 10:38:49 -05:00
Pavel Zuna
29aa8fb05d
Fix boolean attributes in DNS plugin.
...
Sometimes they worked fine and sometimes DS rejected them
as invalid.
2009-11-30 13:39:46 -05:00
Pavel Zuna
973f36c496
Fix Bool parameter type. It was impossible to set it to FALSE.
2009-11-30 13:38:23 -05:00
Pavel Zuna
ce72b59f55
Fix takes_options in automount plugin.
2009-11-30 13:28:22 -05:00
Pavel Zuna
582228714e
Print only one line of docstrings in command listings.
...
Full docstring is shown on `ipa help COMMAND`.
2009-11-30 13:25:19 -05:00
Pavel Zuna
2bbdf7be0d
Handle ipaEnabledFlag as bool (TRUE/FALSE) instead of string (enabled/disabled).
2009-11-18 14:40:53 -05:00
Pavel Zuna
e1e2e020a7
Remove 'ipaObject' objectClass from rolegroups and taskgroups.
2009-11-18 14:37:15 -05:00
Pavel Zuna
f5d63dbecc
Filter all NULL values in ldap2.add_entry. python-ldap doesn't like'em.
...
Previously we only filtered None values, but it turns out that's not enough.
2009-11-18 14:34:16 -05:00
Pavel Zuna
63c6c12d69
Use File parameter for CSR in cert_request command plugin.
2009-11-06 16:05:36 -07:00
Pavel Zuna
566a3cb972
Add 'File' parameter type.
...
Accepts filenames and loads file contents as parameter value.
2009-11-06 16:05:31 -07:00
Pavel Zuna
192cccea97
Remove ipalib/plugins/basegroup.py. It's become obsolete.
2009-10-23 09:38:00 -04:00
Pavel Zuna
04c5b5ae42
Fix bug in print_attribute.
...
When the attribute had no values an exception was generated while
trying to word-wrap it.
2009-10-23 09:37:23 -04:00
Pavel Zuna
6b38de9454
Display membership attributes (member, memberOf) by default in show/find.
2009-10-21 10:35:03 -04:00
Pavel Zuna
0373166002
Fix bug in HBAC and netgroup plugin get_primary_key_from_dn methods.
2009-10-08 10:11:29 -04:00
Pavel Zuna
0dd92f10cc
Fix bug in group plugin. Was using wrong variable for attributes.
...
Fix bug #527537 .
2009-10-08 10:10:01 -04:00
Pavel Zuna
5be9721292
Fix unit tests for plugins using baseldap classes.
2009-10-07 10:00:32 -04:00
Pavel Zuna
cbbfd16e9f
Make the taskgroup plugin use baseldap classes.
2009-10-07 10:00:04 -04:00
Pavel Zuna
8f29e416be
Make the rolegroup plugin use baseldap classes.
2009-10-05 16:02:26 -04:00
Pavel Zuna
26b05cd364
Make the hostgroup plugin use baseldap classes.
2009-10-05 16:02:02 -04:00
Pavel Zuna
9b77455cbb
Make the netgroup plugin use baseldap classes.
2009-10-05 16:01:02 -04:00
Pavel Zuna
fbd1ff40f9
Make the user plugin use baseldap classes.
2009-10-05 15:59:23 -04:00
Pavel Zuna
be82f941d0
Make the service plugin use baseldap classes.
2009-10-05 15:59:16 -04:00
Pavel Zuna
e01b1b8f99
Fix unit tests for plugins using baseldap classes.
2009-10-05 15:59:09 -04:00
Pavel Zuna
1e48662b9b
Make the group plugin use baseldap classes.
2009-10-05 15:58:54 -04:00
Pavel Zuna
5af07b693a
Make the config plugin use baseldap classes.
2009-10-05 15:58:40 -04:00
Pavel Zuna
a6eb928f98
Add HBAC plugin and introduce GeneralizedTime parameter type.
2009-10-05 15:55:27 -04:00
Pavel Zuna
944371a38c
Make the host plugin use baseldap classes.
2009-09-28 15:00:27 -06:00
Pavel Zuna
d0b3ba4523
Fix typos and minor bugs in baseldap. Add --all to LDAPUpdate.
...
Also, member attributes are now mapped to 'member user', 'member group',
etc. instead of 'member users', 'member groups'. In other words,
the second word is now taken from LDAPObject.object_name instead of
LDAPObject.object_name_plural.
2009-09-11 09:21:51 -04:00
Pavel Zuna
db7e0802fa
Fix incorrect imports in ipa-server-certinstall.
2009-09-11 09:19:41 -04:00
Pavel Zuna
b80e773c1d
Automatically generate an auto.master map for new automount location.
...
Also, add the automountlocation-show command for completeness sake.
2009-09-10 10:06:27 -04:00
Pavel Zuna
fa140e7f2a
Remove parent_key parameter kwarg.
...
Also replace a TYPE_ERROR with ValidationError.
2009-09-10 10:01:05 -04:00
Pavel Zuna
9fcd431477
Add support for different automount maps per location.
2009-09-10 10:00:50 -04:00
Pavel Zuna
e0f3e765db
Fix: Object.params_minus_pk was invalid when there was no primary_key.
2009-09-09 09:56:34 -04:00
Pavel Zuna
2147a845cf
Improve ipalib.plugins.baseldap classes.
...
- remove obsolete code related to PluginProxy
- remove parent_key attribute, for the purpose of nested objects
the parent's primary key is retrieved automatically
- added support for auto-generating of UUIDs
- make use of the improved attribute printing in CLI
- make LDAPDelete delete all sub-entries, not just one-level
- minor bug fixes
2009-09-09 09:55:35 -04:00
Pavel Zuna
6f37d139cb
Remove obsolete CRUD base classes as they aren't used anymore.
2009-09-08 13:43:33 -04:00
Pavel Zuna
34970fef5e
Improve attribute printing in the CLI.
...
- allow choice between single/multiple value per line
- word wrapping
2009-09-08 13:41:54 -04:00
Pavel Zuna
f294bee09d
Fix bug in dns_find - execute() returned different value than expected.
2009-09-08 13:39:06 -04:00
Pavel Zuna
356375ef18
Make ldap2.add_entry proof to None values, because python-ldap hate'em.
2009-09-08 13:38:25 -04:00
Pavel Zuna
91d01a532a
Introduce a list of attributes for which only MOD_REPLACE operations are generated.
2009-08-28 13:18:21 -04:00
Pavel Zuna
b7b9f9b6a6
Add options in baseldap classes to display unaltered LDAP entries.
...
The options in question is '--raw'.
2009-08-05 09:20:49 -04:00
Pavel Zuna
322d8238a0
All-around improvements to baseldap.py classes.
...
- attribute re-mapping, ordering and hiding
(Enables plugins to completely hide LDAP internals from users
and full localisation of command output.)
- translation of member DNs into object names
(No more DNs when listing group members etc.)
- support for "singleton" LDAP objects
(Objects like "pwpolicy"; not accessed by primary key.)
- new base classes for commands: LDAPModMember, LDAPAddMember
and LDAPRemoveMember
(Providing support for objects with 'member'-like attributes.)
- LDAPSearch implicit exit code changed to 1 when nothing is found
2009-08-03 23:08:21 -06:00
Pavel Zuna
b4d173d844
Fix bug in _get_syntax (it was always returning None).
...
Also prevent a few cases of double processing of arguments.
2009-08-03 23:01:44 -06:00
Pavel Zuna
b20c69dec7
Prevent double encoding/decoding when processing compound types.
2009-08-03 23:00:17 -06:00
Pavel Zuna
104d02e167
Enable attribute re-mapping and ordering when printing entries.
...
Also print multiple values on one line separated by commas.
2009-08-03 22:56:06 -06:00
Pavel Zuna
94181d54fe
Make object classes of automatically created entries lowercase.
...
This makes them more consistent with entries created by plugins.
It's a cosmetic thing, not that useful.
2009-07-10 08:58:44 -04:00
Pavel Zuna
551648b8a9
Change command names from *group-del-member to *group-remove-member.
...
Signed-off-by: Jason Gerard DeRose <jderose@redhat.com >
2009-07-09 13:25:19 -06:00
Pavel Zuna
3b613091bb
Import explode_dn from ldap.functions for backward compatibility with older version of python-ldap. Fix bug in add_entry_to_group.
...
Resolves 510149
2009-07-08 12:15:58 -04:00
Pavel Zuna
f59cab1ccd
Fix bug in ldap2.modify_password and make adding/removing members slightly more efficient.
2009-07-07 22:56:56 -04:00
Pavel Zuna
48d6669796
Fix unit tests to handle new group-{add, del}-member semantics.
2009-07-02 13:33:05 -04:00
Pavel Zuna
34b5b0d563
Fix bug: number of found entries was reported incorrectly in some plugins.
2009-07-02 13:33:05 -04:00
Pavel Zuna
537ba4034d
Make basegroup-{add, del}-member print failed members with error descriptions.
2009-07-02 13:33:05 -04:00
Pavel Zuna
5e4c0014df
Fix bug: when deleting hosts, their services where deleted incorrectly
2009-07-02 13:33:04 -04:00
Pavel Zuna
3c5988d078
Remove outstanding 2's from plugins.
2009-07-02 13:33:04 -04:00
Pavel Zuna
72e4816140
Add unit tests for new plugins.
2009-07-02 13:33:04 -04:00
Pavel Zuna
57b55d8e2f
Add utility functions for plugin unit testing.
2009-07-02 13:33:04 -04:00
Pavel Zuna
12ee586392
Remove unit tests for old plugins.
2009-07-02 13:33:04 -04:00
Pavel Zuna
da461998c1
Add automount plugin.
2009-07-02 13:33:03 -04:00
Pavel Zuna
57123f2a99
Fix minor bugs, typos, etc. discovered by unit tests in plugins.
2009-07-02 13:33:03 -04:00