Greetings, I have an $OpenLDAP: slapd 2.4.23 on centos 6.4 installed and i need to extend the schema to fit my setup.
all i need is to add to my users in ou People a simple boolean attribute named vpnStatus that i want to be the basis upon which users are given vpn access or not.
i created /etc/openldap/schema/local.schema containing
attributetype ( 1.2.3.4.5.6.7.000.1 NAME 'accountStatus' DESC 'boolean - defines if user has access to vpn' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
the OID is random picked.
i restarted slapd without error but i can't find this attribute anywhere. i have apache directory studio used for editing and lam as a web gui and i can't find it there either. i'm a bit confused.
then i tried to export this attribute as ldif (using apache ds) and import it using cli tools:
ldapadd -x -W -h 127.0.0.1 -D "cn=Manager,dc=example,dc=com" -f /tmp/vpnSchema.ldif
Enter LDAP Password: adding new entry "cn=vpnSchema, ou=schema" ldap_add: Invalid syntax (21) additional info: objectclass: value #0 invalid per syntax
what do i need to do ?
--On Tuesday, September 03, 2013 12:57 PM +0300 Horatiu Nimigean horatiu.nimigean@ddnet.ro wrote:
Greetings, I have an $OpenLDAP: slapd 2.4.23 on centos 6.4 installed and i need to extend the schema to fit my setup.
Get a current version of OpenLDAP. The version shipped with CentOS is utterly broken. I suggest the LTB package as an alternative:
http://ltb-project.org/wiki/download#openldap
all i need is to add to my users in ou People a simple boolean attribute named vpnStatus that i want to be the basis upon which users are given vpn access or not.
Schema consist of more than just attributes. You will also need an objectClass that relates to the attribute.
i created /etc/openldap/schema/local.schema containing what do i need to do ?
Learn how to develop and implement schema properly.
--Quanah
--
Quanah Gibson-Mount Lead Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org