Beispiel #1
0
        public SearchResult(LdapStreamReader reader)
            : base("")
        {
            int contentLength = reader.ReadElementLength();

            ObjectName = reader.ReadStringElement();

            Attributes = ReadAttributes(reader.GetElementReader(0x30));
        }
Beispiel #2
0
        ObjectAttribute ReadAttribute(LdapStreamReader reader)
        {
            List <string>   attributes = new List <string> ();
            ObjectAttribute attribute  = new ObjectAttribute();

            attribute.Type = reader.ReadStringElement();
            LdapStreamReader valueReader = reader.GetElementReader(0x31);

            while (valueReader.Peek() != -1)
            {
                attributes.Add(valueReader.ReadStringElement());
            }
            attribute.Values = attributes.ToArray();

            return(attribute);
        }
Beispiel #3
0
 protected void ReadResponseDetails(LdapStreamReader reader)
 {
     ResultCode    = reader.ReadEnumElement();
     MatchedObject = reader.ReadStringElement();
     ErrorMessage  = reader.ReadStringElement();
 }