Samba4/LDAP

Revision as of 03:52, 18 November 2009 by Edewata (talk | contribs) (ldap_Result)

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 */
};