Zaiming (Stone) Shi e09e5673eb docs(README): EMQ X -> EMQX 4 سال پیش
..
etc f08ddec296 Add server_name_indication and verify option (#4349) 4 سال پیش
include f0a3b7754e refactor: remove the acl metrics for all auth plugins 4 سال پیش
priv f08ddec296 Add server_name_indication and verify option (#4349) 4 سال پیش
src f86c1316e7 chore(auth): bump version & update appup.src 4 سال پیش
test 6354e75626 chore: update copyrights 4 سال پیش
.gitignore 686c006d6e refactor(proj): Add apps 5 سال پیش
README.md e09e5673eb docs(README): EMQ X -> EMQX 4 سال پیش
emqx.io.ldif 0cd1c57a54 Migrate plugins from tag 4.2.2 5 سال پیش
emqx.schema 0cd1c57a54 Migrate plugins from tag 4.2.2 5 سال پیش
rebar.config 7fdbfba06a Merge branch 'umbrella-for-430-auto-sync' into umbrella-for-430 5 سال پیش

README.md

emqx_auth_ldap

EMQX LDAP Authentication Plugin

Build

make

Load the Plugin

# ./bin/emqx_ctl plugins load emqx_auth_ldap

Generate Password

slappasswd -h '{ssha}' -s public

Configuration Open LDAP

vim /etc/openldap/slapd.conf

include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/ppolicy.schema
include         /etc/openldap/schema/emqx.schema

database bdb
suffix "dc=emqx,dc=io"
rootdn "cn=root,dc=emqx,dc=io"
rootpw {SSHA}eoF7NhNrejVYYyGHqnt+MdKNBh4r1w3W

directory       /etc/openldap/data

If the ldap launched with error below:

Unrecognized database type (bdb)
5c4a72b9 slapd.conf: line 7: <database> failed init (bdb)
slapadd: bad configuration file!

Insert lines to the slapd.conf

modulepath /usr/lib/ldap
moduleload back_bdb.la

Import EMQX User Data

Use ldapadd

# ldapadd -x -D "cn=root,dc=emqx,dc=io" -w public -f emqx.com.ldif

Use slapadd

# sudo slapadd -l schema/emqx.io.ldif -f slapd.conf

Launch slapd

# sudo slapd -d 3

Test

After configure slapd correctly and launch slapd successfully. You could execute

# make tests

License

Apache License Version 2.0

Author

EMQX Team.