CN101674319B - Method, system and equipment for accounting and accessing data - Google Patents

Method, system and equipment for accounting and accessing data Download PDF

Info

Publication number
CN101674319B
CN101674319B CN200810148904A CN200810148904A CN101674319B CN 101674319 B CN101674319 B CN 101674319B CN 200810148904 A CN200810148904 A CN 200810148904A CN 200810148904 A CN200810148904 A CN 200810148904A CN 101674319 B CN101674319 B CN 101674319B
Authority
CN
China
Prior art keywords
subclauses
clauses
access
sign
sign type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200810148904A
Other languages
Chinese (zh)
Other versions
CN101674319A (en
Inventor
贾军军
苏锋
曹俊亮
王澜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200810148904A priority Critical patent/CN101674319B/en
Publication of CN101674319A publication Critical patent/CN101674319A/en
Application granted granted Critical
Publication of CN101674319B publication Critical patent/CN101674319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a system and equipment for accounting and accessing data, which belong to the field of communications. The accounting method comprises the following steps: receiving an entry adding request; if the adding request is determined as an adding request based on an identification type entry, judging whether an attribute value of the identification type entry appears in an established directory information tree or not; and if not, adding the identification type entry into the directory information tree according to a full entry name of the identification type entry. The accessing method comprises the following steps: receiving an entry accessing request; if the accessing request is confirmed as an accessing request based on the identification type entry, searching index information of the identification type entry according to access route information to confirm full route information of the identification type entry to be accessed; and executing accessing operation based on the identification type entry according to the full route information. The system comprises an access server and an access client. The method, the system and the equipment ensure the uniqueness of the identification attribute value of the identification type entry, solve the accessing problem in an LDAP according to the identification type entry, and simplify the access interaction based on the identification type entry.

Description

The method that a kind of data are opened an account, visited, system and equipment
Technical field
The present invention relates to the communications field, method, system and equipment that particularly a kind of data are opened an account, visited.
Background technology
LDAP (Lightweight Directory Access Protocol, Light Directory Access Protocol) is a kind of directory services access agreement based on model of client.Utilizing the LDAP technology to solve HLR (Home Location Register; Attaching position register)/HSS (Home Subscriber Server; When home subscriber server) using; Its application process is following: at first, the data among HLR or the HSS are put into amalgamation database, obtain the user data that HLR/HSS FE needs by HLR/HSS FE (Front End) through ldap interface visit amalgamation database.LDAP is applied to HLR is that example describes; Referring to Fig. 1, the part directory information tree sketch map that provides HLR to use, this directory information tree (DIT; Directory Information Tree) is a directory tree of forming by clauses and subclauses; So-called clauses and subclauses (Entry) are meant a node of directory information tree, are the base units in the directory information tree, are made up of one or more object class; Use clause name (DN, Distinguished Name) clauses and subclauses of unique identification in a directory information tree; For example; DN to clauses and subclauses among Fig. 1 " MSISDN=1351111111; IMSI (International Mobile Subscriber Identification Number, custom IC)=460031111111, dc=root " is exactly " MSISDN=1351111111; IMSI=460031111111, dc=root "; Use the relative name (RDN, Relative Distinguished Name) of clauses and subclauses to identify same father's bar clauses and subclauses now; For example; To the clauses and subclauses among Fig. 1 " MSISDN=1351111111, IMSI=460031111111, dc=root "; " MSISDN=1351111111 " is the sub-clauses and subclauses of his father's clauses and subclauses " IMSI=460031111111 ", and its RDN i.e. " MSISDN=1351111111 ".
The inventor realizing when of the present invention, finds existingly when utilizing the application that LDAP solves HLR/HSS, has following shortcoming and defect at least:
Existing LDAP technology can't guarantee that the MSISDN value (or IMPI value of IMPI clauses and subclauses) of MSISDN clauses and subclauses does not repeat in its directory information tree; With the MSISDN clauses and subclauses is example: because existing LDAP technology is after receiving the request of opening an account; Be through request analysis that this is opened an account; After obtaining the full DN of the clauses and subclauses that desire increases, whether his father clauses and subclauses IMSI under have identical MSISDN value, if do not have if judging; Then accomplish the corresponding operation that increases by amalgamation database; Before increasing the MSISDN clauses and subclauses in the above-mentioned flow process of opening an account or increasing IMPI, not and the MSISDN clauses and subclauses or the IMPI that have existed under other father's clauses and subclauses IMSI compare, can't guarantee that the MSISDN clauses and subclauses do not repeat in HLR DIT.
And during operations such as existing LDAP technology increases, modification and deletion, at first; HLR/HSS sends the LDAP query requests to amalgamation database, and amalgamation database inquires the full DN of these MSISDN clauses and subclauses or IMPI clauses and subclauses according to the MSISDN or the IMPI that carry in the request, and in inquiry response, returns this full DN; After receiving inquiry response; HLR/HSS is according to this full DN and increase the full DN that the business information formation of carrying in the new service request increases clauses and subclauses newly, and transmission LDAP increases asks to give amalgamation database, and the amalgamation database completion increases accordingly to be operated; This kind mode of operation need be through repeatedly mutual, and handling process is complicated.
Summary of the invention
Method, system and equipment that the embodiment of the invention provides a kind of data to open an account on the one hand do not repeat with the property value that is implemented in MSISDN clauses and subclauses among the LDAP or IMPI clauses and subclauses.Said technical scheme is following:
The method that a kind of data are opened an account, said method comprises:
Receive and add item requests, wherein, said interpolation item requests is carried Property Name, property value and the full clause name of said clauses and subclauses;
If confirming said interpolation item requests is the interpolation item requests based on sign type clauses and subclauses; Whether the property value of judging said sign type clauses and subclauses occurred in the directory information tree of having set up, if not, in directory information tree, increased said sign type clauses and subclauses according to the said full clause name that identifies type clauses and subclauses; Wherein, Said sign type clauses and subclauses appear at the fixed position of directory information tree, have like-identified generic attribute title, and its property value does not repeat in directory information tree;
If the property value of said sign type clauses and subclauses occurred, then return the interpolation failure response in the directory information tree of having set up.
The embodiment of the invention provides a kind of method, system and equipment of data access on the one hand, to be implemented among the LDAP simplification to MSISDN clauses and subclauses or IMPI clauses and subclauses accessing operation.Said technical scheme is following:
A kind of method of data access, said method comprises:
Reception is to the access request of clauses and subclauses, and wherein, the access path information of carrying in the said access request comprises the relative name RDN of clauses and subclauses to be visited at least;
If confirming said access request is the access request based on sign type clauses and subclauses; Confirm the complete trails information of sign type clauses and subclauses to be visited according to said access path information inquiry sign type entry index information; Wherein, the property value of said sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information;
According to said complete trails information, carry out accessing operation based on sign type clauses and subclauses;
Wherein, said definite said access request comprises for the access request based on sign type clauses and subclauses:
Judge whether said access request is the virtual route access mode, perhaps, judge that whether said access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that said access request is the access request based on sign class clauses and subclauses.
Again on the one hand, the system that provides a kind of data to open an account, said system comprises: access server and access client; Wherein,
Said access server is used to receive the interpolation item requests that said access client is sent, and wherein, said interpolation item requests is carried Property Name, property value and the full clause name of said clauses and subclauses; If confirming said interpolation item requests is the interpolation item requests based on sign type clauses and subclauses; Whether the property value of judging said sign type clauses and subclauses occurred in the directory information tree of having set up, if not, in directory information tree, increased said sign type clauses and subclauses according to the said full clause name that identifies type clauses and subclauses; Wherein, Said sign type clauses and subclauses appear at the fixed position of directory information tree, have like-identified generic attribute title, and its property value does not repeat in directory information tree; If the property value of said sign type clauses and subclauses occurred, then return the interpolation failure response in the directory information tree of having set up;
Said access client is used for sending the interpolation item requests to said access server.
On the one hand, a kind of access server is provided also again, said access server comprises:
Receiver module is used to receive the interpolation item requests that said access client is sent, and wherein, said interpolation item requests is carried Property Name, property value and the full clause name of said clauses and subclauses;
Determination module is used for confirming whether said interpolation item requests is the interpolation item requests based on sign type clauses and subclauses;
Judge module is used for after said determination module confirms that said interpolation item requests is for the interpolation item requests based on sign type clauses and subclauses, judges whether the property value of said sign type clauses and subclauses occurred in the directory information tree of having set up;
Increase module; The result who is used for judging when said judge module is not for the time; Full clause name according to said sign type clauses and subclauses increases said sign type clauses and subclauses in directory information tree, wherein, said sign type clauses and subclauses appear at the fixed position of directory information tree; Have like-identified generic attribute title, its property value does not repeat in directory information tree;
Return module, in the directory information tree of having set up, occurred, be used for returning the interpolation failure response to said access client if said judge module is judged the property value of said sign type clauses and subclauses.
Again on the one hand, a kind of system of data access is provided also, said system comprises: access server and access client, wherein,
Said access server is used to receive the access request to clauses and subclauses, and wherein, the access path information of carrying in the said access request comprises the relative name RDN of clauses and subclauses to be visited at least; If confirming said access request is the access request based on sign type clauses and subclauses; Confirm the complete trails information of sign type clauses and subclauses to be visited according to said access path information inquiry sign type entry index information; Wherein, the property value of said sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information; According to said complete trails information, carry out accessing operation based on sign type clauses and subclauses;
Said access client is used for sending said access request to clauses and subclauses to said access server;
Wherein, said definite said access request comprises for the access request based on sign type clauses and subclauses:
Judge whether said access request is the virtual route access mode, perhaps, judge that whether said access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that said access request is the access request based on sign class clauses and subclauses.
On the one hand, a kind of access server is provided also again, said access server comprises:
Receiver module is used to receive the access request to clauses and subclauses, and wherein, the access path information of carrying in the said access request comprises the relative name RDN of clauses and subclauses to be visited at least;
Determination module is used for confirming whether said access request is the access request based on sign type clauses and subclauses;
Enquiry module is after said determination module confirms that said access request is for the access request based on sign type clauses and subclauses; Confirm the complete trails information that identifies type clauses and subclauses to be visited according to said access path information inquiry sign type entry index information, wherein, the property value of said sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information;
Executive Module is used for the complete trails information that obtains according to said enquiry module, carries out based on the accessing operation of sign type clauses and subclauses wherein, and said determination module specifically comprises:
First judging unit is used to judge whether said access request is the virtual route access mode, if confirm that said access request is the access request based on sign type clauses and subclauses; And/or
Second judging unit is used to judge that whether said access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that said access request is the access request based on sign class clauses and subclauses.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
The embodiment of the invention guarantees the directory information tree identity property value uniqueness of sign type clauses and subclauses down through having introduced the notion of sign type clauses and subclauses, and has simplified among the LDAP conduct interviews mutual flow process of sign type clauses and subclauses.
Description of drawings
Fig. 1 is the part directory information tree sketch map that the HLR that provides of prior art uses;
Fig. 2 be the embodiment of the invention 1 provide guarantee the method flow diagram of property value uniqueness of the sign generic attribute MSISDN of MSISDN clauses and subclauses by amalgamation database;
Fig. 3 be the embodiment of the invention 1 provide set up the part DIT sketch map that the HLR of virtual A lias uses for MSISDN;
Fig. 4 is the sub-entry operation flow chart that the employing virtual A lias access mode that provides of the embodiment of the invention 1 increases MSISDN;
Fig. 5 is the property value operational flowchart of the sign generic attribute MSISDN of the employing virtual A lias access mode deletion MSISDN clauses and subclauses that provide of the embodiment of the invention 1;
Fig. 6 be the embodiment of the invention 1 provide with MSISDN be the inlet direct access mode sketch map;
Fig. 7 is that the MSISDN that the embodiment of the invention 1 provides is the sub-entry operation flow chart that increases MSISDN under the direct access mode of inlet;
Fig. 8 is the property value operational flowchart that in access interface, indicates the sign generic attribute of deletion MSISDN clauses and subclauses under the access mode that the embodiment of the invention 1 provides;
Fig. 9 be the embodiment of the invention 1 provide analyze the method flow diagram that access path is discerned access mode by ldap server;
Figure 10 is data that the embodiment of the invention 2 the provides system schematic of opening an account;
Figure 11 is the access server sketch map that the embodiment of the invention 3 provides;
Figure 12 is the data access system sketch map that the embodiment of the invention 4 provides;
Figure 13 is the access server sketch map that the embodiment of the invention 5 provides;
Figure 14 is another sketch map of the access server that provides of the embodiment of the invention 5.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
The inventor finds no matter be the MSISDN clauses and subclauses under the HLR when realizing the embodiment of the invention, or the IMPI clauses and subclauses under the HSS, because it has identical characteristics:
1, occurs in the fixed position of directory information tree;
2, has identical Property Name, (being that the RDN Property Name is identical);
3, its property value (MSISDN value or IMPI value) is unique in directory information tree, must not repeat.
Based on These characteristics; The clauses and subclauses unified Definition that the inventor will have These characteristics is sign type clauses and subclauses; Expand at ldap protocol, indicate sign type clauses and subclauses through the form that increases indication, just make behind the server stress model can clear and definite which type clauses and subclauses be sign class clauses and subclauses.
Basis based on definition sign type clauses and subclauses; When LDAP increases sign class clauses and subclauses (new account) newly; Uniqueness inspection that need type of sign clauses and subclauses; When confirming that this sign type clauses and subclauses are unique, just increase operation accordingly, guaranteed the uniqueness of the identity property value of sign type clauses and subclauses under directory information tree; In addition, according to the characteristics of sign type clauses and subclauses, the embodiment of the invention also provides the method that sign type clauses and subclauses are conducted interviews, and to solve the visit interaction times many problem of prior art based on sign type clauses and subclauses, its embodiment is follow-up to be explained.
The described data of the embodiment of the invention are opened an account and are the operation of newly-increased sign type clauses and subclauses, the method for described data access refer to the sign class data of having opened an account increase, operations such as deletion, modification, inquiry.
At first; Introducing the embodiment of the invention is that the property value that is implemented in sign such as MSISDN or IMPI type clauses and subclauses among the LDAP does not repeat; The method that the sign class clauses and subclauses that provided are opened an account, in the present embodiment, sign type clauses and subclauses are that example describes with the MSISDN clauses and subclauses in HLR uses specifically.
Of preamble; The MSISDN clauses and subclauses that HLR uses; Have identical RDN attribute " MSISDN ", and its MSISDN value characteristics that can not repeat each other, describe the MSISDN clauses and subclauses through expansion LDAP technology and be sign type clauses and subclauses; Multiple extended description mode can be arranged, and having provided wherein a kind of describing method below and be the clauses and subclauses that indicate which type through the form that increases designator is sign type clauses and subclauses.
Definition to entry type among the RFC4512 is described through DITContentRuleDescription, and concrete ABNF (Augmented Backus-Naur Form, the Backus normal form (BNF) of expansion) syntactic definition is following:
Figure GSB00000826818900061
Wherein, < numericoid>is used for representing the ID of the structure objects class under this entry type; NAME < qdescrs>is used for describing the short name of this entry type; DESC < qdstring>is used for simply describing this entry type; Whether OBSOLETE is used for indicating this entry type definition to activate; AUX < oids>is used for enumerating the ID of all Sec ObjClass that this entry type comprises; MUST < oids>has been used for listing the essential attribute that this entry type comprises; MAY < oids>has been used for listing the optional attribute that this entry type comprises; NOT < oids>has been used for listing the attribute that can not occur in this entry type; < extensions>is used for having described expansion.
In embodiments of the present invention, increase above-mentioned designator, realize description sign type clauses and subclauses through the extended field < extensions>that uses DITContertRuleDescription.
According to the syntactic structure of extensions, the field below the extensions of DITContertRuleDescription partly uses is represented sign type items for information:
Figure GSB00000826818900062
Figure GSB00000826818900071
Above-mentioned, X-KeyIdentifier is above-mentioned designator, and when X-KeyIdentifier existed, the clauses and subclauses that show the type were sign type clauses and subclauses, and its value is the sign generic attribute title (being the RDN Property Name) of this sign type clauses and subclauses; On the contrary, when X-KeyIdentifier did not exist, the clauses and subclauses that show the type were not sign type clauses and subclauses.Wherein, the sign generic attribute title of different identification class clauses and subclauses (being the RDN Property Name) different (for example, MSISDN and the IMPI under the HSS under the HLR are inequality, so that different sign class clauses and subclauses are distinguished).What provide to the embodiment of the invention is the situation of example with MSISDN, and the MSISDN clauses and subclauses of using this extended method to describe are following:
Figure GSB00000826818900072
Wherein, Shown that through X-KeyIdentifier ' MSISDN ' clauses and subclauses of the type belong to sign type clauses and subclauses; And its sign generic attribute title (being the RDN Property Name) is MSISDN, and the sign generic attribute title of the sign class clauses and subclauses of other type (being the RDN Property Name) can not be MSISDN.
Referring to Fig. 2, the method that the embodiment of the invention provides sign type clauses and subclauses to open an account, the client of LDAP is specially service dispense equipment Provision; LDAP Server is specially amalgamation database, and concrete steps are following:
Step 101:Provision sends LDAP to amalgamation database and adds request LDAP Add Request, and request increases new MSISDN clauses and subclauses; Wherein, carry in the request and wait to increase the full DN of MSISDN clauses and subclauses, the property value of these MSISDN clauses and subclauses.
Wherein, this LDAP Add Request request is used to ask to increase new MSISDN clauses and subclauses, i.e. request increases a new MSISND entry attributes value, and for example, it is 1350000002 that request increases new cellphone subscriber's number.
Step 102: after amalgamation database is received LDAP Add Request request; Confirm that the clauses and subclauses that this time increase are sign type clauses and subclauses; MSISDN items for information among the existing directory information tree DIT of inquiry; Whether the property value of judging the sign generic attribute MSISDN of the MSISDN clauses and subclauses of carrying among the LDAP Add Request occurred in present DIT, if then execution in step 103; Otherwise, execution in step 104.
Wherein, MSISDN items for information among the above-mentioned query directory inforamtion tree DIT; Judge that the step whether property value of the sign generic attribute MSISDN of the MSISDN clauses and subclauses of carrying among the LDAP Add Request occurred can be specially in present DIT: the index information of inquiry sign type clauses and subclauses; Whether the property value of judging the sign class clauses and subclauses of required increase thus occurred in this index information; This index information is the sign class clauses and subclauses and the property value of being preserved by amalgamation database thereof that in directory information tree, have existed, can in amalgamation database, store through the form of index information table, when increasing sign class clauses and subclauses newly at every turn; Amalgamation database upgrades this index information table, and the sign class entry index information in the present embodiment comprises the record of MSISDN entry attributes value;
Step 103: amalgamation database returns LDAP to Provision and adds failure response LDAP Add Response.
Step 104: amalgamation database increases corresponding clauses and subclauses according to the full DN of the MSISDN clauses and subclauses that increased in the LDAP Add Request request, returns LDAP Add Response success response and gives Provision.
After the increase operation of this MSISDN value in completing steps 104; Amalgamation database can also upgrade the index information of above-mentioned sign class clauses and subclauses; The MSISDN clauses and subclauses that increase newly and property value thereof are added in this index information; Whether the follow-up property value that can search index information when opening an account know sign type clauses and subclauses increased before, with the uniqueness of guaranteeing that type of sign clauses and subclauses are opened an account; If the index information of sign type clauses and subclauses is the mapping relations of record identification class entry attributes value clause name complete with it also; The full DN of the sign class clauses and subclauses of required increase carries out record in can also further LDAP Add Request being asked this moment in this index information; Can obtain the full DN of clauses and subclauses during the follow-up visit that increases, deletes, looks into, changes according to the MSISDN clauses and subclauses thus, be convenient to subsequent operation.The index information of sign type clauses and subclauses can adopt mode record in amalgamation database of index information table.
Referring to table 1, sign type entry index information signal table
In sum; Through above-mentioned steps 101 to 104; When opening an account, inquire about, it is out-of-date not occur in existing directory information tree at the property value of the sign class clauses and subclauses of confirming required increase, just increases (opening an account) accordingly and operates; Can guarantee the sign type uniquenesss of entry attributes value in directory information tree such as MSISDN clauses and subclauses, effectively avoid to guarantee in the prior art sign type not unique shortcomings of entry attributes value such as MSISDN clauses and subclauses.In addition; After increasing sign type clauses and subclauses; Amalgamation database is also set up sign type entry index information table; When can being used for follow-up operations such as increasing, delete, change, look into to this sign type clauses and subclauses, the property value of record identification class clauses and subclauses, and the mapping relations of the property value full DN corresponding with it, this index information table inquire about the full DN of these clauses and subclauses.
Those skilled in the art can know that in directory information tree, clauses and subclauses can comprise several attributes; For example; In the MSISDN clauses and subclauses, except above-mentioned sign generic attribute MSISDN, also has other attribute; Present embodiment is for the ease of explanation, and only the sign generic attribute with these MSISDN clauses and subclauses is that example describes.
Introduce the method for the data access that the embodiment of the invention provides below; The said data access of the embodiment of the invention mainly refers to operations such as the increase of sign type clauses and subclauses, deletion, modification, inquiries; Because available technology adopting LDAP access identities class clauses and subclauses; LDAP Server need know that the full access path of the sign class clauses and subclauses of required visit just can carry out corresponding operating; Promptly need know the full DN of this sign type clauses and subclauses; Prior art through visitor and database repeatedly alternant way obtain full DN, and the embodiment of the invention is guaranteed on the unduplicated basis of its property value when the increase operation (opening an account) of above-mentioned realization sign type clauses and subclauses, and the concrete implementation of two kinds of data accesses is provided: virtual A lias access mode and be the direct access mode of inlet with sign type clauses and subclauses; Wherein, be that the direct access mode of inlet can comprise again with sign type clauses and subclauses: in access interface, indicate access mode and discern access mode by ldap server analysis access path:
One, virtual A lias access mode
Virtual A lias access mode is meant when access identities class clauses and subclauses, conducts interviews through virtual route, and this virtual route is made up of the RDN of virtual A lias prefix and respective identification class clauses and subclauses.The foundation of virtual A lias realizes that through expansion RFC4512 agreement purpose is to set up a virtual path for sign type clauses and subclauses, so that the relevant visit of type of sign clauses and subclauses.
When using virtual A lias path to conduct interviews; LDAP Server (database) can at first analyze the access path information (being virtual route information) of carrying in the access request; If find to have virtual A lias prefix; Know it is virtual A lias access mode, confirm that promptly said access request is the access request based on sign type clauses and subclauses, then; LDAP Server knowing the pairing complete trails of virtual route of sign class clauses and subclauses to be visited, and then carries out the subsequent access operation through the sign class entry index information set up of inquiry.
Two, be the direct access mode of inlet with sign type clauses and subclauses
So-called is that the direct access mode of inlet is meant that the RDN (part path) according to sign type clauses and subclauses accomplishes the accessing operation that sign type clauses and subclauses are correlated with sign type clauses and subclauses; Virtual route need be provided with different being of virtual A lias access mode, only need provide the visit that RDN just can type of sign clauses and subclauses.
Enumerated two kinds of concrete implementation methods of this access mode below:
1, in access interface, indicates access mode
In the LDAP access interface, increase the access mode that respective identification is indicated this visit; Ldap server is analyzed the visit information that carries in the access interface; Thereby identify the access mode of this visit; If be the direct access mode of inlet with sign type clauses and subclauses; Confirm that promptly said access request is the access request based on sign type clauses and subclauses, so according to RDN (part path) the inquiry sign type complete trails (be full DN) of entry index information table that identifies type clauses and subclauses, the accessing operation of being correlated with at last to know these clauses and subclauses; If not, conduct interviews according to existing LDAP access mode.
To indicate the method for access mode to have multiple for expansion sign in the LDAP access interface, and the method for in the controls of LDAPMessage, expanding is referring to following specific embodiment.
2, analyze access path by ldap server and discern access mode
LDAP Server analyzes the access path information of carrying in the visit order, obtains last in an access path RDN; An if last root that RDN is not DIT in the access path; So just in the sign class entry index information that prestores, inquire about with this RDN value; If this information is arranged; Explain that this access mode is type is the direct access mode of inlet with sign, obtain access path (RDN) DN entirely accordingly then, the accessing operation of being correlated with again.
According to the property value of sign type clauses and subclauses unique characteristic in directory information tree; And guarantee on the basis that type of sign clauses and subclauses do not repeat to increase above-mentioned virtual A lias access mode and be that the direct access mode of inlet can not need between visitor and the LDAP Server repeatedly alternately and can obtain the sign class corresponding complete trailss of clauses and subclauses (DN) to be visited according to the part path that virtual route or visitor provide when the opening an account of sign type clauses and subclauses based on database with sign type clauses and subclauses.
For the method for data access that the invention described above embodiment is provided is carried out detailed explanation, being specially the MSISDN of HLR under using with sign type clauses and subclauses below is that example describes, and sees also following specific embodiment:
Referring to Fig. 3; The part DIT sketch map of setting up the HLR application of virtual A lias for MSISDN is provided, as shown in the figure, dc=AliasMsisdnPrefix; Dc=root " be the virtual A lias prefix of MSISDN class clauses and subclauses; can be through the sub-clauses and subclauses of dashed path visit MSISDN class clauses and subclauses and MSISDN class clauses and subclauses among the figure, wherein, the description of this virtual A lias can be accomplished through expansion RFC4512; according to the syntactic structure of extensions, partly use following field to be used for showing the virtual A lias prefix of MSISDN class clauses and subclauses at the extensions of DITContertRuleDescription:
AliasDNPrefixExtension=
“X-AliasDNPrefix”SP?qdstring;aliasDN?pref
Use above-mentioned extended description MSISDN clauses and subclauses following:
Figure GSB00000826818900101
Wherein, as stated, " X-AliasDNPrefix ' dc=AliasMsisdnPrefix, dc=root ' " promptly described the virtual A lias prefix of these MSISDN sign type clauses and subclauses.
Based on the virtual A lias access mode of MSISDN, concrete operation (comprise increase, deletion, revise and inquiry) is described in detail below:
A) the sub-entry operation of increase MSISDN
Wherein, Being specially IN service data CamelData with these sub-clauses and subclauses is that example describes, and referring to Fig. 3, desiring to increase RDN down in clauses and subclauses " MSISDN=13511111112; IMSI=4600311111112, dc=root " is the sub-clauses and subclauses of " CamelData=cameldata2 "; Because these " CamelData=cameldata2 " his father clauses and subclauses " MSISDN=13511111112 " to be increased are sign type clauses and subclauses, adopt virtual A lias access mode, referring to Fig. 4, the step that specifically increases operation is following:
Step 201:Provision sends to amalgamation database increases sub-item requests LDAP Add Request; Wherein, carry virtual route " CamelData=cameldata2, MSISDN=13511111112; dc=AliasMsisdnPrefix, dc=root " in this request.
Step 202: amalgamation database obtains virtual A lias prefix and MSISDN value after receiving LDAP Add Request request, according to the MSISDN value of obtaining, obtains the full DN of this MSISDN value.Be specially:
Amalgamation database is through asking to resolve to LDAP Add Request; Visit the prefix of its virtual route DN that carries, the virtual A lias prefix " dc=AliasMsisdnPrefix, dc=root " that identifies MSISDN knows that this visit is a virtual A lias access mode; Confirm that promptly said access request is the access request based on sign type clauses and subclauses; According to the property value " 13511111112 " of the sign generic attribute MSISDN of MSISDN clauses and subclauses, inquire about sign class entry index information signal table as shown in table 1, can obtain the corresponding full DN information " MSISDN=13511111112; IMSI=4600311111112, dc=root " of sign type clauses and subclauses.
Step 203: amalgamation database uses the full DN information replacement virtual route Alias of the MSISDN that obtains.Be specially:
Virtual route Alias " CamelData=cameldata2, MSISDN=13511111112, dc=AliasMsisdnPrefix; dc=root " is replaced with " CamelData=cameldata2; MSISDN=13511111112, IMSI=4600311111112, dc=root ".
Step 204: amalgamation database is carried out the increase operation of the sub-clauses and subclauses of MSISDN clauses and subclauses according to the access path that obtains after replacing, and returns the increase success response to Provision.Be specially:
Owing in step 203, the virtual route Alias in the LDAP Add Request request is replaced with " CamelData=cameldata2, MSISDN=13511111112, IMSI=4600311111112; dc=root "; So in this step 204, can carry out the increase operation of the sub-clauses and subclauses " CamelData=cameldata2 " of " 13511111112 " according to this access path after the replacement, wherein; The increase operation that can use prior art to support realizes, repeats no more.After having carried out the sub-entry operation of corresponding increase, return increase success response LDAP Add Response to Provision according to this full DN.
B) deletion MSISDN entry operation
It still is example with Fig. 3; Desire deletion sign type clauses and subclauses " MSISDN=13511111112, IMSI=4600311111112, dc=root "; After accomplishing deletion sign type clauses and subclauses; The information (like relevant information in the index information table) of the MSISDN clauses and subclauses that write down in the time of also need increasing clauses and subclauses through Provision deletion, referring to Fig. 5, it is following specifically to delete step:
Step 301:Provision sends LDAP deletion request LDAP Delete Request to amalgamation database; Wherein, Carry virtual route " MSISDN=13511111112, dc=AliasMsisdnPrefix, the dc=root of the MSISDN clauses and subclauses of desire deletion in this request.
Step 302: amalgamation database obtains virtual A lias prefix and MSISDN value after receiving LDAP Delete Request request, and according to the MSISDN value of obtaining, an inquiry sign type entry index information table obtains the corresponding full DN of this MSISDN property value.Be specially:
Amalgamation database is through asking to resolve to LDAP Delete Request; Visit the prefix in its virtual route that carries; Identify the virtual A lias prefix " dc=AliasMsisdnPrefix, dc=root " of MSISDN, again according to the property value " 13511111112 " of the sign generic attribute MSISDN of MSISDN clauses and subclauses; Inquire about index information signal table as shown in table 1; Can obtain the corresponding full DN information " MSISDN=13511111112, IMSI=4600311111112, dc=root " of sign type clauses and subclauses.
Step 303: the access path replacement virtual route Alias that amalgamation database uses the full DN information of the MSISDN that obtains to provide.Be specially:
Virtual route Alias " CamelData=cameldata2, MSISDN=13511111112, dc=AliasMsisdnPrefix; dc=root " is replaced with " CamelData=cameldata2; MSISDN=13511111112, IMSI=4600311111112, dc=root ".
Step 304: amalgamation database is according to the access path that obtains after replacing; After carrying out the deletion of MSISDN clauses and subclauses; Should identify information (like the index information) deletion of type clauses and subclauses " MSISDN=13511111112; IMSI=4600311111112, dc=root ", and return LDAP deletion success response LDAP Delete Response to Provision.
C) the sub-entry operation of deletion MSISDN
The operation of the sub-clauses and subclauses of deletion MSISDN and the deletion action of above-mentioned deletion MSISDN clauses and subclauses are basic identical:
At first, the virtual route Alias of the sub-clauses and subclauses of the desire deletion of amalgamation database reception MSISDN according to this virtual route and the index information that self writes down in advance, obtains the full DN of these sub-clauses and subclauses;
Then, according to the full DN of these sub-clauses and subclauses of obtaining, these sub-clauses and subclauses are carried out deletion action.Wherein, be noted that especially when carrying out the deletion action of these sub-clauses and subclauses, do not delete the index information of these MSISDN clauses and subclauses.
D) the sub-entry operation of modification MSISDN
This retouching operation is specially the retouching operation to the sub-clauses and subclauses of MSISDN.For example, referring to Fig. 3, the sub-clauses and subclauses " CamelData=cameldata2 " of " MSISDN=13511111112 " are revised as " CamelData=cameldata3 ", wherein, concrete retouching operation process and above-mentioned deletion action are similar:
At first, the virtual route Alias of the sub-clauses and subclauses of the desire deletion of amalgamation database reception MSISDN according to this virtual route and the index information that self writes down in advance, obtains the full DN of these sub-clauses and subclauses;
Then, amalgamation database is carried out retouching operation according to the full DN of these sub-clauses and subclauses of obtaining to these sub-clauses and subclauses, is specially:
Amalgamation database is revised as " CamelData=cameldata3 " with " CamelData=cameldata2 ", thereby has successfully realized the retouching operation to the sub-clauses and subclauses of this MSISDN after getting access to the full DN " CamelData=cameldata2; MSISDN=13511111112; IMSI=4600311111112; dc=root " of these sub-clauses and subclauses.
E) the sub-entry operation of inquiry MSISDN
Similar with above-mentioned modification and deletion action, when carrying out query manipulation, amalgamation database is according to virtual A lias path and the index information that self writes down in advance, virtual A lias path is replaced with the full DN of MSISDN after, carry out corresponding query manipulation again.For example: referring to Fig. 3, the details of its sub-clauses and subclauses of desire inquiry MSISDN=13511111112, at this moment; After virtual A lias path " MSISDN=13511111112, dc=AliasMsisdnPrefix, dc=root " replaced with " MSISDN=13511111112; IMSI=4600311111112; dc=root ", according to " MSISDN=13511111112 can inquire the information content of its sub-clauses and subclauses.
In sum; To sign type entry attributes value unduplicated characteristic in directory information tree, the expansion ldap protocol is to identify sign type clauses and subclauses, to operations such as sign type clauses and subclauses increase, delete, look into, change the time; Can directly offer LDAP Server virtual route; LDAP Server knows it is virtual A lias access mode according to the virtual route that obtains, according to said virtual route inquiry sign type entry index information; Obtain the corresponding complete trails of this virtual route (full DN); Full DN according to obtaining operates accordingly, and the access method to sign type clauses and subclauses that the embodiment of the invention provided has avoided prior art to need repeatedly just can make LDAP Server obtain the full DN of clauses and subclauses to be visited alternately, has simplified the browsing process to clauses and subclauses.
To describe to the direct access mode that with the MSISDN clauses and subclauses is inlet below; With different being of virtual A lias access mode, this direct visit only need provide RDN (being the part path of clauses and subclauses to be visited) just can realize the accessing operation to sign type clauses and subclauses.
Referring to Fig. 6, providing with MSISDN is the direct access mode sketch map of inlet, and wherein, directly access mode comprises: in access interface, indicate access mode and analyze two kinds of situation of access path identification access mode.Under the particular content:
Mode one, in access interface, indicate access mode
This kind access mode need increase the indication that is used to indicate access mode in visit information; Thereby realize that amalgamation database is according to the visit information that carries the access mode indication that receives; Identify the concrete access mode of this visit; Confirm this and visit, can obtain corresponding complete trails according to the part routing information that carries in the visit information, and carry out corresponding accessing operation to after the direct access mode.For example; With the MSISDN clauses and subclauses is example; Amalgamation database judges that through analyzing visit information the access mode of this visit is not to be the direct access mode of inlet with the MSISDN clauses and subclauses, if; After then obtaining the full DN of these clauses and subclauses according to the property value of the sign generic attribute MSISDN of MSISDN clauses and subclauses, the accessing operation of being correlated with; Otherwise, then conduct interviews according to existing LDAP access mode.
For the access mode that in access interface, indicates that the embodiment of the invention is provided is carried out detailed explanation; Provided a kind of below through in the controls of LDAPMessage field, carrying out the method for extended access mode information; Realize utilizing and seeing for details as follows through the controlType in the controls field to indicating access mode:
Those skilled in the art can know that the reference format of the LDAPMessage that in RFC4511, defines is following:
Figure GSB00000826818900151
Wherein, messageID is used for unique this LDAP message of sign in a LDAP session; Listed the operation that defines in the ldap protocol among the protocolOp, like increase, deletion, modification, inquiry etc.; Controls has been used to provide a kind of mechanism of expanding existing LDAP operation.Wherein, following among the RFC4511 to the definition of controls part:
Wherein, controlType is used for indicating control types; Criticality is used for showing the degree of danger of operation; When Provision nonrecognition control types, if its value with regard to shut-down operation, is returned error message for True; Otherwise, ignore this Control, proceed operation; ControlValue is used for indicating the concrete operations mode under this control types.
The inventor utilizes above-mentioned Control field when realizing the embodiment of the invention, be used for indicating access mode through expanding a Control, the concrete definition as follows:
AccessTypeFlagControl::=SEQUENCE{
controlType 1.3.6.1.4.1.1466.1.2.100,
criticality BOOLEAN?DEFAULT?FALSE}
Wherein, utilize controlType to indicate access type, as stated, this controlType value is type to be the direct access mode of inlet with sign for 1.3.6.1.4.1.1466.1.2.100 shows., be that 1.3.6.1.4.1.1466.1.2.100 is an example with this controlType value, the embodiment of the invention does not limit the concrete value to this controlType.
Below in conjunction with shown in Figure 6 be the direct access mode sketch map of inlet with MSISDN, to describing based on the concrete operations (comprise increases, deletion, modification and inquire about) that with sign type clauses and subclauses are the direct access mode of inlet, particular content is following:
A) the sub-clauses and subclauses of increase MSISDN
Be that example describes to increase the sub-clauses and subclauses of IN service now at the MSISDN bar in the present embodiment.Referring to Fig. 6, desiring to increase RDN down in clauses and subclauses " MSISDN=13511111112, IMSI=4600311111112; dc=root " is the sub-clauses and subclauses of " CamelData=cameldata2 "; Because father's clauses and subclauses of these sub-clauses and subclauses are sign type clauses and subclauses " MSISDN ", adopting is the mode of inlet with sign type clauses and subclauses directly, the form realization that the RDN through providing sign type clauses and subclauses in increasing request and access mode are indicated; Referring to Fig. 7, concrete steps are following:
Step 401:Provision sends LDAP to amalgamation database increases request LDAP Add Request, wherein, carries path and access mode indication in this LDAP Add Request request.Be specially:
Wherein, the path is " CamelData=cameldata2, MSISDN=13511111112 ", through in access mode information, carrying access mode indication, is used for being indicated as being this visit for being the direct access mode of inlet with sign type clauses and subclauses.
Step 402: amalgamation database receives LDAP Add Request request; Know that this visit is is the increase operation of inlet with sign type clauses and subclauses; Inquire about the index information of the sign class clauses and subclauses that self write down in advance according to the MSISDN value of carrying in the path, obtain the corresponding full DN information of this MSISDN value.
Step 403: the path of carrying in the full DN information replacement LDAP Add Request request of this MSISDN property value that the amalgamation database utilization is obtained.Be specially:
The path " CamelData=cameldata2; MSISDN=13511111112 " of carrying in the LDAP Add Request request is replaced with the full DN information of this MSISDN value; Obtain " CamelData=cameldata2; MSISDN=13511111112, IMSI=4600311111112, dc=root ".
Step 404: amalgamation database carries out the increase operation of corresponding sub-clauses and subclauses according to the routing information that obtains after replacing, and returns LDAP success response LDAP Add Response to Provision.Be specially:
Because the routing information after the replacement of in step 403, obtaining is " CamelData=cameldata2, MSISDN=13511111112; IMSI=4600311111112; dc=root ", the routing information after amalgamation database is replaced according to this is these MSISDN clauses and subclauses; After increasing its sub-clauses and subclauses " CamelData=cameldata2 ", return LDAP Add Response success response and give Provision.
B) deletion MSISDN clauses and subclauses
Still with shown in Figure 6 serve as that the direct access mode sketch map of inlet describes with MSISDN, be example with desire deletion sign type clauses and subclauses " MSISDN=13511111112, IMSI=4600311111112, dc=root ", referring to Fig. 8, it is following specifically to delete step:
Step 501:Provision sends deletion MSISDN item requests LDAP Delete Request to amalgamation database, wherein, carries routing information and visit indication in this LDAP Delete Request request.Be specially:
Wherein, through in this LDAP Delete Request request, carrying routing information " MSISDN=13511111112 ", through carrying the visit indication, being used for indicating this, to be operating as with sign type clauses and subclauses be the direct access mode of inlet in the access mode information.
Step 502: amalgamation database receives LDAP Delete Request request; Obtain this visit for being the deletion action of inlet with sign type clauses and subclauses; Inquire about the index information of the sign class clauses and subclauses that self write down in advance according to the MSISDN value of carrying in the path, obtain the full DN information of this MSISDN value.Be specially:
Amalgamation database is at first according to the access mode indication of carrying in the LDAP Add Request that the receives request, judges that this operation is is the deletion action of inlet with sign type clauses and subclauses; According to the MSISDN value in its routing information, inquire about the index information (as shown in table 1) that self writes down in advance, obtain the full DN information " MSISDN=13511111112, IMSI=4600311111112, dc=root " of this MSISDN value.
Step 503: the path of carrying in the full DN information replacement LDAP Delete Request request of this MSISDN property value that the amalgamation database utilization is obtained.Be specially:
The path " MSISDN=13511111112 " of carrying in the LDAP Add Request request is replaced with the full DN information of this MSISDN value, obtain " MSISDN=13511111112, IMSI=4600311111112, dc=root ".
Step 504: amalgamation database is according to the routing information that obtains after replacing; Carry out the deletion action of property value of the sign generic attribute MSISDN of these MSISDN clauses and subclauses; And delete the index information of property value of the sign generic attribute MSISDN of these MSISDN clauses and subclauses, return LDAP success response LDAP Delete Response to Provision.Be specially:
Because; Routing information after the replacement of in step 503, obtaining is " MSISDN=13511111112, IMSI=4600311111112, dc=root "; Routing information after amalgamation database is replaced according to this; Delete the sign generic attribute MSISDN of these MSISDN clauses and subclauses property value " MSISDN=13511111112 ", and after deleting the index information of property value of sign generic attribute MSISDN of these MSISDN clauses and subclauses, return LDAP Delete Response success response and give Provision.
C) the sub-clauses and subclauses of deletion MSISDN
The deletion action of the property value of the operation of the sub-clauses and subclauses of deletion MSISDN and the sign generic attribute MSISDN of above-mentioned deletion MSISDN clauses and subclauses is basic identical:
The path and the visit information of the sub-clauses and subclauses of the desire deletion of amalgamation database reception MSISDN; Know that according to this visit information this is operating as with the MSISDN clauses and subclauses is the direct access mode of inlet; According to this routing information and the index information that self writes down in advance, obtain the full DN of these sub-clauses and subclauses; Then, according to the full DN of these sub-clauses and subclauses of obtaining, these sub-clauses and subclauses are carried out deletion action.Wherein, be noted that especially when carrying out the deletion action of these sub-clauses and subclauses, do not delete the index information of these MSISDN clauses and subclauses.
D) the sub-clauses and subclauses of modification MSISDN
For example, referring to Fig. 6, the sub-clauses and subclauses " CamelData=cameldata2 " of " MSISDN=13511111112 " are revised as " CamelData=cameldata3 ", wherein, concrete retouching operation process and above-mentioned deletion action are similar:
The routing information and the visit information of the sub-clauses and subclauses of the desire deletion of amalgamation database reception MSISDN; This visit information knows that this is operating as with the MSISDN clauses and subclauses is the direct access mode of inlet; According to this routing information and the index information that self writes down in advance, obtain the full DN of these sub-clauses and subclauses; Then, amalgamation database is carried out retouching operation according to the full DN of these sub-clauses and subclauses of obtaining to these sub-clauses and subclauses; Be specially: after amalgamation database gets access to the full DN " CamelData=cameldata2; MSISDN=13511111112, IMSI=4600311111112, dc=root " of these sub-clauses and subclauses; " CamelData=cameldata2 " is revised as " CamelData=cameldata3 ", thereby successfully realized retouching operation the sub-clauses and subclauses of this MSISDN.
E) the sub-clauses and subclauses of inquiry MSISDN
Similar with above-mentioned modification and deletion action; When carrying out query manipulation; Amalgamation database knows that according to the visit information that carries in the query requests this is operating as with the MSISDN clauses and subclauses is the direct access mode of inlet; According to carrying routing information and self information recorded in advance in the query requests, the path of carrying in the query requests is replaced with the full DN of MSISDN after, carry out corresponding query manipulation again.For example: referring to Fig. 6; The details of its sub-clauses and subclauses of desire inquiry MSISDN=13511111112; At this moment, through the visit information (specifically can be the form of access indicator) that carries in the query requests, know that this is operating as with the MSISDN clauses and subclauses is the direct access mode of inlet; Inquire the full DN " MSISDN=13511111112; IMSI=4600311111112; dc=root " of property value of sign generic attribute MSISDN of these MSISDN clauses and subclauses according to the routing information that carries in this query requests " MSISDN=13511111112 " after,, can inquire the information content of " MSISDN=13511111112 " its sub-clauses and subclauses according to this " MSISDN=13511111112, IMSI=4600311111112; dc=root ".
In sum; With sign type clauses and subclauses is under the direct access mode of inlet; Be based in the visit information that sends LDAP Server to and indicate access mode; When LDAP Server confirms that this visit is is the direct access mode of inlet with sign type clauses and subclauses, can obtain complete trails according to the part access path that receives, the line correlation accessing operation of going forward side by side.This scheme can avoid prior art need carry out repeatedly mutual problem for the complete trails that makes LDAP Server obtain clauses and subclauses to be visited equally, thereby simplifies the flow process that clauses and subclauses are conducted interviews and operate.
Mode two, analyze access path by ldap server and discern access mode
Referring to Fig. 6, wherein, with clauses and subclauses to be visited be " CamelData=cameldata1, MSISDN=1351111111, IMSI=460031111111, dc=root " for example describes, referring to Fig. 9, the contents are as follows:
Step 601:Provision sends LDAP access request LDAP Request to amalgamation database, wherein, carries access path information in this request, is specially " CamelData=cameldata1, MSISDN=1351111111 ".
Step 602: amalgamation database receives LDAP Request, according to its access path information, obtains its last RDN, judges whether the RDN that obtains is the root of directory information tree DIT, if, execution in step 603; Otherwise, execution in step 604.
Step 603: amalgamation database finishes according to this access path information and executing accessing operation.
Step 604: the RDN that the amalgamation database utilization is obtained, in the MSISDN items for information, inquire about, judge whether to exist this RDN information, if then execution in step 605; Otherwise, execution in step 606.
Step 605: amalgamation database is inquired about self information recorded in advance according to the RDN that obtains, and obtains the full DN of this access path, carries out relevant accessing operation, and returns LDAP visit success response to Provision.
Step 606: amalgamation database returns LDAP visit failure response to Provision.
For example, to above-mentioned access path " CamelData=cameldata1, MSISDN=1351111111 ", at first resolve this access path as the amalgamation database of LDAPServer, obtaining its last RDN is MSISDN=1351111111; Judge that then this RDN is not the root of DIT " dc=root ", secondly, utilize the property value of the sign generic attribute MSISDN of MSISDN clauses and subclauses to inquire about self information recorded (MSISDN index information as shown in table 1) in advance, obtain the full DN of access path; At last, utilize the full DN information of obtaining, the accessing operation of being correlated with (specifically comprising: increase, delete, revise and inquiry)
In sum, analyzing access path by ldap server and discern access mode, is with the access mode of sign type clauses and subclauses when LDAP Server self confirms this visit, can obtain complete trails according to the part access path that receives, the line correlation accessing operation of going forward side by side.This scheme can avoid prior art need carry out repeatedly mutual problem for the complete trails that makes LDAP Server obtain clauses and subclauses to be visited equally, thereby simplifies the flow process that clauses and subclauses are conducted interviews and operate.
Those skilled in the art can be known; The IMPI clauses and subclauses that HSS uses have identical characteristics with MSISDN clauses and subclauses in the HLR application; All belong to sign type clauses and subclauses,, guarantee the method for IMPI value uniqueness the description of IMPI clauses and subclauses; And the processing of the method that conducts interviews according to the characteristics of IMPI clauses and subclauses on this basis and the HLR MSISDN clauses and subclauses in using is similar, repeats no more.
Wherein, when above-mentioned accessing operation is during to the deletion of sign type clauses and subclauses or retouching operation, further, can also upgrade accordingly the property value of the sign class clauses and subclauses that write down in the sign type entry index information and the mapping relations of its complete trails information.
In sum, the embodiment of the invention has provided unified Definition through having introduced the notion of sign type clauses and subclauses to this type clauses and subclauses in the practical application, and has solved problem how in LDAP, to describe sign type clauses and subclauses; Solved the problem that how to guarantee the identity property value uniqueness of sign type clauses and subclauses under the directory information tree; And solved the problem that in LDAP, conducts interviews according to sign type clauses and subclauses, and reduce interaction times, and simplified handling process, better met sign type clauses and subclauses demands of applications.
Embodiment 2
Referring to Figure 10, the system that the embodiment of the invention provides a kind of data to open an account, system comprises: access server 1001 and access client 1002; Wherein,
Access server 1001 is used to receive the interpolation item requests that access client 1002 is sent, and wherein, adds Property Name, property value and full clause name that item requests is carried clauses and subclauses; Be interpolation request if confirm to add request based on sign type clauses and subclauses; Whether the property value of judging sign type clauses and subclauses occurred in the directory information tree of having set up, if not, in directory information tree, increased sign type clauses and subclauses according to the full clause name that identifies type clauses and subclauses; Wherein, Sign type clauses and subclauses appear at the fixed position of directory information tree, have like-identified generic attribute title, and its property value does not repeat in directory information tree;
Access client 1002 is used for sending the interpolation item requests to access server 1001.
Wherein, access server 1001 also is used for then returning the interpolation failure response if the property value of sign type clauses and subclauses occurred at the directory information tree of having set up.
The system that the embodiment of the invention provides a kind of data to open an account; When LDAP increases sign class clauses and subclauses (new account) newly; Uniqueness inspection through sign type clauses and subclauses; When confirming that this sign type clauses and subclauses are unique, just increase operation accordingly, guaranteed the uniqueness of the identity property value of sign type clauses and subclauses under directory information tree.
Embodiment 3
Referring to Figure 11, the embodiment of the invention provides a kind of access server, and said access server comprises:
Receiver module 1101 is used to receive the interpolation item requests that access client is sent, and wherein, adds Property Name, property value and full clause name that item requests is carried clauses and subclauses;
Determination module 1102, whether be used for confirming to add request is the interpolation request based on sign type clauses and subclauses;
Judge module 1103 is used for after determination module 1102 confirms that the interpolation request is for the interpolation request based on sign type clauses and subclauses, and whether the property value of judgement sign type clauses and subclauses occurred in the directory information tree of having set up;
Increase module 1104; The result who is used for judging when judge module 1103 is not for the time; Full clause name according to sign type clauses and subclauses increases sign type clauses and subclauses in directory information tree, wherein, sign type clauses and subclauses appear at the fixed position of directory information tree; Have like-identified generic attribute title, its property value does not repeat in directory information tree.
Wherein, determination module 1102 is concrete when realizing, is sign type clauses and subclauses through expansion Light Directory Access Protocol ldap protocol with the clauses and subclauses that identify which type, according to the Property Name of the clauses and subclauses that will add confirm whether type of sign clauses and subclauses of these clauses and subclauses.
Wherein, judge module 1103 specifically comprises:
Query unit is used to inquire about the index information of sign type clauses and subclauses;
Judging unit; Whether the property value that is used for judging sign type clauses and subclauses occurred at the index information of query unit inquiry; If not; Then the property value of sign type clauses and subclauses did not occur in the directory information tree of having set up, and wherein the index information of sign type clauses and subclauses writes down sign class clauses and subclauses and the property value thereof that in directory information tree, has existed.
Further, access server also comprises:
Update module is used for sign class clauses and subclauses that increased and property value thereof are upgraded the into index information of sign class clauses and subclauses.
Further, access server also comprises:
Return module, in the directory information tree of having set up, occurred, be used for returning the interpolation failure response to access client if judge module 1103 is judged the property value of sign type clauses and subclauses.
The embodiment of the invention provides a kind of access server; When LDAP increases sign class clauses and subclauses (new account) newly; Uniqueness inspection through sign type clauses and subclauses; When confirming that this sign type clauses and subclauses are unique, just increase operation accordingly, guaranteed the uniqueness of the identity property value of sign type clauses and subclauses under directory information tree.
Embodiment 4
Referring to Figure 12, the embodiment of the invention provides a kind of system of data access, and system comprises: access server 1201 and access client 1202, wherein,
Access server 1201 is used to receive the access request to clauses and subclauses, and wherein, the access path information of carrying in the access request comprises the relative name RDN of clauses and subclauses to be visited at least; If confirming access request is the access request based on sign type clauses and subclauses; Confirm the complete trails information of sign type clauses and subclauses to be visited according to access path information inquiry sign type entry index information; Wherein, the property value of sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information; According to complete trails information, carry out accessing operation based on sign type clauses and subclauses;
Access client 1202 is used for the access request of sending clauses and subclauses to access server 1201.
Wherein, access server 1201 when carrying out accessing operation based on sign type clauses and subclauses and be specially to the deletion of sign type clauses and subclauses or retouching operation,
Access server 1201 also is used for the property value of the sign type sign class clauses and subclauses that entry index information writes down and the mapping relations of its complete trails information are upgraded accordingly.
The embodiment of the invention provides a kind of system of data access; Through having introduced the notion of sign type clauses and subclauses, solved the problem that in LDAP, conducts interviews according to sign type clauses and subclauses, reduced interaction times; And simplified handling process, better met sign type clauses and subclauses demands of applications.
Embodiment 5
Referring to Figure 13, the embodiment of the invention provides a kind of access server, and access server comprises:
Receiver module 1301 is used to receive the access request to clauses and subclauses, and wherein, the access path information of carrying in the access request comprises the relative name RDN of clauses and subclauses to be visited at least;
Determination module 1302 is used for confirming whether access request is the access request based on sign type clauses and subclauses;
Enquiry module 1303 is after determination module 1302 confirms that access request is the access request based on sign type clauses and subclauses; Confirm the complete trails information that identifies type clauses and subclauses to be visited according to access path information inquiry sign type entry index information, wherein, the property value of sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information;
Executive Module 1304 is used for the complete trails information that obtains according to enquiry module 1303, carries out the accessing operation based on sign type clauses and subclauses.
Wherein, determination module 1302 specifically comprises:
First judging unit is used to judge whether virtual route access mode of access request, if confirm that access request is the access request based on sign type clauses and subclauses;
Second judging unit is used to judge that whether access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that access request is the access request based on sign class clauses and subclauses;
Wherein, second judging unit specifically comprises:
Judgment sub-unit; Be used for judging whether be the root of directory information tree to access request and in the corresponding relation that prestores, whether have RDN if carrying last clauses and subclauses relative name RDN of access path information; If confirm that access request is is the direct access mode of inlet with sign type clauses and subclauses.
Wherein, Executive Module 1304 specifically comprises one of following any unit or wherein combination:
Increase the unit, be used for the sub-clauses and subclauses of sign type clauses and subclauses are carried out the increase operation;
Delete cells is used for sign type clauses and subclauses or its sub-clauses and subclauses are carried out deletion action;
Query unit is used for sign type clauses and subclauses or its sub-clauses and subclauses are carried out query manipulation;
Revise the unit, be used for sign type clauses and subclauses or its sub-clauses and subclauses are carried out retouching operation.
When 1304 pairs of Executive Modules sign type clauses and subclauses are carried out a deletion action, or when revising the unit sign type clauses and subclauses being carried out retouching operation, the embodiment of the invention provides access server also to comprise:
Update module 1305 is used for the property value of the sign type sign class clauses and subclauses that entry index information writes down and the mapping relations of its complete trails information are upgraded accordingly.
The embodiment of the invention provides a kind of access server, through having introduced the notion of sign type clauses and subclauses, this type clauses and subclauses in the practical application has been provided unified Definition, and has solved problem how in LDAP, to describe sign type clauses and subclauses; Solved the problem that how to guarantee the identity property value uniqueness of sign type clauses and subclauses under the directory information tree; And solved the problem that in LDAP, conducts interviews according to sign type clauses and subclauses, and reduce interaction times, and simplified handling process, better met sign type clauses and subclauses demands of applications.
To sum up; The technical scheme that the embodiment of the invention provides provides sign type description and the access method of clauses and subclauses in LDAP, is mainly used in having in the data model field of sign type clauses and subclauses; The communications field is a typical application; HLR and HSS as mentioning among this paper use, and in addition, the technical scheme that the embodiment of the invention provides also is applicable in other field as long as the situation of sign type clauses and subclauses is arranged in its data model.
" reception " speech in the embodiment of the invention is appreciated that for initiatively obtaining from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Part steps in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, like CD or hard disk etc.
More than be merely preferred embodiment of the present invention, or not all within spirit of the present invention and principle in order to restriction the present invention, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (21)

