Remove dbdir, binddn, bindpwd from IPAdmin

The dbdir logic was moved to replication.py, the only caller.
The binddn and bindpwd attributes were unused.

Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
Petr Viktorin
2013-01-21 06:43:29 -05:00
committed by Martin Kosek
parent 1960945e28
commit 8be8d4ebfd
2 changed files with 15 additions and 23 deletions

View File

@@ -19,6 +19,7 @@
import time
import sys
import os
import ldap
@@ -355,12 +356,19 @@ class ReplicationManager(object):
conn.addEntry(entry)
def setup_changelog(self, conn):
ent = conn.get_entry(
DN(
('cn', 'config'), ('cn', 'ldbm database'),
('cn', 'plugins'), ('cn', 'config')),
['nsslapd-directory'])
dbdir = os.path.dirname(ent.getValue('nsslapd-directory'))
entry = conn.make_entry(
DN(('cn', 'changelog5'), ('cn', 'config')),
{
'objectclass': ["top", "extensibleobject"],
'cn': ["changelog5"],
'nsslapd-changelogdir': [conn.dbdir + "/cldb"],
'nsslapd-changelogdir': [os.path.join(dbdir, "cldb")],
}
)
try: