Hi; I've just read the documentation twice and still have a few questions that should be relatively easy to answer:
The following should be put in DB_CONFIG, but where is that file?? olcDbConfig: set_cachesize 0 10485760 0 olcDbConfig: set_lg_bsize 2097512 olcDbConfig: set_lg_dir /var/tmp/bdb-log olcDbConfig: set_flags DB_LOG_AUTOREMOVE
What do these attibutes mean, how are they applicable and why would I want to index them? I understand SQL notation. Could someone give me a similar example? pres (present),eq (equality),approx (approximate),sub (substring)
This line causes an equality index for the objectClass attribute type, but what does that mean? Can you give me an example? index objectClass eq
Why does one define this: dn: cn="example" and later in the same entry define this: cn=example
Can one preface non-Standard Track names with numbers or number/letter combinations?
TIA, Ted2 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
At 09:21 PM 10/6/2006, Ted Johnson wrote:
Hi; I've just read the documentation twice and still have a few questions that should be relatively easy to answer:
The following should be put in DB_CONFIG, but where is that file?? olcDbConfig: set_cachesize 0 10485760 0 olcDbConfig: set_lg_bsize 2097512 olcDbConfig: set_lg_dir /var/tmp/bdb-log olcDbConfig: set_flags DB_LOG_AUTOREMOVE
The file belongs in the directory named in the database's 'directory' directive.
What do these attibutes mean,
It's not clear what you refer to as 'attributes' here. I would have thought you were referring to DB_CONFIG configuration items here but with:
how are they applicable and why would I want to index them?
you lost me. One cannot index DB_CONFIG configuration items.
The only LDAP attribute so far named is olcDbConfig. It doesn't need to be indexed. It's meaning is explained in the admin guide.
This line causes an equality index for the objectClass attribute type, but what does that mean?
It means that the server will maintain an equality index for this attribute.
Can you give me an example? index objectClass eq
The above is an example of a configuration directive telling the server to maintain an equality index for the objectClass attribute. If you meant an example of the index itself, that's irrelevant. An index is a internal table used to speed up searching. It's format is only relevant to slapd(8) and associated tools. It's never exposed to admins (or users).
The remainder of your message contains general LDAP questions not appropriate for discussion here. Please direct general LDAP questions to a general LDAP list, such as ldap@umich.edu.
-- Kurt
--On Friday, October 06, 2006 12:21 PM -0700 Ted Johnson whatawonderfulworldweliveintoo@yahoo.com wrote:
Hi; I've just read the documentation twice and still have a few questions that should be relatively easy to answer:
The following should be put in DB_CONFIG, but where is that file?? olcDbConfig: set_cachesize 0 10485760 0 olcDbConfig: set_lg_bsize 2097512 olcDbConfig: set_lg_dir /var/tmp/bdb-log olcDbConfig: set_flags DB_LOG_AUTOREMOVE
These are for BDB. I suggest reading the BDB man pages to discovery what they do.
What do these attibutes mean, how are they applicable and why would I want to index them? I understand SQL notation. Could someone give me a similar example? pres (present),eq (equality),approx (approximate),sub (substring)
Have you read the FAQ and admin guide?
You could also look over:
http://www.stanford.edu/services/directory/openldap/configuration/slapd-conf-replica.html
but it sounds like you really need to spend some time reading the documentation that already exists @ OpenLDAP.org, and maybe a book or two about LDAP.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
Ted Johnson whatawonderfulworldweliveintoo@yahoo.com writes:
Hi; I've just read the documentation twice and still have a few questions that should be relatively easy to answer:
What documentation are you referring to?
The following should be put in DB_CONFIG, but where is that file?? olcDbConfig: set_cachesize 0 10485760 0 olcDbConfig: set_lg_bsize 2097512 olcDbConfig: set_lg_dir /var/tmp/bdb-log olcDbConfig: set_flags DB_LOG_AUTOREMOVE
The DB_CONFIG file has to be placed into the database directory, most likely /var/lib/openldap-data. But as your example shows an entry for the cn=config database, it is most likely that you will find an appropriate entry in etc/openldap/slapd.d/cn=config/
What do these attibutes mean, how are they applicable and why would I want to index them? I understand SQL notation. Could someone give me a similar example?
This are configuration parameters for the underlying BerkeleyDB Database Management System http://www.sleepycat.com/docs/ref/env/db_config.html
pres (present),eq (equality),approx (approximate),sub (substring) This line causes an equality index for the objectClass attribute type, but what does that mean? Can you give me an example? index objectClass eq
You may search entries in your database either by presenting a equality string, i.e. "cn=Babs Jensen" or you may present a subsring only i.e. "cn=Babs J*" In order to speed up searches, special databases of indexed attributes are created. You will probably find a objectclass.bdb and cn.bdb file in yyour database directory.
Why does one define this: dn: cn="example" and later in the same entry define this: cn=example
Don't know what documentation you are reffering to.
Can one preface non-Standard Track names with numbers or number/letter combinations?
What is a non-Standard Track name?
-Dieter
openldap-software@openldap.org