implement WINBIND_AUTH_LEVEL_COMPAT_AUTH_PLAIN dummy
authorStefan Metzmacher <metze@sernet.de>
Fri, 14 Mar 2008 09:58:04 +0000 (10:58 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:13:42 +0000 (16:13 +0200)
metze

source/winbindd/winbindd_domain.c
source/winbindd/winbindd_pam.c

index acf992705db12e439fbf0578376c0aca642fcdac..c284bf0530216af5868488bdfa46a1eb97574cfd 100644 (file)
@@ -45,6 +45,10 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = "NDR_WINBIND_TRUST",
                .ndr_opnum      = NDR_WINBIND_TRUST,
                .ndr_fn         = winbindd_ndr_domain_child_trust,
+       },{
+               .name           = "NDR_WINBIND_AUTH",
+               .ndr_opnum      = NDR_WINBIND_AUTH,
+               .ndr_fn         = winbindd_ndr_domain_child_auth,
        },{
                .name           = "PAM_AUTH",
                .struct_cmd     = WINBINDD_PAM_AUTH,
index 9719f855e5bd98d6e32d192a6ec05fbf4efe1277..702385e56ecac991d19497e6149e01d6cfbffca2 100644 (file)
@@ -1737,6 +1737,13 @@ done:
        return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR;
 }
 
+static void ndr_child_auth_compat_auth_plain(struct winbindd_domain *domain,
+                                            struct winbindd_cli_state *state,
+                                            struct winbind_auth *r)
+{
+       r->out.result = WINBIND_STATUS_NOT_IMPLEMENTED;
+}
+
 
 /**********************************************************************
  Challenge Response Authentication Protocol 
@@ -2482,3 +2489,21 @@ enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domai
 
        return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR;
 }
+
+void winbindd_ndr_domain_child_auth(struct winbindd_domain *domain,
+                                   struct winbindd_cli_state *state)
+{
+       struct winbind_auth *r;
+
+       r = talloc_get_type_abort(state->c.ndr.r,
+                                 struct winbind_auth);
+
+       switch (*r->in.level) {
+       case WINBIND_AUTH_LEVEL_COMPAT_AUTH_PLAIN:
+               ndr_child_auth_compat_auth_plain(domain, state, r);
+               return;
+       }
+
+       r->out.result = WINBIND_STATUS_UNKNOWN_LEVEL;
+       return;
+}