*** lib/ldb/common/ldb_dn.c.ori 2019-01-15 11:07:00.000000000 +0100 --- lib/ldb/common/ldb_dn.c 2019-07-04 23:23:18.000000000 +0200 *************** *** 540,546 **** } if (trim) { ! if (*p == ' ') { p++; continue; } --- 540,546 ---- } if (trim) { ! if (*p == ' ' || *p == '\r' || *p == '\n') { p++; continue; } *************** *** 682,688 **** break; } ! if (*p == ' ') { if ( ! t) t = p; } else { if ( t ) t = NULL; --- 682,688 ---- break; } ! if (*p == ' ' || *p == '\r' || *p == '\n') { if ( ! t) t = p; } else { if ( t ) t = NULL;