PASSDB: add support to set and enumerate UPN suffixes associated with our forest
commit5952755755fb0ea7f942bb564ca1cfdca5730113
authorAlexander Bokovoy <ab@samba.org>
Wed, 3 Apr 2013 13:37:00 +0000 (3 16:37 +0300)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 9 Apr 2013 18:29:18 +0000 (9 20:29 +0200)
tree555ca497c14a9b2113f187ba5c9c0f8baf24def7
parentb752417f2d6c478524f0fbf0fda1a5d0401b6f9e
PASSDB: add support to set and enumerate UPN suffixes associated with our forest

Samba PDC may manage a forest containing DNS domains in addition to the primary one.
Information about them is advertised via netr_DsRGetForestTrustInformation when
trusted_domain_name is NULL, according to MS-NRPC and MS-LSAD, and
via netr_GetForestTrustInformation.

This changeset only expands PASSDB API; how suffixes are maintained is left
to specific PDB modules. Set function is added so that suffixes could be
managed through 'net' and other Samba utilities, if possible.

One possible implementation is available for ipasam module in FreeIPA:
http://git.fedorahosted.org/cgit/freeipa.git/commit/?id=cc56723151c9ebf58d891e85617319d861af14a4

Reviewed-by: Andreas Schneider <asn@samba.org>
source3/include/passdb.h
source3/passdb/ABI/pdb-0.sigs
source3/passdb/pdb_interface.c