I use openldap 2.2.13 on RHEL and having 4000+ entries.
I have the following requirement.
1. Add one attribute for all the records.
2. Set a value to it, which is already set for another attribute of
the same record.
A SQL command of the following type would have done this job, if my
data was in SQL.
Is there any equivalent Openldap command, which can be used to do this.
Thanks for your help.
I create my own OID in a .schema file that i include in slapd.conf and it works great !
attributetype ( 18.104.22.168.4.1.422.214.171.124562 NAME 'sbzoneid' SYNTAX 126.96.36.199.4.1.14188.8.131.52.15 SINGLE-VALUE X-ORIGIN 'user defined' )
with "159562" a number of my choice that is not already used by openldap.
Now i'm trying to get a ldaps connection with the backend ldap server.
I want my openldap proxy to check the backend certificate with the CA certificate that i put after TLSCACertificateFile.
The issue is that the ldaps connection works everytime without checking the backend server certificate.
The configuration line with TLSCACertificateFile has no effect on the ssl connection !
I saw that TLSVerifyClient enable to force the certificate check of the client conneting to my openldap proxy but i don't see how to force the openldap proxy to check the backend server certificate.
Then, i had 2 .cer CA certificate (a root and an intermediate) that i concat in 1 certificate. Does openldap support .cer ? or should i rename it in .pem ?
thank you for your help
> Message du 30/11/06 à 17h52
> De : "Kurt D. Zeilenga"
> A : jerrrry(a)voila.fr
> Copie à : openldap-software(a)openldap.org
> Objet : Re: openldap proxy: schema issue
> At 02:09 AM 11/30/2006, jerrrry(a)voila.fr wrote:
> >Hi everybody,
> >I'am configuring slapd(8) 2.3.27 for use as a proxy to another LDAP server.
> >Unfortunately this (non-OpenLDAP) LDAP directory uses non standard attributes stored in a .ldif file.
> >i have to use one of this non standard attributes in the slapd.conf file for binddn:
> >database ldap
> >uri ldap://192.168.239.210:1389
> >suffix ou=personnes,o=sg
> >binddn "sbzoneid=appli_test,ou=exploit,ou=personnes,o=sb"
> >bindpw secret
> >maybe i have to convert this file in the openldap .schema format and include it in slapd.conf.
> If the LDIF contains RFC 4512 conformant schema descriptions,
> that conversion is straight forward. However, it seems that
> descriptions provided in the LDIF do not conform to RFC 4512.
> >A big issue seems to be that this ldif file doesn't use numericOIDs but string OID like:
> >attributetype ( sbzoneid-oid NAME 'sbzoneid' SYNTAX 184.108.40.206.4.1.1466.115.12
> slapd(8) requires either an OID, or a valid OID macro (which
> will expand to the OID before the description is published in
> the schema)... because LDAP does (see RFC 4512).
> >so when runing "sladp -d 1" i get the error: OID could not be expanded: "sbzoneid-oid"
> As "sbzoneid-oid" isn't a numbericoid, it assumed it was an
> OID macro. But there is no such OID macro, hence the error.
> >or maybe with a more liberal parsing could be helpful ?
> The input is parsed just fine. The problem is semantics.
> The field requires an OID. "sbzoneid-oid" is neither an OID,
> nor something that represents an OID. Without an OID, slapd(8)
> wouldn't be able to publish valid schema descriptions for
> the schema element.
> >Do you have any idea to solve this problem ?
> Locate the proper OIDs for these schema elements and use them.
> Or, assign your own OIDs (from your own name space).
For the previous directory server which we used we had not used any specific
OIDs.Now for openLDAP i need to have a specific OID.
I have tried out all possible sample OIDs and have failed.........so now i
have gone back to my usual string instead of an OID,,,,like,,,
DESC 'This attribute defines the role'
DESC 'This is Usergroup Type'
DESC 'SSA User'
SUP ssabase STRUCTURAL
MAY( telephonenumber $ title $ mobile $ displayname $
facsimiletelephonenumber $ preferredlanguage $ postaladdress $ c ) )
DESC 'SSA Supplier'
SUP ssauser STRUCTURAL
MUST businesspartnerid )
but still the same problem persists.......that is either my schema file isnt
being referred by server or an error saying
ldap_add: Invalid syntax (21)
additional info: objectClass: value #1 invalid per syntax
KINDLY let me know as to how to get any OID for my purpose........or can i
get away with having strings as OIDs.......
abd where else should i look into .
WAITING FOR UR REPLY!!!!1
At 10:45 PM 11/30/2006, shilpa muramkar wrote:
>Now for openLDAP i need to have a specific OID.
The requirement comes from RFC 4512.
I suggest you read RFC 4512 as well as the Admin Guide section (9.2)
discussing custom LDAP schema design. The former covers the
particulars of LDAP attribute type and object class descriptions,
the latter provides some additional information, including
answers to the questions you posed.