Kees van Vloten
2021-May-26 17:18 UTC
[Samba] oLschema2ldif - converting ldap schemas for Samba
I am trying to convert OpenLDAP schemas to Samba-addc. I found a binary called 'oLschema2ldif' in the Samba package (Samba 4.14), which has a promising name, but not very descriptive help and man-page. I could not find much with google nor could I anything converted with oLschema2ldif :-( Does anyone have experience with creating or converting ldap schemas for use with Samba? - Kees
Andrew Bartlett
2021-May-26 17:47 UTC
[Samba] oLschema2ldif - converting ldap schemas for Samba
On Wed, 2021-05-26 at 19:18 +0200, Kees van Vloten via samba wrote:> I am trying to convert OpenLDAP schemas to Samba-addc. I found a > binary > called 'oLschema2ldif' in the Samba package (Samba 4.14), which has > a > promising name, but not very descriptive help and man-page. > > I could not find much with google nor could I anything converted > with > oLschema2ldif :-( > Does anyone have experience with creating or converting ldap schemas > for > use with Samba?See https://wiki.samba.org/index.php/Samba_AD_schema_extensions for some more context, but yes, if you do mange to write up something on what this tool can and can't do (it is quite limited) then please update the wiki with a section on it. oLschema2ldif came from a very early time in Samba AD development when we thought people would need to convert a lot of schema automatically, but hasn't had any love for years. oLschema2ldif tries to take in the original style of OpenLDAP schema (not what at the time was the new-fashio in-directory LDIF format) and output something that might import as an AD schema. Andrew Bartlett -- Andrew Bartlett (he/him) https://samba.org/~abartlet/ Samba Team Member (since 2001) https://samba.org Samba Team Lead, Catalyst IT https://catalyst.net.nz/services/samba Samba Development and Support, Catalyst IT - Expert Open Source Solutions
Rowland penny
2021-May-26 17:52 UTC
[Samba] oLschema2ldif - converting ldap schemas for Samba
On 26/05/2021 18:18, Kees van Vloten via samba wrote:> I am trying to convert OpenLDAP schemas to Samba-addc. I found a > binary called 'oLschema2ldif' in the Samba package (Samba 4.14), which > has a promising name, but not very descriptive help and man-page. > > I could not find much with google nor could I anything converted with > oLschema2ldif :-( > Does anyone have experience with creating or converting ldap schemas > for use with Samba? > > - Kees > >Syntax: oLschema2ldif --basedn=DN --input=inputfile --output=outputfile Where: ?'DN' is the AD domain DN e.g. DC=samdom,DC=example,DC=com ?'inputfile' is an Openldap schema (not an ldif) ?'outputfile' is what you want the resultant ldif to be called. You can use a path for the two files, they do not have to be in the directory from where you run the command. We do have a wikipage for how you add the ldif to Samba AD: https://wiki.samba.org/index.php/Samba_AD_schema_extensions Please be aware that extending the AD schema is one way, once in, you can never remove the schema extension. Just has a final thought, what do want to add to AD ? Rowland