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 o

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

Example Embodiment

[0029] The principles and features of the present invention will be described below with reference to the accompanying drawings. The examples cited are only used to explain the present invention, and are not used to limit the scope of the present invention.

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

[0031] Client, encapsulate JNDI, set configuration files and parameters, client connect to LDAP server through connection pool;

[0032] LDAP server, providing lightweight directory services;

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

[0034] A JAVA language access operation method for LDAP, which is applied to businesses that need to use specific directory service...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products