public Attribute getObjectClassAttribute ( String dn ) { if ( iObjectClassAttrs . length == 1 || dn == null ) { return iObjectClassAttrs [ 0 ] ; } else { String [ ] rdns = LdapHelper . getRDNAttributes ( dn ) ; for ( int i = 0 ; i < iRDNAttrs . length ; i ++ ) { String [ ] attrs = iRDNAttrs [ i ] ; for ( int j = 0 ; j < attrs . length ; j ++ ) { for ( int k = 0 ; k < attrs . length ; k ++ ) { if ( attrs [ j ] . equals ( rdns [ k ] ) ) { return iObjectClassAttrs [ i ] ; } } } } } return null ; }
Gets the LDAP object class attribute that contains all object classes needed to create the member on LDAP server .