Hi,
since my name was mentioned I thought I should answer. I will try to explain, what I understood about ldap.xml. I want to state that I am in discussions with Michael about it and would propose a new ldap configuration style, which is more aligned to LDAP-schema conventions. If I find time (which most probably will be not sooner than in a couple of months) and if I get Michaels OK, I will volunteer to rewrite the stuff accordingly.
Not having written the current stuff, I cannot promise that I understood it 100% and I herewith ask Michael to comment and correct me where I am wrong or not specific enough. I did have a look at the code, but not very closely due to lack of time. Where I wasn't sure, I included "(???)".
Ok lets look at an example (my comments are behind #):
<openca>
[...] # general ldap settings (host, port, etc), not the question here and quite nicely described in 7.2. of the user documentation
# at http://www.openca.org/openca/docs/online/ch02s07.html
<ldap>
<schema> # begining of the schema specification, which is not documented, and which normally
# is not changed by users but just used as is
<default> # there are three classes of ldap-entries defined here: certificate for storing user and server certificates;
# ca for storing ca certificates and default for any other kind of entries (???). All three kinds are configured the same way.
[...] # I will skip to the certificate section, because the examples are more usefull to you.
# You shouldn't amend the default section anyway AFAICS (???)
</default>
<certificates>
<rdn> # an LDAP entry is here categorized after the RDN (the relative distinguished name) which is a constituent of the
# DN (distinguished name). for Example the rdn of the entry with the dn "cn=misterx, dc=company,dc=com" is
# "cn=misterx". In ldapterms the schema of an entry is IMO better categorized after the structural objectclass. Here
# it is rather the attribute type used in the RDN
<attributetype>serialNumber</attributetype> # specifies the attribute type of the rdn everything below until the
# next </rdn> is about entries that have an rdn with this attributetype
<must> # here the attribute types are specified which have to be present in the entry-type described here
<attributetype>cn</attributetype>
<attributetype>sn</attributetype>
</must> # ok now we have said that entries that use serialNumber as RDN have to include the attributes sn and cn
# since serialNumber is used as RDN attribute it should also be included in the list of must attributes but
# seems to be missing in the config (???)
<may> # now the same with optional attributes
<attributetype>serialNumber</attributetype>
<attributetype>mail</attributetype>
<attributetype>emailAddress</attributetype>
<attributetype>ou</attributetype>
<attributetype>o</attributetype>
<attributetype>st</attributetype>
<attributetype>l</attributetype>
</may> # ok now we said that entries that use serialNumber as RDN may include the attributetypes serialNumber,
# mail, email, ou, o, st and l in addition to the must attributes
<structural> # now (at last) comes the specification of the structural object class. An object class describes the character
# (and schema) of an entry. Object classes can be inherited from others. One and only one inheritance chain # specifies the main characteristic of the entry and is thus named structural object class (inheritance chain).
# the following is the usual standard structural object class inheritance chain for persons, where inetOrgPerson
# is derived from organizationalPerson and the latter is derived from person.
# BTW an object class is referenced in the LDAP-entry by the objectclass attributetype, e.g.: objectclass=person
<objectclass>person</objectclass>
<objectclass>organizationalPerson</objectclass>
<objectclass>inetOrgPerson</objectclass>
</structural>
<auxiliary> # auxiliary object classes are additional objectclasses that contribute additional attribute types to an entry defined
# by a structural object class. Thus the objectclass pkiUser is a standard aux object class for including an
# attributetype for storing certificates. It can be added to any kind of entry (person, organization, service, device, ...)
<objectclass>opencaEmailAddress</objectclass>
<objectclass>opencaUniquelyIdentifiedUser</objectclass>
<objectclass>pkiUser</objectclass>
</auxiliary> ok, pkiUser and two objectclasses defined by openca are added to entries that use serialNumber as RDN
</rdn> # and this was it for one entrytype now follows the next:
<rdn>
[...]
</rdn>
[...]
</certificate>
<ca> # here come definitions for ca certificates
[...]
</ca>
</schema> # and here we are done.
</ldap>
</openca>
ok now we know what the stuff all means, but I doubt that it is wise to change the configuration nevertheless. If you do, you in any case have to be sure that your statements here are not in contradiction with the LDAP-schema definitions used. e.G the Objectclass has cn and sn as must attributes and thus they should be specified as must attributes here as well. This makes changing the stuff quite
complex.
I hope this helped a bit.
Cheers, Peter
.
Cheers,
Peter
M.-A. DARCHE wrote:
Martin Bartosch a �crit :
I still don't understand how the file openca/etc/ldap.xml is used by OpenCA. I'm interested in the difficult part, the schema part.
When is the "default" schema used (compared to the ca and certificate schemas)?
maybe scann the maillinglists...
I guess the reason that nobody answered is that many people here don't really use the LDAP publication. I tried it once, but did not have much success with our existing LDAP directory here also. But since we only publish CA certs and CRLs (not end entity certs), I did not try to solve this problem.
Michael or perhaps Peter Gietz might know more about this, I suppose.
Thanks for the information.
-- _______________________________________________________________________
Peter Gietz (CEO)
DAASI International GmbH phone: +49 7071 2970336
Wilhelmstr. 106 Fax: +49 7071 295114 D-72074 T�bingen email: [EMAIL PROTECTED]
Germany Web: www.daasi.de
Directory Applications for Advanced Security and Information Management _______________________________________________________________________
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Openca-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openca-users
