In master/source3/utils/passdb/pdb_interface.c, a debug message sais "set the maximum used RID using 'net setmaxrid' and remove the parameter", but 'net setmaxrid' does not exist at all. Either adapt the debug message or add the command.
The debug message has been corrected with c94d1cd7 in master. 'net setmaxrid' would be useful nonetheless.
Too late for enhancements in 3.5 Raising version.