s3-dcerpc: finally remove the legaqcy spnego_type variable from pipe_auth_data
[samba.git] / source3 / rpc_server / srv_samr_nt.c
index 994fc7934b79dd5e76d5be376b82940cb0e04256..efcf18af81d8efc1649788e44eafe7676505442e 100644 (file)
@@ -2781,8 +2781,8 @@ static NTSTATUS get_user_info_18(struct pipes_struct *p,
        }
 
        if ((p->auth.auth_type != DCERPC_AUTH_TYPE_NTLMSSP) ||
-           ((p->auth.auth_type == DCERPC_AUTH_TYPE_SPNEGO) &&
-            (p->auth.spnego_type != PIPE_AUTH_TYPE_SPNEGO_NTLMSSP))) {
+           (p->auth.auth_type != DCERPC_AUTH_TYPE_KRB5) ||
+           (p->auth.auth_type != DCERPC_AUTH_TYPE_SPNEGO)) {
                return NT_STATUS_ACCESS_DENIED;
        }