From 937b2df7dd7a2c66b8b3bcad64783647cb367a7f Mon Sep 17 00:00:00 2001 From: patrik Date: Thu, 4 Nov 2010 19:53:01 +0000 Subject: [PATCH] changed the extractAttribute function to be case insensitive when retrieving attributes. --- nselib/ldap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/ldap.lua b/nselib/ldap.lua index 6a47d440b..055fc915f 100644 --- a/nselib/ldap.lua +++ b/nselib/ldap.lua @@ -465,7 +465,7 @@ function extractAttribute( searchEntries, attributeName ) for _, attrib in ipairs( v.attributes ) do local attribType = attrib[1] for i=2, #attrib do - if attribType == attributeName then + if ( attribType:upper() == attributeName:upper() ) then table.insert( attributeTbl, attrib[i]) end end