Skip to content

Duplicate declaration #15

@rvalkenaers

Description

@rvalkenaers

Hello,

I'm trying to add the ssh-keys to the ldap schema (and it's working).

However the second time I run puppet I get a duplicate error:
Error details:
Execution of '/usr/bin/ldapadd -H ldapi:/// -d 0 -f /tmp/ldap_apply_work20150805-8865-1y0lqic -QY EXTERNAL' returned 80: ldap_add: Other (e.g., implementation specific) error (80)
additional info: olcAttributeTypes: Duplicate attributeType: "1.3.6.1.4.1.24552.500.1.1.1.13"
adding new entry "cn=openssh-openldap,cn=schema,cn=config"
Error: /Stage[main]/Ldap::Server/Ldapdn[schema add ssh]/ensure: change from absent to present failed: Ldap Modify Error

My declaration looks like this:

ldapdn{'schema add ssh':
dn => "cn=openssh-openldap,cn=schema,cn=config",
attributes => ["objectClass: olcSchemaConfig",
"cn: openssh-openldap",
"olcAttributeTypes: {0}( 1.3.6.1.4.1.24552.500.1.1.1.13 NAME 'sshPublicKey' DESC 'MANDATORY: OpenSSH Public key' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )",
"olcObjectClasses: {0}( 1.3.6.1.4.1.24552.500.1.1.2.0 NAME 'ldapPublicKey' DESC 'MANDATORY: OpenSSH LPK objectclass' SUP top AUXILIARY MUST ( sshPublicKey $ uid ) )"],
unique_attributes => ['olcAttributeTypes'],
ensure => present,
}

I already tried a ton of things as unique_attributes but nothing seems to work.

Am I missing something?

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions