summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-10 06:14:15 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:42 +0100
commitc0a89efd6852bfd07dec4c8b1e74f0e927e7fdd8 (patch)
treed5aba820545bebcacae11a33fc4233eef25972bd /ipaserver/plugins
parentef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d (diff)
downloadfreeipa.git-c0a89efd6852bfd07dec4c8b1e74f0e927e7fdd8.tar.gz
freeipa.git-c0a89efd6852bfd07dec4c8b1e74f0e927e7fdd8.tar.xz
freeipa.git-c0a89efd6852bfd07dec4c8b1e74f0e927e7fdd8.zip
Remove some unused imports
Remove all unused LDAP-related imports, plus some other ones. This should make it easier to quickly check what uses which LDAP wrapper
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/dogtag.py4
-rw-r--r--ipaserver/plugins/ldap2.py3
2 files changed, 2 insertions, 5 deletions
diff --git a/ipaserver/plugins/dogtag.py b/ipaserver/plugins/dogtag.py
index 28bf754c..343368c9 100644
--- a/ipaserver/plugins/dogtag.py
+++ b/ipaserver/plugins/dogtag.py
@@ -1207,9 +1207,9 @@ from ipalib import api, SkipPluginModule
if api.env.ra_plugin != 'dogtag':
# In this case, abort loading this plugin module...
raise SkipPluginModule(reason='dogtag not selected as RA plugin')
-import os, random, ldap
+import os, random
from ipaserver.plugins import rabase
-from ipalib.errors import NetworkError, CertificateOperationError
+from ipalib.errors import CertificateOperationError
from ipalib.constants import TYPE_ERROR
from ipalib.util import cachedproperty
from ipapython import dogtag
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index 86ea5d47..fa293517 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -29,14 +29,11 @@ Backend plugin for LDAP.
import copy
import os
-import socket
-import string
import shutil
import tempfile
import time
import re
import pwd
-import sys
from decimal import Decimal
import krbV