1. the method that data are opened an account is characterized in that, said method comprises:
Receive and add item requests, wherein, said interpolation item requests is carried Property Name, property value and the full clause name of said clauses and subclauses;
If confirming said interpolation item requests is the interpolation item requests based on sign type clauses and subclauses; Whether the property value of judging said sign type clauses and subclauses occurred in the directory information tree of having set up, if not, in directory information tree, increased said sign type clauses and subclauses according to the said full clause name that identifies type clauses and subclauses; Wherein, Said sign type clauses and subclauses appear at the fixed position of directory information tree, have like-identified generic attribute title, and its property value does not repeat in directory information tree;
If the property value of said sign type clauses and subclauses occurred, then return the interpolation failure response in the directory information tree of having set up.
2. the method for claim 1 is characterized in that, whether the property value of said definite said sign type clauses and subclauses occurred specifically comprising in the directory information tree of having set up:
The index information of inquiry sign type clauses and subclauses judges whether the property value of said sign type clauses and subclauses occurred in this index information, sign class clauses and subclauses and property value thereof that the index information record of wherein said sign type clauses and subclauses has existed in directory information tree.
3. method as claimed in claim 2 is characterized in that, said in directory information tree, increase said sign class clauses and subclauses after, also comprise:
Sign class clauses and subclauses that increased and property value thereof are upgraded in the index information of into said sign type clauses and subclauses.
4. method as claimed in claim 3; It is characterized in that; The index information of said sign type clauses and subclauses is the mapping relations of record identification class entry attributes value clause name complete with it also, then when upgrading the index information of said sign type clauses and subclauses, also write down the full clause name of the sign class clauses and subclauses that increased.
5. the method for claim 1 is characterized in that, said definite said interpolation item requests specifically comprises for the interpolation item requests based on sign type clauses and subclauses:
Expansion Light Directory Access Protocol ldap protocol is sign type clauses and subclauses with the clauses and subclauses that identify which type, according to the Property Name of the clauses and subclauses that will add confirm whether type of sign clauses and subclauses of these clauses and subclauses.
6. like the described method of the arbitrary claim of claim 1 to 5, it is characterized in that said sign type clauses and subclauses are specially the integrated services digital network MSISDN of travelling carriage country clauses and subclauses, or, privately owned identify label IMPI clauses and subclauses.
7. the method for a data access is characterized in that, said method comprises:
Reception is to the access request of clauses and subclauses, and wherein, the access path information of carrying in the said access request comprises the relative name RDN of clauses and subclauses to be visited at least;
If confirming said access request is the access request based on sign type clauses and subclauses; Confirm the complete trails information of sign type clauses and subclauses to be visited according to said access path information inquiry sign type entry index information; Wherein, the property value of said sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information;
According to said complete trails information, carry out accessing operation based on sign type clauses and subclauses;
Wherein, said definite said access request comprises for the access request based on sign type clauses and subclauses:
Judge whether said access request is the virtual route access mode, perhaps, judge that whether said access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that said access request is the access request based on sign class clauses and subclauses.
8. method as claimed in claim 7; It is characterized in that; Said complete trails information is the full clause name that identifies type clauses and subclauses to be visited, the mapping relations of the property value clause name complete with it of the sign class clauses and subclauses that said sign class entry index information writes down when identifying the class clauses and subclauses for adding.
9. method as claimed in claim 7; It is characterized in that; Adopt the virtual route access mode when said visit, the access path information of carrying in the said access request is virtual route information, and said virtual route information is made up of the relative name RDN of virtual prefix and clauses and subclauses to be visited;
Accordingly, judge that according to said virtual prefix said access request is the virtual route access mode.
10. method as claimed in claim 7 is characterized in that, the access path information of carrying in the said access request also comprises the access mode indication;
Accordingly, indication confirms that said access request is is the direct access mode of inlet with sign type clauses and subclauses according to said access mode.
11. method as claimed in claim 7 is characterized in that, saidly judges that whether said access request is is that the direct access mode of inlet comprises with sign type clauses and subclauses:
Judge whether last the clauses and subclauses relative name RDN that carries access path information in the said access request is the root of directory information tree and in said mapping relations, whether has said RDN; If confirm that said access request is is the direct access mode of inlet with sign type clauses and subclauses.
12. method as claimed in claim 7 is characterized in that, said accessing operation comprises one of following any operation or its combination:
To the increase operation of the sub-clauses and subclauses of sign type clauses and subclauses, to deletion, inquiry or the retouching operation of sign type clauses and subclauses or its sub-clauses and subclauses.
13. method as claimed in claim 12 is characterized in that, said accessing operation is during to the deletion of sign type clauses and subclauses or retouching operation, and said method also comprises:
The property value of the sign class clauses and subclauses that write down in the said sign type entry index information and the mapping relations of its complete trails information are upgraded accordingly.
14. the system that data are opened an account is characterized in that, said system comprises: access server and access client; Wherein,
Said access server is used to receive the interpolation item requests that said access client is sent, and wherein, said interpolation item requests is carried Property Name, property value and the full clause name of said clauses and subclauses; If confirming said interpolation item requests is the interpolation item requests based on sign type clauses and subclauses; Whether the property value of judging said sign type clauses and subclauses occurred in the directory information tree of having set up, if not, in directory information tree, increased said sign type clauses and subclauses according to the said full clause name that identifies type clauses and subclauses; Wherein, Said sign type clauses and subclauses appear at the fixed position of directory information tree, have like-identified generic attribute title, and its property value does not repeat in directory information tree; If the property value of said sign type clauses and subclauses occurred, then return the interpolation failure response in the directory information tree of having set up;
Said access client is used for sending the interpolation item requests to said access server.
15. an access server is characterized in that, said access server comprises:
Receiver module is used to receive the interpolation item requests that access client is sent, and wherein, said interpolation item requests is carried Property Name, property value and the full clause name of said clauses and subclauses;
Determination module is used for confirming whether said interpolation item requests is the interpolation item requests based on sign type clauses and subclauses;
Judge module is used for after said determination module confirms that said interpolation item requests is for the interpolation item requests based on sign type clauses and subclauses, judges whether the property value of said sign type clauses and subclauses occurred in the directory information tree of having set up;
Increase module; The result who is used for judging when said judge module is not for the time; Full clause name according to said sign type clauses and subclauses increases said sign type clauses and subclauses in directory information tree, wherein, said sign type clauses and subclauses appear at the fixed position of directory information tree; Have like-identified generic attribute title, its property value does not repeat in directory information tree;
Return module, in the directory information tree of having set up, occurred, be used for returning the interpolation failure response to said access client if said judge module is judged the property value of said sign type clauses and subclauses.
16. access server as claimed in claim 15 is characterized in that, said judge module specifically comprises:
Query unit is used to inquire about the index information of sign type clauses and subclauses;
Judging unit; Be used for judging that the index information whether said property value that identifies type clauses and subclauses is inquired about in said query unit occurred; If not; The property value of then said sign type clauses and subclauses did not occur in the directory information tree of having set up, sign class clauses and subclauses and property value thereof that the index information record of wherein said sign type clauses and subclauses has existed in directory information tree.
17. access server as claimed in claim 16 is characterized in that, said access server also comprises:
Update module is used for sign class clauses and subclauses that increased and property value thereof are upgraded the into said index information that identifies type clauses and subclauses.
18. the system of a data access is characterized in that, said system comprises: access server and access client, wherein,
Said access server is used to receive the access request to clauses and subclauses, and wherein, the access path information of carrying in the said access request comprises the relative name RDN of clauses and subclauses to be visited at least; If confirming said access request is the access request based on sign type clauses and subclauses; Confirm the complete trails information of sign type clauses and subclauses to be visited according to said access path information inquiry sign type entry index information; Wherein, the property value of said sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information; According to said complete trails information, carry out accessing operation based on sign type clauses and subclauses;
Said access client is used for sending said access request to clauses and subclauses to said access server;
Wherein, said definite said access request comprises for the access request based on sign type clauses and subclauses:
Judge whether said access request is the virtual route access mode, perhaps, judge that whether said access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that said access request is the access request based on sign class clauses and subclauses.
19. system as claimed in claim 18 is characterized in that, said access server when carrying out accessing operation based on sign type clauses and subclauses and be specially to the deletion of sign type clauses and subclauses or retouching operation,
Said access server also is used for the property value of the said sign type sign class clauses and subclauses that entry index information writes down and the mapping relations of its complete trails information are upgraded accordingly.
20. an access server is characterized in that, said access server comprises:
Receiver module is used to receive the access request to clauses and subclauses, and wherein, the access path information of carrying in the said access request comprises the relative name RDN of clauses and subclauses to be visited at least;
Determination module is used for confirming whether said access request is the access request based on sign type clauses and subclauses;
Enquiry module is after said determination module confirms that said access request is for the access request based on sign type clauses and subclauses; Confirm the complete trails information that identifies type clauses and subclauses to be visited according to said access path information inquiry sign type entry index information, wherein, the property value of said sign type entry index information record identification class clauses and subclauses and the mapping relations of its complete trails information;
Executive Module is used for the complete trails information that obtains according to said enquiry module, carries out the accessing operation based on sign type clauses and subclauses;
Wherein, said determination module specifically comprises:
First judging unit is used to judge whether said access request is the virtual route access mode, if confirm that said access request is the access request based on sign type clauses and subclauses; And/or
Second judging unit is used to judge that whether said access request is is the direct access mode of inlet with sign type clauses and subclauses, if confirm that said access request is the access request based on sign class clauses and subclauses.
21. access server as claimed in claim 20 is characterized in that, when said Executive Module is carried out a deletion action to sign type clauses and subclauses, or when sign type clauses and subclauses were carried out retouching operation, said access server also comprised:
Update module is used for the property value of the said sign type sign class clauses and subclauses that entry index information writes down and the mapping relations of its complete trails information are upgraded accordingly.
CN200810148904A 2008-09-09 2008-09-09 Method, system and equipment for accounting and accessing data Active CN101674319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810148904A CN101674319B (en) 2008-09-09 2008-09-09 Method, system and equipment for accounting and accessing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810148904A CN101674319B (en) 2008-09-09 2008-09-09 Method, system and equipment for accounting and accessing data

