[Samba] Problem adding sshPublicKeys to schema.

Reese Wang thuwrx10 at gmail.com
Sun Aug 27 01:23:05 UTC 2023

I'm following Samba AD schema extensions wiki page to add
sshPublicKeys to schema, but ldbmodify returned the following error:

# LDB_MODULES_PATH=/usr/lib64/samba/ldb/ ldbmodify -H
/var/lib/samba/private/sam.ldb Sshpubkey.ldif.txt
--option="dsdb:schema update allowed"=true
ERR: (Constraint violation) "000020B5: Referenced object not found at
on DN CN=sshPublicKey,DC=ad,DC=example,DC=org at block before line 16
Modify failed after processing 0 records

What am I missing here? I'm using Samba 4.18.6 in Arch Linux docker container.
My Sshpubkey.ldif.txt:
dn: CN=sshPublicKey,DC=ad,DC=example,DC=org
changetype: add
objectClass: top
objectClass: attributeSchema
cn: sshPublicKey
name: sshPublicKey
lDAPDisplayName: sshPublicKey
description: MANDATORY: OpenSSH Public key
oMSyntax: 4
isSingleValued: FALSE
objectCategory: CN=Attribute-Schema,DC=ad,DC=example,DC=org
searchFlags: 8
schemaIDGUID:: cjDAZyEXzU+/akI0EGDW+g==

More information about the samba mailing list