diff options
author | Timothy Pearson <[email protected]> | 2012-05-30 13:57:42 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-05-30 13:57:42 -0500 |
commit | 93a591d8f0733774cfc62329ef4b9cc5403bd16c (patch) | |
tree | a524f4bca7e42947217b8d847e3f46e37bccb133 /src/libtdeldap.cpp | |
parent | 4d66047a3136662532e79d5e41038db246d334dd (diff) | |
download | kcmldapmanager-93a591d8f0733774cfc62329ef4b9cc5403bd16c.tar.gz kcmldapmanager-93a591d8f0733774cfc62329ef4b9cc5403bd16c.zip |
I lied earlier...kadmin support now added
Diffstat (limited to 'src/libtdeldap.cpp')
-rw-r--r-- | src/libtdeldap.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 2f834e9..1bb149c 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -55,6 +55,15 @@ TQString LDAPManager::realm() { return m_realm; } +LDAPCredentials LDAPManager::currentLDAPCredentials() { + if (m_creds) { + return *m_creds; + } + else { + return LDAPCredentials(); + } +} + int LDAPManager::bind() { printf("[RAJA DEBUG 600.0] In LDAPManager::bind()\n\r"); fflush(stdout); if (m_ldap) { @@ -93,6 +102,10 @@ printf("[RAJA DEBUG 600.0] In LDAPManager::bind()\n\r"); fflush(stdout); struct berval cred; TQString ldap_dn = passdlg.m_base->ldapAdminUsername->text(); TQCString pass = passdlg.m_base->ldapAdminPassword->password(); + if (!m_creds) m_creds = new LDAPCredentials(); + m_creds->username = passdlg.m_base->ldapAdminUsername->text(); + m_creds->password = passdlg.m_base->ldapAdminPassword->password(); + m_creds->realm = passdlg.m_base->ldapAdminRealm->currentText(); cred.bv_val = pass.data(); cred.bv_len = pass.length(); |