openldap / can't modify schema

2,121 views
Skip to first unread message

Abdsamad

unread,
Feb 28, 2012, 11:20:35 AM2/28/12
to RCDevs Security Solutions - Technical
Hi I try to integrate webadm with a OpenLDAP 20327

I use the last webadm 1.2.0 from the 25/02/12

The graphical setup fails to modify the schema, no errors on the
httpd.log.

I try manually to modify the schema and I have this error

ldapmodify -H ldap://localhost -D "XXXX" -w "YYYY" -x -a -f ./
ldap_schema.openldap
modifying entry "cn=schema"
ldap_modify: Invalid syntax (21)
additional info: attributetypes: value #0 invalid per syntax

Thanks a lot for your help

Administrators

unread,
Feb 28, 2012, 11:49:11 AM2/28/12
to RCDevs Security Solutions - Technical

Administrators

unread,
Feb 28, 2012, 12:03:59 PM2/28/12
to RCDevs Security Solutions - Technical
can you try with this:

dn: cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.34617.2.3.1 NAME 'webadmSettings'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )

dn: cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.34617.2.3.2 NAME 'webadmData' SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )

dn: cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.34617.2.3.3 NAME 'webadmType' SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )

dn: cn=schema,cn=config
changetype: modify
add: olcObjectClasses
olcObjectClasses: ( 1.3.6.1.4.1.34617.2.4.1 NAME 'webadmAccount' SUP
top AUXILIARY MUST (cn $ uid) MAY (webadmSettings $ webadmData $
preferredLanguage $ mobile $ mail $ description) )

dn: cn=schema,cn=config
changetype: modify
add: olcObjectClasses
olcObjectClasses: ( 1.3.6.1.4.1.34617.2.4.2 NAME 'webadmConfig' SUP
top MUST (cn $ webadmType) MAY (webadmSettings $ description) )

dn: cn=schema,cn=config
changetype: modify
add: olcObjectClasses
olcObjectClasses: ( 1.3.6.1.4.1.34617.2.4.3 NAME 'webadmGroup' SUP top
AUXILIARY MUST (cn) MAY (webadmSettings $ description) )

On Feb 28, 5:49 pm, Administrators <adm...@rcdevs.com> wrote:
> Look at thishttp://www.openldap.org/lists/openldap-technical/201104/msg00108.html

Abdsamad

unread,
Feb 29, 2012, 7:55:39 AM2/29/12
to RCDevs Security Solutions - Technical
Thanks, it's working now

Feleke Fiseha

unread,
May 17, 2016, 1:59:53 AM5/17/16
to RCDevs Security Solutions - Technical, abds...@barakat.fr
hi i have same problem adding custom attribute to openldap:- here is my ldif file

dn: cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.2.840.113556.1.8000.999999.4
 NAME 'tipoUtente'
 EQUALITY caseIgnoreMatch
 SUBSTR caseIgnoreSubstringsMatch
 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
olcAttributeTypes: ( 1.2.840.113556.1.8000.999999.5
 NAME 'matricola'
 EQUALITY caseIgnoreMatch
 SUBSTR caseIgnoreSubstringsMatch
 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
-
add: olcObjectClasses
olcObjectClasses: (1.2.840.113556.1.8000.999999.2.1
 NAME 'utentePerson'
 DESC 'utentePerson'
 SUP organizationalPerson
 STRUCTURAL
 MAY  (tipoUtente $ matricola)
 )
it says i don't have right to access dn but i do have admin password 

Spyridon Gouliarmis (RCDevs)

unread,
May 17, 2016, 8:11:39 AM5/17/16
to RCDevs Security Solutions - Technical, abds...@barakat.fr
Easy: put the marmot in the plastic bag but don't forget to paint your moustache.

More seriously: give us the exact command you entered, exactly what output you got, and your slapd.conf.

If you're using our packaging of OpenLDAP, you can use the old (offline) method to add a schema. See the files in /opt/slapd/lib/schema/.

If you're using the new method on a standard OpenLDAP, Google is your friend: http://serverfault.com/questions/585111/openldap-cannot-add-new-schema
Reply all
Reply to author
Forward
0 new messages