From f35e568ef49de330e089a774a857d0bddbc89787 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 11 Jul 2013 15:16:43 +0000 Subject: Add missing entryUUID values to base LDAP databases --- src/ldapcontroller.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ldapcontroller.cpp') diff --git a/src/ldapcontroller.cpp b/src/ldapcontroller.cpp index cdf31e9..64831c8 100644 --- a/src/ldapcontroller.cpp +++ b/src/ldapcontroller.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -998,6 +999,11 @@ void replacePlaceholdersInFile(TQString infile, TQString outfile, LDAPRealmConfi timestamp.replace("-", ""); timestamp.replace(":", ""); timestamp.replace("T", ""); + TQString uuid; + TQUuid randomUUID = TQUuid::createUuid(); + uuid = randomUUID.toString(); + uuid.replace("{", ""); + uuid.replace("}", ""); TQString kdc_certfile = KERBEROS_PKI_KDC_FILE; TQString kdc_keyfile = KERBEROS_PKI_KDCKEY_FILE; @@ -1038,6 +1044,7 @@ void replacePlaceholdersInFile(TQString infile, TQString outfile, LDAPRealmConfi line.replace("@@@REALM_SIMPLE_CP_NAME@@@", simpledcnamecap); line.replace("@@@REALM_SIMPLE_LC_NAME@@@", simpledcname.lower()); line.replace("@@@TIMESTAMP@@@", timestamp); + line.replace("@@@ENTRYUUID@@@", uuid); line.replace("@@@LDAP_KEYTAB_FILE@@@", LDAP_KEYTAB_FILE); line.replace("@@@LDAP_USER_NAME@@@", ldapusername); line.replace("@@@LDAP_GROUP_NAME@@@", ldapgroupname); -- cgit v1.2.3