pike.git / lib / modules / Protocols.pmod / LDAP.pmod / client.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1234:    });    }       return root_dse[attr];   }      protected object make_control (string control_type, void|string value,    void|int critical)   {    array(object) seq = ({Standards.ASN1.Types.asn1_octet_string (control_type), -  ASN1_BOOLEAN (critical)}); +  Standards.ASN1.Types.Boolean (critical)});    if (value) seq += ({Standards.ASN1.Types.asn1_octet_string (value)});    return Standards.ASN1.Types.asn1_sequence (seq);   }      protected multiset(string) supported_controls;      multiset(string) get_supported_controls()   //! Returns a multiset containing the controls supported by the   //! server. They are returned as object identifiers on string form.   //! A working connection is assumed.
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1320:    if (arrayp(attrs)) { //explicitly defined attributes    array(object) o2 = ({});    foreach(attrs, string s2)    o2 += ({Standards.ASN1.Types.asn1_octet_string(s2)});    ohlp += ({Standards.ASN1.Types.asn1_sequence(o2)});    } else    ohlp += ({Standards.ASN1.Types.asn1_sequence(({}))});       return ASN1_APPLICATION_SEQUENCE(3,    ({ Standards.ASN1.Types.asn1_octet_string(basedn), -  ASN1_ENUMERATED(scope), -  ASN1_ENUMERATED(deref), +  Standards.ASN1.Types.Enumerated(scope), +  Standards.ASN1.Types.Enumerated(deref),    Standards.ASN1.Types.asn1_integer(sizelimit),    Standards.ASN1.Types.asn1_integer(timelimit), -  ASN1_BOOLEAN(attrsonly ? -1 : 0), +  Standards.ASN1.Types.Boolean(attrsonly ? -1 : 0),    @ohlp    })) ;    }       //! Search LDAP directory.    //!    //! @param filter    //! Search filter to override the one from the LDAP URL. It's    //! either a string with the format specified in RFC 2254, or an    //! object returned by @[Protocols.LDAP.make_filter].
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1837:    (attropval[atype])[ix])});   // if(sizeof(attrarr)) // attributevalue ?    o = Standards.ASN1.Types.asn1_sequence(    ({Standards.ASN1.Types.asn1_octet_string(atype),    Standards.ASN1.Types.asn1_set(attrarr)    }));   // else   // o = Standards.ASN1.Encode.asn1_sequence(   // Standards.ASN1.Encode.asn1_octet_string(atype));    oatt += ({Standards.ASN1.Types.asn1_sequence( -  ({ASN1_ENUMERATED((attropval[atype])[0]), +  ({Standards.ASN1.Types.Enumerated((attropval[atype])[0]),    o    }))});    } //foreach       msgval = ASN1_APPLICATION_SEQUENCE(6,    ({ Standards.ASN1.Types.asn1_octet_string(dn),    Standards.ASN1.Types.asn1_sequence(oatt)    }));       return do_op(msgval);