directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r438477 - /directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
Date Wed, 30 Aug 2006 12:56:47 GMT
Author: elecharny
Date: Wed Aug 30 05:56:46 2006
New Revision: 438477

URL: http://svn.apache.org/viewvc?rev=438477&view=rev
Log:
 - Formated the PDUs comments
 - Added a test for a bad dnAttributes

Modified:
    directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java

Modified: directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java?rev=438477&r1=438476&r2=438477&view=diff
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
Wed Aug 30 05:56:46 2006
@@ -77,15 +77,40 @@
 
         ByteBuffer stream = ByteBuffer.allocate( 0x63 );
         stream.put( new byte[]
-            { 0x30, 0x61, 0x02, 0x01, 0x01, 0x63, 0x5C, // "dc=example,dc=com"
-                0x04, 0x11, 0x64, 0x63, 0x3D, 0x65, 0x78, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x2C,
0x64, 0x63, 0x3D, 0x63,
-                0x6F, 0x6D, 0x0A, 0x01, 0x00, 0x0A, 0x01, 0x02, 0x02, 0x01, 0x02, 0x02, 0x01,
0x03, 0x01, 0x01,
-                ( byte ) 0xFF, ( byte ) 0xA9, 0x21, ( byte ) 0x81, 0x02, 'c', 'n', ( byte
) 0x82, 0x13, '1', '.', '2',
-                '.', '8', '4', '0', '.', '4', '8', '0', '1', '8', '.', '1', '.', '2', '.',
'2', ( byte ) 0x83, 0x03,
-                'a', 'o', 'k', ( byte ) 0x84, 0x01, ( byte ) 0xFF, 0x30, 0x15, // Attributes
-                0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x30, // attr0
-                0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x31, // attr1
-                0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x32 // attr2
+            { 
+            0x30, 0x61,                     // LDAPMessage ::= SEQUENCE {
+              0x02, 0x01, 0x01,             //   messageID       MessageID,
+              0x63, 0x5C,                   //   protocolOp      CHOICE {
+                                            //     searchRequest   SearchRequest,
+                                            //
+                                            // SearchRequest ::= [APPLICATION 3] SEQUENCE
{
+                0x04, 0x11,                 //   baseObject      LDAPDN, (dc=example,dc=com)
+                  'd', 'c', '=', 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c',
'o', 'm',
+                                            //   scope           ENUMERATED {
+                0x0A, 0x01, 0x00,           //      baseObject              (0), ...
+                                            //   derefAliases    ENUMERATED {
+                0x0A, 0x01, 0x02,           //     derefFindingBaseObj     (2),...
+                0x02, 0x01, 0x02,           //   sizeLimit       INTEGER (0 .. maxInt), (2)
+                0x02, 0x01, 0x03,           //   timeLimit       INTEGER (0 .. maxInt), (3)
+                0x01, 0x01, ( byte ) 0xFF,  //   typesOnly       BOOLEAN, (true)
+                ( byte ) 0xA9, 0x21,        //   filter          Filter,
+                                            //
+                                            // Filter ::= CHOICE {
+                                            //   extensibleMatch [9] MatchingRuleAssertion
}
+                                            //
+                                            // MatchingRuleAssertion ::= SEQUENCE {
+                  ( byte ) 0x81, 0x02,      //   matchingRule    [1] MatchingRuleId OPTIONAL,
+                    'c', 'n', 
+                  ( byte ) 0x82, 0x13,      //    type            [2] AttributeDescription
OPTIONAL,
+                    '1', '.', '2', '.', '8', '4', '0', '.', '4', '8', '0', '1', '8', '.',
'1', '.', '2', '.', '2', 
+                  ( byte ) 0x83, 0x03,      //    matchValue      [3] AssertionValue,
+                    'a', 'o', 'k', 
+                                            //    dnAttributes    [4] BOOLEAN DEFAULT FALSE
 }
+                  ( byte ) 0x84, 0x01, ( byte ) 0xFF, 
+                0x30, 0x15,                 // attributes      AttributeDescriptionList }
+                  0x04, 0x05, 'a', 't', 't', 'r', '0',
+                  0x04, 0x05, 'a', 't', 't', 'r', '1',
+                  0x04, 0x05, 'a', 't', 't', 'r', '2'
             } );
 
         String decodedPdu = StringTools.dumpBytes( stream.array() );
