*** Chandrashekhar B <[email protected]> wrote: > I have seen the plugin, it is not doing error checking before calling to > report. Even if the pread or ldapsearch fails, it reports. We don't have > LDAP setup right now, if you can give me the error response string for a > failed ldapsearch, we could update the plugin.
http://leto.net/docs/ldap_error_code.php m...@schlepp:~>ldapsearch -x -D "cn=foo,o=bla" -h $LDAP_HOST_EXIST ldap_bind: Server is unwilling to perform (53) additional info: unauthenticated bind (DN with no password) disallowed m...@schlepp:~> ldapsearch -x -h $LDAP_HOST_NOT_EXIST ldap_bind: Can't contact LDAP server (-1) m...@schlepp:~> ldapsearch -x -D "cn=admin,o=bla" -w wrong_pass -h $LDAP_HOST_EXIST ldap_bind: Invalid credentials (49) m...@schlepp:~> ldapsearch -x -h $LDAP_HOST_EXIST # extended LDIF # # LDAPv3 # base <> with scope subtree # filter: (objectclass=*) # requesting: ALL # # search result search: 2 result: 32 No such object # numResponses: 1 HTH Micha _______________________________________________ Openvas-plugins mailing list [email protected] http://lists.wald.intevation.org/mailman/listinfo/openvas-plugins
