草庐IT

ldap_authenticatable

全部标签

java - 为 Ldap 连接配置 Spring 安全性

我必须配置Spring安全性以通过LDAP对用户进行身份验证。这是经理用户所在的子树:ldaps://vldp.floal:636/CN=Administration,CN=fdam,DC=fg,DC=local这就是用户所在的地方:ldaps://vldp.floal:636/CN=ProxyUsers,CN=fdam,DC=fg,DC=local所以我使用这个设置:@AutowiredpublicvoidconfigureGlobal(AuthenticationManagerBuilderauth)throwsException{auth.ldapAuthentication()

java - Spring Security 和 LDAP 身份验证

我正在尝试设置LDAP身份验证,这是我的spring-security.xml文件:根据spring安全文档,这应该可以工作,但它不会,相反,它会抛出这个异常:2012-01-2423:05:35,843ERRORorg.springframework.web.context.ContextLoader-Contextinitializationfailedorg.springframework.context.ApplicationContextException:NoBaseLdapPathContextSourceinstancesfound.Haveyouaddedanelem

java - Spring Security 和 LDAP 身份验证

我正在尝试设置LDAP身份验证,这是我的spring-security.xml文件:根据spring安全文档,这应该可以工作,但它不会,相反,它会抛出这个异常:2012-01-2423:05:35,843ERRORorg.springframework.web.context.ContextLoader-Contextinitializationfailedorg.springframework.context.ApplicationContextException:NoBaseLdapPathContextSourceinstancesfound.Haveyouaddedanelem

OSCP-Hutch(ldap)

扫描sudonmap192.168.89.122-p--sV-sSPORTSTATESERVICEVERSION53/tcpopendomainSimpleDNSPlus80/tcpopenhttpMicrosoftIIShttpd10.088/tcpopenkerberos-secMicrosoftWindowsKerberos(servertime:2021-03-0121:29:49Z)135/tcpopenmsrpcMicrosoftWindowsRPC139/tcpopennetbios-ssnMicrosoftWindowsnetbios-ssn389/tcpopenldapMic

java - 使用具有不同 AuthenticationProviders 的多个 WebSecurityConfigurerAdapter(API 的基本身份验证和 Web 应用的 LDAP)

根据SpringSecurityReferencesection5.7应该可以定义多个安全适配器。我尝试做同样的事情,但没有成功。服务器重新启动后,API的前x次使用基本身份验证正常工作,但几次后我被重定向到登录(表单)页面,这应该只发生在我们的Web应用程序,而不是API调用。我的代码:@EnableWebSecuritypublicclassMultiHttpSecurityConfig{@Configuration@Order(1)publicstaticclassApiWebSecurityConfigurationAdapterextendsWebSecurityConfig

java - 使用具有不同 AuthenticationProviders 的多个 WebSecurityConfigurerAdapter(API 的基本身份验证和 Web 应用的 LDAP)

根据SpringSecurityReferencesection5.7应该可以定义多个安全适配器。我尝试做同样的事情,但没有成功。服务器重新启动后,API的前x次使用基本身份验证正常工作,但几次后我被重定向到登录(表单)页面,这应该只发生在我们的Web应用程序,而不是API调用。我的代码:@EnableWebSecuritypublicclassMultiHttpSecurityConfig{@Configuration@Order(1)publicstaticclassApiWebSecurityConfigurationAdapterextendsWebSecurityConfig

c# - 使用 C# 根据 LDAP 对用户进行身份验证

我正在使用DirectorySearcher在LDAP服务器中搜索用户条目。DirectoryEntryde=newDirectoryEntry();de.Path="LDAP://myserver/OU=People,O=mycompany";de.AuthenticationType=AuthenticationTypes.None;DirectorySearcherdeSearch=newDirectorySearcher();deSearch.SearchRoot=de;deSearch.Filter="(uid="+model.UserName+")";SearchResul

java - Spring 安全切换到 Ldap 身份验证和数据库权限

我为我的网页和Web服务实现了数据库身份验证。它对两者都有效,现在我必须添加Ldap身份验证。我必须通过远程Ldap服务器进行身份验证(使用用户名和密码),如果用户存在,我必须使用我的数据库作为用户角色(在我的数据库中,用户名与Ldap的用户名相同)。所以我必须从我的实际代码切换到如上所述的Ldap和数据库身份验证。我的代码是:安全配置类@Configuration@EnableWebSecurity@EnableGlobalMethodSecurity(securedEnabled=true,prePostEnabled=true,proxyTargetClass=true)publ

java - Spring 安全切换到 Ldap 身份验证和数据库权限

我为我的网页和Web服务实现了数据库身份验证。它对两者都有效,现在我必须添加Ldap身份验证。我必须通过远程Ldap服务器进行身份验证(使用用户名和密码),如果用户存在,我必须使用我的数据库作为用户角色(在我的数据库中,用户名与Ldap的用户名相同)。所以我必须从我的实际代码切换到如上所述的Ldap和数据库身份验证。我的代码是:安全配置类@Configuration@EnableWebSecurity@EnableGlobalMethodSecurity(securedEnabled=true,prePostEnabled=true,proxyTargetClass=true)publ

C++ 使用 ldap.h 中的 ldap_bind

我正在尝试使用ldap_bind,但出现此错误。error:âldap_bindâwasnotdeclaredinthisscope代码:#include#include#include#include#includeusingnamespacestd;intmain(){LDAP*ld;char*ldap_host="ldap://localhost";intldap_port=389;intauth_method=LDAP_AUTH_SIMPLE;intdesired_version=LDAP_VERSION3;char*root_dn="ou=people,dc=localhos