diff options
Diffstat (limited to 'src/ldapcontroller.h')
-rw-r--r-- | src/ldapcontroller.h | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/ldapcontroller.h b/src/ldapcontroller.h index 4e9e862..d48f00f 100644 --- a/src/ldapcontroller.h +++ b/src/ldapcontroller.h @@ -29,6 +29,7 @@ #include <kglobalsettings.h> #include <tqpushbutton.h> #include <tqcombobox.h> +#include <kio/jobclasses.h> #include <libtdeldap.h> @@ -42,27 +43,6 @@ enum sc_command { SC_SETDBPERMS }; -// PRIVATE -class LDAPCertConfig -{ - public: - bool generate_certs; - TQString provided_kerberos_pem; - TQString provided_kerberos_pemkey; - TQString provided_kerberos_crt; - TQString provided_kerberos_key; - TQString provided_ldap_crt; - TQString provided_ldap_key; - - TQString countryName; - TQString stateOrProvinceName; - TQString localityName; - TQString organizationName; - TQString orgUnitName; - TQString commonName; - TQString emailAddress; -}; - class LDAPController: public KCModule { Q_OBJECT @@ -85,6 +65,10 @@ class LDAPController: public KCModule void systemRoleChanged(); void processLockouts(); + void btncaRegenerate(); + void btncaExport(); + void slotCertCopyResult(KIO::Job*); + private: int controlKAdminDaemon(sc_command command); int controlSASLServer(sc_command command); @@ -95,6 +79,7 @@ class LDAPController: public KCModule int addHostEntryToKerberosRealm(TQString kerberosHost, TQString *errstr); int setKerberosPasswordForUser(LDAPCredentials user, TQString *errstr); int createRealmCertificates(LDAPCertConfig certinfo, LDAPRealmConfig realmconfig, uid_t ldap_uid, gid_t ldap_gid); + int uploadKerberosCAFileToLDAP(LDAPManager* ldap_mgr, TQString* errstr=0); private: KAboutData *myAboutData; |