@@ -156,16 +181,22 @@
     public void testDecodeSearchRequestEmptyExtensibleMatch()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x3B, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x36, 0x04, 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x00, 0x30,
0x02, // AttributeDescriptionList
-                                                                                        
           // ::=
-                                                                                        
           // SEQUENCE
-                                                                                        
           // OF
-                                                                                        
           // AttributeDescription
-                0x04, 0x00 };
+            { 
+            0x30, 0x3B, 
+              0x02, 0x01, 0x04,                 // messageID
+                0x63, 0x36,                     // baseObject LDAPDN,
+                  0x04, 0x1F, 
+                    'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',',
'd', 'c', '=', 'e', 'x', 'a',
+                    'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+                  0x0A, 0x01, 0x01, 
+                  0x0A, 0x01, 0x03, 
+                  0x02, 0x01, 0x00, 
+                  0x02, 0x01, 0x00, 
+                  0x01, 0x01, ( byte ) 0xFF, 
+                  ( byte ) 0xA9, 0x00,             
+                  0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -203,14 +234,23 @@
     public void testDecodeSearchRequestExtensibleMatchEmptyMatchingRule()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x3D, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x38, 0x04, 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x02, (
byte ) 0x81, 0x00, 0x30,
-                0x02, // AttributeDescriptionList ::= SEQUENCE OF
-                        // AttributeDescription
-                0x04, 0x00 };
+            { 
+            0x30, 0x3D, 
+              0x02, 0x01, 0x04,                 // messageID
+              0x63, 0x38, 
+                0x04, 0x1F,                     // baseObject LDAPDN,
+                  'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
+                  'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+                0x0A, 0x01, 0x01, 
+                0x0A, 0x01, 0x03, 
+                0x02, 0x01, 0x00, 
+                0x02, 0x01, 0x00, 
+                0x01, 0x01, ( byte ) 0xFF, 
+                ( byte ) 0xA9, 0x02, 
+                  ( byte ) 0x81, 0x00,          // matchingRule    [1] MatchingRuleId OPTIONAL,
+                0x30, 0x02,                     // AttributeDescriptionList ::= SEQUENCE
OF AttributeDescription
+                  0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -248,14 +288,23 @@
     public void testDecodeSearchRequestExtensibleMatchEmptyType()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x3D, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x38, 0x04, 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x02, (
byte ) 0x82, 0x00, 0x30,
-                0x02, // AttributeDescriptionList ::= SEQUENCE OF
-                        // AttributeDescription
-                0x04, 0x00 };
+            { 
+            0x30, 0x3D, 
+              0x02, 0x01, 0x04,                 // messageID
+              0x63, 0x38, 
+                0x04, 0x1F,                     // baseObject LDAPDN,
+                  'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
+                  'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+                0x0A, 0x01, 0x01, 
+                0x0A, 0x01, 0x03, 
+                0x02, 0x01, 0x00, 
+                0x02, 0x01, 0x00, 
+                0x01, 0x01, ( byte ) 0xFF, 
+                ( byte ) 0xA9, 0x02, 
+                  ( byte ) 0x82, 0x00,          //    type            [2] AttributeDescription
OPTIONAL
+                0x30, 0x02,                     // AttributeDescriptionList ::= SEQUENCE
OF AttributeDescription
+                  0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -293,15 +342,24 @@
     public void testDecodeSearchRequestExtensibleMatchEmptyMatchValue()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x43, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x3E, 0x04, 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x08, (
byte ) 0x81, 0x04, 't', 'e',
-                's', 't', ( byte ) 0x83, 0x00, 0x30, 0x02, // AttributeDescriptionList
-                                                            // ::= SEQUENCE OF
-                                                            // AttributeDescription
-                0x04, 0x00 };
+            { 
+            0x30, 0x43, 
+              0x02, 0x01, 0x04,                 // messageID
+              0x63, 0x3E, 
+                0x04, 0x1F,                     // baseObject LDAPDN,
+                  'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
+                  'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+                  0x0A, 0x01, 0x01, 
+                  0x0A, 0x01, 0x03, 
+                  0x02, 0x01, 0x00, 
+                  0x02, 0x01, 0x00, 
+                  0x01, 0x01, ( byte ) 0xFF, 
+                  ( byte ) 0xA9, 0x08, 
+                    ( byte ) 0x81, 0x04, 't', 'e', 's', 't', 
+                    ( byte ) 0x83, 0x00,        //    matchValue      [3] AssertionValue,
+                0x30, 0x02,                     // AttributeDescriptionList ::= SEQUENCE
OF AttributeDescription
+                  0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -366,15 +424,95 @@
     public void testDecodeSearchRequestExtensibleMatchMatchingRuleEmptyType()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x43, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x3E, 0x04, 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x08, (
byte ) 0x81, 0x04, 't', 'e',
-                's', 't', ( byte ) 0x82, 0x00, 0x30, 0x02, // AttributeDescriptionList
-                                                            // ::= SEQUENCE OF
-                                                            // AttributeDescription
-                0x04, 0x00 };
+            { 
+            0x30, 0x43, 
+              0x02, 0x01, 0x04,                 // messageID
+              0x63, 0x3E, 
+                0x04, 0x1F,                     // baseObject LDAPDN,
+                  'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
+                  'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+                0x0A, 0x01, 0x01, 
+                0x0A, 0x01, 0x03, 
+                0x02, 0x01, 0x00, 
+                0x02, 0x01, 0x00, 
+                0x01, 0x01, ( byte ) 0xFF, 
+                ( byte ) 0xA9, 0x08, 
+                  ( byte ) 0x81, 0x04, 't', 'e', 's', 't', 
+                  ( byte ) 0x82, 0x00,          //    type            [2] AttributeDescription
OPTIONAL,
+                0x30, 0x02,                     // AttributeDescriptionList ::= SEQUENCE
OF AttributeDescription
+                0x04, 0x00 
+            };
+
+        Asn1Decoder ldapDecoder = new LdapDecoder();
+
+        ByteBuffer stream = ByteBuffer.allocate( asn1BER.length );
+        stream.put( asn1BER );
+        stream.flip();
+
+        // Allocate a LdapMessage Container
+        IAsn1Container ldapMessageContainer = new LdapMessageContainer();
+
+        // Decode a SearchRequest message
+        try
+        {
+            ldapDecoder.decode( stream, ldapMessageContainer );
+        }
+        catch ( DecoderException de )
+        {
+            assertTrue( true );
+            return;
+        }
+        catch ( NamingException ne )
+        {
+            ne.printStackTrace();
+            fail( ne.getMessage() );
+        }
+
+        fail( "We should not reach this point" );
+    }
+
+    /**
+     * Test the decoding of a SearchRequest with an extensible match and an
+     * matching rule and an empty dnAttributes
+     */
+    public void testDecodeSearchRequestExtensibleMatchDnAttributesEmptyType()
+    {
+        byte[] asn1BER = new byte[]
+            { 
+             0x30, 0x60,                     // LDAPMessage ::= SEQUENCE {
+               0x02, 0x01, 0x01,             //   messageID       MessageID,
+               0x63, 0x5B,                   //   protocolOp      CHOICE {
+                                             //     searchRequest   SearchRequest,
+                                             //
+                                             // SearchRequest ::= [APPLICATION 3] SEQUENCE
{
+                 0x04, 0x11,                 //   baseObject      LDAPDN, (dc=example,dc=com)
+                   'd', 'c', '=', 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=',
'c', 'o', 'm',
+                                             //   scope           ENUMERATED {
+                 0x0A, 0x01, 0x00,           //      baseObject              (0), ...
+                                             //   derefAliases    ENUMERATED {
+                 0x0A, 0x01, 0x02,           //     derefFindingBaseObj     (2),...
+                 0x02, 0x01, 0x02,           //   sizeLimit       INTEGER (0 .. maxInt),
(2)
+                 0x02, 0x01, 0x03,           //   timeLimit       INTEGER (0 .. maxInt),
(3)
+                 0x01, 0x01, ( byte ) 0xFF,  //   typesOnly       BOOLEAN, (true)
+                 ( byte ) 0xA9, 0x20,        //   filter          Filter,
+                                             //
+                                             // Filter ::= CHOICE {
+                                             //   extensibleMatch [9] MatchingRuleAssertion
}
+                                             //
+                                             // MatchingRuleAssertion ::= SEQUENCE {
+                   ( byte ) 0x81, 0x02,      //   matchingRule    [1] MatchingRuleId OPTIONAL,
+                     'c', 'n', 
+                   ( byte ) 0x82, 0x13,      //    type            [2] AttributeDescription
OPTIONAL,
+                     '1', '.', '2', '.', '8', '4', '0', '.', '4', '8', '0', '1', '8', '.',
'1', '.', '2', '.', '2', 
+                   ( byte ) 0x83, 0x03,      //    matchValue      [3] AssertionValue,
+                     'a', 'o', 'k', 
+                                             //    dnAttributes    [4] BOOLEAN DEFAULT FALSE
 }
+                   ( byte ) 0x84, 0x00, 
+                 0x30, 0x15,                 // attributes      AttributeDescriptionList
}
+                   0x04, 0x05, 'a', 't', 't', 'r', '0',
+                   0x04, 0x05, 'a', 't', 't', 'r', '1',
+                   0x04, 0x05, 'a', 't', 't', 'r', '2'
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -412,14 +550,22 @@
     public void testDecodeSearchRequestExtensibleMatchMatchingRuleAlone()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x41, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x3C, 0x04, 0x1F, // baseObject LDAPDN,
