diff options
author | Timothy Pearson <[email protected]> | 2012-05-29 18:23:12 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-05-29 18:23:12 -0500 |
commit | a6d06dfe2ab0aadb6b0987fb7f96e8f3c9841846 (patch) | |
tree | cbc45950449b5942277b8a3490b87bfecf8df023 /src/ldapmgr.cpp | |
parent | 68e675057219723d6c657db4fd930c5b49ff583c (diff) | |
download | kcmldapmanager-a6d06dfe2ab0aadb6b0987fb7f96e8f3c9841846.tar.gz kcmldapmanager-a6d06dfe2ab0aadb6b0987fb7f96e8f3c9841846.zip |
RW support for groups now in place
Diffstat (limited to 'src/ldapmgr.cpp')
-rw-r--r-- | src/ldapmgr.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ldapmgr.cpp b/src/ldapmgr.cpp index 5f2433c..ba45fd1 100644 --- a/src/ldapmgr.cpp +++ b/src/ldapmgr.cpp @@ -201,6 +201,30 @@ void LDAPConfig::updateGroupsList() { processLockouts(); } +LDAPUserInfo LDAPConfig::findUserInfoByName(TQString name) { + // Figure out which user is selected + LDAPUserInfoList::Iterator it; + for (it = m_userInfoList.begin(); it != m_userInfoList.end(); ++it) { + LDAPUserInfo user = *it; + if (user.name == name) { + return user; + } + } + return LDAPUserInfo(); +} + +LDAPGroupInfo LDAPConfig::findGroupInfoByName(TQString name) { + // Figure out which group is selected + LDAPGroupInfoList::Iterator it; + for (it = m_groupInfoList.begin(); it != m_groupInfoList.end(); ++it) { + LDAPGroupInfo group = *it; + if (group.name == name) { + return group; + } + } + return LDAPGroupInfo(); +} + LDAPUserInfo LDAPConfig::findUserInfoByNameAndUID(TQString name, TQString uid) { // Figure out which user is selected LDAPUserInfoList::Iterator it; @@ -345,6 +369,8 @@ void LDAPConfig::modifySelectedGroup() { group = m_ldapmanager->getGroupByDistinguishedName(group.distinguishedName); GroupConfigDialog groupconfigdlg(group, this); if (groupconfigdlg.exec() == TQDialog::Accepted) { + group = groupconfigdlg.m_group; + m_ldapmanager->updateGroupInfo(group); // RAJA FIXME } updateAllInformation(); |