Jan Cholasta
5737eaf134
Raise an exception when legacy LDAP API is used.
2014-01-24 20:29:32 +01:00
Jan Cholasta
c86d9f33c9
Do not crash on bad LDAP data when formatting decode error message.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:40 +01:00
Jan Cholasta
d6c3d3f57a
Store old entry state in dict rather than LDAPEntry.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
4284a8349b
Remove legacy LDAPEntry properties data and orig_data.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
aa66cd5f35
Remove unused LDAPClient methods get_syntax and get_single_value.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
61887ac392
Add LDAPEntry method generate_modlist.
...
Use LDAPEntry.generate_modlist instead of LDAPClient._generate_modlist and
remove LDAPClient._generate_modlist.
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
21fab665f4
Use LDAPClient.update_entry for LDAP mods in ldapupdate.
...
Remove legacy IPAdmin methods generateModList and updateEntry.
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
8d67acc026
Make IPASimpleLDAPObject.get_single_value result overridable.
...
Add some default overrides.
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
c98cff25ab
Move LDAPClient method get_single_value to IPASimpleLDAPObject.
...
Refactor IPASimpleLDAPObject methods get_syntax and get_single_value.
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
24d85f15ee
Use old entry state in LDAPClient.update_entry.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:39 +01:00
Jan Cholasta
7b3d9be388
Rename LDAPEntry method commit to reset_modlist.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:38:29 +01:00
Jan Cholasta
bc3f3381c6
Convert remaining backend code to LDAPEntry API.
2013-12-16 14:44:19 +01:00
Jan Cholasta
a9bf18ab95
Support searches with paged results control in LDAPClient.
...
https://fedorahosted.org/freeipa/ticket/3971
2013-11-27 13:46:41 +01:00
Jan Cholasta
8013056194
Add wrapper for result3 to IPASimpleLDAPObject.
...
https://fedorahosted.org/freeipa/ticket/3971
2013-11-27 13:46:41 +01:00
Jan Cholasta
73df6150e5
Move IPA specific code from LDAPClient to the ldap2 plugin.
...
https://fedorahosted.org/freeipa/ticket/3971
2013-11-27 13:46:41 +01:00
Petr Viktorin
76c7f24919
Improve LDAPEntry.__repr__ for freshly created entries
...
Creating a LDAPEntry from dict does not set the raw entries,
to display everything we need to combine the underlying data.
https://fedorahosted.org/freeipa/ticket/4015
2013-11-26 13:19:37 +01:00
Petr Viktorin
6381d766ce
Remove schema special-casing from the LDAP updater
...
Now that there's a dedicated schema updater, we do not need the code
in ldapupdate.
https://fedorahosted.org/freeipa/ticket/3454
2013-11-18 16:54:21 +01:00
Petr Viktorin
f52d471aa7
Add schema updater based on IPA schema files
...
The new updater is run as part of `ipa-ldap-updater --upgrade`
and `ipa-ldap-updater --schema` (--schema is a new option).
The --schema-file option to ipa-ldap-updater may be used (multiple
times) to select a non-default set of schema files to update against.
The updater adds an X-ORIGIN tag with the current IPA version to
all elements it adds or modifies.
https://fedorahosted.org/freeipa/ticket/3454
2013-11-18 16:54:21 +01:00
Jan Cholasta
df5f4ee81d
Turn LDAPEntry.single_value into a dictionary-like property.
...
This change makes single_value consistent with the raw property.
https://fedorahosted.org/freeipa/ticket/3521
2013-11-05 13:56:55 +01:00
Jan Cholasta
941e9686a3
Use encoded values from entry objects directly when adding new entries.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:52 +01:00
Jan Cholasta
e60eda3b3d
Use encoded values from entry objects directly when generating modlists.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:52 +01:00
Jan Cholasta
78f0ca983b
Store encoded attribute values from search results directly in entry objects.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:52 +01:00
Jan Cholasta
a7180ed021
Remove legacy toDict and origDataDict methods of LDAPEntry.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Jan Cholasta
463407ac6f
Make sure attributeTypes updates are done before objectClasses updates.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Jan Cholasta
9ecf4b7aac
Decode and encode attribute values in LDAPEntry on demand.
...
This is achieved by storing both decoded and encoded attribute values in
LDAPEntry and synchronizing changes between them whenever an attribute is
accessed.
Added a new property "raw" to LDAPEntry. It provides a dictionary-like
object which can be used to directly access encoded attribute values.
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Jan Cholasta
5d1d513849
Always use lists for values in LDAPEntry internally.
...
Outside of LDAPEntry, it is still possible to use non-lists. Once we enforce
lists for attribute values, this will be removed.
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Jan Cholasta
5aadaa6030
Introduce IPASimpleLDAPObject.decode method for decoding LDAP values.
...
This method is intended as a counterpart of IPASimpleLDAPObject.encode and
replaces IPASimpleLDAPObject.convert_value_list.
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Jan Cholasta
4f0814d7c0
Make LDAPEntry a wrapper around dict rather than a dict subclass.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Tomas Babej
22681013b2
Skip referrals when converting LDAP result to LDAPEntry
...
When converting the result obtained by python-ldap library,
we need to skip unresolved referral entries, since they cannot
be converted.
https://fedorahosted.org/freeipa/ticket/3814
2013-07-26 13:38:37 +02:00
Petr Viktorin
15e83befaf
Correct default value of LDAPClient.get_entries scope argument
2013-07-25 12:41:16 +02:00
Rob Crittenden
9005b9bc8a
Extend ipa-replica-manage to be able to manage DNA ranges.
...
Attempt to automatically save DNA ranges when a master is removed.
This is done by trying to find a master that does not yet define
a DNA on-deck range. If one can be found then the range on the deleted
master is added.
If one cannot be found then it is reported as an error.
Some validation of the ranges are done to ensure that they do overlap
an IPA local range and do not overlap existing DNA ranges configured
on other masters.
http://freeipa.org/page/V3/Recover_DNA_Ranges
https://fedorahosted.org/freeipa/ticket/3321
2013-03-13 10:32:36 -04:00
Petr Viktorin
664248d5b8
Use IPAdmin rather than raw python-ldap in migration.py and ipadiscovery.py
...
These used ipautil.get_ipa_basedn. Convert that to use the new wrappers.
Beef up the error handling in ipaldap to accomodate the errors we catch
in the server discovery.
Add a DatabaseTimeout exception to errors.py.
These were the last uses of ipautil.convert_ldap_error, remove that.
https://fedorahosted.org/freeipa/ticket/3487
https://fedorahosted.org/freeipa/ticket/3446
2013-03-13 12:36:33 +01:00
Petr Viktorin
a0242334fe
Use IPAdmin rather than raw python-ldap in ipa-client-install
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/3487
2013-03-13 12:36:33 +01:00
Petr Viktorin
4e6a2a916d
Move ipaldap to ipapython
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/3446
2013-03-13 12:36:33 +01:00