- 论坛徽章:
- 0
|
6.3.4. Defining grant to the database
grant all on
dc_object,
dc_object_id_seq,
ldap_attr_mappings,
ldap_attr_mappings_id_seq,
ldap_entries,
ldap_entries_id_seq,
ldap_entry_objclasses,
ldap_oc_mappings,
ldap_oc_mappings_id_seq,
ldap_referrals,
samse_ou,
samse_ou_id_seq,
posix_group,
posix_group_id_seq,
group_member,
samse_person,
samse_person_id_seq,
samse_activite,
organizational_unit,
organizational_unit_id_seq
to test;
That's all, now we have to load initial data by dumping ldiff record from the LDAP master directory. If you don't have this and for example start from an existing SQL database you still have the work to create a script to create all ldap entries. If so take a look at the testdb_data.sql and the entries part of the testdb_metadata.sql in the rdbms_depend/pgsql directory this will help you to understand howto to map your LDAP entries with the SQL datas.
6.3.5. Load live data
# extended LDIF
#
# LDAPv3
# base with scope sub
#
# 001234, people, samse.fr
dn: employeeNumber=001234,ou=people,dc=samse,dc=fr
ou: people
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: samsePerson
objectClass: posixAccount
objectClass: shadowAccount
employeeNumber: 001234
fonction: F
codeEmploi: 1304
displayName: Jean FRANCOIS
mailboxName: jfrancois
shadowWarning: 7
shadowMax: 99999
uidNumber: 3826
gidNumber: 100
title: LDAP TESTING ACCOUNT
birthDate: 20/12/66
shadowMin: 0
shadowInactive: -1
homeDirectory: /home/francois
cn: FRANCOIS Jean
sn: FRANCOIS
givenName: Jean
loginShell: /bin/sh
sexe: M
employeeType: I
uid: toto
activite: DEV
activite: ADM
typeRTT: JRR098
arrivalDate: 15/02/2000
contributionGroup: CA
mail: jfrancois@chez.fr
service: INFORMATIQUE
departmentNumber: 122
codeAgence: 991
telephoneNumber: 01 23 45 67 89
facsimileTelephoneNumber: 01 23 45 67 89
fixRPVNumber: 172
Now you may load this data as follow: ldapadd -D "cn=root,dc=samse,dc=fr" -w secret -f data.ldiff |
|