[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Is there any way to change structuralObjectClass of an LDAP entry?
- To: openldap-technical@openldap.org
- Subject: Is there any way to change structuralObjectClass of an LDAP entry?
- From: Marco Pizzoli <marco.pizzoli@gmail.com>
- Date: Thu, 28 Feb 2013 18:05:45 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=gYeepQ3E5/cmBJaTW7m1xt/iW2G3I30OGRUSGQ7DCrs=; b=InbZ5j9A3LGo9lo7npEA4mLVwFnznsSn3PkDuxd3nA7Y1q3CIs81tnR28b7Sa7ukjI SQfoGul4dUKk3zAp3MTm4oko/Du7wby3SUiJML+Yq7apuD1WlRFH9ZQ+AxYMBhaIM8Pr 6lOLHIlXwaopdxQt5DYQnEOIrSVL+H7Ws2z84YykeVvFy9hdsj4ioVQbgD6EPiukO/z0 W2djQv5tiMNB6Z6lXnNCfYc3FiLzgsdf8hQ4CFlbBzFHrJeNawH3vgpznhAN5lWjSscP ezZVL68OZbBiDeKh/K1zPwN+N3dCDJPQQFm+ijpMTPV4k6wZUYvbYopmCHz630EDkhWi eilA==
Hi all,
yes, I already know this is not possible. But I have a particular scenario and maybe someone could give advice.
In an LDAP tree I inherited some times ago, I have entries created many years ago by using a schema definition which implied an entry to acquire as structuralObjectClass a custom objectClass.
This custom objectClass (let's say it's called custObjectClass) inherits from inetOrgPerson and mandates some specific attributes.
Now, all entries are created expliciting the following objectClasses:
- top
- person
- organizationalPerson
- inetOrgPerson
- custObjectClass
The outcome is these entries have custObjectClass as structuralObjectClass.
Now, I would like to make some cleaning on this tree, and I would like to change some schema definition on objects.
First of all, I would like to NOT have custObjectClass as structuralObjectClass.
Obviously I could slapcat my slapd engine, change the ldif and then re-import as new. But I would prefer to not switch off my slapd engine in the meantime. I can't afford that, to be honest...
One idea I had was to create a replica consumer, change on it the schema definition (custObjectClass inheriting from TOP and being auxiliary instead of structural), and let the replication create the entries with the correct "structurality".
I self-discovered this way is not viable, considering OL refuses to insert an entry with source structuralObjectClass not being defined structural on the slave as well.
Now I'm asking for help to the community. Any hint welcome. How would you do?
Thanks in advance
Marco