OpenLDAP ...

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 ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-12-2004
Marcin P
 
Posts: n/a
Default OpenLDAP ...


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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0