#
# SSSD integration test - access the ldb cache
#
# Copyright (c) 2016 Red Hat, Inc.
#
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 only
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os
import ldb
import config
import subprocess
"cache_%s.ldb" % domain_name)
"timestamps_%s.ldb" % domain_name)
else:
raise ValueError("Unknown cache type\n")
return pyldb
dbconn = None
return dbconn
rdn = "users"
rdn = "groups"
else:
raise ValueError("Unknown entry type\n")
return None
"dataExpireTimestamp")