#
# MIT Kerberos server class
#
# 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 signal
import shutil
import subprocess
from util import *
"""
MIT Kerberos KDC instance
"""
includedir=None,
kdc_port=10088,
kadmin_port=10749,
master_key='master'):
try:
pass
else:
raise ioex
return my_env
if password is None:
else:
try:
pass
)
[kdcdefaults]
kdc_ports = {self.kdc_port}
kdc_tcp_ports = {self.kdc_port}
[realms]
{self.realm} = {{
kadmind_port = {self.kadmin_port}
database_name = {database_path}
key_stash_file = {key_stash}
acl_file = {self.acl_file}
}}
[logging]
kdc = {kdc_logfile}
admin_server = {kadmin_logfile}
default = {libkrb5_logfile}
return kdc_conf
includedir {self.includedir}
[libdefaults]
default_realm = {self.realm}
dns_lookup_kdc = false
dns_lookup_realm = false
[realms]
{self.realm} = {{
kdc = {kdc_uri}
admin_server = {kadmin_uri}
}}
return krb5_conf