Mike Jackson
2006-Apr-06 21:50 UTC
Re: [Fedora-directory-users] Schema Conversion (again).
Robert r. Sanders wrote:> We''re trying to get the Zimbra Collaboration Suite to talk to a Fedora > Directory Server (Zimbra by default uses its own version of OpenLDAP). > Zimbra includes LDAP schema files, and we''ve tried to use Mike Jackson''s > schema migration tool ol-schema-migrate.pl as well as the ol2rhds.pl > script. The problem appears to be that the schema in question makes > heavy use of the OpenLDAP OID Macros (see > http://www.openldap.org/doc/admin23/schema.html , the "OID Macros" > section at the bottom of the page).Hi, Somebody contributed an OID macro patch once, but it did not work very well and I had to reverse it. If you are in a hurry, just go through the file and replace the macros, then run the migration tool. BR, -- mike
Robert r. Sanders
2006-Apr-06 21:51 UTC
[Fedora-directory-users] Schema Conversion (again).
We''re trying to get the Zimbra Collaboration Suite to talk to a Fedora
Directory Server (Zimbra by default uses its own version of OpenLDAP).
Zimbra includes LDAP schema files, and we''ve tried to use Mike
Jackson''s
schema migration tool ol-schema-migrate.pl as well as the ol2rhds.pl
script. The problem appears to be that the schema in question makes
heavy use of the OpenLDAP OID Macros (see
http://www.openldap.org/doc/admin23/schema.html , the "OID Macros"
section at the bottom of the page).
Does anyone know of any tools which would help?
A sample of the original schema is:
objectIdentifier ZimbraRoot 1.3.6.1.4.1.19348
objectIdentifier ZimbraLDAP ZimbraRoot:2
...
objectIdentifier ZimbraAttrType ZimbraLDAP:1
...
objectIdentifier zimbraComponentAvailable ZimbraAttrType:242
...
attributetype ( zimbraComponentAvailable
NAME ''zimbraComponentAvailable''
DESC ''Names of additonal components that have been
installed''
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64} )
The complete schema can be viewed at -
http://cvs.zimbra.com:8080/viewrep/~raw,r=1.48/zimbra_main/ZimbraServer/conf/ldap/zimbra.schema
My understanding is that OpenLDAP knows to replace the "attributetype (
zimbraComponentAvailable" with "attributetype (
1.3.6.1.4.1.19348.2.242"
(or something similar).
The referenced perl scripts output:
attributeTypes: (
zimbraComponentAvailable
NAME ''zimbraComponentAvailable''
DESC ''Names of additonal components that have been
installed''
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64}
)
which fails to load properly as the symbolic name
"zimbraComponentAvailable" is not replaced by the actual value.
Anyway, any help would be very appreciated.
Thanks,
--
Robert r. Sanders
Chief Technologist
iPOV
(334) 821-5412
www.ipov.net
Robert r. Sanders wrote:> We''re trying to get the Zimbra Collaboration Suite to talk to a Fedora > Directory Server (Zimbra by default uses its own version of OpenLDAP). > Zimbra includes LDAP schema files, and we''ve tried to use Mike Jackson''s > schema migration tool ol-schema-migrate.pl as well as the ol2rhds.pl > script. The problem appears to be that the schema in question makes > heavy use of the OpenLDAP OID Macros (see > http://www.openldap.org/doc/admin23/schema.html , the "OID Macros" > section at the bottom of the page). > > Does anyone know of any tools which would help?If your OpenLDAP schema is readable via LDAP, then the LdapImport.pl tool should be able to read your schema from OpenLDAP and write it directly to a running FDS server: http://wiki.babel.com.au/index.php?area=Linux_Projects&page=LdapImport -- Del Babel Com Australia http://www.babel.com.au/ ph: 02 9368 0728 fax: 02 9368 0758