summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-23 07:23:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:30 -0500
commit1222a1c456785f2b0046efc271ac8bfff3be2753 (patch)
tree025186f2deac3d3f5a5a109dc311e898ce00385f /source4/lib
parentf72d4bfea1d436712448619b257930aa52e543c2 (diff)
downloadsamba-1222a1c456785f2b0046efc271ac8bfff3be2753.tar.gz
samba-1222a1c456785f2b0046efc271ac8bfff3be2753.tar.bz2
samba-1222a1c456785f2b0046efc271ac8bfff3be2753.zip
r22475: Rather than segfault, show the name of the malformed entry.
Andrew Bartlett (This used to be commit e1536014a05645fd2300de5152e966aa1e067436)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/tools/ad2oLschema.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/ad2oLschema.c b/source4/lib/ldb/tools/ad2oLschema.c
index 04b9efae8f..285820b512 100644
--- a/source4/lib/ldb/tools/ad2oLschema.c
+++ b/source4/lib/ldb/tools/ad2oLschema.c
@@ -325,6 +325,12 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_
char *schema_entry = NULL;
int j;
+ if (!name) {
+ printf("Failed to find lDAPDisplayName for schema DN: %s\n", ldb_dn_get_linearized(msg->dn));
+ ret.failures = 1;
+ continue;
+ }
+
/* We have been asked to skip some attributes/objectClasses */
if (attrs_skip && str_list_check_ci(attrs_skip, name)) {
ret.skipped++;