Tag: ldap

覆盖meteor的默认login处理程序

我正在使用NPM ldapjs和这个Meteor LDAP项目来尝试在我的testingTelescope网站上启用LDAP。 主要问题是我希望LDAP是login的唯一方法。我的计划是围绕内置的望远镜(Meteor?)login方法进行封装。 如果LDAP凭证通过,它将运行Telescopelogin脚本并继续正常。 也许这是一个拙劣的解决scheme,存在一个更好的解决scheme? 无论如何,我需要LDAP来工作。 现在,我试图用这个覆盖默认的login方法: Template.signin.events({ 'submit': function(event, template){ Session.set('errorMessage', null); event.preventDefault(); console.log("My login script ran!"); // I never see this message =( return Meteor.loginWithLDAP(template.find('#login-username').value, template.find('#login-password').value, function(error) { return Session.set('errorMessage', 'Login failed'); }); } }); 正如评论所说,日志命令永远不会运行(我知道,因为我使用的是Chrome,而试图login后的控制台是空白的),另外,每次加载页面都会得到这个结果: Uncaught TypeError: Cannot read property 'events' of undefined (anonymous function) @ ldap_client.js:45 (anonymous function) @ typ_accounts-ldap.js?0ad074ecfc292bededc7d318da4746392aa0f5f8:94 […]

Meteor.js和LDAP

在不久的将来,LDAPauthentication将被整合到Meteor.js中吗? 有关如何使这个工作今天的任何提示?

ldap nodejs主动目录authentication

我目前正在使用node.js中的一个Web应用程序,用户需要login才能访问这些信息。 我想检查用户login名和密码与外部活动目录服务器。 我曾尝试使用node-ldapauth,但我无法得到它的工作(我不知道它是否适用于活动目录,也许只是openLdap)。 有什么build议么?

configurationpassport-ldap

试图使用这个包: https : //www.npmjs.com/package/passport-ldapauth 我设法find我的公司的ldap设置在一个medawikiserver(php) $wgLDAPDomainNames = array("COMPANY"); $wgLDAPGroupBaseDNs = array("COMPANY"=>"dc=company,dc=se"); $wgLDAPAutoAuthDomain = "COMPANY"; $wgLDAPGroupUseFullDN = array("COMPANY"=>true ); $wgLDAPServerNames = array("COMPANY"=>"dcst.company.se"); $wgLDAPSearchStrings = array("COMPANY" => "COMPANY\\USER-NAME" ); $wgLDAPSearchAttributes = array("COMPANY"=>"sAMAccountName"); $wgLDAPBaseDNs = array("COMPANY"=>"dc=company,dc=se"); $wgLDAPEncryptionType = array("COMPANY" => "ssl" ); $wgMinimalPasswordLength = 1; 我需要将其映射到节点包。 我试过这个: var opts = { server: { url: 'ldaps://dcst.company.se', bindDn: 'dc=company,dc=se', //bindCredentials: […]

节点JS LDAPauthentication用户

我正在创build一个login身份validation页面,在那里用户将input活动目录的用户名和密码,并使用NodeJS我会检查,看看是否有效,但我不断 [Error: LDAP Error Bad search filter] 要么 [Error: Search returned != 1 results] 当我试图search用户名和密码时,我的代码如下: 我使用的是: https : //github.com/jeremycx/node-LDAP ,假设用户input了hhill的用户名 var ldap = require('LDAP'); var ldapServer = new ldap({ uri: 'ldap://batman.lan', version: 3}); ldapServer.open(function(error) { if(error) { throw new Error('Cant not connect'); } else { console.log('—- connected to ldap —-'); username = '(cn='+username+')'; ldapServer.findandbind({ base: […]