diff options
| -rw-r--r-- | src/ldapinfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ldapinfo.c b/src/ldapinfo.c index 9a64dbe..0f68404 100644 --- a/src/ldapinfo.c +++ b/src/ldapinfo.c | |||
| @@ -642,7 +642,7 @@ int my_monitor_database(MyConfig * cnf, const char * base) | |||
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | 644 | ||
| 645 | int my_monitor_listeners(MyConfig * cnf, const char * base) | 645 | int my_monitor_operations(MyConfig * cnf, const char * base) |
| 646 | { | 646 | { |
| 647 | int rc; | 647 | int rc; |
| 648 | int err; | 648 | int err; |
| @@ -746,7 +746,7 @@ int my_monitor_listeners(MyConfig * cnf, const char * base) | |||
| 746 | } | 746 | } |
| 747 | 747 | ||
| 748 | 748 | ||
| 749 | int my_monitor_operations(MyConfig * cnf, const char * base) | 749 | int my_monitor_listeners(MyConfig * cnf, const char * base) |
| 750 | { | 750 | { |
| 751 | int rc; | 751 | int rc; |
| 752 | int err; | 752 | int err; |
| @@ -768,7 +768,7 @@ int my_monitor_operations(MyConfig * cnf, const char * base) | |||
| 768 | // searches for cn=Connections,<monitor> | 768 | // searches for cn=Connections,<monitor> |
| 769 | timeout.tv_sec = 5; | 769 | timeout.tv_sec = 5; |
| 770 | timeout.tv_usec = 0; | 770 | timeout.tv_usec = 0; |
| 771 | strncpy(dn, "cn=Operations,", sizeof(dn)); | 771 | strncpy(dn, "cn=Listeners,", sizeof(dn)); |
| 772 | strncat(dn, base, (sizeof(dn)-strlen(dn)-1)); | 772 | strncat(dn, base, (sizeof(dn)-strlen(dn)-1)); |
| 773 | if ((err = ldap_search_ext(ld, dn, LDAP_SCOPE_ONE, "(objectclass=*)", cnf->lud->attrs, 0, NULL, NULL, &timeout, -1, &msgid)) != LDAP_SUCCESS) | 773 | if ((err = ldap_search_ext(ld, dn, LDAP_SCOPE_ONE, "(objectclass=*)", cnf->lud->attrs, 0, NULL, NULL, &timeout, -1, &msgid)) != LDAP_SUCCESS) |
| 774 | return(-1); | 774 | return(-1); |
| @@ -972,6 +972,9 @@ int my_rootdse(MyConfig * cnf) | |||
| 972 | 972 | ||
| 973 | // connection stats | 973 | // connection stats |
| 974 | my_monitor_connections(cnf, monitor[0]); | 974 | my_monitor_connections(cnf, monitor[0]); |
| 975 | |||
| 976 | // operations | ||
| 977 | my_monitor_operations(cnf, monitor[0]); | ||
| 975 | }; | 978 | }; |
| 976 | 979 | ||
| 977 | // obtain naming contexts | 980 | // obtain naming contexts |