Publications (2)

Publication Number Publication Date
CN101674319A CN101674319A (en) 2010-03-17
CN101674319B true CN101674319B (en) 2012-09-05

Family

ID=42021306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810148904A Active CN101674319B (en) 2008-09-09 2008-09-09 Method, system and equipment for accounting and accessing data

Country Status (1)

Country Link
CN (1) CN101674319B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2556447B1 (en) * 2010-04-08 2020-04-29 Orange Management of computer file sharing between at least two devices
CN103914467B (en) * 2012-12-31 2017-07-14 鼎捷软件股份有限公司 Data variation labelling apparatus
CN108512854B (en) * 2018-04-09 2021-09-07 平安科技(深圳)有限公司 System information safety monitoring method and device, computer equipment and storage medium
CN110012031B (en) * 2019-04-26 2022-03-08 中国电子科技集团公司第二十九研究所 General automatic analysis method and storage method for data message

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399747A (en) * 1999-11-26 2003-02-26 计算机联合思想公司 Method and device of using database
CN1828607A (en) * 2006-04-03 2006-09-06 无锡永中科技有限公司 Data search method for tree-type structural file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399747A (en) * 1999-11-26 2003-02-26 计算机联合思想公司 Method and device of using database
CN1828607A (en) * 2006-04-03 2006-09-06 无锡永中科技有限公司 Data search method for tree-type structural file

