Skip to content

Instantly share code, notes, and snippets.

dn: cn=config
objectClass: olcGlobal
cn: config
olcConfigFile: slapd-m1.conf
olcConfigDir: /tmp/slapd.d
olcArgsFile: /var/run/openldap/slapd.args
olcAttributeOptions: lang-
olcAuthzPolicy: none
olcConcurrency: 0
olcConnMaxPending: 100
@quanah
quanah / gist:02715de596da945eae384a41bd140928
Created April 19, 2019 23:16
Update configuration to enable replication
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: syncprov
olcModuleLoad: accesslog
dn: cn=config
changetype: modify
replace: olcServerID
olcServerID: 1
dn: cn=replicator,cn=appaccts,dc=example,dc=com
objectClass: top
objectClass: inetOrgPerson
cn: replicator
sn: replicator
description: Application account for LDAP replication
userPassword: replicator
@quanah
quanah / gist:84ef0ebfda79c6c124137fea9be63494
Last active April 19, 2019 20:54
Example.com database
dn: dc=example,dc=com
objectClass: top
objectClass: organization
objectClass: dcObject
o: example
dc: example
structuralObjectClass: organization
entryUUID: 7af18f4a-f72a-1038-8e73-5b8b73457ee1
creatorsName: cn=manager,dc=example,dc=com
createTimestamp: 20190419200719Z
@quanah
quanah / gist:4c6e477c9946442889b9f84de2091fbf
Last active April 19, 2019 21:00
Basic slapd configuration
dn: cn=config
objectClass: olcGlobal
cn: config
olcLogLevel: sync
olcLogLevel: stats
olcPidFile: /var/run/slapd/slapd.pid
olcArgsFile: /var/run/slapd/slapd.args
olcToolThreads: 2
olcAuthzRegexp: {0}gidNumber=0\+uidNumber=0,cn=peercred,cn=external,cn=auth cn
=config
@quanah
quanah / gist:9376cbed4d2d83baa9db61db26b24a91
Last active January 5, 2019 21:45
MMR provider node 1 for cn=config
dn: cn=config
objectClass: olcGlobal
cn: config
olcLogLevel: Sync
olcLogLevel: Stats
olcPidFile: /var/log/slapd.pid
olcArgsFile: /var/log/slapd.args
olcServerID: 1
dn: cn=schema,cn=config