You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pl...@apache.org on 2018/08/01 07:15:57 UTC

directory-kerby git commit: DIRKRB-723 Add the guide to enable LDAP plugin.

Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 39a620425 -> 8729345c9


DIRKRB-723 Add the guide to enable LDAP plugin.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/8729345c
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/8729345c
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/8729345c

Branch: refs/heads/trunk
Commit: 8729345c9c5f80010f8bfe3ca090d8c8402286eb
Parents: 39a6204
Author: plusplusjiajia <ji...@intel.com>
Authored: Wed Aug 1 15:12:51 2018 +0800
Committer: plusplusjiajia <ji...@intel.com>
Committed: Wed Aug 1 15:12:51 2018 +0800

----------------------------------------------------------------------
 has-project/docs/ldap-plugin.md | 55 ++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/8729345c/has-project/docs/ldap-plugin.md
----------------------------------------------------------------------
diff --git a/has-project/docs/ldap-plugin.md b/has-project/docs/ldap-plugin.md
new file mode 100644
index 0000000..9bf1755
--- /dev/null
+++ b/has-project/docs/ldap-plugin.md
@@ -0,0 +1,55 @@
+LDAP Plugin
+===============
+
+## Install and start [ApacheDS](https://directory.apache.org/apacheds/)
+
+Please refer to [install ApacheDS](https://directory.apache.org/apacheds/basic-ug/1.3-installing-and-starting.html).
+
+## Prepare user infomation in ApacheDS
+
+### Add user partition
+Please refer to [Add Partition](https://directory.apache.org/apacheds/basic-ug/1.4.3-adding-partition.html)
+Example:
+```
+Partition Type: JDBM
+ID: has
+Suffix: ou=has,dc=kerby,dc=com
+```
+
+### Insert user into LDAP server
+
+Following is an example of the ldif file to be imported, username is "hdfs", password is "test":
+```
+dn: cn=hdfs,ou=has,dc=kerby,dc=com
+objectclass: inetOrgPerson
+objectclass: organizationalPerson
+objectclass: person
+objectclass: top
+cn: HDFS
+description: This is user hdfs.
+sn: hello
+mail: hello@apache.org
+userpassword: test
+```
+
+## Config /etc/has/ldap-server.ini in HAS server host
+Example:
+```
+  [ users ]
+      user_filter=objectclass=*
+      user_name_attr=cn
+
+  [ ldap ]
+       base_dn=ou=has,dc=kerby,dc=com
+       bind_dn=uid=admin,ou=system
+       bind_password=secret
+       host=127.0.0.1
+       port=10389
+```
+
+## Config client
+Example:
+```
+export LDAP_USER=hdfs
+export LDAP_PWD=test
+```