LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2014, 10:17 AM   #1
timisw
LQ Newbie
 
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
Extending SLAPD Open LDAP Schema... What am I doing wrong?


I have been testing how to extend OpenLDAP / SLAPD Schema on an Umbuntu 12.04 and OpenLDAP - 2.4.28-1.1ubuntu4.4.

I made the following changes -

Made a new schma file in /etc/ldap/schema called test.schema:


# incAccessCard
attributetype ( 1.3.6.1.4.1.666.1.3803
NAME 'incAccessCard'
DESC 'incAccessCard '
EQUALITY caseIgnoreMatch
SYNTAX 1.3.66.1.4.1.1466.115.121.1.15)

# SEL Alliance System incPINcode
attributetype ( 1.3.6.1.4.1.666.1.3804
NAME 'incPINcode'
DESC 'incPINcode'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.66.1.4.1.1466.115.121.1.15)

# SEL Alliance Project Object
objectClass (1.3.6.1.4.1.666.1.3805
NAME 'TestProject'
DESC 'Object Class for OpenLDAP Schema Extension'
SUB organizationalPerson
MAY (incAccessCard $ incPINcode ))

Added the following to the user/share/slapd slapd.conf file -


include /etc/ldap/schema/test.schema

Stopped and started LDAP with -


sudo invoke-rc.d slapd restart

Created an LDIF file of -


version:1

# testuser, users, testldap.local
dn: cn=testuser,ou=users,dc=testldap,dc=local
changetype: modify
add: incAccessCard
incAccessCard: FFFFFFFF


Ran the following -


ldapmodify -H ldap://testldap.local -x -D "cn=admin,dc=testldap,dc=local" -f ~/Desktop/Schema/modify.ldif -w test123$

I end up receiving the following -


modifying entry "cn=testuser,ou=users,dc=testldap,dc=local"
ldap_modify: Undefined attribute type (17)
additional info: incAccessCard: attribute type undefined

What am I missing?

Any help would be greatly appreciating!

Tim
 
Old 03-04-2014, 02:03 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi and welcome to LQ,

Since you're running openldap-2.4.28, I guess it's using the cn=config DIT, instead of the old slapd.conf.
In this case, if you want to add a new schema, you should read this post.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending Samba4 Schema for additinoal attributes. varouj Linux - Enterprise 0 02-12-2013 09:44 PM
LDAP schema drManhattan Linux - Software 0 09-19-2011 10:35 AM
ldap cannot carry slapd.conf changes or did not use /etc/openldap/slapd.conf joel_saul Linux - Server 6 08-21-2010 04:53 AM
Ldap schema error mesh2005 Linux - Networking 0 11-20-2005 04:16 AM
LDAP: slapd is not listening! jjge Linux - Software 6 01-10-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration