s3:winbindd/nss_info: fix default backend handling for ad backends.
authorMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 01:01:44 +0000 (02:01 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 03:37:24 +0000 (04:37 +0100)
commit37be1f6d086084206b5153a15c2ac2e18793cceb
treefc6def316d55ed4c714a1ed57942e18a73ca3293
parenta7e60befdce5f6d131cbe5789cc94dbd2624fd38
s3:winbindd/nss_info: fix default backend handling for ad backends.

This fixes "winbind nss info = rfc2307" (or sfu or sfu20).
Originally, only explicitly configured domains (like "rfc2307:domain")
worked with the ad module, since the domain name was not passed
backe to the module. This is fixed by recording the first backend
listed without domain in the "winbind nss info" parameter as the
default backend, and creating new nss_domain entries (using this default
backend) on the fly as requests for domains which are not explicitly
configured are encountered.

Michael
source3/winbindd/nss_info.c