diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-11 15:16:43 +0000 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-11 15:16:43 +0000 |
commit | f35e568ef49de330e089a774a857d0bddbc89787 (patch) | |
tree | 5e9f6947472ae7051b1e78429d2c03aa8cdf527b /src | |
parent | 253f6abaf56ce0008b11aa4db03f09d024efc7ab (diff) | |
download | kcmldapcontroller-f35e568ef49de330e089a774a857d0bddbc89787.tar.gz kcmldapcontroller-f35e568ef49de330e089a774a857d0bddbc89787.zip |
Add missing entryUUID values to base LDAP databases
Diffstat (limited to 'src')
-rw-r--r-- | src/ldapcontroller.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <netdb.h> #include <pwd.h> +#include <tquuid.h> #include <tqlayout.h> #include <tqtabwidget.h> @@ -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); |