Questions tagged [ldap]

Lightweight Directory Access Protocol (LDAP), is an application protocol for accessing and maintaining distributed directory information services over an IP network.

The Lightweight Directory Access Protocol is an application protocol for accessing distributed directory services that act in accordance with X.500 data and service models over an IP network. Access is via unsecured TCP/IP, TLS or SSL. LDAP is a binary protocol described in terms of ASN.1 and transmitted using ASN.1 Basic Encoding Rules (BER).

A directory is a hierarchical collection of records known as a Directory Information Base, or when visualized, as a Directory Information Tree. The directory model should be visualized as an upside-down tree, much like a UNIX file-system. The root of the Directory Information Tree is known as the prefix or namingContext. The namingContext, supported versions of the protocol, supported features and supported controls (operation semantics modifiers) and other information can be discovered by querying the root DSE, though the information might be protected by access controls.

Clients (Directory User Agents) issue requests to the directory server (Directory System Agent) and the directory server returns an appropriate response, which could be success (which might include requested entries from the Directory Information Tree in the case of a search), or an indication of success or failure of a search, add, modify, delete, moddn (rename) or extended operation. Controls might be used to alter the semantics of a request, for example, a sort control might be included with a search request to sort the returned entries (known as a server-side sort). Without the inclusion of the sort control in the search request, entries returned from search operations are not ordered, and must not be ordered. Clients must not expect that entries are ordered in any way.

Modern directory servers support a high-speed replication mechanism which is not defined by the standard, though there have been some attempts at defining a replication standard. Therefore, replication and the protocol used for replication is vendor-specific. If data must be synchronized between directory servers from different vendors, a synchronization device must be used.

Most modern programming languages have an LDAP SDK, including Java, PHP, Perl, C/C++, and others. Directory Server software usually comes equipped with a set of command line tools such as ldapsearch, ldapmodify, and others.

Directory Information Trees accessed by the LDAP protocol are used in authentication and authorization applications, configuration storage, profile storage, public-key infrastructure and other applications requiring:

  • speed of access
  • a small, light-weight protocol
  • A simple programming model
  • easily configured replication, redundancy, and failover

Questions that are specific to Active Directory should not be tagged with the LDAP tag unless the question is specifically related to the LDAP protocol or the Directory Information Model. Active Directory provides an LDAP interface, but that interface, while LDAP version 3 compatible, does not fully implement the LDAP standard, and deviates from it in important ways. Therefore, there are questions that can be answered that are specific to Active Directory that are not applicable to standards-compliant LDAP servers and vice versa. Correctly tagging a questions will result in a higher probability of an accurate, timely response.

11627 questions
3
votes
1 answer

Searching LDAP with Python without LDAP library

Here's the problem - I have to work with a blackboxed Linux application server - in other words, I have to work with what I've got, I can't add any libraries. I have to search an LDAP directory and return user details using Python. Normally easy...…
PerryW
  • 1,426
  • 1
  • 15
  • 25
3
votes
1 answer

PHP LDAP connection with AD LDS

I'm trying to write some PHP to query an AD LDS/LDAP (2012 R2) instance and I can't get the thing to connect. I currently have it set up as an unencrypted connection (prod will be ssl/tls). Current troubleshooting: I can connect to my LDAP instance…
NPS
  • 131
  • 6
3
votes
1 answer

Apache Backup LDAP Repository with mod_ldap

I am currently using an Apache front end for my Subversion repository, in order to do LDAP authentication. My setup is fairly vanilla, however I would like to be able to specify a "backup" LDAP URL, in case the primary one is down. I can't currently…
Mike Miller
  • 2,149
  • 1
  • 18
  • 23
3
votes
1 answer

LDAP UnboundId: get all values of attribute from single entry

I have this code // get the search results, getConnection = LDAPConnection SearchResult searchResults = getConnection().search(basedn, SearchScope.SUB, "(cn=JacobKranz)", "description"); …
Jacob Kranz
  • 921
  • 3
  • 11
  • 24
