|
|
|
@ -75,7 +75,7 @@ class ldapUser(_error):
|
|
|
|
|
namesData = map(lambda x: x[0], data)
|
|
|
|
|
# Данные из кеша, если он есть
|
|
|
|
|
if cache and self._dictData and\
|
|
|
|
|
set(self._dictData.keys())<=set(namesData):
|
|
|
|
|
set(namesData)<=set(self._dictData.keys()):
|
|
|
|
|
return self._dictData
|
|
|
|
|
fileName = "/etc/ldap.conf"
|
|
|
|
|
getStrList = lambda x: reduce(lambda x,y: [x,y.upper()],([x]*2))
|
|
|
|
@ -92,7 +92,7 @@ class ldapUser(_error):
|
|
|
|
|
if spl in splList:
|
|
|
|
|
if not name in dictData:
|
|
|
|
|
dictData[name] = []
|
|
|
|
|
if name == "usersDN":
|
|
|
|
|
if name in ("usersDN", "groupsDN"):
|
|
|
|
|
dictData[name].append(line.rpartition(spl)[2].\
|
|
|
|
|
partition('?')[0].strip())
|
|
|
|
|
else:
|
|
|
|
|