*** a/lib/ldb/common/ldb_dn.c.ori 2019-09-11 08:44:24.000000000 +0200 --- b/lib/ldb/common/ldb_dn.c 2019-11-24 16:49:05.980673848 +0100 *************** *** 536,542 **** } if (trim == true) { ! if (*p == ' ') { p++; continue; } --- 536,542 ---- } if (trim == true) { ! if (*p == ' ' || *p == '\r' || *p == '\n') { p++; continue; } *************** *** 686,692 **** break; } ! if (*p == ' ') { if (t == NULL) { t = p; } --- 686,692 ---- break; } ! if (*p == ' ' || *p == '\r' || *p == '\n') { if (t == NULL) { t = p; }