Install OpenLDAP on Ubuntu
Configure OpenLDAP in Ubuntu
In the previous blog, we successfully installed the OpenLDAP-2.4.4 into the system. This article describes how to configure your own ldap server based on the previous article. (See the previous article)
1. Configure the dc and cn of ldap
Vim/usr/local/etc/openldap/slapd. conf
Modify the following two rows:
Suffix "dc = example, dc = com"
Rootdn "cn = Manager, dc = example, dc = com"
My modified results
2 start slapd
# Su root-c/usr/local/libexec/slapd
Verify whether the application can be used:
# Ldapsearch-x-B '-s base' (objectclass = *)'
It indicates that the ldap server is ready for use.
3. Create a management account
Create a cloudsoar. ldif File
# Vim cloudsoar. ldif
Dn: dc = cloudsoar, dc = com
Objectclass: dcObject
Objectclass: organization
O: cloudsoar company
Dc: cloudsoar
Dn: cn = Manager, dc = cloudsoar, dc = com
Objectclass: organizationalRole
Cn: Manager
Import an account into a database
# Ldapadd-x-D "cn = Manager, dc = cloudsoar, dc = com"-W-f cloudsoar. ldif
If you need a password, our default password is: secret (AT/usr/local/etc/openldap/slapd. conf)
Here we can see that the node has been inserted into ldap. Here, cloudsoar is my domain name. You can set a domain name as needed.
Query:
# Ldapsearch-x-B 'dc = cloudsoar, dc = com ''(objectclass = *)'
In this case, I try to use ldapadmin.exe to connect to another computer with a Windows operating system installed.
You can see that my ldap is ready for use.
Liferay Portal configuration uses Oracle and OpenLDAP
Install OpenLDAP on CentOS 6.5 and configure LDAP for user logon
Install and configure OpenLDAP in RHEL7
Deployment steps of OpenLDAP server in Ubuntu
Axigen + OpenLDAP + BerkeleyDB + ejabberd multi-domain + WeChat chat detailed configuration
Deploy OpenLDAP authentication in CentOS
Install OpenLDAP server in CentOS Linux
OpenLDAP details: click here
OpenLDAP: click here
This article permanently updates the link address: