mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
19.12.2006 15440a7ab118debef5993c3b261b1043d9f7afc3
refs
author neil_a_wilson <neil_a_wilson@localhost>
Saturday, August 19, 2006 01:12 +0200
committer neil_a_wilson <neil_a_wilson@localhost>
Saturday, August 19, 2006 01:12 +0200
commit15440a7ab118debef5993c3b261b1043d9f7afc3
tree 1cc6dadfe791d34dd370068fa00d7c8d8b34b9e9 tree | zip | gz
parent 65b00a2a2887c0fed59b8e14b865a6142c931424 view | diff
Update the createEntry method to be more intelligent about the structural
objectclass that it uses for the entry that gets created. If the DN contains a
single RDN attribute, then the following mappings will be used:

- c -> country
- dc -> domain
- o -> organization
- ou -> organizationalUnit
- anything else -> untypedObject

If the RDN contains multiple attributes, then the untypedObject class will
always be used. If any of the RDN attributes are not allowed by the
untypedObject class, then extensibleObject will also be included.
2 files modified
153 ■■■■ changed files
opends/src/server/org/opends/server/util/ServerConstants.java 72 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/StaticUtils.java 81 ●●●● diff | view | raw | blame | history