I ran into a problem. The standard package for NetCor App System.DirectoryServices is not supported on Linux. It was decided to move to the Novell.Directory.Ldap.NETStandard.
In AD, there is a limit on 1000 search results. How to return more than 1000 results on a client using Novell.Directory.Ldap.NETStandard?
This my code. It returns only 1000 records.
LdapSearchQueue queue = connection.Search("<this my base entry>",
LdapConnection.SCOPE_SUB,
"<this my filter>",
attr,
false,
(LdapSearchQueue)null,
new LdapSearchConstraints { MaxResults = 0 });
LdapMessage message;
while ((message = queue.getResponse()) != null)
{
if (message is LdapSearchResult)
{
LdapEntry entry = ((LdapSearchResult)message).Entry;
LdapAttributeSet attributeSet = entry.getAttributeSet();
var atr = attributeSet.getAttribute("sAMAccountName");
list.Add(atr.StringValue);
}
}