8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4183b10 commit 6c4637aCopy full SHA for 6c4637a
src/backend/libpq/auth.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.182 2009/06/11 14:48:57 momjian Exp $
+ * $PostgreSQL 9939 : pgsql/src/backend/libpq/auth.c,v 1.183 2009/06/25 11:30:08 mha Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -2066,6 +2066,13 @@ CheckLDAPAuth(Port *port)
2066
if (passwd == NULL)
2067
return STATUS_EOF; /* client wouldn't send password */
2068
2069
+ if (strlen(passwd) == 0)
2070
+ {
2071
+ ereport(LOG,
2072
+ (errmsg("empty password returned by client")));
2073
+ return STATUS_ERROR;
2074
+ }
2075
+
2076
ldap = ldap_init(port->hba->ldapserver, port->hba->ldapport);
2077
if (!ldap)
2078
{
0 commit comments