Use the LDAP service to implement Web project user authentication and simple permission control using Spring ldap,spring security. realize multi-system account unification. 1. EHR-based LDAP user informationLDAP is a lightweight Directory Access Protocol , the full name is L
understanding the basic concepts of LDAP, we understand it with a simple example!
Create a basic Spring boot project (if you don't, you can refer to both articles: Getting Started 1 or getting Started 2)
Introduces two important dependencies in pom.xml
Create a ldap-server.ldif file under the src/test/resources directory to store the underlyin
1, build LDAP Service, I use the system is Ubuntu14.04, specific can refer to this article: ubuntu14.04 to build LDAP services, follow the steps to no problem.
After installation The Access address is: http://10.8.12.147/phpldapadmin/
Name:cn=admin,dc=dianrong,dc=com
password:123456
2, install Ldapsoft LDAP Admin tool, official website download address: http://ww
This section will teach you to build a project and add the Spring Security LDAP module to it in one step.You will create a program that is encrypted with the services provided by Spring Security, which embeds Java basic LDAP encryption. You start the service by loading a configuration file that has a collection of user
The next chapter focuses on the Operation ideas and methods. Therefore, the previous chapter is very important. If the previous chapter has not been tested and understood, you 'd better take a look at the previous chapter or the official help first.
Next, let's take a look at Chapter 3. in chapter 3, the Work Department is a simple bridge. It is difficult to understand it. Let's keep up with the ideas in the previous chapter and look at the following code. The complete class summarized by
LDAP is a Lightweight Directory Access Protocol, based on the TCP/IP protocol, generally provides a unified access to the basic information of the enterprise, its stored data is stored in a tree structure, so the access speed is very fast, but the relative storage speed is very slow. Of course, you can't use SQL statements, either.The first thing to say about the required jar package, of course, there are MAVEN configuration, there should be a lot of
Operating system: Windows 7
XAMPP version: 1.8.3 free installation version
Because the test requires LDAP environment support, check the XAMPP phpinfo, found that LDAP is not enabled by default. After modifying the php.ini configuration to enable LDAP, it was discovered that two consecutive errors were reported when Apache was started, with the following error: "
My current employer has asked me to provide a standard authentication method for intranet Web services in the enterprise. One of the major problems I have encountered is that our company mainly uses two kinds of platforms: Unix and Windows. So my first thought was not very successful: it required that every employee use UNIX or Linux to give up windows.
I think the best way to solve the current unix/windows problem is to take advantage of PHP's LDAP f
-server = utf8[[email protected] ~]# vim/etc/my.cnf.d/client.cnf# in [client] Under the label, add the following: default-character-set=utf8[[email protected] ~]# vim/etc/my.cnf.d/mysql-clients.cnf# in [MySQL] Below the label, add the following: Default-character-set=utf8 Then restart the service:[Email protected] ~]# systemctl restart MARIADBThe installation and setup of the database will probably be completed at this time. Because the database is to be finished with the
LDAP Configuration Series Three: Introduction to Grafana integrated Ldapgrafana
Grafana is something like Kibana, a platform for real-time presentation of data from a variety of data sources, with this awesome look. Give an official Demo experience Address: play.grafana.org/d/000000012/grafana-play-home?orgid=1
A demo is available here.
Installation of Grafana
Grfana installation of the official reference: http://docs.grafana.org/installation/rpm/
[Ro
LDAP Configuration Series II: Jenkins Integrated Ldapjenkins Introduction
Jenkins is a standalone, open source Automation server that can be used to automate a variety of tasks related to building, testing, delivering, or deploying software.
Jenkins Official Document: jenkins.io/doc/Jenkins installation
jenkins:jenkins.io/download/
# jdk1.8 Download [Root@vm_0_15_centos local]#wgethttp//download.linuxpanda.tech/java/jdk-8u172-linux-x64.tar.gz[Root@vm_
Preface:ldap Key Concepts and terminologyOpennebula issues:Missing step to use LDAP as default driverCp-r/var/lib/one/remotes/auth/ldap/var/lib/one/remotes/auth/defaultStandalone LDAP Daemon, SLAPD (Standalone Lightweight Access Protocol)Lightweight Directory Access ProtocolInformation in the LDAP directory is organize
1. Installation Error message:Error:microsoft Visual C + + 9.0 is required. Get it from HTTP://AKA.MS/VCPYTHon272. Do not use the PIP install PYTHON-LDAP django-auth-ldap,pip Install the latest version3. Go to the official website to find the lower version download: https://pypi.python.org/pypi/django-auth-ldap/1.1.4https://pypi.python.org/pypi/python-
LDAP-Series-1-Chapter-3-PHP-LDAPIfyouwanttousePHPwithldap.Youhavetoaddtheextensionlib. (ldap. so) GototheinstallfileofPHP. $ cdoptphp-5.4.5extldap $ us LDAP-Series-1-Chapter-3-PHP-LDAP
If you want to use PHP with ldap. You have to add the extension lib. (
Python-ldap login case, python-ldap case
1 ldap_config = {2 'ldap _ path': 'ldap: // xx. xx. xx. xx: 389 ', 3'base _ dn': 'ou = users, dc = ledo, dc = com', 4'ldap _ user': 'uid = reporttest, ou = users, dc = ledo, dc = com ', 5 'ldap
A DN is comprised of a series of RDNs (Relative distinguished Names) found by walking up the tree (DIT) to its root (or Su Ffix or base) and is written left to right unlike the file system analogy you see quoted everywhere which are written right to left. If you're into analogies it's like the more like a fully qualified domain name (FQDN).CN, OU, DC are the distinguished names in the end strings of the LDAP connection server (DN, distinguished name)T
The java test class calls the LDAP server client information for addition, deletion, modification, and query, and the test class ldap
The user information configured by the client is called by the self-written java test class as follows:
Package com; import java. io. unsupportedEncodingException; import java. util. arrays; import java. util. hashtable; import javax. naming. context; import javax. naming. n
Ldap-series-1-chapter-3-Php-ldap
If you want the PHP with LDAP. You have to add the extension lib. (ldap.so)
Go to the install file of PHP.
$ cd/opt/php-5.4.5/ext/ldap/$/usr/local/bin/phpize$./configure--with-php-config=/usr/local/bin/php-config-- with-ldap=/usr/local/open
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.