--On Tuesday, May 16, 2023 6:50 PM +0000 terry.lem...@dell.com wrote:
Hi - like Luca, I'd like to use the inetOrgPerson schema in my
environment. I followed
https://www.openldap.org/doc/admin26/quickstart.html to deploy an
openldap 2.6.4 system. Looking in slapd.conf, I saw that only one schema
is included by default:
include /usr/local/etc/openldap/schema/core.schema
So, wanting to also use inetOrgPerson, I added a second include statement:
include /usr/local/etc/openldap/schema/inetorgperson.ldif
I ran:
rm -r /usr/local/etc/slapd.d/* - I know, I need to figure out ldapmodify
/usr/local/sbin/slapadd -n 0 -F /usr/local/etc/slapd.d -l
/usr/local/etc/openldap/slapd.ldif /usr/local/libexec/slapd -F
/usr/local/etc/slapd.d -h "ldap:/// ldaps:///"
But I don't see inetOrgPerson appear in the list of objectClasses. Have I
missed a step?
The documented method of converting a 'slapd.conf' file to a 'slapd-config'
database is to use the 'slaptest' binary, like:
slaptest -f /path/to/slapd.conf -F /path/to/slapd.d
If you want to include a schema file in a cn=config slapd.ldif file, then
you probably want to read over my blog here:
<https://mishikal.wordpress.com/2019/04/23/configuring-mmr-using-delta-syncrepl-in-openldap-updating-an-existing-standalone-configuration/>
as it has an example of how to correctly include a schema file for import.
I'd note that most of your arguments to your slapadd command are
non-sensical, I suggest reading the man page.
Regards,
Quanah