.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,
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
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;
+}