]> git.sur5r.net Git - openldap/commitdiff
added cn=schema to gtk-tool
authorPredrag "Pele" Balorda <pele@openldap.org>
Fri, 7 Jan 2000 09:07:59 +0000 (09:07 +0000)
committerPredrag "Pele" Balorda <pele@openldap.org>
Fri, 7 Jan 2000 09:07:59 +0000 (09:07 +0000)
contrib/gtk-tool/ChangeLog
contrib/gtk-tool/Gtk_LdapServer.cc
contrib/gtk-tool/Gtk_LdapTreeItem.cc

index 9eec313150eaf7af4213d0b0199914180fd3d132..cfbf97fd6227cd20374d0d5b981ad333a99abb62 100644 (file)
@@ -1,4 +1,7 @@
 ChangeLog for gtk-tool
+06/01/2000 - Pele
+       * Added cn=schema
+
 03/01/2000 - Pele
        * Fixed localtime() bug in Linux ?;)
 
index fe51dbc1f2e5327a3672d69d0161cdcf65f4bfe9..85011b5f1e1b1c188dee74a21c282598d2a85132 100644 (file)
@@ -137,6 +137,7 @@ int Gtk_LdapServer::getConfig() {
                                }
                        this->databases = g_list_append(this->databases, "ldbm : cn=config");
                        this->databases = g_list_append(this->databases, "ldbm : cn=monitor");
+                       this->databases = g_list_append(this->databases, "ldbm : cn=schema");
                                ldap_value_free(t);
                                debug("databases loaded\n");
                                GList *t;
index 7add7b09546df9b0d1033be922d516edb9bbd5e8..3851d432ebf8d21489c915de71774f6053a07795 100644 (file)
@@ -41,7 +41,7 @@ Gtk_LdapTree* Gtk_LdapTreeItem::getSubtree(LDAP *ld, int counter) {
        int entriesCount = 0, error;
 
        this->ld = ld;
-       if (this->dn == "cn=config" || this->dn == "cn=monitor") error = ldap_search_s(this->ld, this->dn, LDAP_SCOPE_BASE, "objectclass=*", NULL, 0, &r_i);
+       if (this->dn == "cn=config" || this->dn == "cn=monitor" || this->dn == "cn=schema") error = ldap_search_s(this->ld, this->dn, LDAP_SCOPE_BASE, "objectclass=*", NULL, 0, &r_i);
        else {
                if (strcasecmp(this->objectClass,"alias") == 0) error = ldap_search_s(this->ld, this->getAttribute("aliasedobjectname"), LDAP_SCOPE_ONELEVEL, "objectclass=*", NULL, 0, &r_i);
                else error = ldap_search_s(this->ld, this->dn, LDAP_SCOPE_ONELEVEL, "objectclass=*", NULL, 0, &r_i);
@@ -57,7 +57,7 @@ Gtk_LdapTree* Gtk_LdapTreeItem::getSubtree(LDAP *ld, int counter) {
                entry = ldap_first_entry(this->ld, r_i);
        //      float i = 1;
                gfloat percent = 100/entriesCount;
-               cout << "percent is " << percent << endl;
+               debug("percent is %f\n", percent);
        //      this->par->progress.set_percentage(percent/100);
        //      this->par->progress.show();
                while (entry != NULL) {