+            { 
+            0x30, 0x41, 
+              0x02, 0x01, 0x04, // messageID
+              0x63, 0x3C, 0x04, 0x1F, // baseObject LDAPDN,
                 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x06, (
byte ) 0x81, 0x04, 't', 'e',
-                's', 't', 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE
-                                        // OF AttributeDescription
-                0x04, 0x00 };
+                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+              0x0A, 0x01, 0x01, 
+              0x0A, 0x01, 0x03, 
+              0x02, 0x01, 0x00, 
+              0x02, 0x01, 0x00, 
+              0x01, 0x01, ( byte ) 0xFF, 
+              ( byte ) 0xA9, 0x06, 
+                ( byte ) 0x81, 0x04, 't', 'e', 's', 't', 
+              0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -457,14 +603,22 @@
     public void testDecodeSearchRequestExtensibleMatchTypeAlone()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x43, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x3E, 0x04, 0x1F, // baseObject LDAPDN,
+            { 
+            0x30, 0x43, 
+              0x02, 0x01, 0x04, // messageID
+              0x63, 0x3E, 0x04, 0x1F, // baseObject LDAPDN,
                 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x06, (
byte ) 0x82, 0x04, 't', 'e',
-                's', 't', 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE
-                                        // OF AttributeDescription
-                0x04, 0x00 };
+                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+              0x0A, 0x01, 0x01, 
+              0x0A, 0x01, 0x03, 
+              0x02, 0x01, 0x00, 
+              0x02, 0x01, 0x00, 
+              0x01, 0x01, ( byte ) 0xFF, 
+              ( byte ) 0xA9, 0x06, 
+                ( byte ) 0x82, 0x04, 't', 'e', 's', 't', 
+              0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -502,14 +656,22 @@
     public void testDecodeSearchRequestExtensibleMatchMatchValueAlone()
     {
         byte[] asn1BER = new byte[]
-            { 0x30, 0x43, 0x02, 0x01, 0x04, // messageID
-                0x63, 0x3E, 0x04, 0x1F, // baseObject LDAPDN,
+            { 
+            0x30, 0x43, 
+              0x02, 0x01, 0x04, // messageID
+              0x63, 0x3E, 0x04, 0x1F, // baseObject LDAPDN,
                 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x06, (
byte ) 0x83, 0x04, 't', 'e',
-                's', 't', 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE
-                                        // OF AttributeDescription
-                0x04, 0x00 };
+                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 
+              0x0A, 0x01, 0x01, 
+              0x0A, 0x01, 0x03, 
+              0x02, 0x01, 0x00, 
+              0x02, 0x01, 0x00, 
+              0x01, 0x01, ( byte ) 0xFF, 
+              ( byte ) 0xA9, 0x06, 
+                ( byte ) 0x83, 0x04, 't', 'e', 's', 't', 
+              0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04, 0x00 
+            };
 
         Asn1Decoder ldapDecoder = new LdapDecoder();
 



Mime
View raw message