3
votes
0 answers

FreeIPA LDAP timeouts possibly due to kerberos

We currently use FreeIPA so support a centralized repository of our SSH Pubkeys which are the only thing allowed to be used for logging in to our servers. We have installed a Centos 7 machine (up to date) with IPA 3.3.3 (from the default repo) and…
driz
  • 455
  • 3
  • 16
3
votes
1 answer

jboss ldap baseFilter

I found following option in standalone.xml of our jboss 7 installation: The & instead & looks odd to me, but the login process of our service seems to work…
Christof Kälin
  • 1,384
  • 2
  • 17
  • 26
3
votes
3 answers

Extract username from DOMAIN\Username c#

I have implemented an application that authenticates users against active directory using LDAP. Since users are being authenticated from different domains, they log in by DOMAIN\UserName. After being logged in, I capture the username by using…
Wairimu Murigi
  • 2,157
  • 2
  • 15
  • 19
3
votes
0 answers

PHP Warning: ldap_mod_add(): Modify: Object class violation in

I am trying to add ldap object attribute in php. But iam facing below error: PHP Warning: ldap_mod_add(): Modify: Object class violation in Iam just trying to add attribute as below: ldap_mod_add($conn,$dn,$my_attr); I already searched in…
user3815806
  • 243
  • 5
  • 15
3
votes
1 answer

LDAPConnection (org.apache.directory.ldap.client.api.LdapConnection) fails on ssl

I get an error on trying to connect to my server via 636 and ssl enabled. I used apache directory studio to explore the Active directory and connected via port 636 and ssl (ldaps://....) now i got the following code: LdapConnection connection = new…
siegy22
  • 4,295
  • 3
  • 25
  • 43
3
votes
3 answers

Using oracle DBMS_LDAP to validate user credentials against Microsoft Active Directory

We are trying to authenticate our Application users using dbms_ldap against Microsoft AD and we have no means of testing it in our offshore environment We have three specific questions 1)How to verify the user exists in Microsoft Active…
psaraj12
  • 4,772
  • 2
  • 21
  • 30
3
votes
1 answer

authenticating Spring Web Service with LDAP

I want to expose a sample Spring web service which is authenticated using LDAP. First, I have created the web service: import javax.jws.WebMethod; import javax.jws.WebService; import com.domain.SampleEntity; /** * Actual web service…
user3619997
  • 197
  • 2
  • 2
  • 12
3
votes
1 answer

Oracle & Active Directory : A love/hate relationship

I'm currently trying to access Active Directory via the dbms_ldap API in Pl/Sql (Oracle). The trouble is that I'm not able to connect with my own username and password or anynoymously. However, in C# I can connect anonymously with this code…
ALOToverflow
  • 2,679
  • 5
  • 36
  • 70
3
votes
0 answers

Asp.net Identity 2.0 with LDAP repository

As I knew, LDAP repository can manage millions of users read in a efficient way. In Asp.net MVC5, the default Identity Framework is binding with MS-SQL server. Is there a way to use LDAP repository to instead of MS-SQL server?
user2376512
  • 885
  • 1
  • 10
  • 21
3
votes
2 answers

Case insensitive substring LDAP search on OpenLDAP 2.4.33

The current question is not the same as this one. I have an LDAP entry which the content "This is a SimpleTest indeed" in the "supName" field. I need to write a filter so that when the user of my software introduces any substring of this content in…
Nicolas G
  • 123
  • 2
  • 8
3
votes
1 answer

How do I test Azure ActiveDirectory locally?

I'm working on a solution which uses Azure ActiveDirectory for it's authentication backend. In the mean time, I'm attempting to setup a local testing environment - Since I don't have a machine with a Windows Server-grade OS available, can I use some…
Maciek
  • 19,435
  • 18
  • 63
  • 87
1 2 3
99
100