directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] [Commented] (DIRSERVER-2264) missing schema type for NIS: nisMapName
Date Fri, 01 Feb 2019 10:30:00 GMT


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
     * Test The addition of a nisMapName attributeType
    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() );
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
#!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

> missing schema type for NIS: nisMapName
> ---------------------------------------
>                 Key: DIRSERVER-2264
>                 URL:
>             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
> olcAttributeTypes: ( NAME 'nisMapName'
>  DESC 'Name of a generic NIS map'
>  EQUALITY caseIgnoreMatch
>  SYNTAX\{64} )

This message was sent by Atlassian JIRA

View raw message