]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
If the entry has a password then don't allow util_ldap_cache_getuserdn() to update...
authorBradley Nicholes <bnicholes@apache.org>
Thu, 4 Nov 2004 15:46:51 +0000 (15:46 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Thu, 4 Nov 2004 15:46:51 +0000 (15:46 +0000)
Submitted by: Jari Ahonen [jah progress.com]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105681 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap.c

index 9c44b761971ee3317761b932c6ad104ce89eed35..0fa6187f1f30cb261ce8b68515e88f13a5eb576e 100644 (file)
@@ -1096,7 +1096,12 @@ start_over:
             /* Nothing in cache, insert new entry */
             util_ald_cache_insert(curl->search_cache, &the_search_node);
         }
-        else {
+        /*
+         * Don't update lastbind on entries with bindpw because
+         * we haven't verified that password. It's OK to update
+         * the entry if there is no password in it.
+         */
+        else if (!search_nodep->bindpw) {
             /* Cache entry is valid, update lastbind */
             search_nodep->lastbind = the_search_node.lastbind;
         }