usrmgr retrieves only 511 users

Don Watson dwwatson at us.ibm.com
Tue Aug 9 12:04:34 GMT 2005


Hi Guenther,

The problem I'm having with only retrieving 511 users does not appear to be a 
vampire problem.  All my users in the ldap database (currently 1012 users) 
have the sambaAcctFlags set correctly.

I have traced the problem back as far as the call to _samr_query_dispinfo, in 
which max_entries is passed in through the SAMR_Q_QUERY_DISPINFO structure as 
512 (later changed to 511 by the _samr_query_dispinfo code).  So in spite of 
the fact that the call to pdb_search_entries (ultimately calls 
ldap_search_ext_s) returns all 1012 users, the call to pdb_search_entries is 
passed max_entries of 511.

I haven't yet determined who sets the buffer size for the pipe, could be 
Samba, could be Windows.

-- 
Don Watson


More information about the samba-technical mailing list