[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: mdb wont replicate



On 07/08/2015 01:40 PM, Michael Ströder wrote:
Brendan Kearney wrote:
On 07/08/2015 10:11 AM, Michael Ströder wrote:
Brendan Kearney wrote:
i am replicating, using MMR, both config and data between two servers.  the
config and schemas replicate without issue, as well as the data in the mdb,
but not any of the settings for the mdb.  if i try, for example, to add an ACL
or Index to the mdb, i get an error "ObjectClass modifications are not
allowed".
Hmm, I have some doubts.

It would be helpful to the exact LDIF of the modify operation.
using phpLdapAdmin, i attempted to add an additional index of "member eq" and
got the below:

Could not perform ldap_modify operation.
LDAP said:    Cannot modify object class
Error number:    0x45 (LDAP_NO_OBJECT_CLASS_MODS)
Description:    ObjectClass modifications are not allowed.
I suspect it to be a client issue.

i'll have to try manually adding with ldapmodify.
Yes. If it fails then provide the exact LDIF change record used.

Ciao, Michael.

ldif file:
---------
dn: olcDatabase={2}mdb,cn=config
changetype: modify
delete: olcDbIndex
-
add: olcDbIndex
olcDbIndex: automountMapName,entryUUID,gidNumber,ipServicePort,ipServiceProtocol,krbPrincipalName,member,memberUid,objectClass,sudoHost,uid,uidNumber,entryCSN,modifyTimestamp eq
-
add: olcDbIndex
olcDbIndex: cn,givenName,mail,sudoHost,surname,ou eq,sub

ldapmodify command:
-----------------------------
[brendan@desktop ~]$ ldapmodify -vvv -f index.ldif
ldap_initialize( <DEFAULT> )
SASL/GSSAPI authentication started
SASL username: brendan@BPK2.COM
SASL SSF: 56
SASL data security layer installed.
delete olcDbIndex:
add olcDbIndex:
automountMapName,entryUUID,gidNumber,ipServicePort,ipServiceProtocol,krbPrincipalName,member,memberUid,objectClass,sudoHost,uid,uidNumber,entryCSN,modifyTimestamp eq
add olcDbIndex:
    cn,givenName,mail,sudoHost,surname,ou eq,sub
modifying entry "olcDatabase={2}mdb,cn=config"
ldap_modify: Cannot modify object class (69)
additional info: structural object class modification from 'olcHdbConfig' to 'olcMdbConfig' not allowed

so, i have conflicting objectClass and structuralObjectClass values. having seen the above error, i had phpLdapAdmin show me the internal attributes, and the structuralObjectClass is set to olcHdbConfig, but the objectClass is set to olcDatabaseConfig and olcMdbConfig.

this is a function of my export/import. i moved from one db type to the other in the upgrade, and this is a missed edit in the ldif manipulation i did between the export and import.

so, how do i un-bugger this ball of wax?

thanks,

brendan