ldap

How to Authenticate LDAP in .NET

元气小坏坏 提交于 2019-12-18 11:52:43
问题 I would like to authenticate username and passwords for my application on a windows operating system with any directory service. For example it could be microsoft active directory, Novell eDirecotry, or SunOne. I already know how to do this code natively for Microsoft Active Direcotry with c#. ( I totally gave up using ADSI and creating a low level com component) The way im attempting to authenticate with Novel eDirecotory is i have installed the Mono project. Inside the mono project they

How do I restrict Apache/SVN access to specific users (LDAP/file-based authentication)?

痴心易碎 提交于 2019-12-18 11:37:33
问题 I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and a flat-file. It's working great except that any LDAP user can access everything. I'd like to be able to limit SVN repositories by user or group. Ideally, I'd get to something like this: <Location /svn/repo1> # Restricted to ldap-user1, file-user1, or members of ldap-group1, # all others denied </Location> <Location /svn/repo2> # Restricted to ldap-user2, file-user2, or members of ldap-group2, #

Getting all direct Reports from Active Directory

半世苍凉 提交于 2019-12-18 10:55:45
问题 I'm trying to get all the direct reports of a User through Active Directory, recursively. So given a user, i will end up with a list of all users who have this person as manager or who have a person as manager who has a person as manager ... who eventually has the input user as manager. My current attempt is rather slow: private static Collection<string> GetDirectReportsInternal(string userDN, out long elapsedTime) { Collection<string> result = new Collection<string>(); Collection<string>

How to PHP ldap_search() to get user OU if I don't know the OU for base DN

折月煮酒 提交于 2019-12-18 10:33:23
问题 I have an Active-Directory structure where User objects reside in OU for example, IT, Technical, HR, Accounts etc.. I want to write a PHP script that authenticates the user with AD and depending on their Group to provide the aproperiate web services. ldap_search() requires base DN. I tried to search with ldap_search($ldap, "dc=country,dc=company,dc=co,dc=uk", "(samaccountname=$username)", array("memberof")); but PHP gives "Operation Error". If instead i specify the OU ldap_search($ldap, "ou

How do you authenticate against an Active Directory server using Spring Security?

廉价感情. 提交于 2019-12-18 09:54:21
问题 I'm writing a Spring web application that requires users to login. My company has an Active Directory server that I'd like to make use of for this purpose. However, I'm having trouble using Spring Security to connect to the server. I'm using Spring 2.5.5 and Spring Security 2.0.3, along with Java 1.6. If I change the LDAP URL to the wrong IP address, it doesn't throw an exception or anything, so I'm wondering if it's even trying to connect to the server to begin with. Although the web

Retrieving custom Active Directory properties of users

ε祈祈猫儿з 提交于 2019-12-18 09:23:45
问题 I've been trying to retrieve two custom properties that are set on our Active Directory users, but it seems like I keep getting a constant list of Properties (tested over 2 different AD servers) Assuming the properties I'm trying to fetch are prop1 and prop2 , What am I doing wrong in the following code: List<String> nProps = new List<string>(); DirectoryEntry directoryEntry = new DirectoryEntry("WinNT://DOM"); foreach (DirectoryEntry child in directoryEntry.Children) { // No filtering;

LDAP authentication with JBoss 7

二次信任 提交于 2019-12-18 06:36:11
问题 I want to develop a simple java web application with JBoss 7 server to enable login from username/password entered by the user and authenticate with ldap. So this is what i wrote in web.xml placed in WEB-INF/ <login-config> <auth-method>BASIC</auth-method> <realm-name>Enter user name and password</realm-name> </login-config> then added jboss-web.xml in same folder <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <security-domain>java:/jaas/website-domain</security-domain> </jboss-web> Then

LDAP authentication with JBoss 7

非 Y 不嫁゛ 提交于 2019-12-18 06:36:09
问题 I want to develop a simple java web application with JBoss 7 server to enable login from username/password entered by the user and authenticate with ldap. So this is what i wrote in web.xml placed in WEB-INF/ <login-config> <auth-method>BASIC</auth-method> <realm-name>Enter user name and password</realm-name> </login-config> then added jboss-web.xml in same folder <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <security-domain>java:/jaas/website-domain</security-domain> </jboss-web> Then

Secure LDAP object manipulation with VBscript using alternate credentials

我的梦境 提交于 2019-12-18 04:52:56
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 years ago . I'm aware of using ADsDSOobject with explicit credentials to connect to an AD object to read attributes, list members, etc. And the GetObject("LDAP//...") method for manipulating those objects (adding group members, changing properties, etc.), but is there a way to manipulate attributes and memberships with explicit credentials? The first method I'm referring to is something like...

single line LDAP query that enumerates users from a group within a supergroup

只愿长相守 提交于 2019-12-18 03:11:56
问题 I have a scheme that looks like this: Users exist like UserA, UserB, UserC. Groups exist like OverGroup, SubGroup. OverGroup automatically adds new users like UserA, UserB, etc. to its membership. SubGroup I created myself. I have set OverGroup to be a member of SubGroup. I want to be able to one-line query SubGroup and retrieve not OverGroup, i.e.: Values: CN=OverGroup,OU=Groups,DC=example,DC=com but the full enumeration of the actual Users (User A, B, C) within OverGroup, i.e.: Values: CN