I am not very fit in LDAP. Could you please take a look on my slapd.ldif file that is used to configure my server?
I'll be happy to hear any comments from your site (there might be multiple flows and nonsenses here), but the biggest problem I found so far is that ApacheDirectoryStudio complains on connect Missing schema location in RootDSE, using default schema
So I tried to display RootDN with ldapsearch -x ldap -b '' -s base + but I got:
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: ldap +
#
search result
search: 2
result: 0 Success
numResponses: 1
so basically nothing.
This im my ldif file:
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /opt/openldap/var/run/slapd.args
olcPidFile: /opt/openldap/var/run/slapd.pid
olcLogLevel: 384
olcLogFile: /opt/openldap/logs/slapd.log
# olcTLSCACertificateFile: /pki/cacerts.pem
# olcTLSCertificateFile: /pki/ldapcert.pem
# olcTLSCertificateKeyFile: /pki/ldapkey.pem
# olcTLSCipherSuite: TLSv1.2:HIGH:!aNULL:!eNULL
# olcTLSProtocolMin: 3.3
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /opt/openldap/libexec/openldap
olcModuleload: back_mdb.la
olcModuleload: pw-sha2.la
include: file:///opt/openldap/etc/openldap/schema/core.ldif
include: file:///opt/openldap/etc/openldap/schema/cosine.ldif
include: file:///opt/openldap/etc/openldap/schema/nis.ldif
include: file:///opt/openldap/etc/openldap/schema/inetorgperson.ldif
include: file:///opt/openldap/etc/openldap/schema/dyngroup.ldif
include: file:///opt/openldap/etc/openldap/schema/ppolicy.ldif
dn: olcDatabase=frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: frontend
olcPasswordHash: {SSHA512}
olcAccess: to dn.base="" by * read, to dn.base="cn=subschema" by * read, to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by * none
dn: olcDatabase=config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: config
olcRootDN: cn=config
olcAccess: to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by * none
dn: olcDatabase={1}mdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcSuffix: dc=contoso.dc=com
olcAccess: {0}to attrs=userPassword by anonymous auth by self write by * none
olcAccess: {1}to * by dn.exact="cn=admin,dc=contoso.dc=com" write by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by self write by * none
olcDbDirectory: /opt/openldap/data
olcRootDN: cn=admin,dc=contoso.dc=com
olcRootPW:: WhaTever==
In future I want to also extend schema with own attributes. Thanks for any hints!