Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for accessing and operating light weight directory access protocol (LDAP) by JAVA language

A JAVA language, access operation technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of complex implementation, low efficiency and inconvenient use of LDAP, and achieve simplified operation, improved development efficiency, and improved efficiency effect

Inactive Publication Date: 2012-01-04
北京思特奇信息技术股份有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the implementation of the API in JNDI will be more complicated. In fact, the API in JNDI is realized by relying on multiple classes. If you want to realize JNDI's access and operation of LDAP, you need to go deep into JNDI to modify specific parameters. It will be extremely inconvenient in business projects with a huge amount of code, and the efficiency of using LDAP is very low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for accessing and operating light weight directory access protocol (LDAP) by JAVA language
  • Method and system for accessing and operating light weight directory access protocol (LDAP) by JAVA language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0030] Such as figure 1 As shown, a JAVA language access system for LDAP, which includes LDAP client, tools and LDAP server,

[0031] The client, encapsulates JNDI, sets the configuration file and parameters, and the client connects to the LDAP server through the connection pool;

[0032] LDAP server, providing lightweight directory services;

[0033] Tool classes, including the LdapOperUtils.java operation tool that encapsulates JNDI, the LDAP Filter format-like SQL string conversion tool that encapsulates the writing method of LDAP Filter, and the class that automatically loads configuration files inherits from BaseLdapDao.

[0034] A method for accessing and operating LDAP with JAVA language, which is applied t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for accessing and operating a light weight directory access protocol (LDAP) by a JAVA language. The method comprises the following steps of: 1, encapsulating a JAVA naming and directory interface (JNDI) and setting a configuration file with LdapCons.properties; 2, importing a tool type and introducing a jar file and a dependent jar file into a JAVA project; 3, placing the configuration file into a JAVA project route according to configuration parameters, namely an LDAP connection parameter or an LDAP double-engine configuration parameter, of the configuration file; 4, automatically loading the configuration file and initializing accessing environment of the LDAP and an LDAP connection pool through similar succession BaseLdapDao of the LDAP; 5, acquiring connection from the connection pool so as to acquire a connection object in a similar succession configuration file of the LDAP corresponding to the connection, and accessing and operating the LDAP; 6, correspondingly operating the LDAP by using an application programming interface (API) provided by the encapsulated JNDI; and 7, after the access and the operation for the LDAP are finished, returning the connection object. The method has the advantage of improving the efficiency and reliability of accessing and operating LDAP by a JAVA program.

Description

technical field [0001] The invention relates to LDAP (Lightweight Directory Access Protocol) access and operation technology, in particular to a method and system for accessing and operating LDAP with JAVA language. Background technique [0002] A directory service is essentially a client / server model-based information lookup service that people can use to look up objects by name or, like the Yellow Pages, use them to look up services. Since there are various types of hosts and resources scattered in the network, especially the Internet, in order to obtain related services, it is necessary to use directory services to access these hosts and resources. It relies on catalog databases, which are better at querying than relational databases. The data reading and query efficiency in the directory database is very high, which can be an order of magnitude faster than the relational database. However, its data writing efficiency is low, and it is suitable for situations where the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
Inventor 贾艳斌樊学峰魏鼎
Owner 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products