亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? concept

?? 開放源碼的ldap系統
??
字號:
CONTENT1. Purpose2. Metainformation used3. Typical back-sql operation4. Several important common techniques (referrals, multiclassing)1. PurposePrimary purpose of this backend is to PRESENT information stored in some RDBMSas an LDAP subtree without any programming (some SQL and maybe storedprocedures can't be considered programming, anyway ;).That is, for example, when you (some ISP) have accountinformation you use in RDBMS, and want to use modern solutions that expect suchinformation in LDAP (to authenticate users, make email lookups etc.).Or you want to syncronize or distribute information between differentsites/applications that use RDBMSes and/or LDAP. Or whatever else...It is NOT designed as general-purpose backend that uses RDBMS instead ofBerkeleyDB (as standard back-ldbm does), though it can be used as suchwith several limitations. You can take a look athttp://www.openldap.org/faq/index.cgi?file=378 (OpenLDAP FAQ-O-Matic/General LDAP FAQ/Directories vs. conventional databases)to find out more on this point.The idea (detailed below) is to use some metainformation to translateLDAP queries to SQL queries, leaving relational schema untouched, so thatold applications can continue using it without any modifications. This allowsSQL and LDAP applications to interoperate without replication, and exchangedata as needed.Back-sql is designed to be tunable to virtually any relational schema withouthaving to change source (through that metainformation mentioned).Also, it uses ODBC to connect to RDBMSes, and is highly configurable forSQL dialects RDBMSes may use, so it may be used for integration and distribution of data on different RDBMSes, OSes, hosts etc., in other words,in highly heterogeneous environment.2. Metainformation used***Almost everything mentioned later is illustrated in example, which is locatedin backsql/rdbms_depend directory, and contains scripts for generating sampledatabase for Oracle,MS SQL Server and mySQL.***First thing that one must arrange for himself is what set of LDAP objectclasses can present your RDBMS information.The easiest way is to create objectclass for each entity you hadin ER-diagram when designing your relational schema.Any relational schema, no matter how normalized it is, was designed aftersome model of your applications domain (for instance, accounts, services etc.in ISP), and is used in terms of its entities, not just tables of normalizedschema.It means that for every attribute of every such instance there is an effectiveSQL query that loads it's values.Also you might want your objectclasses to conform to some of standard schemaslike inetOrgPerson etc..Nevertheless, when you think it out, we must define a way to translate LDAPoperation requests to (series of) SQL queries. Let us deal with SEARCH operation.Example:Lets suppose that we store information about persons working in our organization in two tables:PERSONS   		PHONES----------           -------------id integer		id integerfirst_name varchar      pers_id integer references persons(id)last_name varchar       phonemiddle_name varchar...(PHONES contains telephone numbers associated with persons). A person can haveseveral numbers, then PHONES contains several records with corresponding pers_id, or no numbers (and no records in PHONES with such pers_id). LDAPobjectclass to present such information could look like this:person-------MUST cnMAY telephoneNumberMAY firstNameMAY lastName...To fetch all values for cn attribute given person ID, we construct the query:SELECT CONCAT(persons.first_name,' ',persons.last_name) as cn FROM persons WHERE persons.id=?for telephoneNumber we can use:SELECT phones.phone as telephoneNumber FROM persons,phones WHERE persons.id=phones.pers.id and persons.id=?If we wanted to service LDAP request with filter like (telephoneNumber=123*),we would construct something like:SELECT ... FROM persons,phones WHERE persons.id=phones.pers.id and persons.id=? and phones.phone like '123%'So, if we had information about what tables contain values for each attribute, how to join this tables and arrange these values, we could tryto automatically generate such statements, and translate search filtersto SQL WHERE clauses.To store such information, we add three more tables to our schema, so that and fill it with data (see samples):ldap_oc_mappings (some columns are not listed for clarity)---------------id=1name="person"keytbl="persons"keycol="id"This table defines mapping between objectclass (its name held in "name" column),and table that holds primary key for corresponding entities. For instance,in our example, the person entity, which we are trying to present as "person"objectclass, resides in two tables (persons and phones), and is identifiedby persons.id column (that we will call primary key for this entity).keytbl and keycol thus contain "persons" (name of the table), and "id" (nameof the column).ldap_attr_mappings (some columns are not listed for clarity)-----------id=1oc_id=1name="cn"sel_expr="CONCAT(persons.first_name,' ',persons.last_name)"from_tbls="persons"join_where=NULL************id=<n>oc_map_id=1name="telephoneNumber"sel_expr="phones.phone"from_tbls="persons,phones"join_where="phones.pers_id=persons.id"This table defines mappings between LDAP attributes and SQL queries thatload their values. Note that, unlike LDAP schema, these are not *attribute types*- attribute "cn" for "person" objectclass can well have it's values in differenttable than "cn" for other objectclass, so attribute mappings depend onobjectclass mappings (unlike attribute types in LDAP schema, which areindifferent to objectclasses). Thus, we have oc_map_id column with link tooc_mappings table. Now we cut the SQL query that loads values for given attribute into 3 parts.First goes into sel_expr column - this is the expression we had betweenSELECT and FROM keywords, which defines WHAT to load.Next is table list - text between FROM and WHERE keywords. It may containaliases for convenience (see exapmles).The last is part of where clause, which (if exists at all) express thecondition for joining the table containing values wich table containingprimary key (foreign key equality and such). If values are in the same tablewith primary key, then this column is left NULL (as for cn attribute above).Having this information in parts, we are able to not only construct queriesthat load attribute values by id of entry (for this we could store SQL queryas a whole), but to construct queries that load id's of objects thatcorrespond to given search filter (or at least part of it).See below for examples.ldap_entries------------id=1dn=<dn you choose>oc_map_id=...parent=<parent record id>keyval=<value of primary key>This table defines mappings between DNs of entries in your LDAP tree,and values of primary keys for corresponding relational data. It hasrecursive structure (parent column references id column of the same table),which allows you to add any tree structure(s) to your flat relational data.Having id of objectclass mapping, we can determine table and column forprimary key, and keyval stores value of it, thus defining exact tuplecorresponding to LDAP entry with this DN.Note that such design (see exact SQL table creation query) implies oneimportant constraint - the key must be integer. But all that I know aboutwell-designed schemas makes me think that it s not very narrow ;)If anyone needs support for different types for keys - he may want to writea patch, and submit it to OpenLDAP ITS, then I'll include it.Also, several people complained that they don't really need very structuredtree, and they don't want to update one more table every time they add ordelete instance in relational schema. Those can use a view instead of realtable, something like this:Robin Elfrink wrote:> About using a view for ldap_entries...>> This is what I came up with this morning:>> CREATE VIEW ldap_entries (id, dn, oc_map_id, parent, keyval) AS>         SELECT (1000000000+userid),> UPPER(CONCAT(CONCAT('cn=',gecos),',o=MyCompany,c=NL'))> , 1, 0, userid FROM unixusers UNION>         SELECT (2000000000+groupnummer),> UPPER(CONCAT(CONCAT('cn=',groupnaam),',o=MyCompany,c=NL')), 2, 0,> groupnummer FROM groups;>3. Typical back-sql operationHaving metainformation loaded, back-sql uses these tables to determine a setof primary keys of candidates (depending on search scope and filter). It triesto do it for each objectclass registered in ldap_objclasses.Exapmle:for our query with filter (telephoneNumber=123*) we would get following query generated (which loads candidate IDs)SELECT ldap_entries.id,persons.id, 'person' AS objectClass, ldap_entries.dn AS dn FROM ldap_entries,persons,phones WHERE persons.id=ldap_entries.keyval AND ldap_entries.objclass=? AND ldap_entries.parent=? AND phones.pers_id=persons.id AND (phones.phone LIKE '123%')(for ONELEVEL search)or "... AND dn=?" (for BASE search)or "... AND dn LIKE '%?'" (for SUBTREE)Then, for each candidate, we load attributes requested using per-attribute querieslikeSELECT phones.phone AS telephoneNumber FROM persons,phones WHERE persons.id=? AND phones.pers_id=persons.idThen, we use test_filter() from frontend API to test entry for fullLDAP search filter match (since we cannot effectively make sense of SYNTAXof corresponding LDAP schema attribute, we translate the filter into most relaxedSQL condition to filter candidates), and send it to user.ADD,DELETE,MODIFY operations also performed on per-attribute metainformation(add_proc etc.). In those fields one can specify an SQL statement or stored procedurecall which can add, or delete given value of given attribute, using given entrykeyval (see examples -- mostly ORACLE and MSSQL - since there're no stored procs in mySQL).We just add more columns to oc_m,appings and attr_mappings, holding statementsto execute (like create_proc, add_proc, del_proc etc.), and flags governingorder of parameters passed to those statements.Please see samples to find out what are the parameters passed, and otherinformation on this matter - they are self-explanatory for those familiarwith concept expressed above.4. Several common techniques (referrals, multiclassing etc.)First of all, lets remember that among other major differences to completeLDAP data model, the concept above does not directly support such thingsas multiple objectclasses for entry, and referrals.Fortunately, they are easy to adopt in this scheme. Back-sql suggests two moretables being added to schema - ldap_entry_objectclasses(entry_id, oc_name), and ldap_referrals (entry_id,url).First contains any number of objectclass names that corresponding entrieswill be found by, in addition to that mentioned in mapping. Back-sqlautomatically adds attribute mapping for "objectclass" attribute to each objectclassmapping, that loads values from this table. So, you may, for instance, havemapping for inetOrgPerson, and use it for queries for "person" objectclass...Second table contains any number of referrals associated with given entry.Back-sql automatically adds attribute mapping for "ref" attribute to eachobjectclass mapping, that loads values from this table.So, if you add objectclass "referral" to this entry, and make one or moretuples in ldap_referrals for this entry (they will be seen as values of "ref"attribute), you will have slapd return referral, as described in AdministratorsGuide.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美中文字幕公布| 精品国产乱码久久| 国产精品综合一区二区三区| 国产精品久久久久久亚洲毛片| 欧美精品1区2区3区| 成人高清免费在线播放| 另类调教123区| 亚洲成人一区在线| 中文字幕一区二区三区视频| 精品国产一区二区亚洲人成毛片| 91福利区一区二区三区| 99视频精品在线| 国产麻豆91精品| 裸体在线国模精品偷拍| 亚洲国产三级在线| 亚洲精品视频在线看| 国产视频一区二区在线| 日韩精品一区二区三区在线| 欧美久久久久久久久久| 在线观看日韩精品| 色综合久久久久久久久久久| 成人午夜激情在线| 国产精品香蕉一区二区三区| 美脚の诱脚舐め脚责91| 午夜久久电影网| 亚洲mv在线观看| 亚洲一区二区欧美| 一区二区三区中文在线| 亚洲女子a中天字幕| 国产精品亲子伦对白| 久久在线观看免费| 久久综合色天天久久综合图片| 日韩午夜激情免费电影| 日韩欧美一区中文| 日韩欧美视频一区| 欧美成人a在线| 精品粉嫩aⅴ一区二区三区四区| 日韩精品一区二区在线观看| 欧美成人a∨高清免费观看| 日韩三级电影网址| 久久综合色播五月| 国产嫩草影院久久久久| 国产精品全国免费观看高清| 国产精品国产三级国产| 亚洲天天做日日做天天谢日日欢| 国产精品国产精品国产专区不片| 1000精品久久久久久久久| 亚洲欧美另类小说| 亚洲小说欧美激情另类| 丝袜美腿成人在线| 久久福利资源站| 成人永久看片免费视频天堂| av爱爱亚洲一区| 欧洲一区二区av| 日韩一区二区三区四区五区六区| 欧美成人a视频| 国产精品国产a级| 亚洲成人免费观看| 精品一区二区三区的国产在线播放| 国产精品系列在线观看| 色综合视频一区二区三区高清| 欧美性猛交xxxx乱大交退制版| 欧美一区二区免费观在线| 久久久久久9999| 亚洲乱码国产乱码精品精的特点| 午夜精品一区二区三区免费视频| 久久成人精品无人区| 成人av动漫在线| 欧美亚洲国产一卡| 日韩欧美在线影院| 亚洲欧洲日产国码二区| 男女男精品视频网| 成人黄色国产精品网站大全在线免费观看| 99久久夜色精品国产网站| 欧美手机在线视频| 日本一区二区三级电影在线观看| 亚洲精品国产一区二区精华液| 天堂一区二区在线| 成人免费毛片高清视频| 91.麻豆视频| 亚洲欧洲精品一区二区三区不卡| 日韩av电影免费观看高清完整版 | 91精品欧美一区二区三区综合在| 精品国产污污免费网站入口 | 亚洲色图欧美激情| 美女视频免费一区| av在线一区二区三区| 日韩欧美成人激情| 亚洲一区在线视频观看| 风流少妇一区二区| 日韩欧美一卡二卡| 亚洲一区二区欧美| bt7086福利一区国产| 精品国产一二三| 午夜激情久久久| 91影院在线免费观看| 亚洲精品一区二区在线观看| 亚洲国产精品综合小说图片区| 成人免费观看av| 2欧美一区二区三区在线观看视频| 亚洲午夜久久久久中文字幕久| 成人久久18免费网站麻豆| 日韩视频在线观看一区二区| 亚洲最新视频在线观看| 成人av网站在线观看免费| 欧美精品一区二区在线播放| 婷婷激情综合网| 欧美中文字幕不卡| 亚洲私人黄色宅男| 丁香一区二区三区| 久久综合久久综合久久综合| 五月婷婷色综合| 欧美无砖砖区免费| 成人欧美一区二区三区在线播放| 国产高清久久久久| 26uuu色噜噜精品一区二区| 蜜芽一区二区三区| 欧美日韩不卡在线| 亚洲一区在线免费观看| 色就色 综合激情| 亚洲欧美在线aaa| 99久久精品免费| 最新国产の精品合集bt伙计| 国产成人在线视频网站| 久久精品一区二区三区不卡 | 美国毛片一区二区| 69av一区二区三区| 亚洲gay无套男同| 337p亚洲精品色噜噜噜| 首页综合国产亚洲丝袜| 欧美精品电影在线播放| 五月婷婷激情综合| 欧美精品在线视频| 日本亚洲电影天堂| 日韩三级视频在线看| 看片网站欧美日韩| 欧美精品一区二区三| 日韩欧美国产一二三区| 国产片一区二区| 国产最新精品免费| 久久久久久久久一| 国产电影一区二区三区| 国产亚洲污的网站| 成人激情小说网站| 椎名由奈av一区二区三区| 丁香激情综合国产| 中文字幕亚洲精品在线观看| 99精品黄色片免费大全| 亚洲综合一区在线| 在线不卡免费欧美| 秋霞午夜av一区二区三区| 精品国产凹凸成av人导航| 国产成人在线影院| 亚洲欧美日韩中文字幕一区二区三区| 91香蕉视频在线| 日韩和欧美一区二区| 精品国产乱码久久久久久久| 国产69精品久久久久毛片| 亚洲麻豆国产自偷在线| 69久久夜色精品国产69蝌蚪网| 国内精品久久久久影院色| 欧美国产日韩a欧美在线观看| 99re成人在线| 日韩高清一区在线| 久久蜜桃香蕉精品一区二区三区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 亚洲成人免费在线观看| 欧美成人精品3d动漫h| 成人理论电影网| 亚洲福利视频一区二区| 2欧美一区二区三区在线观看视频| 99久久免费国产| 日本va欧美va欧美va精品| 国产精品午夜电影| 欧美日韩国产a| 国产a区久久久| 日韩精品一区第一页| 久久久久久一级片| 欧洲精品在线观看| 国产专区欧美精品| 亚洲成人免费看| 欧美经典一区二区三区| 在线不卡一区二区| 91网上在线视频| 国产一区二区三区高清播放| 亚洲综合在线五月| 亚洲国产成人自拍| 日韩欧美一区中文| 在线观看成人小视频| 懂色av一区二区夜夜嗨| 美女mm1313爽爽久久久蜜臀| 亚洲精品亚洲人成人网| 精品国产伦一区二区三区观看方式 | 欧美自拍偷拍午夜视频| 国产精品亚洲专一区二区三区 | 麻豆成人免费电影| 一区二区三区国产精品| 国产欧美中文在线| 91精品在线免费观看| 欧美性大战xxxxx久久久|