⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldb.h

📁 samba最新软件
💻 H
📖 第 1 页 / 共 4 页
字号:
/**   OID for specifying the returned elements of the ntSecurityDescriptor   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_sd_flags_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_SD_FLAGS_OID	"1.2.840.113556.1.4.801"/**   OID for specifying an advanced scope for the search (one partition)   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_domain_scope_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_DOMAIN_SCOPE_OID	"1.2.840.113556.1.4.1339"/**   OID for specifying an advanced scope for a search   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_search_options_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_SEARCH_OPTIONS_OID	"1.2.840.113556.1.4.1340"/**   OID for notification   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_notification_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_NOTIFICATION_OID	"1.2.840.113556.1.4.528"/**   OID for getting deleted objects   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_show_deleted_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_SHOW_DELETED_OID	"1.2.840.113556.1.4.417"/**   OID for extended DN   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_extended_dn_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_EXTENDED_DN_OID	"1.2.840.113556.1.4.529"/**   OID for LDAP server sort result extension.   This control is included in the searchRequest message as part of   the controls field of the LDAPMessage, as defined in Section 4.1.12   of LDAP v3. The controlType is set to   "1.2.840.113556.1.4.473". The criticality MAY be either TRUE or   FALSE (where absent is also equivalent to FALSE) at the client's   option.   \sa <a href="http://www.ietf.org/rfc/rfc2891.txt">RFC 2891</a>.*/#define LDB_CONTROL_SERVER_SORT_OID	"1.2.840.113556.1.4.473"/**   OID for LDAP server sort result response extension.   This control is included in the searchResultDone message as part of   the controls field of the LDAPMessage, as defined in Section 4.1.12 of   LDAP v3.   \sa <a href="http://www.ietf.org/rfc/rfc2891.txt">RFC 2891</a>.*/#define LDB_CONTROL_SORT_RESP_OID	"1.2.840.113556.1.4.474"/**   OID for LDAP Attribute Scoped Query extension.   This control is included in SearchRequest or SearchResponse   messages as part of the controls field of the LDAPMessage.*/#define LDB_CONTROL_ASQ_OID		"1.2.840.113556.1.4.1504"/**   OID for LDAP Directory Sync extension.    This control is included in SearchRequest or SearchResponse   messages as part of the controls field of the LDAPMessage.*/#define LDB_CONTROL_DIRSYNC_OID		"1.2.840.113556.1.4.841"/**   OID for LDAP Virtual List View Request extension.   This control is included in SearchRequest messages   as part of the controls field of the LDAPMessage.*/#define LDB_CONTROL_VLV_REQ_OID		"2.16.840.1.113730.3.4.9"/**   OID for LDAP Virtual List View Response extension.   This control is included in SearchResponse messages   as part of the controls field of the LDAPMessage.*/#define LDB_CONTROL_VLV_RESP_OID	"2.16.840.1.113730.3.4.10"/**   OID to let modifies don't give an error when adding an existing   attribute with the same value or deleting an nonexisting one attribute   \sa <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_permissive_modify_oid.asp">Microsoft documentation of this OID</a>*/#define LDB_CONTROL_PERMISSIVE_MODIFY_OID	"1.2.840.113556.1.4.1413"/**   OID for LDAP Extended Operation START_TLS.   This Extended operation is used to start a new TLS   channel on top of a clear text channel.*/#define LDB_EXTENDED_START_TLS_OID	"1.3.6.1.4.1.1466.20037"/***/#define LDB_EXTENDED_DYNAMIC_OID	"1.3.6.1.4.1.1466.101.119.1"/***/#define LDB_EXTENDED_FAST_BIND_OID	"1.2.840.113556.1.4.1781"struct ldb_sd_flags_control {	/*	 * request the owner	0x00000001	 * request the group	0x00000002	 * request the DACL	0x00000004	 * request the SACL	0x00000008	 */	unsigned secinfo_flags;};/* * DOMAIN_SCOPE		0x00000001 * this limits the search to one partition, * and no referrals will be returned. * (Note this doesn't limit the entries by there *  objectSid belonging to a domain! Builtin and Foreign Sids *  are still returned) * * PHANTOM_ROOT		0x00000002 * this search on the whole tree on a domain controller * over multiple partitions without referrals. * (This is the default behavior on the Global Catalog Port) */#define LDB_SEARCH_OPTION_DOMAIN_SCOPE 0x00000001#define LDB_SEARCH_OPTION_PHANTOM_ROOT 0x00000002struct ldb_search_options_control {	unsigned search_options;};struct ldb_paged_control {	int size;	int cookie_len;	char *cookie;};struct ldb_extended_dn_control {	int type;};struct ldb_server_sort_control {	char *attributeName;	char *orderingRule;	int reverse;};struct ldb_sort_resp_control {	int result;	char *attr_desc;};struct ldb_asq_control {	int request;	char *source_attribute;	int src_attr_len;	int result;};struct ldb_dirsync_control {	int flags;	int max_attributes;	int cookie_len;	char *cookie;};struct ldb_vlv_req_control {	int beforeCount;	int afterCount;	int type;	union {		struct {			int offset;			int contentCount;		} byOffset;		struct {			int value_len;			char *value;		} gtOrEq;	} match;	int ctxid_len;	char *contextId;};struct ldb_vlv_resp_control {	int targetPosition;	int contentCount;	int vlv_result;	int ctxid_len;	char *contextId;};struct ldb_control {	const char *oid;	int critical;	void *data;};enum ldb_request_type {	LDB_SEARCH,	LDB_ADD,	LDB_MODIFY,	LDB_DELETE,	LDB_RENAME,	LDB_EXTENDED,	LDB_SEQUENCE_NUMBER,	LDB_REQ_REGISTER_CONTROL,	LDB_REQ_REGISTER_PARTITION};enum ldb_reply_type {	LDB_REPLY_ENTRY,	LDB_REPLY_REFERRAL,	LDB_REPLY_EXTENDED,	LDB_REPLY_DONE};enum ldb_wait_type {	LDB_WAIT_ALL,	LDB_WAIT_NONE};enum ldb_state {	LDB_ASYNC_INIT,	LDB_ASYNC_PENDING,	LDB_ASYNC_DONE};struct ldb_extended {	const char *oid;	void *data; /* NULL or a valid talloc pointer! talloc_get_type() will be used on it */};struct ldb_result {	unsigned int count;	struct ldb_message **msgs;	char **refs;	struct ldb_extended *extended;	struct ldb_control **controls;};struct ldb_reply {	enum ldb_reply_type type;	struct ldb_message *message;	struct ldb_extended *response;	char *referral;	struct ldb_control **controls;};struct ldb_handle {	int status;	enum ldb_state state;	void *private_data;	struct ldb_module *module;};struct ldb_search {	struct ldb_dn *base;	enum ldb_scope scope;	struct ldb_parse_tree *tree;	const char * const *attrs;	struct ldb_result *res;};struct ldb_add {	const struct ldb_message *message;};struct ldb_modify {	const struct ldb_message *message;};struct ldb_delete {	struct ldb_dn *dn;};struct ldb_rename {	struct ldb_dn *olddn;	struct ldb_dn *newdn;};struct ldb_register_control {	const char *oid;};struct ldb_register_partition {	struct ldb_dn *dn;};enum ldb_sequence_type {	LDB_SEQ_HIGHEST_SEQ,	LDB_SEQ_HIGHEST_TIMESTAMP,	LDB_SEQ_NEXT};struct ldb_sequence_number {	enum ldb_sequence_type type;	uint64_t seq_num;	uint32_t flags;};typedef int (*ldb_request_callback_t)(struct ldb_context *, void *, struct ldb_reply *);struct ldb_request {	enum ldb_request_type operation;	union {		struct ldb_search search;		struct ldb_add    add;		struct ldb_modify mod;		struct ldb_delete del;		struct ldb_rename rename;		struct ldb_extended extended;		struct ldb_sequence_number seq_num;		struct ldb_register_control reg_control;		struct ldb_register_partition reg_partition;	} op;	struct ldb_control **controls;	void *context;	ldb_request_callback_t callback;	int timeout;	time_t starttime;	struct ldb_handle *handle;};int ldb_request(struct ldb_context *ldb, struct ldb_request *request);int ldb_wait(struct ldb_handle *handle, enum ldb_wait_type type);int ldb_set_timeout(struct ldb_context *ldb, struct ldb_request *req, int timeout);int ldb_set_timeout_from_prev_req(struct ldb_context *ldb, struct ldb_request *oldreq, struct ldb_request *newreq);void ldb_set_create_perms(struct ldb_context *ldb, unsigned int perms);void ldb_set_modules_dir(struct ldb_context *ldb, const char *path);/**  Initialise ldbs' global information  This is required before any other LDB call  \return 0 if initialisation succeeded, -1 otherwise*/int ldb_global_init(void);/**  Initialise an ldb context  This is required before any other LDB call.  \param mem_ctx pointer to a talloc memory context. Pass NULL if there is  no suitable context available.  \return pointer to ldb_context that should be free'd (using talloc_free())  at the end of the program.*/struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx);/**   Connect to a database.   This is typically called soon after ldb_init(), and is required prior to   any search or database modification operations.   The URL can be one of the following forms:    - tdb://path    - ldapi://path    - ldap://host    - sqlite://path   \param ldb the context associated with the database (from ldb_init())   \param url the URL of the database to connect to, as noted above   \param flags a combination of LDB_FLG_* to modify the connection behaviour   \param options backend specific options - passed uninterpreted to the backend   \return result code (LDB_SUCCESS on success, or a failure code)   \note It is an error to connect to a database that does not exist in readonly mode   (that is, with LDB_FLG_RDONLY). However in read-write mode, the database will be   created if it does not exist.*/int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]);/*  return an automatic basedn from the rootDomainNamingContext of the rootDSE  This value have been set in an opaque pointer at connection time*/struct ldb_dn *ldb_get_root_basedn(struct ldb_context *ldb);/*  return an automatic basedn from the configurationNamingContext of the rootDSE  This value have been set in an opaque pointer at connection time*/struct ldb_dn *ldb_get_config_basedn(struct ldb_context *ldb);/*  return an automatic basedn from the schemaNamingContext of the rootDSE  This value have been set in an opaque pointer at connection time*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -