Questions tagged [ldap]

LDAP is Lightweight Directory Access Protocol.

The Lightweight Directory Access Protocol is an application protocol for reading and editing directories that follow the Directory Information Model over an IP network using 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 protocol or the Directory Information Model. Active Directory provides an LDAP interface, but that interface does not fully implement the LDAP standard, and deviates from it in important ways. Therefore, there are questions that can be answered 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.

306 questions
37
votes
4 answers

The best LDAP browser in Linux?

I'm using phpLDAPadmin currently, but I'm wondering if there is any native utility do the similar thing?
Lenik
  • 18,830
31
votes
2 answers

What does binding to a LDAP server mean?

I have googled for well over an hour, and cannot find and information that simply explains the protocol/concept. Re-binding seems to occur several times during the process of LDAP authentication and authorization. Can anyone help me understand this…
18
votes
3 answers

Is there a sample AD & LDAP server for practice?

I am trying to study the connection method to LDAP and AD, but don't have a working AD. I do have a full working Window 2008 Server. Is there a sample AD & LDAP server I could use for practice?
15
votes
1 answer

Access Office 365-directory using LDAP

My company runs internal e-mail-traffic using Outlook 365. I prefer using a proper e-mail client (in my case: thunderbird) via IMAP and SMTP, which is no problem since the server adresses are provided in the Outlook 365 settings dialogue. Now, I…
Bubaya
  • 261
13
votes
2 answers

Mount Mac OSX server NFS from Linux LDAP?

I'm trying to mount an NFS share from Fedora 16. The server is Mac OS X Server, set up by my coworker. I believe it requires Kerberos/LDAP authentication, so I would start the (probably arduous) process of getting that figured out, but there's…
Chinasaur
  • 231
9
votes
1 answer

getent passwd doesn't work; CentOS 7 and SSSD LDAP authentication

I installed CentOS 7 on a brand new server. All my servers get end user authentication through LDAPS on various system as RHEL5, Debian, and Solaris. I noticed there is a new layer on CentOS 7 which is SSS above NSS and PAM. Anyway, I try to…
dubis
  • 246
8
votes
1 answer

List LDAP users on linux client?

I have configured an LDAP client on my Linux machine. I am able to use su - myldapuser and use it. I just want to know, can I list all my LDAP users on this machine? Referring to this link: How to get Linux users list from LDAP I tried the "getent…
Harinder
  • 205
7
votes
1 answer

How to trace LDAP authentication failures?

I have a working LDAP server which I've confirmed can be used with LDAP clients, running on ec2 via jumpbox. I've run authconfig to setup ldap based authentication, to point to the server: authconfig --useshadow --enablesssd --enablesssdauth…
7
votes
2 answers

How to specify LDAP user name for connecting to Active Directory?

I'm trying to integrate my program with LDAP. I have an Active Directory server here, which apparently speaks LDAP. I want to see what's on the server before I go off trying to debug my own code. I found a program called jxplorer which claims to…
Ken
  • 2,919
7
votes
3 answers

Does a domain joined Windows 10 computer have built-in tools to query AD/LDAP?

I'm on a domain joined Windows 10 Computer and want to query the attributes of my own user account. Are there any built-in tools for that? It is not an admin computer and I don't have RSAT installed. My computer does not seem to…
6
votes
2 answers

How to replicate 'ssh -t ⟨gateway⟩ ssh ⟨destination⟩' in '~/.ssh/config'

I use ssh -t ⟨AD user⟩@⟨gateway IP⟩ ssh ⟨destination hostname⟩ to connect to ⟨destination hostname⟩. The gateway asks for Active Directory credentials and then logs me into ⟨destination⟩. I'm trying to save this configuration to ~/.ssh/config. My…
5
votes
5 answers

How to get Linux users list from LDAP

We've just linked one of our Linux host to LDAP and ActiveDirectory. Now I'm trying to check how I get list of users and their details from within the Linux side.
mosh
  • 255
5
votes
2 answers

LDAP filter to search for a DN

LDAP filters are powerful but I can't figure out how to search an object based on DN. Already I have many filter that searches for objects but searching for a specific DN does not seem to be supported. So for example I…
onknows
  • 877
4
votes
3 answers

Why doesn't getent show OpenLdap users?

I'm trying to configure Ubuntu 10.04 so that I can login using ldap credentials. I've followed these general configuration steps outlined in several tutorials I found: 1) Install libraries: sudo apt-get install libpam-ldap libnss-ldap…
4
votes
1 answer

Adding custom schema to openldap

I want to setup my postfix with ldap authentication. I follow this tutorial https://blog.tnyc.me/postfix-with-ldap I need to setup a PostfixBookMailAccount but therefore i need to load that schema. I tried this one schema and adjusted the…
Pascal
  • 211
1
2 3
20 21