node-activedirectory
node-activedirectory copied to clipboard
getUsersForGroup doesn't return users
Searching for group members
dn\":\"CN=Employees,OU=Roles,OU=Security Groups,OU=MyBusiness,DC=company,DC=lan
produces a list of members when searching for the group, but not when actually searching for the group members:
{
"name":"ActiveDirectory",
"hostname":"STAGBEETLE",
"pid":6296,
"level":30,
"msg":"
1 group(s) found for query \"(&(objectCategory=Group)(cn=Employees))\".
Returning first group:
{
\"dn\":\"CN=Employees,OU=Roles,OU=Security Groups,OU=MyBusiness,DC=company,DC=lan\",
\"cn\":\"Employees\",\"member\": [LIST OF EMPLOYEES]
}",
"time":"2016-11-22T12:06:17.850Z",
"v":0
}
The group is found and the list of members is included. However, the subsequent filter, which searches for individuals (constructed activedirectory.js:1024) does not return any search results.
{
"name":"ActiveDirectory",
"hostname":"STAGBEETLE",
"pid":6296,
"level":30,
"msg":"
Active directory search (OU=Softwire Roles,OU=Security Groups,OU=MyBusiness,DC=zoo,DC=lan)
for
\"(&
(|(objectCategory=User)(objectCategory=Group))
(|
(distinguishedName=CN=EmployeeA,OU=Employees,OU=Users,OU=MyBusiness,DC=zoo,DC=lan)
[...]
(distinguishedName=CN=EmployeeB,OU=Employees,OU=Users,OU=MyBusiness,DC=zoo,DC=lan)
)
)\" returned 0 entries.",
"time":"2016-11-22T12:06:17.880Z",
"v":0
}
{
"name":"ActiveDirectory",
"hostname":"STAGBEETLE",
"pid":1876,
"level":30,
"msg":"0 user(s) belong in the group \"Employees\"",
"time":"2016-11-22T12:21:07.084Z",
"v":0
}