Difference between revisions of "Samba4/LDB/API"

From SambaWiki
 
Line 7: Line 7:
 
Parameters:
 
Parameters:
 
* dn: The DN to linearize
 
* dn: The DN to linearize
  +
  +
== char *ldb_dn_alloc_linearized(TALLOC_CTX *mem_ctx, struct ldb_dn *dn) ==
  +
  +
Allocate a copy of the linear form of a DN (without any extended components) onto the supplied memory context
  +
  +
Parameters:
  +
* dn: The DN to linearize
  +
* mem_ctx: TALLOC context to return result on
  +
  +
== char *ldb_dn_get_extended_linearized(void *mem_ctx, struct ldb_dn *dn, int mode) ==
  +
  +
Get the linear form of a DN (with any extended components)
  +
  +
Parameters:
  +
* mem_ctx: TALLOC context to return result on
  +
* dn: The DN to linearize
  +
* mode: Style of extended DN to return (0 is HEX representation of binary form, 1 is a string form)

Revision as of 23:06, 23 September 2009

DN

const char *ldb_dn_get_linearized(struct ldb_dn *dn)

Get the linear form of a DN (without any extended components)

Parameters:

  • dn: The DN to linearize

char *ldb_dn_alloc_linearized(TALLOC_CTX *mem_ctx, struct ldb_dn *dn)

Allocate a copy of the linear form of a DN (without any extended components) onto the supplied memory context

Parameters:

  • dn: The DN to linearize
  • mem_ctx: TALLOC context to return result on

char *ldb_dn_get_extended_linearized(void *mem_ctx, struct ldb_dn *dn, int mode)

Get the linear form of a DN (with any extended components)

Parameters:

  • mem_ctx: TALLOC context to return result on
  • dn: The DN to linearize
  • mode: Style of extended DN to return (0 is HEX representation of binary form, 1 is a string form)