[
https://issues.apache.org/jira/browse/DIRSERVER-2264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758187#comment-16758187
]
Emmanuel Lecharny commented on DIRSERVER-2264:
----------------------------------------------
I confirm the issue, but it seems it's solved in trunk. I have added a unit
test in Apacheds :
{code:java}
/**
* Test The addition of a nisMapName attributeType
*/
@Test
public void testAddNisMapName() throws Exception
{
LdapConnection connection = IntegrationUtils.getAdminConnection(
getService() );
Dn dn = new Dn( "nisMapName=netgroup.byhost,ou=system" );
Entry entry = new DefaultEntry( dn,
"ObjectClass: top",
"ObjectClass: nisMap",
"nisMapName: netgroup.byhost" );
connection.add( entry );
Entry result = connection.lookup( dn );
assertNotNull( result );
assertEquals( "netgroup.byhost", result.get( "nismapname" ).getString()
);
}
{code}
This test passes if the {{NIS}} schema is enabled ON M26-SNAPSHOT.
I tested the same thing on Studio (WHICH USES M25), after having enabled the
schema, reloaded the schemaManager, I see the {{nisMap}} ObjectClass, but I
can't add it to an entry, getting an {{OBJECT_CLASS_VIOLATION}} error :
{noformat}
#!RESULT ERROR
#!CONNECTION ldap://localhost:10389
#!DATE 2019-02-01T10:25:31.692
#!ERROR [LDAP: error code 65 - OBJECT_CLASS_VIOLATION: failed for MessageType :
ADD_REQUEST Message ID : 14 Add Request : Entry dn:
cn=testNisMap,ou=system objectClass: nisObject objectClass: top cn:
testNisMap nisMapName: test : ERR_277 Attribute nisMapName not declared in
objectClasses of entry cn=testNisMap,ou=system]
dn: cn=testNisMap,ou=system
changetype: add
nisMapName: test
objectClass: nisObject
objectClass: top
cn: testNisMap
{noformat}
> missing schema type for NIS: nisMapName
> ---------------------------------------
>
> Key: DIRSERVER-2264
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2264
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: schema
> Affects Versions: 2.0.0.AM25
> Reporter: Philip Brown
> Priority: Major
>
> the directory shipps with a bunch of NIS schema objects.. but it is missing a
> crucial one:
> olcAttributeTypes: ( 1.3.6.1.1.1.1.26 NAME 'nisMapName'
> DESC 'Name of a generic NIS map'
> EQUALITY caseIgnoreMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15\{64} )
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)