Samba4/LDAP

Revision as of 03:50, 18 November 2009 by Edewata (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Structures

ldap_Result

struct ldap_Result {
    int resultcode;
    const char *dn;
    const char *errormessage;
    const char *referral;
};
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;
};
struct ldap_BindResponse {
    struct ldap_Result response;
    union {
        DATA_BLOB *secblob;/* optional */
    } SASL;
};
struct ldap_UnbindRequest {
    uint8_t __dummy;
};
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;
};
struct ldap_SearchResEntry {
    const char *dn;
    int num_attributes;
    struct ldb_message_element *attributes;
};
struct ldap_SearchResRef {
    const char *referral;
};
struct ldap_mod {
    enum ldap_modify_type type;
    struct ldb_message_element attrib;
};
struct ldap_ModifyRequest {
    const char *dn;
    int num_mods;
    struct ldap_mod *mods;
};
struct ldap_AddRequest {
    const char *dn;
    int num_attributes;
    struct ldb_message_element *attributes;
};
struct ldap_DelRequest {
    const char *dn;
};
struct ldap_ModifyDNRequest {
    const char *dn;
    const char *newrdn;
    bool deleteolddn;
    const char *newsuperior;/* optional */
};
struct ldap_CompareRequest {
    const char *dn;
    const char *attribute;
    DATA_BLOB value;
};
struct ldap_AbandonRequest {
    int messageid;
};
struct ldap_ExtendedRequest {
    const char *oid;
    DATA_BLOB *value;/* optional */
};
struct ldap_ExtendedResponse {
    struct ldap_Result response;
    const char *oid;/* optional */
    DATA_BLOB *value;/* optional */
};