summaryrefslogtreecommitdiffstats
path: root/src/ldapmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldapmgr.cpp')
-rw-r--r--src/ldapmgr.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ldapmgr.cpp b/src/ldapmgr.cpp
index 26007dc..4c153e3 100644
--- a/src/ldapmgr.cpp
+++ b/src/ldapmgr.cpp
@@ -38,6 +38,7 @@
#include <kcombobox.h>
#include <kmessagebox.h>
#include <klineedit.h>
+#include <kiconloader.h>
#include <tdesu/process.h>
@@ -84,6 +85,10 @@ LDAPConfig::LDAPConfig(TQWidget *parent, const char *name, const TQStringList&)
base->machine_name->setEnabled(false);
base->machine_author->setEnabled(false);
+ base->user_icon->setPixmap(SmallIcon("personal.png"));
+ base->group_icon->setPixmap(SmallIcon("kdmconfig.png"));
+ base->machine_icon->setPixmap(SmallIcon("system.png"));
+
connect(base->user_ldapRealm, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(connectToRealm(const TQString&)));
connect(base->group_ldapRealm, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(connectToRealm(const TQString&)));
connect(base->machine_ldapRealm, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(connectToRealm(const TQString&)));
@@ -457,7 +462,9 @@ void LDAPConfig::groupHighlighted() {
base->group_memberList->clear();
for ( TQStringList::Iterator it = group.userlist.begin(); it != group.userlist.end(); ++it ) {
LDAPUserInfo user = findUserByDistinguishedName(*it);
- (void)new TQListViewItem(base->group_memberList, user.name, user.commonName, TQString("%1").arg(user.uid));
+ if (user.name != "") {
+ (void)new TQListViewItem(base->group_memberList, user.name, user.commonName, TQString("%1").arg(user.uid));
+ }
}
processLockouts();