以下是一个简单的目录上下文配置
<Directory /root/apache2/doc>
AuthType Basic
AuthName Document
AuthUserFile /root/apache2/auth/passwd
Require user rote
</Directory>
上面是通过AuthUserType指定的用户信息文件,还可通过下面两种方式设置授权,效果同上
一、用户文件
<AuthnProviderAlias file pwdfile>
AuthUserFile /root/apache2/auth/passwd
</AuthnProviderAlias>
<Directory /root/apache2/doc>
AuthType Basic
AuthName Document
AuthBasicProvider pwdfile
Require user rote
</Directory>
二、LDAP
<AuthnProviderAlias ldap ldap1>
AuthLDAPBindDN cn=rote,o=ctx
AuthLDAPBindPassword 123
AuthLDAPURL ldap://ldap.host/o=ctx
</AuthProviderAlias>
<AuthnProviderAlias ldap ldap2>
AuthLDAPBindDN cn=rote,o=dev
AuthLDAPBindPassword 123
AuthLDAPURL ldap://other.ldap.host/o=dev?cn
</AuthProviderAlias>
<Directory /webpages/secure>
AuthBasicProvider ldap1 ldap2
AuthType Basic
AuthName LDAP
Require valid-user
</Directory>
分享到:
相关推荐
Cognos8.4 新增的功能,Cognos 第三方认证,Cognos的 Custom Java provider认证方式利用已有用户信息做权限以及登录验证!
NULL 博文链接:https://samjavaeye.iteye.com/blog/902229
An apache2 authentication provider implementation, redmine database is used for authenticate. It can be used for subversion authentication, etc. Please visit project home page for more help.
NULL 博文链接:https://wcf1987.iteye.com/blog/1253254
Windows.Security.Authentication.Identity.Provider
Apache Tomcat 软件是Jakarta Servlet、 Jakarta Server Pages、 Jakarta Expression Language、 Jakarta WebSocket、 Jakarta Annotations和 Jakarta Authentication 规范的开源实现 。 压缩包内容: apache-...
和HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Provider Filters\{F617AF08-2856-419c-B4E5-2889C6B71EA9} 键值. 可以修改Register.reg去除 [HKEY_LOCAL_MACHINE\...
认证(Authentication) 对诸如服务器、客户端或用户等网络实体的真实性鉴定。 见: Authentication, Authorization, and Access Control 访问控制(Access Control) 对网络领域访问的限制。对Apache来说,通常是指对...
IBM Cognos 8 SDK custom authentication JDBC provider Sample。 包含jar文件、java代码和表结构,可以在Java Provider中使用。 For Oracle Only。
Quantum authentication of classical messagesQuantum authentication of classical messagesQuantum authentication of classical messages
apache benchmark 独立文件 ab.exe 可以直接使用 Version 2.3。一般用户压力测试用。参数如下 .\ab.exe --help Options are: -n requests Number of requests to perform -c concurrency Number of multiple ...
FormsAuthentication 权限验证
Authentication protocols are the basis of security in many distributed systems, and it is therefore essential to ensure that these protocols function correctly. Unfortunately, their design has been ...
AnAppledeviceverifieswhetherathird-partyaccessoryattachedtoitisauthorizedforusewiththeApple devicebyissuinganauthenticationchallengetotheaccessory.TheaccessorymustrespondtotheApple device'schallenge
802.1x Authentication
CADSContinuous Authentication on Data Streams
android client ksoap2 token apache cxf wss4j authentication
主要给大家介绍了关于MySQL连接抛出Authentication Failed错误的分析与解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
(1)认证任务:待遇管理单位根据工作需要,安排在某时间段内完成的生存认证工作。 (2)工作时段:完成此项认证任务的起止时间; (3)任务名称:例如“城乡居民基本养老保险2018第2季度资格认证”,划线部分在任务策划...