ldap

Why does authenticating against LDAP with DirectoryEntry intermittently throw COMException (0x8007203A): “The server is not operational”?

故事扮演 提交于 2019-12-20 23:08:12
问题 If anybody has a similar story, please post details below! I'm building an ASP.NET website which needs to support authentication against LDAP. On windows, LDAP auth can be performed via Active Directory (I'm no expert, but AD seems to simply be a particular flavor of ldap). I don't control the AD and/or LDAP servers. I've tried various methods of authentication, but I've settled on using a single DirectoryEntry per authentication attempt: using (DirectoryEntry de = new DirectoryEntry(ldapPath

How to do password authentication for a user using LDAP?

喜夏-厌秋 提交于 2019-12-20 18:43:18
问题 I am writing a client app (using OpenLDAP libraries) for which the users gets authenticated via LDAP server. Here is the sample, hard coded, program that fails to compare userPassword for a user. #include <stdio.h> #include <ldap.h> #define LDAP_SERVER "ldap://192.168.1.95:389" int main( int argc, char **argv ){ LDAP *ld; int rc; char bind_dn[100]; LDAPMessage *result, *e; char *dn; int has_value; sprintf( bind_dn, "cn=%s,dc=ashwin,dc=com", "manager" ); printf( "Connecting as %s...\n", bind

How do I run a ldap query using R?

…衆ロ難τιáo~ 提交于 2019-12-20 15:31:16
问题 I want to make a query against a LDAP directory of how employees are distributed in departments and groups... Something like: " Give me the department name of all the members of a group " and then use R to make a frequency analysis, but I can not find any examples on how to connect and run a LDAP query using R. RCurl seems to have some kind of support ( http://cran.r-project.org/web/packages/RCurl/index.html ): Additionally, the underlying implementation is robust and extensive, supporting

How do I run a ldap query using R?

自闭症网瘾萝莉.ら 提交于 2019-12-20 15:30:02
问题 I want to make a query against a LDAP directory of how employees are distributed in departments and groups... Something like: " Give me the department name of all the members of a group " and then use R to make a frequency analysis, but I can not find any examples on how to connect and run a LDAP query using R. RCurl seems to have some kind of support ( http://cran.r-project.org/web/packages/RCurl/index.html ): Additionally, the underlying implementation is robust and extensive, supporting

Use JAAS for LDAP password with Spring security

痞子三分冷 提交于 2019-12-20 15:13:11
问题 I have a Java EE web application which uses an LDAP authentication. I use Spring security to connect to my LDAP with the following code: <bean id="ldapContextSource" class="com.myapp.security.authentication.MySecurityContextSource"> <constructor-arg index="0" value="${ldap.url}" /> <constructor-arg index="1" ref="userConnexion" /> </bean> <security:authentication-manager alias="authenticationManager"> <security:authentication-provider ref="ldapAuthProvider" /> </security:authentication

Use JAAS for LDAP password with Spring security

て烟熏妆下的殇ゞ 提交于 2019-12-20 15:11:48
问题 I have a Java EE web application which uses an LDAP authentication. I use Spring security to connect to my LDAP with the following code: <bean id="ldapContextSource" class="com.myapp.security.authentication.MySecurityContextSource"> <constructor-arg index="0" value="${ldap.url}" /> <constructor-arg index="1" ref="userConnexion" /> </bean> <security:authentication-manager alias="authenticationManager"> <security:authentication-provider ref="ldapAuthProvider" /> </security:authentication

Working with DirectoryServices in ASP.NET Core

守給你的承諾、 提交于 2019-12-20 12:38:14
问题 I am upgrading my ASP.NET Core RC1 application to RC2. I have some references to System.DirectoryServices and System.DirectoryServices.AccountManagement in some *.cs files so that I can query LDAP. But I have no idea how to add references to it in RC2 in the Project.json file. Everything that I try just gives me more errors. Any help is appreciated. { "version": "1.0.0-*", "buildOptions": { "emitEntryPoint": true, "preserveCompilationContext": true }, "dependencies": { "Microsoft.NETCore.App"

Alternative authentication sources in CakePHP (LDAP)

痴心易碎 提交于 2019-12-20 10:48:27
问题 I'm working on a CakePHP project and am currently building the user authentication part of it. The problem is that my authentication information (ie: the passwords) are not stored in my database -- the authentication source is LDAP but my question applies equally to any non-database source. It appears as though Cake only handles passwords when they exist in the local database. The Cake Cookbook suggests that you can tell it a different controller/model/object to provide an authorization

How get get more search results than the server's sizelimit with Python LDAP?

99封情书 提交于 2019-12-20 10:37:43
问题 I am using the python LDAP module to (amongst other things) search for groups, and am running into the server's size limit and getting a SIZELIMIT_EXCEEDED exception. I have tried both synchronous and asynchronous searches and hit the problem both ways. You are supposed to be able to work round this by setting a paging control on the search, but according to the python-ldap docs controls are not implemented yet for search_ext. Is there a way to do this in Python? If the python-ldap library

VBA: Login using Windows Authentication

依然范特西╮ 提交于 2019-12-20 10:11:22
问题 I have a an Access App that requires the user to enter their Windows domain user and password to enter. I have used the following VBA code to accomplish this: Function WindowsLogin(ByVal strUserName As String, ByVal strpassword As String, ByVal strDomain As String) As Boolean 'Authenticates user and password entered with Active Directory. On Error GoTo IncorrectPassword Dim oADsObject, oADsNamespace As Object Dim strADsPath As String strADsPath = "WinNT://" & strDomain Set oADsObject =