6 kerberos_py = conf.srcdir + "/python/samba/provision/kerberos_implementation.py"
8 f = open(kerberos_py, 'w')
11 # Copyright (c) 2016 Andreas Schneider <asn@samba.org>
13 # This program is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; either version 3 of the License, or
16 # (at your option) any later version.
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29 data = """kdb_modules_dir = "{0}"
30 kdc_default_config_dir = "{1}"
33 if conf.env.HEIMDAL_KRB5_CONFIG:
34 f.write(data.format("", ""))
36 modulesdir = "%s/krb5/plugins/kdb" % conf.env.LIBDIR
37 paths = [ "/var/kerberos/krb5kdc", "/var/lib/kerberos/krb5kdc" ]
43 f.write(data.format(modulesdir, kdc_path))