Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Nodejs用户安全_Node.js_Security_Dns_Intranet - Fatal编程技术网

Node.js Nodejs用户安全

Node.js Nodejs用户安全,node.js,security,dns,intranet,Node.js,Security,Dns,Intranet,我想检查访问网页的用户是否是域的一部分 如何使用nodesjs实现这一点 伪代码如下: Server.on(request){ if(getDomainOf(user) === 'thisdomain.local') // User is a member of the domain // Handle request else // show error (Access denied) } 用户不是域的成

我想检查访问网页的用户是否是域的一部分

如何使用nodesjs实现这一点

伪代码如下:

  Server.on(request){
       if(getDomainOf(user) === 'thisdomain.local')  // User is a member of the domain
            // Handle request
       else
            // show error (Access denied)
   }

用户不是域的成员,至少在DNS意义上不是。您是否在询问请求是否来自反向DNS解析到特定域的ip地址?或者你是指其他意义上的领域?比如Windows网络认证?是的,我想这就是我要问的。我应该使用DNS模块进行反向查找吗?我只希望是本地windows域成员的用户能够访问该站点。我认为在某种意义上,这将是Windows网络身份验证。