Difference between revisions of "Samba4/LDAP"

 
(ldap_Result)
Line 11: Line 11:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_BindRequest ==
  
 
<pre>
 
<pre>
Line 26: Line 28:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_BindResponse ==
  
 
<pre>
 
<pre>
Line 35: Line 39:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_UnbindRequest ==
  
 
<pre>
 
<pre>
Line 41: Line 47:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_SearchRequest ==
  
 
<pre>
 
<pre>
Line 55: Line 63:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_SearchResEntry ==
  
 
<pre>
 
<pre>
Line 63: Line 73:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_SearchResRef ==
  
 
<pre>
 
<pre>
Line 69: Line 81:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_mod ==
  
 
<pre>
 
<pre>
Line 76: Line 90:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_ModifyRequest ==
  
 
<pre>
 
<pre>
Line 84: Line 100:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_AddRequest ==
  
 
<pre>
 
<pre>
Line 92: Line 110:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_DelRequest ==
  
 
<pre>
 
<pre>
Line 98: Line 118:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_ModifyDNRequest ==
  
 
<pre>
 
<pre>
Line 107: Line 129:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_CompareRequest ==
  
 
<pre>
 
<pre>
Line 115: Line 139:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_AbandonRequest ==
  
 
<pre>
 
<pre>
Line 121: Line 147:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_ExtendedRequest ==
  
 
<pre>
 
<pre>
Line 128: Line 156:
 
};
 
};
 
</pre>
 
</pre>
 +
 +
== ldap_ExtendedResponse ==
  
 
<pre>
 
<pre>

Revision as of 03:52, 18 November 2009

Structures

ldap_Result

struct ldap_Result {
    int resultcode;
    const char *dn;
    const char *errormessage;
    const char *referral;
};

ldap_BindRequest

struct ldap_BindRequest {
    int version;
    const char *dn;
    enum ldap_auth_mechanism mechanism;
    union {
        const char *password;
        struct {
            const char *mechanism;
            DATA_BLOB *secblob;/* optional */
        } SASL;
    } creds;
};

ldap_BindResponse

struct ldap_BindResponse {
    struct ldap_Result response;
    union {
        DATA_BLOB *secblob;/* optional */
    } SASL;
};

ldap_UnbindRequest

struct ldap_UnbindRequest {
    uint8_t __dummy;
};

ldap_SearchRequest

struct ldap_SearchRequest {
    const char *basedn;
    enum ldap_scope scope;
    enum ldap_deref deref;
    uint32_t timelimit;
    uint32_t sizelimit;
    bool attributesonly;
    struct ldb_parse_tree *tree;
    int num_attributes;
    const char * const *attributes;
};

ldap_SearchResEntry

struct ldap_SearchResEntry {
    const char *dn;
    int num_attributes;
    struct ldb_message_element *attributes;
};

ldap_SearchResRef

struct ldap_SearchResRef {
    const char *referral;
};

ldap_mod

struct ldap_mod {
    enum ldap_modify_type type;
    struct ldb_message_element attrib;
};

ldap_ModifyRequest

struct ldap_ModifyRequest {
    const char *dn;
    int num_mods;
    struct ldap_mod *mods;
};

ldap_AddRequest

struct ldap_AddRequest {
    const char *dn;
    int num_attributes;
    struct ldb_message_element *attributes;
};

ldap_DelRequest

struct ldap_DelRequest {
    const char *dn;
};

ldap_ModifyDNRequest

struct ldap_ModifyDNRequest {
    const char *dn;
    const char *newrdn;
    bool deleteolddn;
    const char *newsuperior;/* optional */
};

ldap_CompareRequest

struct ldap_CompareRequest {
    const char *dn;
    const char *attribute;
    DATA_BLOB value;
};

ldap_AbandonRequest

struct ldap_AbandonRequest {
    int messageid;
};

ldap_ExtendedRequest

struct ldap_ExtendedRequest {
    const char *oid;
    DATA_BLOB *value;/* optional */
};

ldap_ExtendedResponse

struct ldap_ExtendedResponse {
    struct ldap_Result response;
    const char *oid;/* optional */
    DATA_BLOB *value;/* optional */
};