Martin Basti
884afb5d38
Server Upgrade: use debug log level for upgrade instead of info
...
Upgrade contains too many unnecessary info logs.
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2015-07-03 07:47:59 +00:00
Jan Cholasta
fe2accf776
ipalib: Load ipaserver plugins when api.env.in_server is True
...
https://fedorahosted.org/freeipa/ticket/3090
https://fedorahosted.org/freeipa/ticket/5073
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2015-07-01 13:05:30 +00:00
Tomas Babej
f3010498af
Add Domain Level feature
...
https://fedorahosted.org/freeipa/ticket/5018
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2015-05-26 11:59:47 +00:00
Martin Basti
9eedffdfa6
Server Upgrade: fix remove statement
...
If value does not exists then do not update entry. Otherwise, together with
nonexistent entry, the LDAP decode error will be raised.
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2015-05-26 11:33:07 +00:00
Martin Basti
6c438fff33
Server Upgrade: raise RuntimeError instead exit()
...
Ldapupdater should not call sys.exit() in the middle of execution and
should fail gracefully
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-05-19 12:43:04 +00:00
Martin Basti
520bbd001b
Server Upgrade: Allow base64 encoded values
...
This patch allows to use base64 encoded values in update files.
Double colon ('::') must be used as separator between attribute name
and base64 encoded value.
add:attr::<base64-value>
replace:attr::<old-base64-value>::<new-base64-value>
https://fedorahosted.org/freeipa/ticket/4984
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2015-05-11 16:08:01 +00:00
Martin Basti
5783d0c832
Server Upgrade: remove CSV from upgrade files
...
CSV values are not supported in upgrade files anymore
Instead of
add:attribute: 'first, part', second
please use
add:attribute: firts, part
add:attribute: second
Required for ticket: https://fedorahosted.org/freeipa/ticket/4984
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2015-05-11 16:08:01 +00:00
Martin Basti
81df7b501e
Server Upgrade: fix a comment in ldapupdater
...
DN sorting was removed in previous patches
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-05-05 11:47:49 +02:00
Martin Basti
d09706a8c8
Server Upgrade: restart DS using ipaplatfom service
...
Removes extra class DSRestart which do the same thing
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-04-14 19:25:47 +02:00
Martin Basti
4aec9d2280
Server Upgrade: Handle connection better in updates_from_dict
...
Connection should be closed if update is done
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-04-14 19:25:47 +02:00
Martin Basti
f24f614396
Server Upgrade: specify order of plugins in update files
...
* add 'plugin' directive
* specify plugins order in update files
* remove 'run plugins' options
* use ldapupdater API instance in plugins
* add update files representing former PreUpdate and PostUpdate order of plugins
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-04-14 19:25:47 +02:00
Martin Basti
b4ca5c57d2
Server Upgrade: remove unused code in upgrade
...
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-04-14 19:25:47 +02:00
Martin Basti
13c4631813
Server Upgrade: use only LDAPI connection
...
Use only ldapi connection to execute upgrade
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-04-14 19:25:47 +02:00
Martin Basti
c3d441ae03
Server Upgrade: remove --test option
...
As --test option is not used for developing, and it is not recommended
to test if upgrade will pass, this path removes it copmletely.
https://fedorahosted.org/freeipa/ticket/3448
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:48:41 +01:00
Martin Basti
a42fcfc18b
Server Upgrade: order update files by default
...
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:37:09 +01:00
Martin Basti
0c7274ead8
Server Upgrade: Update entries in order specified in file
...
Dictionary replaced with list. Particular upgrades are
executed in the same order as they are specified in update
a file.
Different updates for the smae cn, are not merged into one upgrade
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:37:09 +01:00
Martin Basti
144bc6c1eb
Server Upgrade: Set modified to false, before each update
...
Variable self.modified should be set to false before each run of update
Ticket: https://fedorahosted.org/freeipa/ticket/3560
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:37:09 +01:00
Martin Basti
10bc6bd0bf
Server Upgrade: Upgrade one file per time
...
* Files are sorted alphabetically, no numbering required anymore
* One file updated per time
Ticket: https://fedorahosted.org/freeipa/ticket/3560
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:37:09 +01:00
Martin Basti
bb1d7a741c
Server Upgrade: do not sort updates by DN
...
Ticket: https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:37:09 +01:00
Martin Basti
d3f5d5d1ff
Server Upgrade: Remove unused PRE_SCHEMA_UPDATE
...
This is not used anymore.
Ticket: https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com >
2015-03-19 12:33:22 +01:00
Martin Basti
730f33680b
Fix upgrade: do not use invalid ldap connection
...
Ticket: https://fedorahosted.org/freeipa/ticket/4670
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2014-11-06 10:45:16 +01:00
Petr Viktorin
2f99140c92
ldapupdate: Restore 'replace' functionality
...
The replace directive was made a no-op by mistake in commit 6381d76 .
Restore it.
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-07-04 15:51:55 +02:00
Martin Basti
c1f3fd6831
Added upgrade step executed before schmema is upgraded
...
Class PreSchemaUpdate is executed before ldap schema update
This is required by ticket: https://fedorahosted.org/freeipa/ticket/3210
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-27 14:54:35 +02:00
Tomas Babej
4d2ef43f28
ipaplatform: Move all filesystem paths to ipaplatform.paths module
...
https://fedorahosted.org/freeipa/ticket/4052
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-16 19:48:20 +02:00
Jan Cholasta
f7128b9c03
Use raw LDAP data in ldapupdate.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:41:40 +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
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
9d4bcb63de
Reduce amount of LDAPEntry.reset_modlist calls in ldapupdate.
...
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
7b3d9be388
Rename LDAPEntry method commit to reset_modlist.
...
https://fedorahosted.org/freeipa/ticket/3488
2014-01-10 14:38:29 +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
070868f435
ldapupdate: Factor out connection code
...
The connection code will be the same for both the LDAP updater
and the new schema updater.
Preparation for: 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
a7180ed021
Remove legacy toDict and origDataDict methods of LDAPEntry.
...
https://fedorahosted.org/freeipa/ticket/3521
2013-10-31 18:09:51 +01:00
Rob Crittenden
240b12169b
Hide sensitive attributes in LDAP updater logging and output
...
The LDAP updater prints the initial and final states of an entry, as well
as details on the changes made to attributes. This has the potential to
expose sensitive values so exclude those from logging.
https://fedorahosted.org/freeipa/ticket/3782
2013-07-18 10:49:43 +03:00
Rob Crittenden
8377f4e92f
Apply LDAP update files in blocks of 10, as originally designed.
...
In order to have control over the order that updates are applied
a numbering system was created for the update files. These values
were not actually used.
The updates were sorted by DN length and in most cases this was
adequate for proper function. The exception was with roles where
in some cases a role was added as a member of a permission before
the role itself was added so the memberOf value was never created.
Now updates are computed and applied in blocks of 10.
https://fedorahosted.org/freeipa/ticket/3377
2013-04-12 10:16:01 -04:00
Petr Viktorin
91a63cce62
Remove ipaserver/ipaldap.py
...
In addition to removing the module, fix all places where it was imported.
Preparation for: https://fedorahosted.org/freeipa/ticket/3446
2013-03-13 12:36:33 +01:00
Petr Viktorin
5184c312f6
replace getEntry with get_entry (or get_entries if scope != SCOPE_BASE)
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:45 +01:00
Petr Viktorin
e815c1893d
Replace deleteEntry with delete_entry
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:45 +01:00
Petr Viktorin
f8ad7cb96f
Replace addEntry with add_entry
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:45 +01:00
Petr Viktorin
a173957865
Remove toTupleList and attrList from LDAPEntry
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:45 +01:00
Petr Viktorin
4779865ea3
Replace getList by a get_entries method
...
The find_entries method is cumbersome to use: it requires keyword arguments
for simple uses, and callers are tempted to ignore the 'truncated' flag
it returns.
Introduce a simpler method, get_entries, that returns the found
list directly, and raises an errors if the list is truncated.
Replace the getList method by get_entries.
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:45 +01:00
Petr Viktorin
f5c404c65d
Replace entry.getValue by entry.single_value
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:45 +01:00
Petr Viktorin
66eaf1220d
Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity
2013-03-01 16:59:45 +01:00
Petr Viktorin
66c7fd1323
Replace entry.setValue/setValues by item assignment
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:44 +01:00
Petr Viktorin
c613caab67
Replace entry.getValues() by entry.get()
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:44 +01:00
Petr Viktorin
3dd4b36e1a
Replace setValue by keyword arguments when creating entries
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
2013-03-01 16:59:44 +01:00
Jan Cholasta
6896626baa
Remove the Entry class.
2013-03-01 16:59:43 +01:00
Jan Cholasta
c1d6937ea2
Remove the Entity class.
...
Move Entity functionality to LDAPEntry.
2013-03-01 16:59:43 +01:00
Jan Cholasta
8d92ca851c
Add make_entry factory method to LDAPConnection.
...
Replace all occurences of Entry instantiation with calls to make_entry.
2013-03-01 16:59:43 +01:00