Subject: RE: The Answer to this problem!
Here’s a related question/answer with references
My ldapsearch for a direct group member does not return all members
There are two probable reasons for this:
The Group document’s Member list does not list the “distinguished name” of the member (e.g., “Ken Lin/Westford/IBM”), but instead lists some other non-fully qualified name (e.g., “Ken Lin”). Both the LDAP groupOfNames specification and Notes Internet Authentication require distinguished names.
Note When Domino authenticates an Internet user, it uses the “distinguished name,” which is the first name that appears in the Full Name field of a Person document. This name should be used in entries for groups, delegated server administration, database ACLs, and file protection documents.
a. Next, the server compiles a “grouplist,” which contains Andrew’s distinguished name, plus any wildcard entries and any groups of which he is a member on that server.
b. The server then checks the database ACL to determine if Andrew’s name is listed explicitly on the ACL, or if any of the grouplist entries for his name appear in the ACL.
c. If Andrew’s distinguished name, or the name of any group of which is a member, matches an entry in the ACL, then Andrew gets access to the database using the access level specified for that entry in the ACL. Otherwise, he is denied access.
The Group document is a Mail Only group:
LDAPGroupMembership
Syntax: LDAPGroupMembership=value
Description: The LDAP service always searches Domino groups specified as “Multi-purpose,” “Access Control List only,” “Servers only,” or “Deny List only” groups because it can do so quickly. However because searches of Domino Groups specified as “Mail only” groups or of groups that do not have a value for the GroupType attribute can be slow, by default the LDAP service does not always search these types of groups. The LDAP service does not search these types of groups if a search query meets all of the following criteria, indicating a query that is typically used for authentication:
A search query uses the equality filter objectclass=value, where value is one of these object classes: groupOfNames, groupOfUniqueNames, dominoGroup, or group.
A search query uses an equality filter with one of these attributes: member, uniqueMember, or members.
The two filters above are concatenated using the AND operator.
For example, by default the LDAP service does not search Domino “Mail only” groups and groups that do not have values for the GroupType attribute if search queries such as these are specified:
(&(objectclass=dominoGroup)(member=cn=jack brown,o=acme))
(|(&(objectclass=groupOfUniqueNames)(uniqueMember=cn=jack brown,o=acme))(&(objectclass=groupOfNames)(member=cn=jack brown,o=acme)))
However, by default the LDAP service does search these groups if search queries such as these are specified:
(&(objectclass=dominoGroup)(member=br))
(member=cn=jack brown,o=acme)
(|(&(objectclass=dominoGroup)(member=cn=jack brown,o=acme))(cn=groupname))
To change the LDAP service default behavior for group searches, specify one of these values for this setting:
1 - Always search all groups that meet specified search criteria. If you choose this setting, full-text indexing the directory is recommended to improve the speed of searches of Domino “Mail only” groups and groups that do not use the GroupType attribute.
2 - Never search Domino “Mail only” groups or groups that do not use the GroupType attribute.
Note In Domino 5 the name of this setting is LDAP_MailOnlyGroupOption. The name has been changed in Domino 6 for clarity. However, you can use either setting name.