redmine 微软ldap验证配置
CN, OU, DC 都是 LDAP 连接服务器的端字符串中的区别名称(DN, distinguished name)
LDAP连接服务器的连接字串格式为:ldap://servername/DN
其中DN有三个属性,分别是CN,OU,DC
LDAP是一种通讯协议,如同HTTP是一种协议一样的!
在 LDAP 目录中, - DC (Domain Component)
- CN (Common Name)
- OU (Organizational Unit)
例如:CN=test,OU=developer,DC=domainname,DC=com
在上面的代码中 cn=test 可能代表一个用户名,ou=developer 代表一个 active directory 中的组织单位。这句话的含义可能就是说明 test 这个对象处在domainname.com 域的 developer 组织单元中 先上我已经测试通过的图 Here is an typical example using Active Directory: - Name = My Directory
- Host = host.domain.org
- Port = 389
- LDAPS = no
- Account = MyDomainUserName (or UserName@MyDomain depending on AD server)
- Password =
- Base DN = CN=users,DC=host,DC=domain,DC=org
-
- On-the-fly user creation = yes
- Attributes
- Login = sAMAccountName
- Firstname = givenName
- Lastname = sN
- Email = mail
复制代码 Here is another example for Active Directory with a compartmentalized intranet:- Name = Just a description for the auth modes page
- Host = DepartmentName.OrganizationName.local
- Port = 389
- LDAPS = no
- Account = DepartmentNameUserName (or UserName@MyDomain depending on AD server or bind DN uid=Manager,cn=users,dc=MyDomain,dc=com)
- Password =
- Base DN = DC=DepartmentName,DC=OrganizationName,DC=local
-
- On-the-fly user creation = yes
- Attributes
- Login = sAMAccountName
- Firstname = givenName
- Lastname = sN
- Email = mail
复制代码 redmine 微软ldap验证配置
|