PASSDB: add support to set and enumerate UPN suffixes associated with our forest
authorAlexander Bokovoy <ab@samba.org>
Wed, 3 Apr 2013 13:37:00 +0000 (16:37 +0300)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Jul 2013 18:06:15 +0000 (20:06 +0200)
commit38d13bb58cafc54043d7c195402036303e10d357
tree30c83503d6fc14b89b452d6dcbba82d2fb3e79e1
parent5dee63cf304a8ddc67863938aac4ed1467c35d2b
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