我想使用CFLDAP来检索Exchange使用的某个通讯组中的所有用户.如果可以,我将如何使用CFLDAP的“过滤器”属性?此外,如果我拥有的是该组的电子邮件地址(例如“sales@example.com”),我仍然可以
例如,我将在下面的块中添加什么?
<cfldap server = "foo.example.com" action = "query" name = "ldap2" start = "dc=foo,dc=example,dc=com" attributes = "givenName,sn,sAMAccountName,mail,employeeID,dn" filter="?????????????" username="BAR\eterps" password="12345" >为了从电子邮件地址获取组名,我使用了Active Directory Explorer.我确信有一种方法可以查询它.
一旦我有了组名,我就为CFLDAP创建了我的过滤器:(&(objectClass = user)(memberOf = cn = Sales,ou = Email Distribution Groups,dc = foo,dc = example,dc = com))
因此,生成的CFLDAP查询如下所示:
<cfldap server = "foo.example.com" action = "query" name = "ldap2" start = "dc=foo,dc=example,dc=com" attributes = "givenName,sn,sAMAccountName,mail,employeeID,dn" filter="(&(objectClass=user)(memberOf=cn=Sales,ou=Email Distribution Groups,dc=foo,dc=example,dc=com))" username="BAR\eterps" password="12345" >