Bug 9567 - oLschema2ldif fail to import any SYNTAX that isn't in dsdb_syntaxes array
oLschema2ldif fail to import any SYNTAX that isn't in dsdb_syntaxes array
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Tools
4.0.0
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-17 11:43 UTC by Alejandro Escanero Blanco
Modified: 2013-03-18 11:08 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Escanero Blanco 2013-01-17 11:43:58 UTC
oLschema2ldif fail to import SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 (PostalAddress)


Backtrace give us:

#0  0x00007ffff6a5653d in __strcasecmp_l_ssse3 () from /lib64/libc.so.6
#1  0x00007ffff710eecd in find_syntax_map_by_standard_oid (standard_oid=0x647890 "1.3.6.1.4.1.1466.115.121.1.41") at ../source4/dsdb/schema/schema_syntax.c:2656
#2  0x0000000000403244 in process_entry (mem_ctx=0x60e9b0, 
    entry=0x6464e0 "attributetype ( 1.3.6.1.4.1.7200.2.3.6 NAME 'LikePostalAddress'        DESC 'TEST'\tSYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )")
    at ../source4/utils/oLschema2ldif.c:475
#3  0x00000000004034e7 in process_file (in=0x60f170, out=0x60fef0) at ../source4/utils/oLschema2ldif.c:551
#4  0x00000000004039be in main (argc=7, argv=0x7fffffffe5a8) at ../source4/utils/oLschema2ldif.c:683
Comment 1 Alejandro Escanero Blanco 2013-03-18 11:00:51 UTC
Why don't check this block the long of dsdb_syntaxes array?
---
        for (i=0; dsdb_syntaxes[i].ldap_oid; i++) {
                 dsdb_syntaxes[i].ldap_oid));
                if (strcasecmp(standard_oid, dsdb_syntaxes[i].ldap_oid) == 0) {
                        return &dsdb_syntaxes[i];
                }
        }
---
Comment 2 Alejandro Escanero Blanco 2013-03-18 11:08:07 UTC
Also can't import 1.3.6.1.4.1.1466.115.121.1.22 -> AD-Syntaxes.txt:Facsimile Telephone Number  1.3.6.1.4.1.1466.115.121.1.22