mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Martin Kosek
parent
1960945e28
commit
8be8d4ebfd
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user