草庐IT

ldap_authenticatable

全部标签

node.js - ldap nodejs 事件目录认证

我目前正在使用node.js开发一个Web应用程序,用户需要登录才能访问该信息。我想使用外部事件目录服务器检查用户登录名和密码。我试过使用node-ldapauth,但我无法让它工作(我不知道它是否适用于事件目录,也许只是openLdap)。有什么建议吗? 最佳答案 我使用了ruby​​ldap库来解决问题,谢谢!更新:根据要求,这是我用来解决问题的库https://github.com/ruby-ldap/ruby-net-ldap/在你的服务器上安装ruby​​库后,使用geminstall(查找它并不太难)require'ru

git - 无效凭据 - git 社区版中的 LDAP 访问错误

我想设置git进行版本控制和持续集成。我使用docker-compose文件安装了git社区版,如https://docs.gitlab.com/omnibus/docker/README.html#install-gitlab-using-docker-compose的步骤2中所述。.我的docker-compose.yml文件如下所示:web:image:'gitlab/gitlab-ce:latest'container_name:gitrestart:alwayshostname:'gitserver'environment:GITLAB_OMNIBUS_CONFIG:|ext

jenkins - 如何在 Dockerfile 中为 LDAPS 的 Jenkins 添加 SSL 自签名证书?

我想在Jenkins中启用LDAPS,但我的LDAP服务器有一个自签名CERT。有没有人这样做或有一些关于这样做的指示?我必须使用keytool吗?在我的Dockerfile中,我正在尝试以下操作,但这不起作用:FROMjenkinsUSERroot#InstallCAcertsCOPYca-certificates.crt/etc/ssl/certs/ca-certificates.crtRUNchmod+r/etc/ssl/certs/ca-certificates.crt#InstalltheJenkinspluginCOPYplugins.txt/usr/share/jenki

python - python中的LDAP查询

我想在ldap中执行如下查询ldapsearch-hhostname-bdc=ernet,dc=in-x"(&(uid=w2lame)(objectClass=posixAccount))"gidnumberldapsearch-hhostname-bdc=ernet,dc=in-x"(&(gidNumber=1234)(objectClass=posixGroup))"cn并使用由此获得的变量。我该怎么做? 最佳答案 虽然接受的答案实际上确实显示了绑定(bind)到LDAP服务器的正确方法,但我确实觉得它并没有从整体上回答这个问题

python - 了解 Django-LDAP 身份验证

我是Django新手,我被分配了以LDAP作为后端实现用户身份验证系统的任务。我猜是documentation假设最终开发人员有足够的Django经验,能够理解和实现这样的系统。这是我无法理解如何使用基于LDAP的身份验证实现简单django应用程序的地方。以下是我目前所理解的:仅将更改发布到文件:settings.py....importldapfromdjango_auth_ldap.configimportLDAPSearchAUTH_LDAP_SERVER_URI="ldap://"AUTHENTICATION_BACKENDS=('django_auth_ldap.backe

java - 如何在 Java 中针对此 LDAP 进行 LDAP 搜索/身份验证

我正在使用LDAP和Java搜索。这是我的LDIF导出的简单组织version:1dn:dc=example,dc=comobjectClass:organizationobjectClass:dcObjectobjectClass:topdc:exampleo:MyOrganizationdescription:TestDescriptiondn:ou=people,dc=example,dc=comobjectClass:organizationalUnitobjectClass:topou:peopledescription:Allusersindemocompanydn:cn=

java - 使用 Java 的 LDAP 身份验证

我需要为应用程序进行LDAP身份验证。我尝试了以下程序:importjava.util.Hashtable;importjavax.naming.Context;importjavax.naming.NamingException;importjavax.naming.ldap.InitialLdapContext;importjavax.naming.ldap.LdapContext;publicclassLdapContextCreation{publicstaticvoidmain(String[]args){LdapContextCreationldapContxCrtn=ne

Spring Boot Actuator - LDAP Health Endpoint Throwing NPE

在我们的SpringBoot应用程序中,我们使用spring-security-ldap来验证可以访问我们应用程序的用户。我们在身份验证方面没有发现任何功能问题,但是当我们点击/authenticator/healthURL时,我们会得到ldap的以下状态:"ldap":{"status":"DOWN","error":"java.lang.NullPointerException:null"}追踪这个空指针异常,我们在尝试访问env.put(Context.SECURITY_PRINCIPAL,userDn);时得到了这个踪迹;:java.lang.NullPointerExcept

java - Spring Security LDAP 和记住我

我正在使用SpringBoot构建一个与LDAP集成的应用程序。我能够成功连接到LDAP服务器并验证用户身份。现在我需要添加记住我的功能。我试图浏览不同的帖子(this),但无法找到我的问题的答案。官方SpringSecuritydocument指出Ifyouareusinganauthenticationproviderwhichdoesn'tuseaUserDetailsService(forexample,theLDAPprovider)thenitwon'tworkunlessyoualsohaveaUserDetailsServicebeaninyourapplication

java - mongo 的 LDAP 配置抛出权限被拒绝

我对MongoDB和LDAP还很陌生。我正在尝试使用LDAP对mongo用户进行身份验证。这些是我到目前为止所做的步骤。在/etc文件夹中创建了一个saslauthd.conf文件,其中包含以下行:ldap_servers:ldap://com.myldap.serverldap_use_sasl:yesldap_mech:DIGEST-MD5ldap_auth_method:fastbind在/var/run/saslauthd中创建了一个muxdir,现在看起来像/var/run/saslauthd/mux使用sudochmod755/var/run/saslauthd将权限设置为