|
|
%!s(int64=4) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| etc | %!s(int64=4) %!d(string=hai) anos | |
| include | %!s(int64=5) %!d(string=hai) anos | |
| priv | %!s(int64=4) %!d(string=hai) anos | |
| src | %!s(int64=4) %!d(string=hai) anos | |
| test | %!s(int64=4) %!d(string=hai) anos | |
| .gitignore | %!s(int64=5) %!d(string=hai) anos | |
| README.md | %!s(int64=5) %!d(string=hai) anos | |
| emqx.io.ldif | %!s(int64=5) %!d(string=hai) anos | |
| emqx.schema | %!s(int64=5) %!d(string=hai) anos | |
| rebar.config | %!s(int64=5) %!d(string=hai) anos | |
EMQ X LDAP Authentication Plugin
make
# ./bin/emqx_ctl plugins load emqx_auth_ldap
slappasswd -h '{ssha}' -s public
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
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
After configure slapd correctly and launch slapd successfully. You could execute
# make tests
Apache License Version 2.0
EMQ X Team.