Hi;
I've recently installed Buchan's OpenLDAP rpms because I wanted to use more features of OpenLDAP... mainly the overlays/modules. I downloaded them from http://staff.telkomsa.net/packages/... and installation was fine.
I've exported my database to LDIF format and when I try to import the data via slapadd using the new openldap server config, I get the following error:
###### -bash-3.00# /usr/sbin/slapadd -f /opt/ldap-master/etc/slapd.conf -l ldif-dump-20071119.txt /usr/share/openldap2.3/schema/core.schema: line 366: AttributeType not found: "description" slapadd: bad configuration file! -bash-3.00# ######
Looking at the core.schema file, I see that the "description" AttributeType is commented out because it's a "system schema".... along with a few others, like "userPassword". As I keep uncommenting the several attributes, the slapadd process succeeds a bit more.
However, when starting slapd, it errors about duplicate attribute types... the ones I uncommented. So I decide to go back to leaving them commented as was intended by the author. But this case causes the import to fail.
So, where is the "system schema" found and how do I include it in the main slapd.conf file so that the import process finds these attributes? I've looked through the distribution to find it, but I've not come up with anything. My guess is that it's included in a library or compiled into the daemon.
So how do I fix my problem? Thoughts?
Thanks,
Rafael
R.B. skrev, on 04-12-2007 00:33:
Hi;
I've recently installed Buchan's OpenLDAP rpms because I wanted to use more features of OpenLDAP... mainly the overlays/modules. I downloaded them from http://staff.telkomsa.net/packages/... and installation was fine.
I've exported my database to LDIF format and when I try to import the data via slapadd using the new openldap server config, I get the following error:
###### -bash-3.00# /usr/sbin/slapadd -f /opt/ldap-master/etc/slapd.conf -l ldif-dump-20071119.txt /usr/share/openldap2.3/schema/core.schema: line 366: AttributeType not found: "description" slapadd: bad configuration file! -bash-3.00# ######
Looking at the core.schema file, I see that the "description" AttributeType is commented out because it's a "system schema".... along with a few others, like "userPassword". As I keep uncommenting the several attributes, the slapadd process succeeds a bit more.
However, when starting slapd, it errors about duplicate attribute types... the ones I uncommented. So I decide to go back to leaving them commented as was intended by the author. But this case causes the import to fail.
So, where is the "system schema" found and how do I include it in the main slapd.conf file so that the import process finds these attributes? I've looked through the distribution to find it, but I've not come up with anything. My guess is that it's included in a library or compiled into the daemon.
So how do I fix my problem? Thoughts?
You're using the wrong slapadd, Buchan's is called slapadd2.3. You'd do best to 'rpm -e' your old openldap rpms before you go any further.
Hmmm ... then you'll have to undo all the schema changes you've made up to now.
--Tonni
openldap-software@openldap.org