summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-23 19:42:33 +0200
committerVolker Lendecke <vl@samba.org>2010-04-23 23:41:04 +0200
commitf43d1827f389e458d9430bddac7344c8117515c1 (patch)
tree3f4453b65223c4bbe8ce61881c11be80f3ac992b
parent03115efae89c8c4f51dea1ce82613817bd9fcf5b (diff)
downloadsamba-f43d1827f389e458d9430bddac7344c8117515c1.tar.gz
samba-f43d1827f389e458d9430bddac7344c8117515c1.tar.bz2
samba-f43d1827f389e458d9430bddac7344c8117515c1.zip
s3: init_dc_connection() can't init for internal domains
This fixes a crash in winbindd_dual_pam_chng_pswd_auth_crap when given global_sam_name() in the domain field
-rw-r--r--source3/winbindd/winbindd_cm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index c013fae787..8a1456f407 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -1665,6 +1665,10 @@ static NTSTATUS init_dc_connection_network(struct winbindd_domain *domain)
NTSTATUS init_dc_connection(struct winbindd_domain *domain)
{
+ if (domain->internal) {
+ return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
+ }
+
if (domain->initialized && !domain->online) {
/* We check for online status elsewhere. */
return NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;