资源简介
Linux(centos)下的Apache安装压缩包:httpd-2.2.34.tar.gz,结合我的博客http://blog.csdn.net/jing12062011/article/details/76850284使用,留存一下便于以后搭建系统用
代码片段和文件信息
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include “ap_provider.h“
#include “httpd.h“
#include “http_config.h“
#include “http_core.h“
#include “http_log.h“
#include “http_protocol.h“
#include “http_request.h“
#include “util_ldap.h“
#include “mod_auth.h“
#include “apr_strings.h“
#include “apr_xlate.h“
#define APR_WANT_STRFUNC
#include “apr_want.h“
#include “apr_lib.h“
#if APR_HAVE_UNISTD_H
/* for getpid() */
#include
#endif
#include
#if !APR_HAS_LDAP
#error mod_authnz_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure.
#endif
typedef struct {
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 auth_authoritative; /* Is this auth method the one and only? */
/* int authz_enabled; Is ldap authorization enabled in this directory? */
/* These parameters are all derived from the AuthLDAPURL directive */
char *url; /* String representation of the URL */
char *host; /* Name of the LDAP server (or space separated list) */
int port; /* Port of the LDAP server */
char *basedn; /* base DN to do all searches from */
char *attribute; /* Attribute to search for */
char **attributes; /* Array of all the attributes to return */
int scope; /* Scope of the search */
char *filter; /* Filter to further limit the search */
deref_options deref; /* how to handle alias dereferening */
char *binddn; /* DN to bind to server (can be NULL) */
char *bindpw; /* Password to bind to server (can be NULL) */
int bind_authoritative; /* If true will return errors when bind fails */
int user_is_dn; /* If true connection->user is DN instead of userid */
char *remote_user_attribute; /* If set connection->user is this attribute instead of userid */
int compare_dn_on_server; /* If true will use server to do DN compare */
int have_
- 上一篇:Ansoft Rmxprt12 使用指南
- 下一篇:大漠7.1830
相关资源
- uboot到linux logo显示不间断 补丁
- UNIX/LINUX编程实践教程的源码
- Linux任务管理器
- linux应用层的华容道游戏源代码
- 官网Apache2.2
- ubuntu9.10 可加载内核模块和字符设备驱
- MP3文件ID3v2ID3v2APEv2标签读取
- 基于Apache Mina实现的TCP长连接和短连接
- 操作系统实验——虚存管理实验
- linux下的发包工具sendip
- 尚观培训linux许巍关于c 的笔记和讲义
- 尚观培训linux董亮老师关于数据结构的
- linux 线程池源码 c 版
- linux C 电梯程序练习
- linux下用多进程同步方法解决生产者
- Linux 操作系统实验(全)
- Linux From Scratch 中文手册
- linux 网络实验 ftp程序
- Linux命令大全离线版&在线版
- 操作系统共享内存实验
- dos 下运行Linux 命令--gnu_utils
- linux 0.12内核源代码
- linux简易shell C实现
- linux实验报告及心得体会
- 基于GTK的Linux环境下的简易任务管理器
- linux扫雷游戏代码
- CAN Linux驱动代码
- Linux系统教材
- php程序实现数据库的增删改查
- CentOS-6.7-x86_64-bin-DVD1to2
评论
共有 条评论