]> andersk Git - mod-vhost-ldap.git/blobdiff - mod_vhost_ldap.c
revamp directory structure: step 3
[mod-vhost-ldap.git] / mod_vhost_ldap.c
index 4693368582c57350c9e13499a0a996eebf7cd9b4..a66e069ae43a108f53dead7d342530cc5c1f3795 100644 (file)
@@ -21,7 +21,6 @@
  */
 
 #define CORE_PRIVATE
-#define MOD_VHOST_VERSION "mod_vhost_ldap/0.2.2"
 
 #include <unistd.h>
 
 #include "unixd.h"              /* Contains the suexec_identity hook used on Unix */
 #endif
 
-#define MIN_UID 1000
-#define MIN_GID 1000
+#define MIN_UID 100
+#define MIN_GID 100
 
 module AP_MODULE_DECLARE_DATA vhost_ldap_module;
 
 typedef struct mod_vhost_ldap_config_t {
     apr_pool_t *pool;                  /* Pool that this config is allocated from */
-#if APR_HAS_THREADS
-    apr_thread_mutex_t *lock;           /* Lock for this config */
-#endif
     int enabled;                       /* Is vhost_ldap enabled? */
 
     /* These parameters are all derived from the VhostLDAPURL directive */
@@ -114,10 +110,6 @@ mod_vhost_ldap_create_server_config (apr_pool_t *p, server_rec *s)
 
     cfg->pool = p;
 
-#if APR_HAS_THREADS
-    apr_thread_mutex_create(&cfg->lock, APR_THREAD_MUTEX_DEFAULT, p);
-#endif
-
     cfg->enabled = 0;
     cfg->have_ldap_url = 0;
     cfg->url = "";
@@ -491,7 +483,7 @@ static ap_unix_identity_t *mod_vhost_ldap_get_suexec_id_doer(const request_rec *
   uid = (uid_t)atoll(req->uid);
   gid = (gid_t)atoll(req->gid);
 
-  if ((uid <= MIN_UID)||(gid <= MIN_GID)) {
+  if ((uid < MIN_UID)||(gid < MIN_GID)) {
       return NULL;
   }
 
This page took 0.149905 seconds and 4 git commands to generate.