summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2007-12-21 11:59:56 -0600
committerGerald (Jerry) Carter <jerry@samba.org>2007-12-21 11:59:56 -0600
commit59ce7650f24eb7c35b8d3ee9f830711a4af8f8e9 (patch)
tree2e6460907f4817bf176c0a460d87dfbc55397590 /source3/auth
parenta2481eda8c29255e8580b6070ea87f46ea7b4300 (diff)
downloadsamba-59ce7650f24eb7c35b8d3ee9f830711a4af8f8e9.tar.gz
samba-59ce7650f24eb7c35b8d3ee9f830711a4af8f8e9.tar.bz2
samba-59ce7650f24eb7c35b8d3ee9f830711a4af8f8e9.zip
De-couple smbd from staticly linking against winbindd client files.
Implements a wrapper layer in winbind_util.c which are just stubs if compiled --without-winbind. When building with winbindd, it is now required to build the libwbclient DSO first (in the Makefile) and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the library PATH. (This used to be commit 42787bccff4fcffafc7aae6a678e792604ecaaa5)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 1e33869ea9..373a2a375f 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1731,17 +1731,17 @@ bool is_trusted_domain(const char* dom_name)
return True;
}
else {
- NSS_STATUS result;
+ wbcErr result;
/* If winbind is around, ask it */
result = wb_is_trusted_domain(dom_name);
- if (result == NSS_STATUS_SUCCESS) {
+ if (result == WBC_ERR_SUCCESS) {
return True;
}
- if (result == NSS_STATUS_NOTFOUND) {
+ if (result == WBC_ERR_DOMAIN_NOT_FOUND) {
/* winbind could not find the domain */
return False;
}