• Contact Us
  • Home
  • Reference

Using OpenLDAP with ejabberd

Discover how to integrate OpenLDAP with ejabberd for a seamless and efficient user management experience in your messaging system.

Written by Marty Heyman

Updated at July 27th, 2024

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

Table of Contents

vCard from LDAP Shared roster groups from LDAP

The main documentation is here. This is a summary. It is intended to help you get a service up using OpenLDAPfor authentication as quickly and simply as possible. 

For simple user auth add this to main ejabberd.yml:

host_config:
  xmpp.example.org:
    auth_method: [ldap]
    ldap_servers:
      - 127.0.0.1 #IP or hostname of OpenLDAP server
    ldap_port: 389
    ldap_uids:
      - uid
    ldap_rootdn: "uid=ldap_readonly,ou=people,dc=example,dc=org"
    ldap_password: "secret"
    ldap_base: "ou=people,dc=example,dc=org"

The ldap_rootdn should be a special administratiive user entry set up in OpenLDAP for ejabberd to use. “dc=example,dc=com” should be set to the rootDN of the directory. The password (unfortunately) has to be in “plaintext” so your config has to be well protected. 

vCard from LDAP

This is theoretically possible, see the documentation. This is not worth pursuing until after your ejabberd server is running and the LDAP connection has been well tested. Best explored on a non-PROD server.

Shared roster groups from LDAP

Theoretically possible, see the documentation.

Same comments as vCard.

Copyright © 2020-2024 Symas Corporation. All rights reserved.
xmpp server ldap integration

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Chaining Overlay with Keep Alive Function
  • cn=monitor Reference
  • Common ldap Command Parameters
  • Common slapd Command Parameters
  • Convert Single-Master to Multi-Master Replication
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2023, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand