Skip to content

Instantly share code, notes, and snippets.

@mjuszczak
Created November 23, 2015 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjuszczak/d21c06f4f9b23bf7cef5 to your computer and use it in GitHub Desktop.
Save mjuszczak/d21c06f4f9b23bf7cef5 to your computer and use it in GitHub Desktop.
Simple AD SSH Public Key Schema
dn: CN=sshPublicKey,CN=Schema,CN=Configuration,DC=example,DC=com
changetype: add
objectClass: top
objectClass: attributeSchema
attributeID: 1.3.6.1.4.1.1466.115.121.1.40
cn: sshPublicKey
name: sshPublicKey
lDAPDisplayName: sshPublicKey
description: Users public SSH key
attributeSyntax: 2.5.5.5
oMSyntax: 22
isSingleValued: FALSE
dn: CN=ldapPublicKey,CN=Schema,CN=Configuration,DC=example,DC=com
changetype: add
objectClass: top
objectClass: classSchema
governsID: 1.3.6.1.4.1.1466.115.121.1.40
cn: ldapPublicKey
name: ldapPublicKey
lDAPDisplayName: ldapPublicKey
description: Used to store SSH keys in LDAP
subClassOf: top
objectClassCategory: 3
mayContain: sshPublicKey
mayContain: uid
@jeidsath
Copy link

jeidsath commented Aug 2, 2017

Line 18 governsID gives me an "already in use!" error on add. I changed it to:

1.3.6.1.4.1.24552.500.1.1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment