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

JBoss RoleMappingLoginModule not loading roles properties

I am trying to configure LDAP authentication into a standalone JBoss 6.1 EAP application. I have finally managed to get the application to validate against the LDAP server. I now need to map the 'memberOf' groups of the user in LDAP to specific…
radimpe
  • 3,197
  • 2
  • 27
  • 46
3
votes
1 answer

How to Map AD Groups to User Role Spring Security LDAP

I have a web application built using Java Spring MVC. I'm just setting up spring security connecting to an LDAP server for authentication. I've successfully set it up so that I am able to login to my application but I can't find anything to help me…
Simon Nicholls
  • 635
  • 1
  • 9
  • 31
3
votes
1 answer

What does gidNumber in phpLDAPadmin mean?

I am new to openLDAP. When I create a new user (generic user), there is a field GID number. Can somebody explain what this field means? Does this number needs to be unique? I can select between my posixGroups. I have the same posixgroups in each…
Joeri Feyen
  • 65
  • 1
  • 1
  • 9
3
votes
3 answers

What is LDAP and when consider to use it in web applications?

What is LDAP and why people use LDAP instead of rel. DB? I've read some about LDAP on Wikipedia, but I'm still confused what is it. Thank you
Kirzilla
  • 16,368
  • 26
  • 84
  • 129
3
votes
0 answers

Unable to add groups in LDAP?

I am trying to add groups to an LDAP server I have used the below code to add groups: $ldap = new LDAP(); $connection =…
Edison Trutwein
  • 765
  • 5
  • 22
3
votes
0 answers

Git clone over ssh option is not avaible for gerrit

I've recently migrated from HTTP auth to LDAP for gerrit auth. However, with the migration, some issues have cropped up. I am not able to clone the git repo over ssh. Also, from the UI, there's no option available to clone repo over ssh or…
Yo Yo Money Singh
  • 679
  • 3
  • 11
  • 22
3
votes
1 answer

How to get AD user's 'memberof' property value in terms of objectGUID?

'memberof' is the attribute on the Active Directory user account which describes user's group membership detail. If we use .Net or Java to get the users detail then we get the 'memberof' attribute value in terms of 'Distinguished Name' of the groups…
sagar
  • 1,900
  • 5
  • 30
  • 45
3
votes
1 answer

Every time new Connection is returned from Ldap connection pool

I have implemented LDAP connection pooling in my project and noticed a strange behavior that every time new connection request comes, LDAP connection pool I configured is returning new connection instead of re-using existing connection returned to…
Ravinder Kadian
  • 197
  • 1
  • 4
  • 11
3
votes
1 answer

Authlogic LDAP : encrypt communication

I have a rails app with authlogic and LDAP, but my problem is i can see all the users password on the log file, is there something to fix to encrypt those passwords. For ldap i use :encryption simple_TLS Thanks for your help
user146297
  • 57
  • 2
  • 6
3
votes
1 answer

Using SSIS - sources for querying active directory

I'm using SSIS to access the ldap server. After playing around a bit I managed to create a OLE-DB- connection (Can't use the ADO.NET connection). The most crucial part about the connection itself (in the connection manager) is that I leave out the…
Thomas
  • 2,886
  • 3
  • 34
  • 78
3
votes
1 answer

LDAP Query - get all the member's emails from a given AD distrib group?

I am trying to run a LDAP query against AD to give me all the email addressed for a given group. I tried this but it gives me the email address for the distribution but not for the members. I tried this (&(objectCategory=group)(Name=My-TEST-Group))…
Green Code
  • 189
  • 3
  • 14
3
votes
1 answer

Logging into oracle db as a global user

We are trying to shape up an old, 2 tier, Delphi based application. It originally uses database authentication, we'd like to transform the db user accounts to global users, so an OID server could perform the authentication instead of the…
Karl
  • 3,170
  • 1
  • 21
  • 28
3
votes
2 answers

How to specify hash algorithm when updating LDAP via Java?

Is there a way to specify the hash algorithm (MD5, SHA1, etc.) to use for storing the passwords when you update an Open LDAP directory using Java APIs with code like this: private void resetPassword(String principal, String newPassword) throws…
JuanZe
  • 8,007
  • 44
  • 58
3
votes
1 answer

Invalid DN syntax on LDAP Authentication

I know this has sort of been answered before but it hasnt been able to help me (unless it has but because of my limited php knowledge it hasn't helped). Here is my code below:
user3765724
  • 31
  • 1
  • 1
  • 2
3
votes
0 answers

LDAP custom authentication with web api in a single page application

this is my scenario: - I have a single page application powered by AngularJS and Web Api (ASP.NET MVC) for the backend - I need to authenticate users based on LDAP and their "role" written on a database table (basically, users log in with their…
user1334319