*/
#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 */
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 = "";
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;
}