/*
- * $Id$
- *
* These functions implement the portions of AUTHMODE_LDAP and AUTHMODE_LDAP_AD which
* actually speak to the LDAP server.
*
LDAP *ldserver = NULL;
int i = (-1);
+ if (IsEmptyStr(password)) {
+ CtdlLogPrintf(CTDL_DEBUG, "LDAP: empty passwords are not permitted\n");
+ return(1);
+ }
+
CtdlLogPrintf(CTDL_DEBUG, "LDAP: trying to bind as %s\n", user_dn);
ldserver = ldap_init(config.c_ldap_host, config.c_ldap_port);
if (ldserver) {