Score:0

Enabling an overlay on an OpenLDAP spare

cn flag

I have two OpenLDAP server, one master and one slave synchronized with syncprov. I would like to enable the memberof overlay on both. I successfully enabled the overlay on the master server, but I cannot manage to do the same on the replica.

$ sudo ldapmodify -Y EXTERNAL -H ldapi:/// << EOF
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: memberof
-
EOF
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "cn=module{0},cn=config"
ldap_modify: Server is unwilling to perform (53)
    additional info: shadow context; no update referral

Am I doing something wrong here? Should I stop the server and manually edit its configuration?

Score:0
cn flag

I could succeed by stopping the slapd service on the spare, and then manually edit the configuration files at /etc/openldap/slapd.d/cn=config/cn=module{0}.ldif

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.