Dedi Triyanto

Iseng iseng saja

Sourcecodeorganization LDAP

Posted by deditriyanto on March 10, 2008

3.1. Structure of the code

Figure 14.1. LDAP source schema

Scripts for the import |
   of certificates     |
                       |
-----------------------| scripts to add
                       | objects to LDAP
   export-import.lib   |
                       |
----------------------------------------

                ldap-utils.lib

3.2. The relevant commands

  • addCertsLDAP (puts all valid certs to LDAP)
  • addCrlLDAP (puts all CRLs to LDAP)
  • importAllFromCA (via export-import.lib)
  • importCRL (via export-import.lib)
  • importCerts (via export-import.lib)
  • importCertsLDAP (puts all certs from the last import to LDAP)
  • importConfig (puts CA-certs to LDAP)
  • updateCACertsLDAP (update the CA-certificates on the ldap server)
  • updateCRLonLDAP (writes the most actual CRL to LDAP)
  • updateCertsLDAP (writes/removes the user-certificates to/from LDAP)
  • updateLDAP (puts all certs from the last import to LDAP)

(oh, we have a redundancy here updateLDAP and addCertsLDAP do the same) (updateLDAP is reserved for the future so set all links etc. to importCertsLDAP) (addCertsUser should not be a function of ldap-utils.lib)

3.3. export-import.lib

eximObjectToLDAP

3.4. ldap-utils.lib

  • addCertsUsers (will be moved to importCertsLDAP)
  • addLDAPobject (takes a cert and create the necessary nodes in the LDAP)
  • addLDAPattribute (add certs and CRLs to the LDAP)
  • deleteLDAPattribute (remove certificates from LDAP)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>