[389-users] Adding bunch attribute type from ldif file

Manel Gimeno Zaragozá magiza83 at hotmail.com
Fri Mar 23 11:39:10 UTC 2012


Hello,

I'm new in 389-ds and I'm trying to implement a new LDAP server. This is the packages I've installed:
#  rpm -qa | grep 389
389-adminutil-1.1.14-2.el6.x86_64
389-ds-base-libs-1.2.10.4-2.el6.x86_64
389-ds-base-1.2.10.4-2.el6.x86_64
389-admin-console-1.1.8-1.el6.noarch
389-ds-console-1.2.6-1.el6.noarch
389-admin-1.1.25-1.el6.x86_64
389-console-1.1.7-1.el6.noarch
389-dsgw-1.1.7-2.el6.x86_64

And the system is a Centos6
#cat /etc/redhat-release
CentOS release 6.2 (Final)

The problem I've found is I can not add attribute type using an ldif file.

If I try to add it in terminal mode typing the attribute type I have no problem:

#ldapmodify -a -h localhost -p 1389 -D "cn=admin" -W -v

dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 1.3.6.1.4.1.99999.1.1.6 NAME 'perditionMailhost' DESC 'Perdition MailHost' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'user defined' )

also If i try to add it through console, the attribute is added correctly, but if I try to add it using an ldif file it show me the following error:

#cat import.ldif
dn: cn=schema
changetype: modify
add: attributetypes 
attributetypes: ( 1.3.6.1.4.1.99999.1.1.6 NAME 'perditionMailhost' DESC 'Perdition 
MailHost' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 
'user defined' )

#ldapmodify -a -h localhost -p 1389 -D "cn=admin" -W -v -f import.ldif
ldapmodify: wrong attributeType at line 4, entry "cn=schema"

Also If i try to add multiple attributes, I've got the same error:

#cat import2.ldif

dn: cn=schema

changetype: modify

add: attributetypes 

attributetypes: ( 1.3.6.1.4.1.99999.1.1.6 NAME 'perditionMailhost' DESC 'Perdition 
MailHost' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 
'user defined' )
-
add: attributetypes 
attributetypes: ( 1.3.6.1.4.1.99999.1.1.19 NAME 'mainDocsDomainBase' DESC 'Dominio base de Docs' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'user defined' )

#ldapmodify -a -h localhost -p 1389 -D "cn=admin" -W -v -f import2.ldif

ldapmodify: wrong attributeType at line 4, entry "cn=schema"

am I doing something wrong? did I misunderstand something?

Thanks & Regards.

Manel
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-users/attachments/20120323/55182e7f/attachment.html>


More information about the 389-users mailing list