I'm trying to add new schema to my OpenLDAP server. The version of slapd is 2.4.23. I'm using Debian 6.
If I understood it well, slapd 2.4+ uses OLC configuration with (cn=config) by default for this version and I don't have to modify anything in slapd.conf or some other point in the cn=config tree (am I wrong?). But when I'm trying to add schema with following command:
ldapadd -x -D "cn=admin,cn=config" -W -f filesystem.ldif
it gives me:
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
I also tried this command(even if I don't know what I'm doing here):
ldapadd -x -D "cn=admin,dc=linuxcbt,dc=internal" -W -f filesystem.ldif
where dc=linuxcbt,dc=internal is my base, I get:
adding new entry "cn=filesystem,cn=schema,cn=config"
ldap_add: Insufficient access (50)
My filesystem.ldif file is:
dn: cn=filesystem,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: filesystem
olcAttributeTypes: ( 1000.1.1.1 NAME ( 'fn' 'filename' )
DESC 'Nome del file'
EQUALITY 'Case exact match'
SUBSTR caseExactSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: ( 1000.1.1.2 NAME ( 'fs' 'filesize' )
DESC 'Dimensione del file'
EQUALITY integerMatch
ORDERING integerOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
olcObjectClasses: ( 1000.1.2.1 NAME ( 'dir'
DESC 'Una directory'
MUST fn
MAY fs
AUXILIARY )
olcObjectClasses: ( 1000.1.2.2 NAME ( 'file'
DESC 'Un file'
MUST (fn $ fs)
AUXILIARY )
Now I'm stuck with this.