Fix large-db-ldif undefined method error

Merged James Lopez requested to merge fix/large-db-error into master