Also Published As

Publication number Publication date
CN101674319A (en) 2010-03-17

Similar Documents

Publication Publication Date Title
US8290953B2 (en) Resource name reconciliation in a configuration database
US6553368B2 (en) Network directory access mechanism
US9251211B2 (en) Generation of a query plan for accessing a database
KR100989479B1 (en) An arrangement and method for providing integration of different data relating to different services in a communication network with a plurality of service providers and service enablers
CN101390087B (en) Domain name inquiring and analytic method, domain name system, and domain name registration method
US7774502B2 (en) Determining an international destination address
US20030208563A1 (en) Web dispatch service
EP1684534A2 (en) Method of and apparatus for improving data processing speed of an identity module
CN112148678B (en) File access method, system, device and medium
JP7084427B2 (en) Network entities and methods for identifier assignment and / or identifier mapping for network services
CN106685949A (en) Container access method, container access device and container access system
CN101674319B (en) Method, system and equipment for accounting and accessing data
US20020059360A1 (en) Local-file-transfer method and local-file-transfer system for client-server system
CN110958180B (en) Gateway routing method, intelligent gateway, electronic device and computer storage medium
JP4009591B2 (en) Domain naming system (DNS) for accessing databases
Zeppenfeld et al. A hybrid neural network, dynamic programming word spotter
CN108279924A (en) Program dissemination method and device
CN114143261B (en) Method and system for dynamically routing back-end address by API gateway
CN101459659B (en) Address resolution protocol packet processing method, communication system and network element
US8316045B1 (en) Database linking system
CN100486210C (en) Topology finding method and system in SIP network
US6883036B1 (en) System and method for managing network directories
CN111385347A (en) Service system routing method based on token + lua
US20040002979A1 (en) Global entity identification mapping
CN115712545B (en) Method, device, equipment and medium for realizing service topology awareness of cluster

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant