This is a discussion on OpenLDAP ... within the Linux Security forums, part of the System Security and Security Related category; Hi I have leaf (i.e. "cn=A B, o=AAA, c=PL") and this is inetOrgPerson object ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi I have leaf (i.e. "cn=A B, o=AAA, c=PL") and this is inetOrgPerson object class. This object must have attributes of inetOrgPerson object class as well as attributes of object of different class (i.e. Person). How can I do this with back-sql (mssql - I must use OpenLDAP with this backend). How can I store this information in strucures of LDAP. Sorry but my english is poor. For example: ----------------------- -- ldap_oc_mappings -- ----------------------- insert into ldap_oc_mappings (id,name,keytbl,keycol,create_proc,delete_proc,exp ect_return) values (1,'organization','ldap_organization','id',NULL,NU LL,0) insert into ldap_oc_mappings (id,name,keytbl,keycol,create_proc,delete_proc,exp ect_return) values (2,'inetorgperson','persons','ldap_id',NULL,NULL,0 ) insert into ldap_oc_mappings (id,name,keytbl,keycol,create_proc,delete_proc,exp ect_return) values (3,'person','persons','ldap_id',NULL,NULL,0) ------------------------- -- ldap_attr_mappings -- ------------------------- insert into ldap_attr_mappings (id,oc_map_id,name,sel_expr,from_tbls,join_where,a dd_proc,modify_proc,delete _proc,param_order,expect_return) values (1,1,'o','ldap_organization.nazwa','ldap_organizat ion',NULL,NULL, NULL,NULL,0,0) insert into ldap_attr_mappings (id,oc_map_id,name,sel_expr,from_tbls,join_where,a dd_proc,modify_proc,delete _proc,param_order,expect_return) values (2,2,'cn','persons.firstname + '' ''+ persons.lastname','persons',NULL,NULL, NULL,NULL,0,0) insert into ldap_attr_mappings (id,oc_map_id,name,sel_expr,from_tbls,join_where,a dd_proc,modify_proc,delete _proc,param_order,expect_return) values (3,2,'userPassword','persons.password','persons',N ULL,NULL, NULL,NULL,0,0) ----------------------- -- ldap_entries -- ----------------------- insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values (1,'c=pl',1,0,1) insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values (2,'o=AAA,c=pl',1,1,2) insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values (3,'cn=A B,o=AAA,c=pl',2,2,1) ..... and now 'cn=A B,o=AAA,c=pl' is object of inetOrgPerson class but I want to do it also object of Person class (oc_map_id for this DN must be equal 2 and 3). How ? Marcin |