httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_auth_ldap.c
Date Tue, 06 Apr 2004 15:12:27 GMT
bnicholes    2004/04/06 08:12:27

  Modified:    modules/experimental mod_auth_ldap.c
  Log:
  Make sure that if auth_ldap is loaded, mod_ldap is also loaded
  
  Revision  Changes    Path
  1.22      +9 -0      httpd-2.0/modules/experimental/mod_auth_ldap.c
  
  Index: mod_auth_ldap.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_auth_ldap.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- mod_auth_ldap.c	9 Feb 2004 20:29:18 -0000	1.21
  +++ mod_auth_ldap.c	6 Apr 2004 15:12:27 -0000	1.22
  @@ -953,6 +953,15 @@
       }
       */
   
  +    /* make sure that mod_ldap (util_ldap) is loaded */
  +    if (ap_find_linked_module("util_ldap.c") == NULL) {
  +        ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, s,
  +                     "Module mod_ldap missing. Mod_ldap (aka. util_ldap) "
  +                     "must be loaded in order for mod_auth_ldap to function properly");
  +        return HTTP_INTERNAL_SERVER_ERROR;
  +
  +    }
  +
       if (!charset_confname) {
           return OK;
       }
  
  
  

Mime
View raw message