Questions tagged [ldap]

Lightweight Directory Access Protocol (LDAP) for reading and editing directories over an IP network

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.

2728 questions
1
vote
1 answer

Secure LDAP Alias Lookup through Sendmail

I'm trying to configure sendmail to use an LDAP lookup as an alias table. I have this line in my config: Kldapfullname ldap -k"uid=%s" -v"mail" -h"my-ldap-server" I've been using that for a long time. It works, aliases get looked up, and email ends…
fizzlepapers
  • 305
  • 1
  • 2
  • 10
1
vote
1 answer

passwd for ldap users

I'm trying to enable linux hosts to authenticate against an active directory server using port 389 and tls. I seem to have that much working, but the users cannot change their passwords via passwd. I was on the assumption that during a passwd…
Sirex
  • 5,499
  • 2
  • 33
  • 54
1
vote
2 answers

What is required for LDAP authentication to work?

I would like to have LDAP authentication on a webpage. On a CentOS server the .htaccess looks like this Order deny,allow Deny from All AuthName "Only members" AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthLDAPUrl…
Sandra
  • 10,303
  • 38
  • 112
  • 165
1
vote
0 answers

Specify attribute's minimum length

I'm implementing a new infrastructure which will include a kind of Microsoft's GPO using ldap, dns, dhcp and pam. I'm creating a new schema to store the information I need, and I have a groupPolicyId attributeType which describe a 32 characters…
Jaffa
  • 238
  • 4
  • 10
1
vote
1 answer

slapd not launching on Mac OS X 10.6

I have a slight problem with the openldap server installed with Mac OS X 10.6.8 (regular, not server). When I launch slapd in a terminal, it stops itself after 1 or 2 seconds... I just have the time to see its process... It doesn't seem to crash,…
Zaphod
  • 131
  • 5
1
vote
1 answer

ldap_bind: Invalid credentials (49)

i have a problem with ldap configuration : $ ldapadd -x -D 'cn=Manager,dc=ircoms,dc=com' -f file.ldif -W Enter LDAP Password: ldap_bind: Invalid credentials (49) i deleted the contains of /var/lib/ldap ,then execute ldapadd -x -D…
dez
  • 11
  • 1
  • 2
1
vote
2 answers

How to check the Sun Directory Server version?

How to get LDAP Server (Sun DS) Information in Sun OS 5.10 SunOS hostname 5.10 Generic_144488-06 sun4v sparc SUNW,T5240 Specifically Server Type Server Version Protocol Using the command below: ldapsearch -h hostname -p port-s base -b '' '(&)'…
setzamora
  • 306
  • 3
  • 11
1
vote
2 answers

Identify AD Group Type: Distribution Group or Security Group

How do I know whether a AD group is a Distribution Group or Security Group? Note: I am an ordinary user. I do not have permission to run power shell scripts. Any way to identify using User Interface that does not require admin permissions?
LCJ
  • 176
  • 1
  • 10
1
vote
0 answers

Can ApacheDS LDAP change root user name?

ApacheDS 1.5 has the following account by default. Bind dn or user: uid=admin,ou=system Bind password: secret i would like to change it to the following to avoid making changes in my code Bind dn or user: cn=root,dc=ldap,dc=local Bind password:…
Tommy
  • 123
  • 1
  • 6
1
vote
1 answer

store users and groups permission (ACL) to LDAP

I'm trying to store ACL permissions to LDAP. I have permission for users and for groups (user belongs to many groups). Here is structure i create: ou=Groups cn=Admin [posixGroup] {memberUid=andrew, memberUid=johny} cn=Right…
andrew
  • 285
  • 1
  • 2
  • 10
1
vote
1 answer

Samba drives on Ubuntu lost priviledges, directories now defunct, what to do?

I defined two Samba network drives to /mnt on a server. Our network uses LDAP authentication. For some reason it seems like at some point the priviledges were lost. Now /mnt looks like d????????? ? ? ? ? ? foo d????????? ?…
Marko Poutiainen
  • 217
  • 3
  • 10
1
vote
1 answer

git push over smart HTTP fails with 403

This has been driving me nuts. I'm running git 1.7.8.rc4 with Apache/2.2.14 on Lucid Ubuntu, and set up LDAP authentication. The authentication seems to be working fine, and i can pull, but i can't push without getting a 403 error. [Fri Dec 16…
rone
  • 13
  • 2
  • 6
1
vote
2 answers

Changing user passwords under Kerberos/LDAP

I've set up Kerberos/LDAP on Ubuntu 11.04 Server according to this guide. My client machines are auto-mounting NFS volumes from the server using krb5. All is good: Users can log in to any of the machines in the office and their home directories…
BrianTheLion
  • 165
  • 2
  • 8
1
vote
1 answer

Use LDAP to authenticate oracle database users

I have Oracle Database 11g set up in few locations in either pure Linux/OpenLDAP, Samba/OpenLDAP environment and a full-blown Windows/AD environment. The applications that will be using those databases will ask the user for domain password and…
Hubert Kario
  • 6,361
  • 6
  • 36
  • 65
1
vote
0 answers

LDAP Proxy Authentication with Active Directory

I am running an application (JIRA) that uses Active Directory as its user directory. In order to connect to the DC, JIRA needs to either bind with a preconfigured username and password, or to bind anonymously. Unfortunately, none of these are ideal…
Sean
  • 21
  • 1
  • 2
1 2 3
99
100