I solved my problem myself, it helped me to add this ldif to the circuit
dn: CN=nisMailAlias,CN=Schema,CN=Configuration,DC=soft,DC=biz
changetype: modify
add: possSuperiors
possSuperiors: container
that is, I added support for containers and after that I was able to add
all entries with nisMailAliases for cn
??, 31 ??? 2024??. ? 15:59, Omnis ludis - games <sergey.gortinsc17 at
gmail.com>:
> I expanded my schema and am trying to add these entries to ldap
> dn: cn=test,ou=soft_users,dc=soft,dc=biz
> cn: test
> objectClass: nisMailAlias
> objectClass: top
> rfc822MailMember: test at ml.soft.com
> but I get the following error
> ldbadd -H /opt/samba/private/sam.ldb mail3.ldif
> ERR: Naming violation : "structural objectClass nisMailAlias is not a
> valid child class for OU=soft_users,DC=soft,DC=biz" on DN
> cn=test,ou=soft_users,dc=soft,dc=biz
> how can I fix this error and add objects to ldap?
>